blob: fc7bad37c41407358a924c0132ebba8401d26997 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
## Generating translations
~~~sh
lupdate src/ lib/ -ts lang/<lang-id>.ts
~~~
### Updating translations
~~~sh
lupdate src/ lib/ -no-obsolete -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
~~~
|