From: Matthias Braun Date: Tue, 23 Nov 2004 22:49:04 +0000 (+0000) Subject: don't annoy all the time with messages... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=17dbb2bd444a744fa435b32cbb20b2ad42c44ed1;p=supertux.git don't annoy all the time with messages... SVN-Revision: 2161 --- 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; } }