From 783f502c8683a464c37b00654c924de983dbb795 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Mon, 30 Sep 2019 09:29:56 +0200 Subject: [PATCH] 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 --- doc/translation_process.md | 2 +- src/Makefile.qt.include | 23 +---------------------- src/Makefile.qt_locale.include | 22 ++++++++++++++++++++++ 3 files changed, 24 insertions(+), 23 deletions(-) create mode 100644 src/Makefile.qt_locale.include diff --git a/doc/translation_process.md b/doc/translation_process.md index c5ac77d16f..cad2bc2447 100644 --- a/doc/translation_process.md +++ b/doc/translation_process.md @@ -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/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/` diff --git a/src/Makefile.qt.include b/src/Makefile.qt.include index cb0ab527a4..ad73c39ceb 100644 --- a/src/Makefile.qt.include +++ b/src/Makefile.qt.include @@ -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 \ diff --git a/src/Makefile.qt_locale.include b/src/Makefile.qt_locale.include new file mode 100644 index 0000000000..5373f7fa85 --- /dev/null +++ b/src/Makefile.qt_locale.include @@ -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