Let's say you want to add translations for Russian, you can proceed as follows:
Install devel/qt5-linguist and devel/qt5-linguisttools
cd to src/nomadbsd-adduser-gui
Add locale/$${PROGRAM}_ru.ts to TRANSLATIONS in nomadbsd-adduser-gui.pro, and commit: git commit -m 'Add Russian translations.' nomadbsd-adduser-gui.pro
Execute lupdate nomadbsd-adduser-gui.pro
Run linguist locale/nomadbsd-adduser-gui_ru.ts
Add the file to the repo: git add locale/nomadbsd-adduser-gui_ru.ts && git commit -m 'Add Russian translation file.'
Add <file>locale/nomadbsd-adduser-gui_ru.qm</file> to the resources.qrc, and commit: git commit -m 'Add Russian translation file.' resources.qrc
Available translations
Instructions
Let's say you want to add translations for Russian, you can proceed as follows:
devel/qt5-linguist
anddevel/qt5-linguisttools
cd
tosrc/nomadbsd-adduser-gui
locale/$${PROGRAM}_ru.ts
toTRANSLATIONS
innomadbsd-adduser-gui.pro
, and commit:git commit -m 'Add Russian translations.' nomadbsd-adduser-gui.pro
lupdate nomadbsd-adduser-gui.pro
linguist locale/nomadbsd-adduser-gui_ru.ts
git add locale/nomadbsd-adduser-gui_ru.ts && git commit -m 'Add Russian translation file.'
<file>locale/nomadbsd-adduser-gui_ru.qm</file>
to theresources.qrc
, and commit:git commit -m 'Add Russian translation file.' resources.qrc