Skip to content

Translations

Luca Weiss edited this page Apr 29, 2025 · 1 revision

Creating a new translation

Run the following command in your terminal:

lupdate -verbose include/libopenrazer.h -ts translations/libopenrazer_$LANG.ts

To clean up vanished translations, add -no-obsolete parameter.

$LANG should always be "a lowercase, two-letter, ISO 639 language code"!

Then add the language to translations/meson.build.

Editing a translation

Use Qt Linguist to open the .ts file you want to edit.

A full manual is available on doc.qt.io.

Testing a translation

Please try this as part of RazerGenie: https://github.com/z3ntu/RazerGenie/wiki/Translations

Clone this wiki locally