diff --git a/doc/translation_process.md b/doc/translation_process.md index fb9bd73aa0..055bff7050 100644 --- a/doc/translation_process.md +++ b/doc/translation_process.md @@ -37,10 +37,10 @@ source for all other translations. Whenever a string in the code is changed this file must be updated to reflect those changes. A custom script is used to extract strings from the non-Qt parts. This script makes use of `gettext`, so make sure that utility is installed (ie, `apt-get install gettext` on -Ubuntu/Debian). Once this has been updated, lupdate-qt4 (included in the Qt SDK) -is used to update dash_en.ts. Simply run: - - lupdate-qt4 ./contrib/dash-qt.pro -ts ./src/qt/locale/dash_en.ts +Ubuntu/Debian). Once this has been updated, lupdate (included in the Qt SDK) +is used to update dash_en.ts. This process has been automated, from src/, +simply run: + make translate ##### Handling of plurals in the source file diff --git a/share/qt/extract_strings_qt.py b/share/qt/extract_strings_qt.py index d79a112014..8508a4ae5c 100755 --- a/share/qt/extract_strings_qt.py +++ b/share/qt/extract_strings_qt.py @@ -9,7 +9,7 @@ import operator import os import sys -OUT_CPP="qt/bitcoinstrings.cpp" +OUT_CPP="qt/dashstrings.cpp" EMPTY=['""'] def parse_po(text): diff --git a/src/Makefile.qt.include b/src/Makefile.qt.include index ca63fd8739..9f907775a1 100644 --- a/src/Makefile.qt.include +++ b/src/Makefile.qt.include @@ -331,11 +331,11 @@ QT_QM=$(QT_TS:.ts=.qm) .SECONDARY: $(QT_QM) -qt/bitcoinstrings.cpp: $(libbitcoin_server_a_SOURCES) $(libbitcoin_wallet_a_SOURCES) +qt/dashstrings.cpp: $(libbitcoin_server_a_SOURCES) $(libbitcoin_wallet_a_SOURCES) $(libbitcoin_common_a_SOURCES) @test -n $(XGETTEXT) || echo "xgettext is required for updating translations" $(AM_V_GEN) cd $(srcdir); XGETTEXT=$(XGETTEXT) ../share/qt/extract_strings_qt.py $^ -translate: qt/bitcoinstrings.cpp $(QT_FORMS_UI) $(QT_FORMS_UI) $(BITCOIN_QT_CPP) $(BITCOIN_QT_H) $(BITCOIN_MM) +translate: qt/dashstrings.cpp $(QT_FORMS_UI) $(QT_FORMS_UI) $(BITCOIN_QT_CPP) $(BITCOIN_QT_H) $(BITCOIN_MM) @test -n $(LUPDATE) || echo "lupdate is required for updating translations" $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LUPDATE) $^ -locations relative -no-obsolete -ts qt/locale/dash_en.ts