For addon and skin developers

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Hitcher Online
Skilled Skinner
Posts: 9,917
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #11
I'm still confused, sorry guys. Undecided

Do I have to manually make this strings.po file initially from my current strings.xml then?

[Image: sig_zps3af3b48e.jpg]
find quote
Martijn Online
Team-XBMC
Posts: 7,682
Joined: Jul 2011
Reputation: 114
Location: Dawn of time
Post: #12
Script from alanwww1 can make a .op from an .xml

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
Hitcher Online
Skilled Skinner
Posts: 9,917
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #13
Cheers, where can I find it?

[Image: sig_zps3af3b48e.jpg]
find quote
Wanilton Offline
Fan
Posts: 655
Joined: Jun 2010
Reputation: 13
Location: Florianópolis - Brazil
Post: #14
@Hitcher, here:

https://github.com/alanwww1/xbmc-xml2po/downloads

http://www.xbmcbrasil.net
XBMC Brazilian Community Forum
find quote
Hitcher Online
Skilled Skinner
Posts: 9,917
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #15
Is this the correct usage?

Code:
C:\Users\Kevin>F:\Downloads\xbmc-xml2po_v096.exe -s C:\Users\Kevin\AppData\Roaming\XBMC\addons\skin.
alaska.hd\

All I get is a message that 'LGPLed libiconv for Windows' has stopped working.

[Image: sig_zps3af3b48e.jpg]
find quote
alanwww1 Offline
Team-XBMC Member
Posts: 1,299
Joined: Nov 2008
Reputation: 31
Location: Hungary
Post: #16
(2012-06-20 12:13)Hitcher Wrote:  Is this the correct usage?

Code:
C:\Users\Kevin>F:\Downloads\xbmc-xml2po_v096.exe -s C:\Users\Kevin\AppData\Roaming\XBMC\addons\skin.
alaska.hd\

All I get is a message that 'LGPLed libiconv for Windows' has stopped working.

Try using the Linux version please. It surely works. I had no time to really check the Win version. Libiconv is not so easy on Windows.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Martijn Online
Team-XBMC
Posts: 7,682
Joined: Jul 2011
Reputation: 114
Location: Dawn of time
Post: #17
Tested it a week ago and it did work for me on Win7 64bit

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
Wanilton Offline
Fan
Posts: 655
Joined: Jun 2010
Reputation: 13
Location: Florianópolis - Brazil
Post: #18
Hitcher, try this way

xbmc-xml2po_v096.exe -s "C:\Users\Kevin\AppData\Roaming\XBMC\addons\skin"

need ""

and this structure:

skin\language\english

For me work fine, win8 32 bits, generated some strings erroneously, after generating, check the integrity format PO, so that it is in the correct format before using.

Po file format ok:

msgctxt "#31001"
msgid "VIDEOS"
msgstr ""

some strings generated this way in a strange format, but still works correctly in xbmc.

msgctxt "#31001"
msgid ""
"VIDEOS"
msgstr ""

In linux, Alanwww1, convert files xml to po, with success.

http://www.xbmcbrasil.net
XBMC Brazilian Community Forum
(This post was last modified: 2012-06-20 13:19 by Wanilton.)
find quote
Mudislander Online
Skilled Skinner
Posts: 1,154
Joined: Jun 2009
Reputation: 20
Post: #19
(2012-06-19 23:23)CutSickAss Wrote:  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 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:
Code:
"C:\Program Files\Python27\python.exe" po_to_xml.py skin

-> 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.

Worked well for me - Thanks and to giftie for the script

Noli illegitimi carborundum
find quote
Post Reply