mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 05:57:59 +01:00
qt: Pre-0.18 split-off translations update
- Update transifex slug - Mention update of MSVC build in `doc/translation_process.md` - Do a `make translate` to update English translations - Pull current translations from transifex
This commit is contained in:
@@ -68,11 +68,21 @@ The Transifex Bitcoin project config file is included as part of the repo. It ca
|
||||
To assist in updating translations, we have created a script to help.
|
||||
|
||||
1. `python contrib/devtools/update-translations.py`
|
||||
2. Update `src/qt/bitcoin_locale.qrc` manually or via
|
||||
`ls src/qt/locale/*ts|xargs -n1 basename|sed 's/\(bitcoin_\(.*\)\).ts/<file alias="\2">locale\/\1.qm<\/file>/'`
|
||||
3. Update `src/Makefile.qt.include` manually or via
|
||||
`ls src/qt/locale/*ts|xargs -n1 basename|sed 's/\(bitcoin_\(.*\)\).ts/ qt\/locale\/\1.ts \\/'`
|
||||
4. `git add` new translations from `src/qt/locale/`
|
||||
2. `git add` new translations from `src/qt/locale/`
|
||||
3. Update `src/qt/bitcoin_locale.qrc` manually or via
|
||||
```bash
|
||||
git ls-files src/qt/locale/*ts|xargs -n1 basename|sed 's/\(bitcoin_\(.*\)\).ts/<file alias="\2">locale\/\1.qm<\/file>/'
|
||||
```
|
||||
4. Update `src/Makefile.qt.include` manually or via
|
||||
```bash
|
||||
git ls-files src/qt/locale/*ts|xargs -n1 basename|sed 's/\(bitcoin_\(.*\)\).ts/ qt\/locale\/\1.ts \\/'
|
||||
```
|
||||
5. Update `build_msvc/libbitcoin_qt/libbitcoin_qt.vcxproj` or via
|
||||
```bash
|
||||
git ls-files src/qt/locale/*ts|xargs -n1 basename |
|
||||
sed 's/@/%40/' |
|
||||
sed 's/\(bitcoin_\(.*\)\).ts/ <None Include="..\\..\\src\\qt\\locale\\\1.ts">\n <DeploymentContent>true<\/DeploymentContent>\n <\/None>/'
|
||||
```
|
||||
|
||||
**Do not directly download translations** one by one from the Transifex website, as we do a few post-processing steps before committing the translations.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user