11Translations
22============
33
4- The QT GUI can be easily be translated into other languages. Here's how we
4+ The Qt GUI can be easily translated into other languages. Here's how we
55handle those translations.
66
77Files and Folders
@@ -30,10 +30,14 @@ This directory contains all translations. Filenames must adhere to this format:
3030
3131#### Source file
3232
33- ` src/qt/locale/bitcoin_en.ts ` is a treated in a special way. It is used as the
34- source for all other translations. Whenever a string in the code is change
33+ ` src/qt/locale/bitcoin_en.ts ` is treated in a special way. It is used as the
34+ source for all other translations. Whenever a string in the code is changed
3535this file must be updated to reflect those changes. Usually, this can be
36- accomplished by running ` lupdate `
36+ accomplished by running ` lupdate ` (included in the Qt SDK).
37+
38+ An updated source file should be merged to github and transifex will pick it
39+ up from there. Afterwards the new strings show up as "Remaining" in transifex
40+ and can be translated.
3741
3842Syncing with transifex
3943----------------------
@@ -42,9 +46,9 @@ We are using http://transifex.net as a frontend for translating the client.
4246
4347https://www.transifex.net/projects/p/bitcoin/resource/tx/
4448
45- The "transifex client": http://help.transifex.net/features/client/index.html
46- will help with fetching new translations from transifex.
47-
49+ The "transifex client" (see: http://help.transifex.net/features/client/ )
50+ will help with fetching new translations from transifex. Use the following
51+ config to be able to connect with the client.
4852
4953### .tx/config
5054
@@ -55,11 +59,22 @@ will help with fetching new translations from transifex.
5559 file_filter = src/qt/locale/bitcoin_<lang>.ts
5660 source_file = src/qt/locale/bitcoin_en.ts
5761 source_lang = en
62+
63+ ### .tx/config (for Windows)
64+
65+ [main]
66+ host = https://www.transifex.net
67+
68+ [bitcoin.tx]
69+ file_filter = src\qt\locale\bitcoin_<lang>.ts
70+ source_file = src\qt\locale\bitcoin_en.ts
71+ source_lang = en
72+
73+ It is also possible to directly download new translations one by one from transifex.
5874
5975### Fetching new translations
6076
61771 . ` tx pull -a `
62- 2 . update ` src/qt/bitcoin.qrc `
78+ 2 . update ` src/qt/bitcoin.qrc ` manually or via
6379 ` ls src/qt/locale/*ts|xargs -n1 basename|sed 's/\(bitcoin_\(.*\)\).ts/<file alias="\2">locale/\1.qm<\/file>/' `
64803 . ` git add ` new translations from ` src/qt/locale/ `
65-
0 commit comments