diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-09-27 20:47:51 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-09-27 20:47:51 +0200 |
commit | 59020408744664fde902406cf41de125859d461f (patch) | |
tree | d2cfda57aab61b753c64387192e9f661080c550e /bitcoin-qt.pro | |
parent | d28ed9c98e6b87a61b39a4c718dec01553be62c5 (diff) |
translation handling improvements
- automatically build binary translation files in qmake/make
- roll translations into resource file and executable, to simply installation
Diffstat (limited to 'bitcoin-qt.pro')
-rw-r--r-- | bitcoin-qt.pro | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bitcoin-qt.pro b/bitcoin-qt.pro index 3fff9ac908..eefef5a182 100644 --- a/bitcoin-qt.pro +++ b/bitcoin-qt.pro @@ -168,10 +168,25 @@ FORMS += \ src/qt/forms/askpassphrasedialog.ui CODECFORTR = UTF-8 + # for lrelease/lupdate TRANSLATIONS = src/qt/locale/bitcoin_nl.ts src/qt/locale/bitcoin_de.ts \ src/qt/locale/bitcoin_ru.ts +isEmpty(QMAKE_LRELEASE) { + win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe + else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease +} +isEmpty(TS_DIR):TS_DIR = src/qt/locale +# automatically build translations, so they can be included in resource file +TSQM.name = lrelease ${QMAKE_FILE_IN} +TSQM.input = TRANSLATIONS +TSQM.output = $$TS_DIR/${QMAKE_FILE_BASE}.qm +TSQM.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} +TSQM.CONFIG = no_link +QMAKE_EXTRA_COMPILERS += TSQM +bPRE_TARGETDEPS += compiler_TSQM_make_all + OTHER_FILES += \ README.rst |