diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Translating.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/Translating.md b/doc/Translating.md new file mode 100644 index 0000000..111ddbc --- /dev/null +++ b/doc/Translating.md @@ -0,0 +1,19 @@ +## Generating translations + +~~~sh +lupdate src/ lib/ -ts lang/<lang-id>.ts +~~~ + +## Baking translation +This generates lang/<lang-id>.qm + +~~~sh +lrelease lang/<land-id>.ts +~~~ + +## Using translations + +~~~sh +--browser.locale # set Qt translation; ex. de +--browser.translation # set translation file; ex. /home/user/.config/smolbote/lang/custom-translate.qm +~~~ |