Translations¶
Translations can be done either via Weblate (preferred) or by using Qt utilities.
All GUI strings should be translatable. This is indicated in code with
tr("Some GUI text", "Hints for translators")
.
Adding New Language¶
To add new language for the application follow these steps.
- Edit
copyq.pro
and add file name for new language (translations/copyq_<LANGUAGE>.ts
) toTRANSLATIONS
variable. - Create new language file with
lupdate copyq.pro
. - Add new language file to Git repository.
- Translate with Weblate service or locally with
linguist translations/copyq_<LANGUAGE>.ts
.