Translator's guide - Studio3T/robomongo GitHub Wiki
Is it difficult?
It's really easy to translate Robomongo. This work can be done without any special tools.
Tools
But for your convenience we suggest you to use Qt Linguist. Here you may take Qt installer for your OS. There is no official separate package with Linguist only. Installer will install whole Qt SDK on your computer.
If you really don't want to download and install Qt SDK, you may don't do that. In this case you need only text editor. It will be much better, if this editor will be with XML highlighting feature.
Process
To translate Robomongo you need to get the blank translation file, translate strings inside it and share this translated one with Robomongo team.
Step 1
Get the blank translation file here.
Step 2
- Rename your copy in accordance with ISO 639-1 code of the language in which you want to translate.
For example, if you want to translate inAlbanianlanguage, rename file torobomongo_sq.ts - Change language setting in file itself
- If you use
Qt Linguist
Opentsfile, go toEdit > Translation file settings...change settings forTranslation languageand pressOk. - If you use
Text editor
Opentsfile, findTSelement (line<TS version="...) at the beginning of the file and place code of translation language as value oflanguageattribute of this element.
Again, forAlbanianlanguage, it should be something like<TS version="2.0" language="sq">
Step 3
Translate and don't forget to save
- If you use
Qt Linguist
You can find available contexts on left panel and available strings for translation in each context on top panel. Select string, write translation below and go to the next. Shortcuts can be found inTranslationmain menu item. - If you use
Text editor
Each string available for translation is placed inmessageelement of file. In this element you can find this embedded ones:location, specifies place of this string in program source codesource, original string to be translatedcommentorextracomment, developer comment about this stringtranslation, this is your target - place here the translation of thesourcecontenttranslatorcomment, you may place this element if you have some comments about translation of this string
Somemessageelements may have attributenumerus="yes"and contains%nplaceholder in thesource. In program runtime this placeholder will be replaced by a number. In such case you need to create two or morenumerusformelements insidetranslationelement. The first one should contents translation of thesourceif%nis 1, the second one - if%nis 2. And so on, in accordance with how many forms for declension nouns with numerals in the language in which you translate.
If you aren't sure in correctness of some translation, you may add attributetype="unfinished"intranslationelement.
Step 4
Share your translation file with Robomongo team. For example, create issue on Github.