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?
Views: 72,179
Totally Zenned
is your site online to be viewed publicly?
New Zenner
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:
New Zenner
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.
Totally Zenned
Without wishing to sound rude, your descriptions of your problems are as clear as mud.
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.
Have you enabled the spanish language in the admin?
Do you now have spanish available as an option in both the admin and catalog?
Is your database and mysql connection set up to use utf-8?
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.
New Zenner
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
New Zenner
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
Totally Zenned
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...
New Zenner
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 ( ½ 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
Totally Zenned
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
New Zenner
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!
New Zenner
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!
Totally Zenned
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.
New Zenner
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?
Totally Zenned
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.
New Zenner
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?
New Zenner
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.
Totally Zenned
Estoy comprobando todos los archivos ahora mismo para asegurarme de que no hay mas errores estupidos como esto...
Totally Zenned
Until v1.51 is available in the downloads, please use this corrected version:
zencartspanish.svn.sourceforge.net/viewvc/zencartspanish/?view=tar
New Zenner
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:
Totally Zenned
¿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?
Tell staff why this post should be reviewed.