Skip to content

Commit 2fac102

Browse files
author
Philip Kaufmann
committed
updated translation process documentation
1 parent a1a0469 commit 2fac102

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

doc/translation_process.md

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Translations
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
55
handle those translations.
66

77
Files 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
3535
this 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

3842
Syncing with transifex
3943
----------------------
@@ -42,9 +46,9 @@ We are using http://transifex.net as a frontend for translating the client.
4246

4347
https://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

6177
1. `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>/'`
6480
3. `git add` new translations from `src/qt/locale/`
65-

0 commit comments

Comments
 (0)