PDA

View Full Version : Translation: from po to php file


arikin
18th February 2009, 09:59
I have almost finished the message.po for Japanese. How does one change this from a po file to a php file???

I can see the www/lang/fr.php and en.php files but those are not po files!??

Yes I have tried the wiki instructions:
http://en.doc.centreon.com/HowToAddLanguage

:confused: But that just creates a binary file.....

I am using cetreon 1.4.x

For the time being I don't want to upgrade to centreon 2 just yet. I need to prove this project to my bosses first.

AkHeNaToN
18th February 2009, 10:10
fr.php or en.php is the old language system for Oreon/Centreon 1.4 only.

Centreon 2.0 have a new system: PO file.
This new system permit to tarnslate all string contained in php with translate string in MO file (MO file is PO file compiled).

arikin
18th February 2009, 10:15
So are there instructions on how to make the japanese php file out of the po??

Or do I need to do a search and replace for each and every entry in a copy of the en.php file?

AkHeNaToN
18th February 2009, 10:34
If you use Centreon 1.4.x you must create a jp.php file from en.php file and replace each en string.

for exemple:

$lang['m_home'] = "japanese translation for HOME";


But thank you for translate PO file in Japanese

Can you send me a PM with your Japanese po translation please

arikin
18th February 2009, 10:39
Hmmm... thought so.

Thanks for the information. I will submit it to svn when I get done copying and pasting.

I assume then I can use the po file against a new po version when I update to centreon 2.