Translate Polyphone
Polyphone has been designed to support translations in order to increase the accessibility. Everyone can help in this process: a translation can be created from scratch or an existing translation can be completed or improved. Since version 2.6, all translations that were incomplete have been completed with the help of an AI, and they deserve to be reviewed by native speakers.
Prerequisite
Translation file
Download the translation package corresponding to the language you want to translate from this page. If the language is not in the list yet, use the contact form to ask for it (you just need to specify the new language you want). You will quickly be provided with a new translation package.
The translation files are also available in the GitHub repository, in the directory sources/resources/translations (one file polyphone_XX.ts per language). They also contain the texts of the plugin, in the contexts PluginEditor, PluginProcessor and PluginJuce.
Qt Linguist
The only software you need to translate is Qt Linguist: a tool for generating translation files. This software is installed with Qt (see the development pages), and can also be found here for Windows users or in the repositories of Linux distributions (package linguist-qt6 on Debian and Ubuntu, qt6-linguist on Fedora).
Opening the translation file
Unzip the translation package you just downloaded. You will find a .ts file polyphone_XX.ts, XX being related to your language. With Qt Linguist, open polyphone_XX.ts and you will be able to start the translation.
Translating
Each item in each context needs to be translated. All you have to do is to review each element one by one and fill your translation. Three cases may appear depending on your confidence level.
- If you don't know how to translate don't hesitate to skip the element. This is not an issue: other people can complete it.
- You think you have the right translation but you are unsure: write your proposition and then use Ctrl+J. The item will not be validated but the translation will nevertheless be used in the translated interface. It just tells other people improving the translation that you were unsure.
- You have the right translation: write it and use Ctrl+Enter. This item will be validated.
A translation needs attention (in a world where everything is being made for soliciting it ). Please take care of:
- the punctuation,
- the first and final spaces,
- the character case (lowercase / uppercase),
- singular and plural forms.
A final advice: take your time! And don't forget to save your work with Ctrl+S.
Testing your work
At anytime you can check your work. In Qt Linguist go to and create a .qm file corresponding to the translation you are providing. Follow the instructions in the translation package to install it (readme.txt file), then open Polyphone. Go to the settings, select your translation in the list of languages and restart Polyphone. You will now be able to review your translation.
Note: the operation Release As… may translate only text comprising no accent. If this bug happens, open a terminal and use the following command: lrelease polyphone_XX.ts (adapt it to your current file). A translation file polyphone_XX.qm can also be loaded from a directory named translations (in the current directory or in the configuration directory of Polyphone) instead of being embedded in the software.
Submitting the translation
Once you are done (or bothered!), send the .ts file (not .qm!) you were editing to contact@polyphone.io. The translation package of this page will be updated.
If you are used to GitHub, you can also propose your .ts file with a pull request on the repository (see the contributing guide).
Polyphone is free but there are costs associated with its website and development. A small donation will help a lot.
Donatetop