aboutsummaryrefslogtreecommitdiff
path: root/doc/Development/Translating.asciidoc
blob: f79fa56990af990cf9373e3a3e7eca6be55219d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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