Author Topic: Spanish Front-End Translation  (Read 6976 times)

Offline guachiman

  • Jr. Member
  • **
  • Posts: 8
    • View Profile
    • Guachiman
Spanish Front-End Translation
« on: 10/December/2007, 06:47:20 PM »
I just finished the Spanish (front-end only) translation, and everything works, except some things disapeared. Is there additional encoding I needed to do? the english files are written in ANSI, so I just copied the files and translated them into spanish, but some menu items disapeared. If I switch over to engish, they come back. Can any of the administrators take a look a my files and let me know what is wrong?

More specifically:

The membership status in the front end does not show the status, empty '' are displayed, even though the call is there (%s)

The entire top menu in the back end disappeared (the one with Global Configuration, Front End, etc). But everything else is showing up, including the "Quick Links" menu.  I'm a little baffled, any help will be appreciated!

[SOLVED - please use latest version 1.1 below]
« Last Edit: 11/December/2007, 03:42:08 PM by guachiman »

Offline guachiman

  • Jr. Member
  • **
  • Posts: 8
    • View Profile
    • Guachiman
Re: Spanish Front-End Translation
« Reply #1 on: 10/December/2007, 06:50:35 PM »
here is the installable version, the previous ZIP file contained ONLY the translated files. This installable file comes with the installation XML, and the rest of the files (not translated).

[SOLVED - file removed]
« Last Edit: 11/December/2007, 03:40:37 PM by guachiman »

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,954
    • View Profile
Re: Spanish Front-End Translation
« Reply #2 on: 10/December/2007, 07:05:51 PM »
Thank you Daniel, I will publish this in the downloads area as well.  :)

Offline guachiman

  • Jr. Member
  • **
  • Posts: 8
    • View Profile
    • Guachiman
Re: Spanish Front-End Translation
« Reply #3 on: 10/December/2007, 07:11:29 PM »
Hi netshine,

Actually, they are only a BETA version, until I can resolve the issue of disappearing menus (see first post). I think it would be a good idea to wait before distributing it.

If you guys can install it and test it, perhaps we can troubleshoot it together.

Thanks!

Offline guachiman

  • Jr. Member
  • **
  • Posts: 8
    • View Profile
    • Guachiman
Re: Spanish Front-End Translation
« Reply #4 on: 10/December/2007, 07:15:14 PM »
Another quick note:  I started the translation as the french one: including the  ?,  ?,  ?,   ,    and    characters,  but since it gave me the errors I mentioned, I changed them all to the encoded versions: á é í etc.  It did not help, as the problem persisted. Any suggestions?

I'm including a snapshot of the backend, with the top menu gone (disappeared!).

[attachment deleted by admin]
« Last Edit: 11/December/2007, 01:14:53 AM by guachiman »

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,954
    • View Profile
Re: Spanish Front-End Translation
« Reply #5 on: 11/December/2007, 08:41:13 AM »
Sorry, I didn't read your first post properly (must've been sidetracked). This is most likely due to apostrophes - in the menu text, they either have to be preceded by a backslash, or replaced with a backquote character (`). I have unpublished the language pack from the downloads section for now - I will correct this problem and then re-publish it. Thanks.
« Last Edit: 11/December/2007, 09:49:15 AM by netshine »

Offline guachiman

  • Jr. Member
  • **
  • Posts: 8
    • View Profile
    • Guachiman
Re: Spanish Front-End Translation
« Reply #6 on: 11/December/2007, 03:39:20 PM »
Thanks, I did figure it out last night too. I also realized that I needed to translate orders.spanish.php in order to have the status of the order in spanish in the front end, so I did.  I did further testing and changed some definitions. Now I feel confident with the translation to be published.

Here is the latest version, which includes orders.spanish.php

Enjoy!

[attachment deleted by admin]

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,954
    • View Profile
Re: Spanish Front-End Translation
« Reply #7 on: 12/December/2007, 10:44:34 AM »
Thanks very much - the downloads section has been updated.
« Last Edit: 12/December/2007, 11:19:13 AM by netshine »

Offline erikp

  • Full Member
  • ***
  • Posts: 35
    • View Profile
Re: Spanish Front-End Translation
« Reply #8 on: 18/July/2008, 03:49:35 PM »
Hello,

Thank you for your translation works great!

I have 1 question:

The dates still appear in English for example " July 15 2008 "

How can one update this?

Thanks!

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,954
    • View Profile
Re: Spanish Front-End Translation
« Reply #9 on: 21/July/2008, 03:03:59 PM »
Are you referring to the calendar control? If so, you can change the language by editing the /components/com_netinvoice/calendar/dhtmlgoodies_calendar/dhtmlgoodies_calendar.js file - on line 26, where it says:

Code: [Select]
var languageCode = 'en';
...you can change it to:

Code: [Select]
var languageCode = 'es';
...for Spanish - the comment next to that line mentions the other languages that are supported.

If you are referring to dates as they appear on invoices etc, this will be governed by the locale settings of your server as picked up by PHP. If you cannot or do not wish to change the server locale settings, you could try to force the locale by hacking the /components/com_netinvoice/netinvoice.html.php file and calling the setlocale function by inserting a line after the opening <?php tag. The exact syntax to use for that function depends on your server (Windows uses different locale settings to Linux) - see http://uk2.php.net/setlocale for examples.

Offline ggmaury

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
Re: Spanish Front-End Translation
« Reply #10 on: 22/November/2008, 06:44:53 PM »
Another quick note:  I started the translation as the french one: including the  ?,  ?,  ?,   ,    and    characters,  but since it gave me the errors I mentioned, I changed them all to the encoded versions: &aacute; &eacute; &iacute; etc.  It did not help, as the problem persisted. Any suggestions?

I'm including a snapshot of the backend, with the top menu gone (disappeared!).

For those characters ( ?,  ?,  ?, etc.) you have to use PHP function utf8_encode as follows:

Quote
define("INV_CONFIG_TITLE", utf8_encode("Configuraci  n");

and that's it

I'm working on the complete spanish translation but have been very busy. Around 40% completed.

I hope this helps

Gabriel

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,954
    • View Profile
Re: Spanish Front-End Translation
« Reply #11 on: 22/November/2008, 07:24:19 PM »
You do not have to use the utf8_encode function - if you set the install file to automatically convert to UTF8, when the language pack is installed it will be converted and will work fine in both Joomla 1.0 and Joomla 1.5. You could also just encode the files as utf8 yourself in the first place, but that would mean it would only work on Joomla 1.5.