diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-10-23 13:37:39 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-10-23 13:42:11 +0200 |
commit | 5c92622ad631d3fea5f173e5c0267b9bd1b15b2d (patch) | |
tree | 749a36bc1eeb817c5428d2fde85319ba7166667b /bitcoin-qt.pro | |
parent | 3a30f34f1adcd152fbc40e51c8e6ad0ff74a199f (diff) |
Translation lookup logic improvements
- use wildcard for TRANSLATIONS in bitcoin-qt.pro to automatically build all translations present in src/qt/locale (thanks @tcatm)
- first load translations/<language>.qm, then translations/<language>_<TERRITORY>.qm, so that territory-specific translations take precedence, but the fallback is on the base language if no territory-specific translation exists.
Diffstat (limited to 'bitcoin-qt.pro')
-rw-r--r-- | bitcoin-qt.pro | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bitcoin-qt.pro b/bitcoin-qt.pro index 2e4000e52a..e9dc6f787c 100644 --- a/bitcoin-qt.pro +++ b/bitcoin-qt.pro @@ -175,10 +175,8 @@ FORMS += \ CODECFORTR = UTF-8 # for lrelease/lupdate -TRANSLATIONS = src/qt/locale/bitcoin_de.ts \ - src/qt/locale/bitcoin_es.ts \ - src/qt/locale/bitcoin_nl.ts \ - src/qt/locale/bitcoin_ru.ts +# also add new translations to src/qt/bitcoin.qrc under translations/ +TRANSLATIONS = $$files(src/qt/locale/bitcoin_*.ts) isEmpty(QMAKE_LRELEASE) { win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe |