-
Notifications
You must be signed in to change notification settings - Fork 23
[Tutorial] Adding or updating a translation
This tutorial is meant for both developers and non-developers
We assume that you have a working development environment!
MellowPlayer is ready for internationalization, you just need to localize it for your own region/language.
Currently MellowPlayer has been localised to:
- french (fr)
If your language is not in the above list, you will first need to add a new translation. To do that, follow the next steps:
-
Open the project in QtCreator
-
Open a terminal
-
Type
python devhelper.py
-
Select option number 3
-
Specify the language code for the translation to add
-
And voilà, the new translation file has been added to the project. You can now start translating the application!
The process for updating a translation is quite simple:
-
open
app/translations/mellowplayer_xx.ts
in QtLinguist (where xx is the language code, e.g. fr, en,...)On the left, you can see a list of the various string context. Each context contains a series of string that need to be translated. To translate a string, type some text in the translation text box and when you're done, mark the item as done (using the green mark)
-
translate every string, save your work and exit Qt Linguist
-
open the project in QtCreator
-
run qmake
-
build and run the application to see the results of your work!
This wiki is public. You are encouraged to come and share all kind of personal contributions: new pages, improvements to existing pages, or even simple corrections.