#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 */
}
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;
}
else
{
+#ifdef TRANSLATION_DBEUG
std::cout << "Error: Couldn't translate: " << msgid << std::endl;
+#endif
return msgid;
}
}