State of the translation
#72
alanwww1 Wrote:Of course I'd need to discuss this with the team, but how about having the original English string in the language xml files. Like this:

<string id="7" source="File manager">Fájlkezelő</string>

Just like "standard" translation files. This way we could write a custom parser for Transifex and we would't need a separate xlif file.

I still don't think it's a good idea to write a parser module in transifex, we gain essentially nothing and it's harder to do that way (auto-update of source file is so small a gain I don't count it at all cause it's trivial to do with the api, and more real time too because we can use github hooks). And we aren't really needing the xliff files as such, the idea is to generate them "on the fly" when using the api and just discard them after the api call. (as I noted before, they can be mapped 1:1 so no information is lost converting back and forth.)

Anyway I'm really not sure what adding source strings in xbmc xml accomplishes - does it help with the "changed meaning" scenario? Because in any case since xbmc is using only the id, if you do not invalidate the old translation, xbmc is using the old translation and transifex too gets updated with the old translation. And if/when a translation is invalidated, we will need some mechanism that allows strings needing retranslation detected. I think best would be to just add new id's.

About id's: I think it's "foobared up" the id's are thought to have some meaning (==i.e. derive context from id number, or have a need to re-use them), they should be just random numbers, like uuid, having no "internal" meaning. I can rewrite my tools easily to preserve the xml order. Now I've just done them the easiest way possible, not caring about order internally at all, using a python "dictionary" (similar to perl hash), and at output sort by id numerical value (this is just kind of a left-over from my first tool that detected incomplete translations...)
Reply


Messages In This Thread
State of the translation - by viljoviitanen - 2012-01-06, 14:33
[No subject] - by spiff - 2012-01-06, 16:08
[No subject] - by Popeye - 2012-01-06, 16:23
[No subject] - by viljoviitanen - 2012-01-06, 16:44
[No subject] - by viljoviitanen - 2012-01-06, 16:59
[No subject] - by viljoviitanen - 2012-01-06, 21:50
[No subject] - by viljoviitanen - 2012-01-08, 18:50
[No subject] - by mad-max - 2012-01-11, 21:50
[No subject] - by Roman_V_M - 2012-01-24, 14:45
[No subject] - by viljoviitanen - 2012-01-25, 12:26
[No subject] - by alanwww1 - 2012-01-25, 13:02
[No subject] - by viljoviitanen - 2012-01-25, 17:15
[No subject] - by alanwww1 - 2012-01-25, 17:47
[No subject] - by viljoviitanen - 2012-01-25, 23:33
[No subject] - by alanwww1 - 2012-01-26, 00:31
[No subject] - by viljoviitanen - 2012-01-26, 18:14
[No subject] - by alanwww1 - 2012-01-26, 22:37
[No subject] - by viljoviitanen - 2012-01-27, 00:41
[No subject] - by jmarshall - 2012-01-27, 01:07
[No subject] - by queeup - 2012-01-27, 01:46
[No subject] - by takoi - 2012-01-27, 12:02
[No subject] - by viljoviitanen - 2012-01-27, 13:08
[No subject] - by alanwww1 - 2012-01-27, 13:20
[No subject] - by takoi - 2012-01-27, 13:42
[No subject] - by alanwww1 - 2012-01-27, 13:46
[No subject] - by queeup - 2012-01-27, 13:49
[No subject] - by viljoviitanen - 2012-01-27, 13:58
[No subject] - by alanwww1 - 2012-01-27, 15:22
[No subject] - by jmarshall - 2012-01-27, 23:54
[No subject] - by alanwww1 - 2012-01-28, 00:19
[No subject] - by alanwww1 - 2012-01-29, 19:40
[No subject] - by queeup - 2012-01-29, 19:51
[No subject] - by viljoviitanen - 2012-01-29, 20:08
[No subject] - by queeup - 2012-01-29, 20:14
[No subject] - by takoi - 2012-01-29, 20:27
[No subject] - by NEOhidra - 2012-01-29, 20:27
[No subject] - by alanwww1 - 2012-01-29, 20:37
[No subject] - by alanwww1 - 2012-01-29, 20:46
[No subject] - by viljoviitanen - 2012-01-29, 21:02
[No subject] - by alanwww1 - 2012-01-29, 21:18
[No subject] - by viljoviitanen - 2012-01-29, 21:18
[No subject] - by viljoviitanen - 2012-01-29, 21:30
[No subject] - by takoi - 2012-01-29, 21:36
[No subject] - by viljoviitanen - 2012-01-29, 21:48
[No subject] - by alanwww1 - 2012-01-29, 21:49
[No subject] - by alanwww1 - 2012-01-29, 21:57
[No subject] - by viljoviitanen - 2012-01-29, 23:29
[No subject] - by viljoviitanen - 2012-01-31, 00:30
[No subject] - by takoi - 2012-01-31, 01:23
[No subject] - by queeup - 2012-01-31, 02:15
[No subject] - by viljoviitanen - 2012-01-31, 09:21
[No subject] - by viljoviitanen - 2012-01-31, 22:00
[No subject] - by alanwww1 - 2012-02-01, 00:50
[No subject] - by viljoviitanen - 2012-02-01, 14:48
[No subject] - by alanwww1 - 2012-02-02, 00:21
[No subject] - by viljoviitanen - 2012-02-02, 08:12
[No subject] - by alanwww1 - 2012-02-02, 10:09
[No subject] - by viljoviitanen - 2012-02-02, 21:40
[No subject] - by alanwww1 - 2012-02-02, 22:31
[No subject] - by alanwww1 - 2012-02-02, 23:13
[No subject] - by viljoviitanen - 2012-02-02, 23:21
[No subject] - by alanwww1 - 2012-02-02, 23:26
[No subject] - by alanwww1 - 2012-02-03, 00:34
[No subject] - by viljoviitanen - 2012-02-03, 21:14
[No subject] - by alanwww1 - 2012-02-04, 00:35
[No subject] - by alanwww1 - 2012-02-04, 12:31
[No subject] - by takoi - 2012-02-04, 13:24
[No subject] - by alanwww1 - 2012-02-04, 13:57
[No subject] - by takoi - 2012-02-04, 14:26
[No subject] - by viljoviitanen - 2012-02-04, 15:49
[No subject] - by alanwww1 - 2012-02-05, 01:33
[No subject] - by viljoviitanen - 2012-02-05, 22:33
[No subject] - by takoi - 2012-02-05, 22:49
[No subject] - by alanwww1 - 2012-02-06, 00:55
[No subject] - by takoi - 2012-02-06, 19:48
[No subject] - by alanwww1 - 2012-02-06, 20:36
[No subject] - by takoi - 2012-02-06, 21:03
[No subject] - by NEOhidra - 2012-02-06, 22:51
[No subject] - by viljoviitanen - 2012-02-06, 23:08
[No subject] - by alanwww1 - 2012-02-06, 23:21
[No subject] - by alanwww1 - 2012-02-08, 23:48
[No subject] - by viljoviitanen - 2012-02-09, 09:28
[No subject] - by NEOhidra - 2012-02-09, 19:06
[No subject] - by alanwww1 - 2012-02-09, 22:22
[No subject] - by NEOhidra - 2012-02-09, 22:39
[No subject] - by alanwww1 - 2012-02-09, 22:54
[No subject] - by viljoviitanen - 2012-02-10, 08:54
RE: State of the translation - by takoi - 2012-03-28, 15:52
RE: State of the translation - by alanwww1 - 2012-03-30, 15:16
RE: State of the translation - by Troopie - 2012-03-31, 08:33
RE: State of the translation - by alanwww1 - 2012-04-01, 15:05
RE: State of the translation - by takoi - 2012-05-09, 12:35
RE: State of the translation - by alanwww1 - 2012-05-09, 15:27
RE: State of the translation - by takoi - 2012-05-09, 15:42
RE: State of the translation - by alanwww1 - 2012-05-09, 16:02
RE: State of the translation - by takoi - 2012-05-09, 16:14
RE: State of the translation - by alanwww1 - 2012-05-09, 16:29
RE: State of the translation - by takoi - 2012-05-09, 16:56
RE: State of the translation - by alanwww1 - 2012-05-09, 17:26
RE: State of the translation - by Ressa - 2013-07-18, 16:48
RE: State of the translation - by blittan - 2013-07-23, 16:03
RE: State of the translation - by CaBrA - 2014-11-06, 14:07
Logout Mark Read Team Forum Stats Members Help
State of the translation2