Translation formats

Asked by Dainius 'GreatEmerald' Masiliūnas

I need to add a special type of files to the translations - not to translate the code files itself, but instead I already have different files that needs translating. To keep it short, this is an example of what I need to translate: http://pastebin.com/m2ec416e The syntax is much like of an INI file. Users should be given the string in a category (example: [KingOfTheHill]), after an equals sign (example: ClassCaption=): "King Of The Hill" for translation. But as I can see, you only accept .po (.pot) files. So it there a way to quickly assemble .po files from these kind of INI-type files? As it's not a known language, tools like PoEdit don't help too much. Maybe there's a way to make a rule list of some kind? Or maybe the usual INI-like file can be accepted? Or should I create the .po files by hand? Something like this: http://pastebin.com/m31c22174 ?

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jeroen T. Vermeulen (jtv) said :
#1

Unfortunately we don't have much time to add support for new formats! It shouldn't be too hard to write a converter in a scripting language such as Python though, and perhaps add build rules to regenerate templates and/or reproduce translation INI files.

The sample gettext file you give looks fine, apart from missing a header. The msgctxt approach you take here is particularly nice, since that way you neatly keep the English string as the msgid (which is something we require for gettext files).

Can you help with this problem?

Provide an answer of your own, or ask Dainius 'GreatEmerald' Masiliūnas for more information if necessary.

To post a message you must log in.