[Mageia-i18n] A bit short on time

Yuri Chornoivan yurchor at ukr.net
Fri May 11 10:06:40 CEST 2012

Fri, 11 May 2012 08:17:12 +0300 було написано Dimitrios Glentadakis  
<dglent at gmail.com>:

> Στις 10/05/2012 22:07:02 Yuri Chornoivan γράψατε:
>> Hi,
>> Sorry for hijacking the thread, but as Oliver is busy, can somebody test
>> the php_array <-> po conversion script?
>> http://dl.dropbox.com/u/55247264/php_parser.py
>> It needs polib from Mageia 1 or Mageia 2.
>> On the first run (just "python php_parser.py" in PHP directory) it
>> converts existing translations into PO and creates current POT. The next
>> runs add the translations into PHP file.
>> Is the resulting PHP usable fro Mageia pages?
>> Thanks in advance for your help.
>> Best regards,
>> Yuri
> Hi Yuri, there are some problems.
> it creates 3 files:
> hw_some_hardware.po  locales.pot  pro_1.po
> the hw_some_hardware.po has a part from the french translation ( it  
> seems that it itried to create the fr.po)
> the locales.pot has a few strings not all
> the pro_1.po does nt have all the strings and there is no translated  
> string, it tried to create the team pro_1.po)

He-he. Must be some issue...

What is the name of PHP directory tested? I tested parser on two files  
pointed by Oliver in IRC. I did not take into account the diffrent syntax.  

More information about the Mageia-i18n mailing list