-
-
Notifications
You must be signed in to change notification settings - Fork 327
Translating
Evan Teran edited this page Jan 17, 2024
·
3 revisions
OK, so here's the first steps (assuming "fr" for french)
-
install Qt linguist
-
cd into the
src
directory of edb -
run
lupdate $(find ./ -type f \( -name \*.cpp -o -name \*.h -o -name \*.ui \)) -ts res/translations/edb_fr.ts
.
This will produce the XML file for translation -
run
linguist res/translations/edb_fr.ts
-
edit
src/CMakeLists.txt
and update this section to include your new file:qt5_add_translation(QM_FILES # add translation files in /src/res/translations here )
For example:
qt5_add_translation(QM_FILES # add translation files in /src/res/translations here res/translations/edb_fr.ts )
Once this is complete, submit a PR to add this file to the repo