Merge #16982: build: Factor out qt translations from build system

4320bfc0c0d88633c84146f8d640f5b6e4596244 build: Factor out qt translations from build system (Wladimir J. van der Laan)

Pull request description:

  Move qt translations to a separate make include file. This makes it easier to auto-generate this list from tooling (see bitcoin-core/bitcoin-maintainer-tools#36).

ACKs for top commit:
  promag:
    ACK 4320bfc0c0d88633c84146f8d640f5b6e4596244.

Tree-SHA512: 7133d0103bcf97672ae5aa40ba35d4b81331a8c179190031bbc887da6a5ccc929428e522938db43d87dbcbf9ad3b121dac1e6faf1daa5ae81d0b5fed7f053b5f
This commit is contained in:
Wladimir J. van der Laan 2019-09-30 09:29:56 +02:00 committed by Munkybooty
parent 52d2004b0b
commit 783f502c86
3 changed files with 24 additions and 23 deletions

View File

@ -77,7 +77,7 @@ To assist in updating translations, we have created a script to help.
1. `python contrib/devtools/update-translations.py`
2. Update `src/qt/dash_locale.qrc` manually or via
`ls src/qt/locale/*ts|xargs -n1 basename|sed 's/\(dash_\(.*\)\).ts/<file alias="\2">locale\/\1.qm<\/file>/'`
3. Update `src/Makefile.qt.include` manually or via
3. Update `src/Makefile.qt_locale.include` manually or via
`ls src/qt/locale/*ts|xargs -n1 basename|sed 's/\(dash_\(.*\)\).ts/ qt\/locale\/\1.ts \\/'`
4. `git add` new translations from `src/qt/locale/`

View File

@ -7,28 +7,7 @@ bin_PROGRAMS += qt/dash-qt
EXTRA_LIBRARIES += qt/libdashqt.a
# dash qt core #
QT_TS = \
qt/locale/dash_ar.ts \
qt/locale/dash_bg.ts \
qt/locale/dash_de.ts \
qt/locale/dash_en.ts \
qt/locale/dash_es.ts \
qt/locale/dash_fi.ts \
qt/locale/dash_fr.ts \
qt/locale/dash_it.ts \
qt/locale/dash_ja.ts \
qt/locale/dash_ko.ts \
qt/locale/dash_nl.ts \
qt/locale/dash_pl.ts \
qt/locale/dash_pt.ts \
qt/locale/dash_ro.ts \
qt/locale/dash_ru.ts \
qt/locale/dash_sk.ts \
qt/locale/dash_th.ts \
qt/locale/dash_tr.ts \
qt/locale/dash_vi.ts \
qt/locale/dash_zh_CN.ts \
qt/locale/dash_zh_TW.ts
include Makefile.qt_locale.include
QT_FORMS_UI = \
qt/forms/addressbookpage.ui \

View File

@ -0,0 +1,22 @@
QT_TS = \
qt/locale/dash_ar.ts \
qt/locale/dash_bg.ts \
qt/locale/dash_de.ts \
qt/locale/dash_en.ts \
qt/locale/dash_es.ts \
qt/locale/dash_fi.ts \
qt/locale/dash_fr.ts \
qt/locale/dash_it.ts \
qt/locale/dash_ja.ts \
qt/locale/dash_ko.ts \
qt/locale/dash_nl.ts \
qt/locale/dash_pl.ts \
qt/locale/dash_pt.ts \
qt/locale/dash_ro.ts \
qt/locale/dash_ru.ts \
qt/locale/dash_sk.ts \
qt/locale/dash_th.ts \
qt/locale/dash_tr.ts \
qt/locale/dash_vi.ts \
qt/locale/dash_zh_CN.ts \
qt/locale/dash_zh_TW.ts