nBill Community
29/August/2008, 08:16:28 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Spanish Front-End Translation  (Read 1587 times)
guachiman
Newbie
*
Offline Offline

Posts: 8



View Profile WWW
« 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 » Logged
guachiman
Newbie
*
Offline Offline

Posts: 8



View Profile WWW
« 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 » Logged
netshine
Administrator
Hero Member
*****
Offline Offline

Posts: 1,355


View Profile
« Reply #2 on: 10/December/2007, 07:05:51 PM »

Thank you Daniel, I will publish this in the downloads area as well.  Smiley
Logged
guachiman
Newbie
*
Offline Offline

Posts: 8



View Profile WWW
« 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!
Logged
guachiman
Newbie
*
Offline Offline

Posts: 8



View Profile WWW
« 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!).
« Last Edit: 11/December/2007, 01:14:53 AM by guachiman » Logged
netshine
Administrator
Hero Member
*****
Offline Offline

Posts: 1,355


View Profile
« 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 » Logged
guachiman
Newbie
*
Offline Offline

Posts: 8



View Profile WWW
« 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!
Logged
netshine
Administrator
Hero Member
*****
Offline Offline

Posts: 1,355


View Profile
« 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 » Logged
erikp
Newbie
*
Offline Offline

Posts: 12


View Profile
« 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!
Logged
netshine
Administrator
Hero Member
*****
Offline Offline

Posts: 1,355


View Profile
« 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:
var languageCode = 'en';

...you can change it to:

Code:
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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!