Skip to content

Commit 783f502

Browse files
laanwjMunkybooty
authored andcommitted
Merge #16982: build: Factor out qt translations from build system
4320bfc 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 4320bfc. Tree-SHA512: 7133d0103bcf97672ae5aa40ba35d4b81331a8c179190031bbc887da6a5ccc929428e522938db43d87dbcbf9ad3b121dac1e6faf1daa5ae81d0b5fed7f053b5f
1 parent 52d2004 commit 783f502

File tree

3 files changed

+24
-23
lines changed

3 files changed

+24
-23
lines changed

doc/translation_process.md

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

src/Makefile.qt.include

+1-22
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,7 @@ bin_PROGRAMS += qt/dash-qt
77
EXTRA_LIBRARIES += qt/libdashqt.a
88

99
# dash qt core #
10-
QT_TS = \
11-
qt/locale/dash_ar.ts \
12-
qt/locale/dash_bg.ts \
13-
qt/locale/dash_de.ts \
14-
qt/locale/dash_en.ts \
15-
qt/locale/dash_es.ts \
16-
qt/locale/dash_fi.ts \
17-
qt/locale/dash_fr.ts \
18-
qt/locale/dash_it.ts \
19-
qt/locale/dash_ja.ts \
20-
qt/locale/dash_ko.ts \
21-
qt/locale/dash_nl.ts \
22-
qt/locale/dash_pl.ts \
23-
qt/locale/dash_pt.ts \
24-
qt/locale/dash_ro.ts \
25-
qt/locale/dash_ru.ts \
26-
qt/locale/dash_sk.ts \
27-
qt/locale/dash_th.ts \
28-
qt/locale/dash_tr.ts \
29-
qt/locale/dash_vi.ts \
30-
qt/locale/dash_zh_CN.ts \
31-
qt/locale/dash_zh_TW.ts
10+
include Makefile.qt_locale.include
3211

3312
QT_FORMS_UI = \
3413
qt/forms/addressbookpage.ui \

src/Makefile.qt_locale.include

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
QT_TS = \
2+
qt/locale/dash_ar.ts \
3+
qt/locale/dash_bg.ts \
4+
qt/locale/dash_de.ts \
5+
qt/locale/dash_en.ts \
6+
qt/locale/dash_es.ts \
7+
qt/locale/dash_fi.ts \
8+
qt/locale/dash_fr.ts \
9+
qt/locale/dash_it.ts \
10+
qt/locale/dash_ja.ts \
11+
qt/locale/dash_ko.ts \
12+
qt/locale/dash_nl.ts \
13+
qt/locale/dash_pl.ts \
14+
qt/locale/dash_pt.ts \
15+
qt/locale/dash_ro.ts \
16+
qt/locale/dash_ru.ts \
17+
qt/locale/dash_sk.ts \
18+
qt/locale/dash_th.ts \
19+
qt/locale/dash_tr.ts \
20+
qt/locale/dash_vi.ts \
21+
qt/locale/dash_zh_CN.ts \
22+
qt/locale/dash_zh_TW.ts

0 commit comments

Comments
 (0)