From 17dbb2bd444a744fa435b32cbb20b2ad42c44ed1 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 23 Nov 2004 22:49:04 +0000 Subject: [PATCH] don't annoy all the time with messages... SVN-Revision: 2161 --- lib/app/tinygettext.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/app/tinygettext.cpp b/lib/app/tinygettext.cpp index babb20139..abaa48a11 100644 --- a/lib/app/tinygettext.cpp +++ b/lib/app/tinygettext.cpp @@ -26,6 +26,8 @@ #include #include "tinygettext.h" +//#define TRANSLATION_DEBUG + namespace TinyGetText { /** Convert \a which is in \a from_charset to \a to_charset and return it */ @@ -390,10 +392,12 @@ Dictionary::translate(const std::string& msgid, const std::string& msgid2, int n } else { +#ifdef TRANSLATION_DEBUG std::cerr << "Warning: Couldn't translate: " << msgid << std::endl; std::cerr << "Candidates: " << std::endl; for (PluralEntries::iterator i = plural_entries.begin(); i != plural_entries.end(); ++i) std::cout << "'" << i->first << "'" << std::endl; +#endif if (plural2_1(num)) // default to english rules return msgid2; @@ -412,7 +416,9 @@ Dictionary::translate(const std::string& msgid) } else { +#ifdef TRANSLATION_DBEUG std::cout << "Error: Couldn't translate: " << msgid << std::endl; +#endif return msgid; } } -- 2.11.0