From f35b4d80bbc739bdbcf6ca43b49987f1c953397c Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Wed, 15 Apr 2015 02:14:56 +0300 Subject: [PATCH] fix translation processs --- doc/translation_process.md | 8 ++++---- share/qt/extract_strings_qt.py | 2 +- src/Makefile.qt.include | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/translation_process.md b/doc/translation_process.md index fb9bd73aa..055bff705 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 d79a11201..8508a4ae5 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 ca63fd873..9f907775a 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