Zen Cart Logo
Forums / Addon Language Packs / Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

Views: 72,179

Results 101 to 120 of 134
29 Jan 2011, 11:56 PM
#101
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,872
Plugin Contributions:
7

Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

is your site online to be viewed publicly?

30 Jan 2011, 7:43 AM
#102
mojo13 avatar

mojo13

New Zenner

Join Date:
Jan 2011
Posts:
36
Plugin Contributions:
0

Re: Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

hi,

Thanks for the reply, site not up quite yet, it's very sketchy at the moment.

Basically nothing has been used in the Spanish version other than pages (ez pages) and a logo I uploaded as a banner. The logo in the header is not there. The background is not the same so it can't be using css rules I suppose. The footer copyright part is different too. I will try and upload the files again in the meantime. Thanks for you help:bigups:

30 Jan 2011, 8:28 AM
#103
mojo13 avatar

mojo13

New Zenner

Join Date:
Jan 2011
Posts:
36
Plugin Contributions:
0

Re: Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

Just updating on this:

I tried uploading the files again as before I had burrowed down into folders and copied across to the relevant places - I thought I might have missed something. This time I just rename SU_ADMIN and SU_PLANTILLA and copied straight over. Anyway the effect is the same - so close! Descriptions of categories in Spanish are read, so it's just the layout really.

30 Jan 2011, 11:30 PM
#104
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,872
Plugin Contributions:
7

Re: Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

Without wishing to sound rude, your descriptions of your problems are as clear as mud.

  1. You have to copy ALL the files in the pack so that what you have in the english subdirectories mirrors the spanish ones in structure and files: you can't just pick and choose.

  2. Have you enabled the spanish language in the admin?

  3. Do you now have spanish available as an option in both the admin and catalog?

  4. Is your database and mysql connection set up to use utf-8?

  5. Using the CLASSIC template (which you should not have touched) and not your customised template, is the layout functioning correctly/looks the same in both languages?

If not what is the difference->use screenshots to help explain: you may not be using the terms of reference people here are familiar with. Take your time, re-read your post before posting to make it as clear as possible to someone who has never seen your site.

31 Jan 2011, 8:49 PM
#105
mojo13 avatar

mojo13

New Zenner

Join Date:
Jan 2011
Posts:
36
Plugin Contributions:
0

Re: Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

Thanks Torvista,

no that's ok, you're not rude - I'll try and be clearer.

Yes I have copied all files I know not to pick and choose, it was just the way that I copied files over that might have caused a problem; it did not.

I have added Spanish in LOCALIZATION/LANGUAGES but my problem is primarily caused by not adding a language in TEMPLATE SELECTION. I have now added a language here and entered TEMPLATE NAME and TEMPLATE DIRECTORY that are identical to my English version.

This has improved things. So now I have my background colours matching.

But I still have some discrepancies. Here is the English version:
Attachment #8760

The header, banner, footer and main text is different in the Spanish:
Attachment #8761

Any help much appreciated.

Cheers

Matt

31 Jan 2011, 9:28 PM
#106
mojo13 avatar

mojo13

New Zenner

Join Date:
Jan 2011
Posts:
36
Plugin Contributions:
0

Re: Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

ok, looks like I've resolved this now.

I simply alter each Spanish file by hand. For example, In LANGUAGES/CUSTOM/spanish.php I changed the copyright information in the footer.

Can someone confirm that this is the the correct way forward? That is that I should alter individual files in this way?
Thanks.

I've got one more annoyance:frusty: and that's that certain English characters are not recognised in the Spanish version of text. E.g. "caldo" in the English version becomes �caldo� in the Spanish.

Does anyone know what's causing this?

Cheers

mojo

31 Jan 2011, 10:02 PM
#107
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,872
Plugin Contributions:
7

Re: Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

Remember the spanish files mirror the english ones that come with the install.
You have modified/overridden the english files with your own content. You must do the same changes to the equivalent files in the spanish set.

see point 5) in my post above. You should always retain the classic template untouched as it provides a known working template with no user mods to break it.

On the long road to a working, modified shop you need all the hints you can get to figure out what you have just broken, and switching back to the classic template when you have a problem tells you if the bug is in your template or a core file edit.

I simply alter each Spanish file by hand. For example, In LANGUAGES/CUSTOM/spanish.php I changed the copyright information in the footer.

Can someone confirm that this is the the correct way forward? That is that I should alter individual files in this way?

Yes.
The original file is in:
\includes\languages\spanish.php
so you copy it to an override folder and edit the copy
\includes\languages\custom\spanish.php

version becomes �caldo� in the Spanish.

see point 4) These points are important!
This is due to you having conflicts between your language file character sets and the encoding as served to the browser and probably also the database connection and the character set of the data in the database.
My files are in UTF8 which is not default zen cart encoding, (but it will be). I made them available to the community after spending a lot of time sorting these problems out with accents.
No doubt it would be easier for all concerned if these were in zen cart 8859 encoding, but they are not.

So either you convert all my files back to iso8859 (bad) or convert everything else to use utf-8.

No doubt this is all gibberish to you now, but zen cart is about learning, so read this entire thread carefully, especially the spanish posts, Google anything you don't understand, and then this one:
http://www.zen-cart.com/forum/showthread.php?t=93439

and this one for good luck:
http://www.zen-cart.com/forum/showthread.php?t=133111

and Google all the things I have mentioned above until you are clear what is going on...

2 Feb 2011, 7:09 PM
#108
mojo13 avatar

mojo13

New Zenner

Join Date:
Jan 2011
Posts:
36
Plugin Contributions:
0

Re: Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

Great, thanks for your time in replying, I appreciate it. The posts were really useful. For others out there, the last is less pertinent to this particular issue. My SQL database is in fact in UTF8 and after retyping my Spanish all seems to be in order. I wonder if I caused some problems by pasting over from MS Word - probably not a good idea. I had some characters that were problematic such as the half symbol that I had used. In this instance, I just substituted it for hex HTML code ( &#xbd in this case). Might be useful for other people just starting. Everything seems ok so far, so thanks again. I agree about the learning curve you need to go on when new to this - still I've done more than my fair share of learning so I expect I'll survive :smartalec:

Cheers

mojo

25 Feb 2011, 10:13 AM
#109
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,872
Plugin Contributions:
7

Re: Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

The current version 1.5 in the downloads now includes a set of both utf-8 files and 8859 files for a default installation and to make life easier for new users.
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1643

2 Mar 2011, 6:41 AM
#110
dgcr avatar

dgcr

New Zenner

Join Date:
Mar 2011
Posts:
2
Plugin Contributions:
0

Re: Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

I have an error. When upload everything, Change the settings and show me this message:

MISSING LANGUAGE FILES OR DIRECTORIES ... Http://bellezacr.com/includes/la Spanish

I'm newbie on this, I forget Upload something? or I need modify some file??

Thanks!

2 Mar 2011, 7:11 AM
#111
dgcr avatar

dgcr

New Zenner

Join Date:
Mar 2011
Posts:
2
Plugin Contributions:
0

Re: Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

I have an error... I already install the language, change the settings... etc. But, when I try to change the language to Spanish on the site, display the code. Check this out:

http://bellezacr.com/index.php?language=en&main_page=products_new&disp_order=6

Try to change the language. Any Ideas?

Thanks!

2 Mar 2011, 8:43 AM
#112
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,872
Plugin Contributions:
7

Re: Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

Read from post #40 in this thread: your template uses new constants that do not exist in the default Zen Cart installation.
You have to replicate the new english constants in the spanish files.

21 Mar 2011, 5:02 PM
#113
anushka avatar

anushka

New Zenner

Join Date:
Mar 2011
Posts:
3
Plugin Contributions:
0

Re: Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

Hola
Tengo un problema con el pack en español.
El caso es que la tienda me funciona perfectamente, pero el panel de administrador NO. Cuando cambio en el menu desplegable arriba el idioma en español - me sale el tipico "El sitio web no puede mostrar la pagina". ¿Donde puede haber error?

21 Mar 2011, 6:10 PM
#114
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,872
Plugin Contributions:
7

Re: Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

mira en la carpeta "Cache" a ver si hay un DEBUG log (myDebug-adm-xxxxxxx.log) que puede darte más información sobre el error.

22 Mar 2011, 10:17 AM
#115
anushka avatar

anushka

New Zenner

Join Date:
Mar 2011
Posts:
3
Plugin Contributions:
0

Re: Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

Por lo que he visto ayer el problema puede estar en los archivos "spanish.php" y "english.php". He comparado los de la tienda y el codigo es practicamente identico (excepto traduccion en español) mientras que los de panel de administrador son diferentes.
Un ejemplo la cabecera para panel_admin en english:

tag define('HTML_PARAMS','dir="ltr" lang="en"'); // charset for web pages and emails define('CHARSET', 'iso-8859-1'); // header text in includes/header.php define('HEADER_TITLE_TOP', 'Admin Home'); define('HEADER_TITLE_SUPPORT_SITE', 'Support Site'); define('HEADER_TITLE_ONLINE_CATALOG', 'Online Catalog'); define('HEADER_TITLE_VERSION', 'Version'); define('HEADER_TITLE_LOGOFF', 'Logoff'); //define('HEADER_TITLE_ADMINISTRATION', 'Administration'); // Define the name of your Gift Certificate as Gift Voucher, Gift Certificate, Zen Cart Dollars, etc. here for use through out the shop define('TEXT_GV_NAME','Gift Certificate'); define('TEXT_GV_NAMES','Gift Certificates'); define('TEXT_DISCOUNT_COUPON', 'Discount Coupon'); // used for redeem code, redemption code, or redemption id define('TEXT_GV_REDEEM','Redemption Code'); // text for gender define('MALE', 'Male'); define('FEMALE', 'Female'); // text for date of birth example define('DOB_FORMAT_STRING', 'mm/dd/yyyy'); 

en español:

tag define('HTML_PARAMS', 'dir="ltr" lang="es"'); // charset for web pages and emails define('CHARSET', 'iso-8859-1'); // footer text in includes/footer.php define('FOOTER_TEXT_REQUESTS_SINCE', 'páginas vistas desde'); // Define the name of your Gift Certificate as Gift Voucher, Gift Certificate, Zen Cart Dollars, etc. here for use through out the shop define('TEXT_GV_NAME', 'Vale de compra'); define('TEXT_GV_NAMES', 'Vales de compras'); // used for redeem code, redemption code, or redemption id define('TEXT_GV_REDEEM', 'Cupón de descuento'); // used for redeem code sidebox define('BOX_HEADING_GV_REDEEM', TEXT_GV_NAME); define('BOX_GV_REDEEM_INFO', 'Código del cupón de descuento: '); // text for gender define('MALE', 'Sr.'); define('FEMALE', 'Sra.'); define('MALE_ADDRESS', 'Sr.'); define('FEMALE_ADDRESS', 'Sra.'); // text for date of birth example define('DOB_FORMAT_STRING', 'dd/mm/yyyy');

¿Que opinais?

22 Mar 2011, 11:23 AM
#116
anushka avatar

anushka

New Zenner

Join Date:
Mar 2011
Posts:
3
Plugin Contributions:
0

Re: Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

Efectivamente, en la carpeta "zc_admin" el archivo spanish.php es el mismo lo de la tienda. En el parche (español) que descargué faltaba el archivo para zc_admin. Lo que hice es cogerlo de la carpeta "files_utf8" (es una carpeta para conversión a UTF-8), corregir el código (quitando atributos para UTF-8) y subir al servidor. Y funciona. Lo único, en el panel de administrador ahora tengo problemas de los acentos. (Lo típico - en vez de "Administración" sale "AdministraciÀ3n"). Voy a ver si hago algo.

22 Mar 2011, 4:51 PM
#117
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,872
Plugin Contributions:
7

Re: Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

Estoy comprobando todos los archivos ahora mismo para asegurarme de que no hay mas errores estupidos como esto...

22 Mar 2011, 9:31 PM
#118
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,872
Plugin Contributions:
7

Re: Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

Until v1.51 is available in the downloads, please use this corrected version:
zencartspanish.svn.sourceforge.net/viewvc/zencartspanish/?view=tar

24 Mar 2011, 11:06 AM
#119
baratija avatar

baratija

New Zenner

Join Date:
Dec 2010
Posts:
2
Plugin Contributions:
0

Re: Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

hola . pues muchas gracias por esta actualizacion.
a mi me da problemas tb el panel de admin. veia unos textos correctamente, pero cuando metia datos los veia mal.
ahora todo ok.
la comunidad te lo agradece. :smile:

28 Mar 2011, 9:11 PM
#120
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,872
Plugin Contributions:
7

Re: Spanish Language Pack (complete and UTF8) for Zen Cart 1.39b

¿Hay algun foro bueno en castellano?
Creo que no.

Me gustaría hacer algo para fomentar el uso de ZC en españa/castellano: puedo ofrecer hosting gratis para un página web dedicada a ello pero no tengo tiempo crearla ni moderar un foro.
¿Hay gente interesada en contribuir/desarrollar una página/foro en castellano?