24 Sep
Posted by Robocop as Miscelanea
Recientemente trabajando con la personalización de una tienda virtual basada en el sistema Oscommerce me di cuenta que al seleccionar otro idioma diferente al inglés para que salga por defecto al visitar la tienda, oscommerce seguía mostrando la tienda en inglés.
Luego de mucha investigación y de urgar el código, me enteré que Oscommerce 2.2 detecta el idioma del navegador utilizado por el visitante y muestra dicho idioma por defecto, obviando así el parámetro configurado en el administrador. Como por costumbre utilizo el navegador (y muchos otros programas) en inglés, siempre me mostraba la versión en inglés de la tienda.
Un truco para evitar que esto suceda y que siempre salga por defecto el idioma que nosotros seleccionemos para mostrarse por defecto, es ingresar al administrador, ir a la lista de idiomas instalados y cambiar el código de identificación del idioma inglés (‘en’) por cualquier otro código ficticio, como por ejemplo ‘rr’ o ‘ne’.
Debéis tomar en cuenta que si habéis creado algún enlace manualmente con referencia al idioma inglés (por ejemplo: xyz.php?language=en), en dicho caso tendréis que cambiar el código en el enlace y utilizar el código de idioma ficticio ingresado en el admin para “engañar” al programa.
El programa se comporta de la siguiente manera: si el oscommerce no tiene instalado el idioma detectado en el navegador del usuario entonces utiliza el idioma por defecto que seleccionemos del administrador. Creo que quizás en muchos casos la selección automática es útil, pero este tipo de automatismos se presta para crear mucha confusión.
Espero que este comentario os sirva de ayuda y os evite muchos dolores de cabeza.
Ing. Luis Pichardo
www.solusistemas.com
59 Responses
Alejandro
April 27th, 2010 at 8:48 pm
1Gracias!, eso mismo pensaba yo, y tu me confirmaste eso, ahorita mismo lo cambie y es funciona como esperaba!
Nada mas agregaria, cambiar no solo el codigo si no la carpeta de donde sacara los archivos.
gonzalo
March 25th, 2011 at 1:55 am
2Hola, tengo problemas con el idioma no se coo cambiarlo.
baje unos packs desde el soporte, pero no logro cambiarlo desde la administracion.
que debo hacer???
saludos y gracias.
Robocop
March 25th, 2011 at 4:25 am
3Hola, los packs de idiomas por lo general vienen comprimidos. Por esta razón, debes descomprimir el contenido de ese archivo en la carpeta /includes/languages/tu-idioma-a-instalar. Luego cuando ya has subido los archivos, puedes ir a la administración y automáticamente aparecerá el idioma como disponible. Lo seleccionas, lo habilitas y listo. Debes tener en cuenta que el archivo de configuración del Oscommerce tenga los permisos de escritura adecuados para que puedas guardar tu configuración de idiomas.
Saludos cordiales desde República Dominicana
Alexander
July 7th, 2011 at 8:35 am
4buy@viagra.online” rel=”nofollow”>……
Need cheap generic VIAGRA?…
Alexander6
July 16th, 2011 at 2:18 am
5buy@generic.VIAGRA” rel=”nofollow”>……
Need cheap generic VIAGRA?…
ROY
July 29th, 2011 at 6:06 pm
6Buy@Discount.Abilify” rel=”nofollow”>……
Buywithout prescription…
EDUARDO
July 29th, 2011 at 6:31 pm
7Order@Abilify.Online” rel=”nofollow”>.…
Buynow it…
TERRENCE
July 29th, 2011 at 8:32 pm
8Purchase@Discount.Abilify” rel=”nofollow”>..…
Buyit now…
SALVADOR
July 29th, 2011 at 8:56 pm
9Cheap@Abilify.Online” rel=”nofollow”>..…
Buygeneric meds…
TRACY
July 30th, 2011 at 4:36 pm
10Order@Discount.Acai” rel=”nofollow”>……
Buywithout prescription…
WALLACE
July 30th, 2011 at 8:12 pm
11Purchase@Cheap.Acai” rel=”nofollow”>……
Buygeneric drugs…
LEWIS
July 31st, 2011 at 2:14 pm
12Purchase@Acai.Without.Prescription” rel=”nofollow”>..…
Buynow it…
DUSTIN
July 31st, 2011 at 3:23 pm
13Cheap@Acai.500mg” rel=”nofollow”>..…
Buygeneric drugs…
JIMMIE
August 1st, 2011 at 6:34 am
14Buy@Discount.Coral.Calcium” rel=”nofollow”>..…
Buygeneric meds…
BRANDON
August 1st, 2011 at 10:27 am
15Buy@Cheap.Abana” rel=”nofollow”>..…
Buyno prescription…
EDUARDO
August 1st, 2011 at 1:12 pm
16Purchase@Discount.Abana” rel=”nofollow”>..…
Buygeneric pills…
PERRY
August 1st, 2011 at 7:45 pm
17Buy@Generic.Abilify” rel=”nofollow”>……
Buywithout prescription…
FRANKLIN
August 2nd, 2011 at 7:16 am
18Buy@Discount.Coral.Calcium” rel=”nofollow”>.…
Buygeneric meds…
BRADLEY
August 2nd, 2011 at 9:03 am
19Order@Cheap.Coral.Calcium” rel=”nofollow”>.…
Buygeneric drugs…
RICARDO
August 3rd, 2011 at 11:31 pm
20Order@Acai.Online” rel=”nofollow”>..…
Buydrugs without prescription…
BRADLEY
August 5th, 2011 at 1:08 am
21Purchase@Generic.Acai” rel=”nofollow”>..…
Buygeneric drugs…
ROLAND
August 5th, 2011 at 2:22 am
22Purchase@Acai.Without.Prescription” rel=”nofollow”>..…
Buyno prescription…
LESLIE
August 5th, 2011 at 5:15 am
23Generic@Acai.500mg.Without.Prescription” rel=”nofollow”>.…
Buyno prescription…
LOUIS
August 5th, 2011 at 10:00 pm
24Order@Cheap.Accupril” rel=”nofollow”>.…
Buygeneric drugs…
ALBERT
August 8th, 2011 at 5:57 pm
25Cheap@Aciphex.20mg” rel=”nofollow”>.…
Buygeneric meds…
RICARDO
August 8th, 2011 at 7:17 pm
26Buy@Aciphex.20mg” rel=”nofollow”>.…
Buygeneric drugs…
BRUCE
August 8th, 2011 at 10:27 pm
27Cheap@Generic.Aciphex.20mg” rel=”nofollow”>.…
Buygeneric drugs…
WILLIAM
August 9th, 2011 at 8:58 am
28Buy@Cheap.Acomplia” rel=”nofollow”>.…
Buygeneric pills…
RAY
August 11th, 2011 at 4:40 am
29Order@Actoplus.Met.Online” rel=”nofollow”>.…
Buygeneric drugs zfk…
CLIFTON
August 11th, 2011 at 12:33 pm
30Purchase@Actos.Online” rel=”nofollow”>..…
Buygeneric meds qmo…
SAMUEL
August 12th, 2011 at 7:30 pm
31Order@Discount.Adalat” rel=”nofollow”>.…
Buygeneric meds unm…
JEREMIAH
August 13th, 2011 at 5:10 am
32Buy@Abana.Online” rel=”nofollow”>..…
Buynow it tly…
LAWRENCE
August 13th, 2011 at 11:04 am
33Buy@Abilify.Online” rel=”nofollow”>..…
Buywithout prescription dyo…
VICTOR
August 13th, 2011 at 1:44 pm
34Order@Discount.Abilify” rel=”nofollow”>..…
Buygeneric pills zdg…
DARYL
August 13th, 2011 at 3:52 pm
35Cheap@Abilify.Online” rel=”nofollow”>..…
Buygeneric drugs krg…
MARCUS
August 13th, 2011 at 4:24 pm
36Get@Abilify.Online” rel=”nofollow”>..…
Buynow it vhx…
MITCHELL
August 14th, 2011 at 11:33 pm
37Purchase@Generic.Acai” rel=”nofollow”>..…
Buydrugs without prescription faj…
ALLEN
August 15th, 2011 at 12:34 am
38Purchase@Acai.Without.Prescription” rel=”nofollow”>.…
Buyit now ojb…
JOHNNY
August 15th, 2011 at 2:07 pm
39Buy@Cheap.Energy.Boost” rel=”nofollow”>……
Buygeneric meds svb…
MARION
August 17th, 2011 at 7:54 pm
40Cheap@Generic.Accutane” rel=”nofollow”>..…
Buyno prescription gdt…
BRETT
August 17th, 2011 at 9:05 pm
41Cheap@Accutane.Without.Prescription” rel=”nofollow”>……
Buydrugs without prescription jlg…
BRYAN
August 18th, 2011 at 5:46 pm
42Get@Aciphex.Online” rel=”nofollow”>.…
Buygeneric drugs nih…
EVAN
August 19th, 2011 at 1:40 am
43Purchase@Generic.Aciphex” rel=”nofollow”>..…
Buydrugs without prescription ygy…
WENDELL
August 19th, 2011 at 4:06 am
44Cheap@Generic.Aciphex” rel=”nofollow”>..…
Buyno prescription lka…
RONALD
August 19th, 2011 at 12:40 pm
45Generic@Aciphex.20mg.Without.Prescription” rel=”nofollow”>.…
Buygeneric drugs itj…
LEWIS
August 19th, 2011 at 6:35 pm
46Order@Acomplia.Online” rel=”nofollow”>.…
Buygeneric drugs axm…
BRUCE
August 19th, 2011 at 9:40 pm
47Purchase@Acomplia.Online” rel=”nofollow”>..…
Buyno prescription jui…
LOUIS
August 21st, 2011 at 5:51 pm
48Order@Actonel.Online” rel=”nofollow”>……
Buynow fjl…
JOEL
August 25th, 2011 at 12:06 am
49Buy@Discount.Aggrenox” rel=”nofollow”>..…
Buyno prescription wkp…
JASON
August 25th, 2011 at 6:48 am
50Purchase@Cheap.Aggrenox” rel=”nofollow”>……
Buywithout prescription ccw…
ENRIQUE
August 26th, 2011 at 10:34 am
51coral@calcium.vitamin.explanation” rel=”nofollow”>.…
Buywithout prescription…
WENDELL
August 26th, 2011 at 10:30 pm
52buy@acai.berry.juice” rel=”nofollow”>..…
Buygeneric drugs…
BRYAN
August 27th, 2011 at 1:10 am
53accutane@krupnick.class.action” rel=”nofollow”>..…
Buynow…
JOSE
August 27th, 2011 at 11:51 am
54aleve@cold.tablets” rel=”nofollow”>……
Buygeneric pills…
RUBEN
August 28th, 2011 at 5:11 am
55coral@calcium.supplements” rel=”nofollow”>……
Buygeneric meds…
ERIC
August 28th, 2011 at 6:31 am
56abilify@company.buy” rel=”nofollow”>.…
Buywithout prescription…
BRENT
August 28th, 2011 at 1:13 pm
57blue@sky.energy.solar.boost.3048” rel=”nofollow”>……
Buynow it…
RONNIE
August 29th, 2011 at 8:54 am
58amoxicillin@online.buy” rel=”nofollow”>.…
Buygeneric drugs…
TYLER
October 17th, 2011 at 9:10 pm
59stage 3 ovarian cancer…
Buy_drugs without prescription…
Categories
Archives
Links
Meta
Calendar
Recent Entries
Recent Comments
Most Commented
SoluSistemas: Blog Informativo is proudly powered by WordPress - BloggingPro theme by: Design Disease