-
Notifications
You must be signed in to change notification settings - Fork 797
Translator's guide
It's really easy to translate Robomongo. This work can be done without any special 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.
To translate Robomongo you need to get the blank translation file, translate strings inside it and share this translated one with Robomongo team.
Get the blank translation file here.
- 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 inAlbanian
language, rename file torobomongo_sq.ts
- Change language setting in file itself
- If you use
Qt Linguist
Opents
file, go toEdit > Translation file settings...
change settings forTranslation language
and pressOk
. - If you use
Text editor
Opents
file, findTS
element (line<TS version="...
) at the beginning of the file and place code of translation language as value oflanguage
attribute of this element.
Again, forAlbanian
language, it should be something like<TS version="2.0" language="sq">
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 inTranslation
main menu item. - If you use
Text editor
Each string available for translation is placed inmessage
element of file. In this element you can find this embedded ones:-
location
, specifies place of this string in program source code -
source
, original string to be translated -
comment
orextracomment
, developer comment about this string -
translation
, this is your target - place here the translation of thesource
content -
translatorcomment
, you may place this element if you have some comments about translation of this string
Somemessage
elements may have attributenumerus="yes"
and contains%n
placeholder in thesource
. In program runtime this placeholder will be replaced by a number. In such case you need to create two or morenumerusform
elements insidetranslation
element. The first one should contents translation of thesource
if%n
is 1, the second one - if%n
is 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"
intranslation
element.
-
Share your translation file with Robomongo team. For example, create issue on Github.