Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 11:10 pm
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: translation (gettext) not working on help.php file
PostPosted: Thu Apr 05, 2007 9:32 pm 
Offline

Joined: Wed Mar 14, 2007 7:36 am
Posts: 5
Hi,

I'm trying to translate/modify the Customer Interface to German - all works fine besides the translations, that refer to the content of the lib/help.php file.

There is also another post with a similar problem, but no solution.

Any ideas?

Jo


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 06, 2007 3:07 am 
Offline

Joined: Mon May 29, 2006 7:07 pm
Posts: 287
Location: Denver
Hi i modified my customer interface, but i just deleted help info. Well, the translation is listed in messages.po file so it should be translated, unless the line number in help.php and messages.po doesn't match. It takes a lot of tweaking to make a descent translation.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 06, 2007 7:47 am 
Offline

Joined: Thu Oct 19, 2006 9:56 am
Posts: 300
Location: Athens, Greece
Not only that:
1. gettext is a binary function, called by apache and caching the results. This means, apache may never serve the new texts unless *restarted*. (In fact, you may encounter 50% the german text and 50% the untranslated. This happens because apache may have many processes runing, half of them being spawn after the translation.)

2. The .po file is not itself used. You must compile it to a .mo (binary) one. See 'msgfmt'.

3. Lines must match, entries cannot have the 'fuzzy' bit set. Of course.

4. There are some exceptions in a2b where language setting is actually ignored. A2b follows the set language only for php scripts that call the 'module-access' one. For example, the login form itself would never be translated.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 06, 2007 10:46 am 
Offline

Joined: Wed Mar 14, 2007 7:36 am
Posts: 5
Thanks for your reply, but this doesn't help,
xrg wrote:
Not only that:
1. gettext is a binary function, called by apache and caching the results. This means, apache may never serve the new texts unless *restarted*. (In fact, you may encounter 50% the german text and 50% the untranslated. This happens because apache may have many processes runing, half of them being spawn after the translation.)

I allways restart apache after any changes in the .po file
xrg wrote:
2. The .po file is not itself used. You must compile it to a .mo (binary) one. See 'msgfmt'.

Yes - I allways create a new .mo file using msgfmt
xrg wrote:
3. Lines must match, entries cannot have the 'fuzzy' bit set. Of course.

I don't know, what the "fuzzy" bit is, but the lines do match exactly.
xrg wrote:
4. There are some exceptions in a2b where language setting is actually ignored. A2b follows the set language only for php scripts that call the 'module-access' one. For example, the login form itself would never be translated.

I'm not sure, if this might be the solution, as everything else works fine - exept for the lib/help.php file. Every! other file gets translated correctly and I just cannot see the difference, that comes with the help.php file.

Any other ideas?

Regards,
Jo


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 06, 2007 11:12 am 
Offline

Joined: Thu Oct 19, 2006 9:56 am
Posts: 300
Location: Athens, Greece
Got it:
look at defines.php: "lib/help.php" is included *before* the language is set.
It may not be that trivial to move the "lib/help.php" after the language. We must check that further..


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 06, 2007 11:32 am 
Offline

Joined: Wed Mar 14, 2007 7:36 am
Posts: 5
xrg wrote:
Got it:
look at defines.php: "lib/help.php" is included *before* the language is set.
It may not be that trivial to move the "lib/help.php" after the language. We must check that further..


Perfect! That's it!

Thanks a lot.
Jo


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 
Voice Broadcast System


All times are UTC


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group