-
Notifications
You must be signed in to change notification settings - Fork 35
Translations
Luca Weiss edited this page Dec 11, 2022
·
9 revisions
Run the following command in your terminal:
lupdate -verbose $(find src/ -name "*.cpp" -or -name "*.h") ui/*.ui -ts data/translations/$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 data/translations/meson.build
.
Use Qt Linguist to open the .ts
file you want to edit.
A full manual is available on doc.qt.io.
meson setup builddir/
cd builddir/
meson configure -Dprefix=$PWD -Ddatadir=
meson compile
mkdir -p razergenie/
ln -sf ../data/translations razergenie/translations
LANGUAGE=de ./src/razergenie
Note: Some strings are part of libopenrazer and need to be added there.