Update POTFILES & i18n support
Closes #27 (closed)
- add
gettext () / _ ()
for translatable text in *.vala - add i18n support in src/main.vala
Tips
There is tips to how add new translation for Black box:
- Change work directory into this project, and run
meson build
, meson will create build directory for blackbox:cd blackbox meson build
- Add languages to
po/LINGUAS
, for example, if we want add Simplified Chinese translation, we can addzh_CN
intopo/LINGUAS
-
cd
into build dir, then runninja blackbox-update-po
, meson will generate / update.po
files inpo/
directory:cd build ninja blackbox-update-po
- edit
.po
file underpo/
directory.
Edited by Luo Yi