Translate of addon with upstream repo existing

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
spiff Offline
Grumpy Bastard Developer
Posts: 12,234
Joined: Nov 2003
Reputation: 82
Post: #11
while i think making them files easier to find for translators is a good idea, giving the authors the load of checking when an update is available is absolutely unacceptable.

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
alanwww1 Offline
Team-XBMC Member
Posts: 1,303
Joined: Nov 2008
Reputation: 32
Location: Hungary
Post: #12
spiff Wrote:while i think making them files easier to find for translators is a good idea, giving the authors the load of checking when an update is available is absolutely unacceptable.

Ok. I understand that. So the simple webspace solution is no good. If i can present a po to xml and xml to po converter can you put together the launchpad translation solution. As i wrote i can undertake the task to create and maintain the POT template files and do other needed stuff.

I cheked and there are some really nice crossplatforms utils editing, creating etc the po and pot files. Eg. http://www.poedit.net/screenshots.php.

Edit: Two relevant emailing about xml and pot conversion:
https://answers.launchpad.net/rosetta/+question/12456
https://answers.launchpad.net/rosetta/+question/98058

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.
(This post was last modified: 2010-07-26 12:38 by alanwww1.)
find quote
takoi Offline
Fan
Posts: 511
Joined: Oct 2009
Reputation: 6
Location: Norway
Post: #13
i pm'd blittan about it and he's saying he's writing an online translation tool from scratch. why i dont know tho. probably because you have to convert them all the time
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,234
Joined: Nov 2003
Reputation: 82
Post: #14
if you hand us the conversion tool, we will handle launchpad for sure. note that it's gonna be somewhat tricky i think, since .po has no concept of an id, instead the english string is used as the key.

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
alanwww1 Offline
Team-XBMC Member
Posts: 1,303
Joined: Nov 2008
Reputation: 32
Location: Hungary
Post: #15
spiff Wrote:if you hand us the conversion tool, we will handle launchpad for sure. note that it's gonna be somewhat tricky i think, since .po has no concept of an id, instead the english string is used as the key.

That's no problem at all 'cause we can use msgctxt "id_number" format in the po file.
I found this in Blittan's emailing :-)

https://answers.launchpad.net/rosetta/+question/73660

If he is currently writing an online conversion tool i think there is no sense for me to start another one. What i could make is a simple command-line tool that converts addon.xml and strings.xml files to po and reverse. But if Blittan can do an online version, that's even better.

Maybe also an online regexp tool with a proper expression can do the trick, i am not sure.

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
takoi Offline
Fan
Posts: 511
Joined: Oct 2009
Reputation: 6
Location: Norway
Post: #16
well this appears to be working:

xml2po -o template.pot template.xml
xml2po -p LANG.po -o LANG.xml template.xml
find quote
alanwww1 Offline
Team-XBMC Member
Posts: 1,303
Joined: Nov 2008
Reputation: 32
Location: Hungary
Post: #17
ventech Wrote:well this appears to be working:
xml2po -o template.pot template.xml
xml2po -p LANG.po -o LANG.xml template.xml

You have tried it with sample files ?

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
takoi Offline
Fan
Posts: 511
Joined: Oct 2009
Reputation: 6
Location: Norway
Post: #18
yes
find quote
alanwww1 Offline
Team-XBMC Member
Posts: 1,303
Joined: Nov 2008
Reputation: 32
Location: Hungary
Post: #19
ventech Wrote:yes

Could you please enclose the sample files, for checking ?

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
takoi Offline
Fan
Posts: 511
Joined: Oct 2009
Reputation: 6
Location: Norway
Post: #20
template.xml: http://pastebin.com/aYBRg3YN
template.pot: http://pastebin.com/Fx0H8bQp
translation.po: http://pastebin.com/XkdMMixa
translation.xml: http://pastebin.com/cWQKkGAS
find quote