Skip to content

Commit 8d46429

Browse files
committed
Merge #8911: qt: Translate all files, even if wallet disabled
8aed5f6 qt: Translate all files, even if wallet disabled (Wladimir J. van der Laan)
2 parents d270c30 + 8aed5f6 commit 8d46429

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/Makefile.qt.include

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ RES_ICONS = \
289289
qt/res/icons/warning.png \
290290
qt/res/icons/verify.png
291291

292-
BITCOIN_QT_CPP = \
292+
BITCOIN_QT_BASE_CPP = \
293293
qt/bantablemodel.cpp \
294294
qt/bitcoinaddressvalidator.cpp \
295295
qt/bitcoinamountfield.cpp \
@@ -313,12 +313,9 @@ BITCOIN_QT_CPP = \
313313
qt/trafficgraphwidget.cpp \
314314
qt/utilitydialog.cpp
315315

316-
if TARGET_WINDOWS
317-
BITCOIN_QT_CPP += qt/winshutdownmonitor.cpp
318-
endif
316+
BITCOIN_QT_WINDOWS_CPP = qt/winshutdownmonitor.cpp
319317

320-
if ENABLE_WALLET
321-
BITCOIN_QT_CPP += \
318+
BITCOIN_QT_WALLET_CPP = \
322319
qt/addressbookpage.cpp \
323320
qt/addresstablemodel.cpp \
324321
qt/askpassphrasedialog.cpp \
@@ -345,6 +342,13 @@ BITCOIN_QT_CPP += \
345342
qt/walletmodel.cpp \
346343
qt/walletmodeltransaction.cpp \
347344
qt/walletview.cpp
345+
346+
BITCOIN_QT_CPP = $(BITCOIN_QT_BASE_CPP)
347+
if TARGET_WINDOWS
348+
BITCOIN_QT_CPP += $(BITCOIN_QT_WINDOWS_CPP)
349+
endif
350+
if ENABLE_WALLET
351+
BITCOIN_QT_CPP += $(BITCOIN_QT_WALLET_CPP)
348352
endif
349353

350354
RES_IMAGES =
@@ -413,7 +417,7 @@ $(srcdir)/qt/bitcoinstrings.cpp: $(libbitcoin_server_a_SOURCES) $(libbitcoin_wal
413417
@test -n $(XGETTEXT) || echo "xgettext is required for updating translations"
414418
$(AM_V_GEN) cd $(srcdir); XGETTEXT=$(XGETTEXT) PACKAGE_NAME="$(PACKAGE_NAME)" COPYRIGHT_HOLDERS="$(COPYRIGHT_HOLDERS)" COPYRIGHT_HOLDERS_SUBSTITUTION="$(COPYRIGHT_HOLDERS_SUBSTITUTION)" $(PYTHON) ../share/qt/extract_strings_qt.py $^
415419

416-
translate: $(srcdir)/qt/bitcoinstrings.cpp $(QT_FORMS_UI) $(QT_FORMS_UI) $(BITCOIN_QT_CPP) $(BITCOIN_QT_H) $(BITCOIN_MM)
420+
translate: $(srcdir)/qt/bitcoinstrings.cpp $(QT_FORMS_UI) $(QT_FORMS_UI) $(BITCOIN_QT_BASE_CPP) $(BITCOIN_QT_WINDOWS_CPP) $(BITCOIN_QT_WALLET_CPP) $(BITCOIN_QT_H) $(BITCOIN_MM)
417421
@test -n $(LUPDATE) || echo "lupdate is required for updating translations"
418422
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LUPDATE) $^ -locations relative -no-obsolete -ts $(srcdir)/qt/locale/bitcoin_en.ts
419423

0 commit comments

Comments
 (0)