diff options
Diffstat (limited to 'doc/Development/Translating.asciidoc')
-rw-r--r-- | doc/Development/Translating.asciidoc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/Development/Translating.asciidoc b/doc/Development/Translating.asciidoc new file mode 100644 index 0000000..f79fa56 --- /dev/null +++ b/doc/Development/Translating.asciidoc @@ -0,0 +1,16 @@ +== Translating +[code, sh] +---- +# generating translations +lupdate src/ lib/ -ts lang/<lang-id>.ts + +# updating translations +lupdate src/ lib/ -no-obsolete -ts lang/<lang-id>.ts + +# generate lang/<lang-id>.qm +lrelease lang/<land-id>.ts +---- + +=== Using translations + --browser.locale # set Qt translation; ex. de + --browser.translation # set translation file; ex. /home/user/.config/smolbote/lang/custom-translate.qm |