aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-07-01 11:49:53 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-07-01 11:49:53 +0200
commitfdf0e9c28c05a8d497a19414099d74f9a0f5d970 (patch)
tree0723081f717378ba55ebd05dc9ca938833f03b4d /doc
parentAdd browser.session (diff)
downloadsmolbote-fdf0e9c28c05a8d497a19414099d74f9a0f5d970.tar.xz
Add browser.locale and browser.translation
Diffstat (limited to 'doc')
-rw-r--r--doc/Translating.md19
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
+~~~