[Mageia-i18n] Script for lang<->po conversion to translate Mageia web pages
Yuri Chornoivan
yurchor at ukr.net
Sun Sep 9 14:04:31 CEST 2012
Hi,
For some reasons usual conversion scripts for .lang files from Translate
Toolkit do not work as expected.
Nevertheless, the attached script may be useful for those who want to
organize sustainable translation process of web pages translation.
Prerequisites:
Installed python-polib package:
# urpmi python-polib
Usage:
1. Copy the script into the folder with English .lang files.
2. Run
python langpo.py
3. Script will create .pot's for all .lang's in the folder. Translate
pot's and rename the translations into <lang_code>.po
4. Run
python langpo.py
once more to create lang's for your language.
If you ever need to update something (.lang's were updated or you found a
typo, etc.) just run
python langpo.py
Limitations:
The script is useful only for Unicode translations.
Hope it will be useful.
Best regards,
Yuri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: langpo.py
Type: application/octet-stream
Size: 2356 bytes
Desc: not available
URL: </pipermail/mageia-i18n/attachments/20120909/009d11b7/attachment.obj>
More information about the Mageia-i18n
mailing list