[Super-tux-commit] supertux/lib/app tinygettext.cpp,1.1,1.2
Brought to you by:
wkendrick
From: Matze B. <mat...@us...> - 2004-11-23 22:49:29
|
Update of /cvsroot/super-tux/supertux/lib/app In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19877/lib/app Modified Files: tinygettext.cpp Log Message: don't annoy all the time with messages... Index: tinygettext.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/lib/app/tinygettext.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- tinygettext.cpp 23 Nov 2004 22:21:50 -0000 1.1 +++ tinygettext.cpp 23 Nov 2004 22:49:04 -0000 1.2 @@ -26,6 +26,8 @@ #include <errno.h> #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 @@ } 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 @@ } else { +#ifdef TRANSLATION_DBEUG std::cout << "Error: Couldn't translate: " << msgid << std::endl; +#endif return msgid; } } |