Skip to content
This repository was archived by the owner on May 3, 2019. It is now read-only.

[Tutorial] Adding or updating a translation

Colin Duquesnoy edited this page Jun 24, 2017 · 17 revisions

This tutorial is meant for both developers and non-developers

**THIS PAGE IS OUTDATED, it will be fixed when we'll work on issue #52

We assume that you have a working development environment!

Add a new translation

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:

  1. Open the project in QtCreator

  2. Open a terminal

    Open a terminal

  3. Type python tools/devhelper.py

    devhelper.py

  4. Select option number 3

    devhelper.py

  5. Specify the language code for the translation to add

    devhelper.py

  6. And voilà, the new translation file has been added to the project. You can now start translating the application!

    devhelper.py

Update translations

The process for updating a translation is quite simple:

  1. open app/translations/mellowplayer_xx.ts in QtLinguist (where xx is the language code, e.g. fr, en,...)

    devhelper.py

    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)

    devhelper.py

  2. translate every string, save your work and exit Qt Linguist

  3. open the project in QtCreator

  4. run qmake

  5. build and run the application to see the results of your work!

Clone this wiki locally