From 0bc0e6b7ec2867aa7bc686aecf2a1023f2acd901 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Sun, 6 Apr 2008 21:33:45 +0000 Subject: Remove bogus translation attempt and leave a FIXME --- lib/Enum.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/Enum.h') diff --git a/lib/Enum.h b/lib/Enum.h index 5841b2a..a175328 100644 --- a/lib/Enum.h +++ b/lib/Enum.h @@ -135,6 +135,8 @@ protected: * be tedious for large enumerations. To make the Definition easier * and more readable, an ENUM_DEFINITION() macro is provided. * + * FIXME: At the moment enumeration strings don't get translated by gettext + * * @see #ENUM_DEFINITION * @author Henner Zeller */ @@ -259,7 +261,6 @@ public: * XXX: throw OutOfRangeException ? */ static E getValueFor(const std::string &s) { -// return (E) staticData.stringRep.lookup(s.getCStr()); return (E) staticData.stringRep.lookup(s.c_str()); } }; @@ -320,7 +321,7 @@ template <> Enum::sdata::sdata() : \ */ template inline std::ostream& operator << (std::ostream& out, const Enum &e) { - return out << _(e.toString().c_str()); + return out << e.toString().c_str(); } #endif /* _ENUM_H_ */ -- cgit v1.2.3