|
|
@ -32,14 +32,13 @@ This directory contains all translations. Filenames must adhere to this format: |
|
|
|
|
|
|
|
|
|
|
|
`src/qt/locale/bitcoin_en.ts` is treated in a special way. It is used as the |
|
|
|
`src/qt/locale/bitcoin_en.ts` is treated in a special way. It is used as the |
|
|
|
source for all other translations. Whenever a string in the code is changed |
|
|
|
source for all other translations. Whenever a string in the code is changed |
|
|
|
this file must be updated to reflect those changes. This can be accomplished |
|
|
|
this file must be updated to reflect those changes. A custom script is used |
|
|
|
by running `lupdate` (included in the Qt SDK). Also, a custom script is used |
|
|
|
|
|
|
|
to extract strings from the non-Qt parts. This script makes use of `gettext`, |
|
|
|
to extract strings from the non-Qt parts. This script makes use of `gettext`, |
|
|
|
so make sure that utility is installed (ie, `apt-get install gettext` on |
|
|
|
so make sure that utility is installed (ie, `apt-get install gettext` on |
|
|
|
Ubuntu/Debian): |
|
|
|
Ubuntu/Debian). Once this has been updated, lupdate (included in the Qt SDK) |
|
|
|
|
|
|
|
is used to update bitcoin_en.ts. This process has been automated, from src/qt, |
|
|
|
python share/qt/extract_strings_qt.py |
|
|
|
simply run: |
|
|
|
lupdate bitcoin-qt.pro -no-obsolete -locations relative -ts src/qt/locale/bitcoin_en.ts |
|
|
|
make translate |
|
|
|
|
|
|
|
|
|
|
|
##### Handling of plurals in the source file |
|
|
|
##### Handling of plurals in the source file |
|
|
|
|
|
|
|
|
|
|
|