From b1170309a4aa58d4aab4a19715e4ef916977ed45 Mon Sep 17 00:00:00 2001 From: vertoe Date: Mon, 16 Feb 2015 22:43:16 +0100 Subject: [PATCH] Rename darkcoin resource file. --- contrib/darkcoin-qt.pro | 2 +- doc/translation_process.md | 6 +++--- src/qt/Makefile.am | 2 +- src/qt/darkcoin.cpp | 4 ++-- src/qt/forms/aboutdialog.ui | 4 ++-- src/qt/forms/addressbookpage.ui | 10 +++++----- src/qt/forms/helpmessagedialog.ui | 4 ++-- src/qt/forms/receivecoinsdialog.ui | 10 +++++----- src/qt/forms/rpcconsole.ui | 4 ++-- src/qt/forms/sendcoinsdialog.ui | 8 ++++---- src/qt/forms/sendcoinsentry.ui | 12 ++++++------ src/qt/forms/signverifymessagedialog.ui | 18 +++++++++--------- 12 files changed, 42 insertions(+), 42 deletions(-) diff --git a/contrib/darkcoin-qt.pro b/contrib/darkcoin-qt.pro index 1971441f89..3f6883c2b5 100644 --- a/contrib/darkcoin-qt.pro +++ b/contrib/darkcoin-qt.pro @@ -339,4 +339,4 @@ FORMS += \ ../src/qt/forms/transactiondescdialog.ui RESOURCES += \ - ../src/qt/bitcoin.qrc + ../src/qt/darkcoin.qrc diff --git a/doc/translation_process.md b/doc/translation_process.md index a18a45dd89..f18c5f6688 100644 --- a/doc/translation_process.md +++ b/doc/translation_process.md @@ -12,7 +12,7 @@ Files and Folders This file takes care of generating `.qm` files from `.ts` files. It is mostly automated. -### src/qt/bitcoin.qrc +### src/qt/darkcoin.qrc This file must be updated whenever a new translation is added. Please note that files must end with `.qm`, not `.ts`. @@ -60,7 +60,7 @@ in Transifex and can be translated. To create the pull-request you have to do: - git add src/qt/bitcoinstrings.cpp src/qt/locale/darkcoin_en.ts + git add src/qt/darkcoinstrings.cpp src/qt/locale/darkcoin_en.ts git commit Syncing with Transifex @@ -80,7 +80,7 @@ postprocessing steps before committing the translations. ### Fetching new translations 1. `python contrib/devtools/update-translations.py` -2. update `src/qt/bitcoin.qrc` manually or via +2. update `src/qt/darkcoin.qrc` manually or via `ls src/qt/locale/*ts|xargs -n1 basename|sed 's/\(darkcoin_\(.*\)\).ts/ locale\/\1.qm<\/file>/'` 3. update `src/qt/Makefile.am` manually or via `ls src/qt/locale/*ts|xargs -n1 basename|sed 's/\(darkcoin_\(.*\)\).ts/ locale\/\1.ts \\/'` diff --git a/src/qt/Makefile.am b/src/qt/Makefile.am index 19d965f0a6..d010c10e31 100644 --- a/src/qt/Makefile.am +++ b/src/qt/Makefile.am @@ -118,7 +118,7 @@ QT_MOC = \ rpcconsole.moc QT_QRC_CPP = qrc_bitcoin.cpp -QT_QRC = bitcoin.qrc +QT_QRC = darkcoin.qrc PROTOBUF_CC = paymentrequest.pb.cc PROTOBUF_H = paymentrequest.pb.h diff --git a/src/qt/darkcoin.cpp b/src/qt/darkcoin.cpp index abb9f340be..e5abe6bbd4 100644 --- a/src/qt/darkcoin.cpp +++ b/src/qt/darkcoin.cpp @@ -115,11 +115,11 @@ static void initTranslations(QTranslator &qtTranslatorBase, QTranslator &qtTrans if (qtTranslator.load("qt_" + lang_territory, QLibraryInfo::location(QLibraryInfo::TranslationsPath))) QApplication::installTranslator(&qtTranslator); - // Load e.g. bitcoin_de.qm (shortcut "de" needs to be defined in bitcoin.qrc) + // Load e.g. bitcoin_de.qm (shortcut "de" needs to be defined in darkcoin.qrc) if (translatorBase.load(lang, ":/translations/")) QApplication::installTranslator(&translatorBase); - // Load e.g. bitcoin_de_DE.qm (shortcut "de_DE" needs to be defined in bitcoin.qrc) + // Load e.g. bitcoin_de_DE.qm (shortcut "de_DE" needs to be defined in darkcoin.qrc) if (translator.load(lang_territory, ":/translations/")) QApplication::installTranslator(&translator); } diff --git a/src/qt/forms/aboutdialog.ui b/src/qt/forms/aboutdialog.ui index e7f7b6649f..eb632599cc 100644 --- a/src/qt/forms/aboutdialog.ui +++ b/src/qt/forms/aboutdialog.ui @@ -23,7 +23,7 @@ - :/images/about + :/images/about @@ -151,7 +151,7 @@ This product includes software developed by the OpenSSL Project for use in the O - + diff --git a/src/qt/forms/addressbookpage.ui b/src/qt/forms/addressbookpage.ui index f40c446050..c9821bab60 100644 --- a/src/qt/forms/addressbookpage.ui +++ b/src/qt/forms/addressbookpage.ui @@ -60,7 +60,7 @@ &New - + :/icons/add:/icons/add @@ -74,7 +74,7 @@ &Copy - + :/icons/editcopy:/icons/editcopy @@ -88,7 +88,7 @@ &Delete - + :/icons/remove:/icons/remove @@ -115,7 +115,7 @@ &Export - + :/icons/export:/icons/export @@ -138,7 +138,7 @@ - + diff --git a/src/qt/forms/helpmessagedialog.ui b/src/qt/forms/helpmessagedialog.ui index 085a0388b2..da870b8a23 100644 --- a/src/qt/forms/helpmessagedialog.ui +++ b/src/qt/forms/helpmessagedialog.ui @@ -28,7 +28,7 @@ - :/images/about + :/images/about @@ -89,7 +89,7 @@ - + diff --git a/src/qt/forms/receivecoinsdialog.ui b/src/qt/forms/receivecoinsdialog.ui index 56e1e62ca8..e9604e3e66 100644 --- a/src/qt/forms/receivecoinsdialog.ui +++ b/src/qt/forms/receivecoinsdialog.ui @@ -141,7 +141,7 @@ &Request payment - + :/icons/receiving_addresses:/icons/receiving_addresses @@ -161,7 +161,7 @@ Clear - + :/icons/remove:/icons/remove @@ -267,7 +267,7 @@ false - + :/icons/edit:/icons/edit @@ -284,7 +284,7 @@ false - + :/icons/remove:/icons/remove @@ -328,7 +328,7 @@ removeRequestButton - + diff --git a/src/qt/forms/rpcconsole.ui b/src/qt/forms/rpcconsole.ui index 6d03050b3c..28a01e7139 100644 --- a/src/qt/forms/rpcconsole.ui +++ b/src/qt/forms/rpcconsole.ui @@ -401,7 +401,7 @@ - + :/icons/remove:/icons/remove @@ -682,7 +682,7 @@ - + diff --git a/src/qt/forms/sendcoinsdialog.ui b/src/qt/forms/sendcoinsdialog.ui index 45519d82a3..338b643df0 100644 --- a/src/qt/forms/sendcoinsdialog.ui +++ b/src/qt/forms/sendcoinsdialog.ui @@ -671,7 +671,7 @@ S&end - + :/icons/send:/icons/send @@ -694,7 +694,7 @@ Clear &All - + :/icons/remove:/icons/remove @@ -714,7 +714,7 @@ Add &Recipient - + :/icons/add:/icons/add @@ -812,7 +812,7 @@ - + diff --git a/src/qt/forms/sendcoinsentry.ui b/src/qt/forms/sendcoinsentry.ui index d29f07258e..78134b512b 100644 --- a/src/qt/forms/sendcoinsentry.ui +++ b/src/qt/forms/sendcoinsentry.ui @@ -64,7 +64,7 @@ - + :/icons/address-book:/icons/address-book @@ -81,7 +81,7 @@ - + :/icons/editpaste:/icons/editpaste @@ -98,7 +98,7 @@ - + :/icons/remove:/icons/remove @@ -622,7 +622,7 @@ - + :/icons/remove:/icons/remove @@ -1158,7 +1158,7 @@ - + :/icons/remove:/icons/remove @@ -1230,7 +1230,7 @@ deleteButton_s - + diff --git a/src/qt/forms/signverifymessagedialog.ui b/src/qt/forms/signverifymessagedialog.ui index a25d8cc18f..1a60d9a2b5 100644 --- a/src/qt/forms/signverifymessagedialog.ui +++ b/src/qt/forms/signverifymessagedialog.ui @@ -58,7 +58,7 @@ - + :/icons/address-book:/icons/address-book @@ -78,7 +78,7 @@ - + :/icons/editpaste:/icons/editpaste @@ -134,7 +134,7 @@ - + :/icons/editcopy:/icons/editcopy @@ -155,7 +155,7 @@ Sign &Message - + :/icons/edit:/icons/edit @@ -172,7 +172,7 @@ Clear &All - + :/icons/remove:/icons/remove @@ -268,7 +268,7 @@ - + :/icons/address-book:/icons/address-book @@ -298,7 +298,7 @@ Verify &Message - + :/icons/transaction_0:/icons/transaction_0 @@ -315,7 +315,7 @@ Clear &All - + :/icons/remove:/icons/remove @@ -381,7 +381,7 @@ - +