Hi Viljo !
I made some tests with Transifex. I tried it with fedora 16 and Centos 6.2.
Well the latest Transifex 1.2.1 was not working so well despite that easy_install ran without an error I have some missing icons and the translatable strings does not get shown, despite that it is showing the available number of strings.
The older 1.1 version runs a lot better. No missing icons, translation and strings are working (at least with POT files), but I am also having some occasional error messages. And mailing is not working ( of course it is not, because I have not set up the emailing on the system)
I have an idea for setting up things after we figured out the web setup.We could have an intermediate git repository for storing/updating all strings.xml files and the converted PO/POT files. We can write some scripts which can run daily to pull in the upstream xml files convert them to pot files (Transifex does the rest, to automatically pull in the changed POT files and notice users about it) to make things into the other direction we can pull down the translated files with scripts to the intermediate git repo and convert them back to strings.xml for xbmc and addons. What do you think ?
By the way XML parsing is not working for me at least.
Should I send you the VirtualBOX files for testing ?
Cheers, Attila
alanwww1
Team-XBMC Member Joined: Nov 2008 Reputation: 32 Location: Hungary |
2012-01-29 19:40
Post: #31
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 |
queeup
Fan Joined: Feb 2009 Reputation: 15 |
2012-01-29 19:51
Post: #32
What about writing xml parser extension for Transifex? I guess better then convert to pot then translate the convert it again to xml.
|
| find quote |
viljoviitanen
Junior Member Joined: Apr 2010 Reputation: 0 Location: Jyväskylä, Finland |
2012-01-29 20:08
Post: #33
queeup Wrote:What about writing xml parser extension for Transifex? I guess better then convert to pot then translate the convert it again to xml. If we convert, we don't need any modifications in transifex. It's safer that way, we can be sure that when transifex is updated, the thing still works. I don't see any gains in writing a "native" parser for xbmc strings. I'd also say converting is easier, too, as it can "just be done", no need to study transifex internals. |
| find quote |
queeup
Fan Joined: Feb 2009 Reputation: 15 |
2012-01-29 20:14
Post: #34
Bahhh look how easy to write native xbmc parser:
examples: http://code.indifex.com/transifex/change...6281c9ca87 http://code.indifex.com/transifex/change...3a225805aa |
| find quote |
takoi
Fan Posts: 511 Joined: Oct 2009 Reputation: 6 Location: Norway |
2012-01-29 20:27
Post: #35
Just so you know, there's a whole thread about converting xml to gettext somewhere. I worked on this myself and you can do it with the existing tool xml2po, however, it's a dead end because gettext is going to require you to provide a msgctxt tag for each duplicate entry, and there's a lot them in xbmc! Also you are going to have to take care of "storing" the xml ids somewhere yourself.
But perhaps the most important thing is that you'll loose the id ordering in the xml files. Because of all the string fragmentation and how the ids are divided in chunks, it's very important for translators that this order is kept. |
| find quote |
NEOhidra
Member Joined: Dec 2011 Reputation: 0 Location: BG |
2012-01-29 20:27
Post: #36
How about Pootle - a web-based translation tool.
I am not aware of the features that transifex provides nor what special needs the devs have - just wanted to suggest it. |
| find quote |
alanwww1
Team-XBMC Member Joined: Nov 2008 Reputation: 32 Location: Hungary |
2012-01-29 20:37
Post: #37
ventech Wrote:But perhaps the most important thing is that you'll loose the id ordering in the xml files. Because of all the string fragmentation and how the ids are divided in chunks, it's very important for translators that this order is kept. We need to write a custom utility where all fields filled out properly. And also string_ids are handled. In this case I don't see the problem. Transfifax uses its own databse engine and format to handle strings anyway. 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
Team-XBMC Member Joined: Nov 2008 Reputation: 32 Location: Hungary |
2012-01-29 20:46
Post: #38
NEOhidra Wrote:How about Pootle - a web-based translation tool. Transifax was not a bad suggestion. Has a lot of potential. I will also try pootle. Thanks for the suggestions. 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 |
viljoviitanen
Junior Member Joined: Apr 2010 Reputation: 0 Location: Jyväskylä, Finland |
2012-01-29 21:02
Post: #39
Hey all,
Now that I've taken a look at transifex documentation, I think best would be to use the transifex api to do the day to day updating from and to xbmc string files: http://help.transifex.net/features/api/api-v2.html There's some testing to do obviously, the docs don't tell much about the json. But I think it's easy enough to find out. And if we were REALLY clever, we'd make the updates realtime from git with github hooks: http://help.github.com/post-receive-hooks/ (and detect language related pushes and then make the update) . But maybe for starters we'll do updates just from cronjobs... |
| find quote |
alanwww1
Team-XBMC Member Joined: Nov 2008 Reputation: 32 Location: Hungary |
2012-01-29 21:18
Post: #40
@Viljo
I think we should try Transifex and Pootle in real life situation. I've just tried Pootle and the interface is a little simpler, but seems more stable and with much less fuss to install. Well actually it was: Code: yum install pootle.noarchIt makes a demo (Gnome) translation project this way which you can test. Also if we can not use xml as a native format, I checked that we can you XLIFF instead of POT. It has an ID based structure, similar to xbmc and Context hints can be inserted easily. XLIFF is well supprted by both Transifex and Pootle. Edit: Even email confirmation is working. :-) Out of the box. 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: 2012-01-29 21:34 by alanwww1.)
|
| find quote |


Search
Help