-
Add the file with corresponding language code (e.g. "es") to
CMakeLists.txt
:set(TRANSLATION_SOURCES [...] translations/editor_es.ts )
-
Add the name to
translations/editor.qrc
<qresource prefix="/i18n"> [...] <file alias="easyrpg-editor_es.qm">editor_es.qm</file> </qresource>
-
Run
cmake --build --target translations
if you have a build tree ready.Or invoke lupdate manually from root directory of the repository:
lupdate src -ts translations/editor_es.ts
-
Open
translations/editor_<lang>.ts
in Qt Linguist -
Translate strings and save file
💡There are good external tutorials. -
Commit to git repository and make a pull request