For addon and skin developers - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Translations and Language Files (/forumdisplay.php?fid=90)
+--- Thread: For addon and skin developers (/showthread.php?tid=134301)
Pages: 1 2
For addon and skin developers - giftie - 2012-06-19 02:33
Here is a simple converter for the new PO format to the old XML format. https://github.com/Giftie/po_to_xml
Follow the README for method of use.. This is based on the PO files that you would download from Transifex. It will automatically use the english string if the string has not yet been translated.
It should work for all addons..
RE: For addon and skin developers - Wanilton - 2012-06-19 02:49
Great News Giftie, thanks, I will try now, converting po files skin aeon.mq 4 to xml.
Gifite, work very well, easy to work, i am sending soon one Private Message to you, i need little help.
RE: For addon and skin developers - giftie - 2012-06-19 02:58
Hope it works.. I didn't test skins but it knows were the language files are... skin.folder/language
RE: For addon and skin developers - alanwww1 - 2012-06-19 08:35
Thanks for the help Giftie !
Just ans an info you might already know: for Frodo addons we will soon be uploading addon PO files to an official Transifex project.
Thanks, Cheers, Attila
RE: For addon and skin developers - Wanilton - 2012-06-19 13:57
Thanks Giftie, for perfect tool, work great.
For addon and skin developers - giftie - 2012-06-19 16:10
(2012-06-19 08:35)alanwww1 Wrote: Thanks for the help Giftie !
Though they would only be for official repo addons
RE: For addon and skin developers - alanwww1 - 2012-06-19 17:24
(2012-06-19 16:10)giftie Wrote:(2012-06-19 08:35)alanwww1 Wrote: Thanks for the help Giftie !
Not necessarily. We can do a non-official repo addons project under the umbrella of the xbmc Transifex project with shared translation memory. We would need somebody to maintain it for sure, but with the tool I am creating, it will be really easy. We can also host it under the xbmc translations github repo.
RE: For addon and skin developers - Hitcher - 2012-06-19 18:08
I'm a bit confused as to what's meant to happen when running this.
I followed the instructions for one of my skins and it said 'Finished converting .po files' but nothing has changed in my language folder.
RE: For addon and skin developers - Wanilton - 2012-06-19 20:07
Hitcher, you need po file in english, to convert to xml file (create one by script), for all languages, in my case i have
Convert my po files to XML, work great, but you need PO files in english of course (source language).
RE: For addon and skin developers - CutSickAss - 2012-06-19 23:23
I tried it with Python 3.2, and it doesn't seem to work. Worked like a treat with version 2.7. And the full path was not necessary for the script to work, at least in my case.
Also, here's a roundup of your Windows instructions for noobs like me (provided Python 2.7 is installed from here):
Go to the folder where "po_to_xml.py" is located -> Create a new text file, and enter the following in it:
-> Save the file, and rename it to "po_to_xml.bat" -> Create a folder, and name it "skin" -> Create a folder in "skin", and name it "language" -> Create a folder in "language", name it "English", and place the English "strings.po" in it -> Repeat the previous step for every translation, naming the folders according to the language of the translation -> Go back, and run "po_to_xml.bat" -> A "strings.xml" file has been created in every language folder.