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 Jul 29, 2017 · 17 revisions

This tutorial is meant for both developers and non-developers

TODO: Document transifex process and maybe deprecate below informations.

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 src/languages/Languages.cmake in a text editor

  2. Add a line for your language. For example, to add a german translation, you would need to add languages/MellowPlayer_de.ts.

Before:

set(TS_FILES
    languages/MellowPlayer_en.ts
    languages/MellowPlayer_fr.ts)

After:

set(TS_FILES
    languages/MellowPlayer_de.ts
    languages/MellowPlayer_en.ts
    languages/MellowPlayer_fr.ts)
  1. Build MellowPlayer with the cmake option -DUPDATE_TRANSLATIONS or open a pull request so that the author can generate the translation files.

Update translations

This section is intended for project owner as reminder.

Run cmake with -DUPDATE_TRANSLATIONS to create new translations and update existing translations.

Clone this wiki locally