Merge branch 'better-than-par'
[hex-a-hop.git] / i18n.h
blobc3d1b8a62744082f70177f321ac3b5d61edca5b1
1 // (c) 2007 Miriam Ruiz <little_miry@yahoo.es>
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Library General Public
5 // License as published by the Free Software Foundation; either
6 // version 2 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Library General Public License for more details.
13 // You should have received a copy of the GNU Library General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
16 // USA.
18 #ifndef _I18N_H
19 #define _I18N_H
21 #ifdef USE_GETTEXT
23 #include <libintl.h>
24 #define _(String) gettext (String)
26 class GetTextInit
28 protected:
29 static bool IsInit;
30 public:
31 GetTextInit();
32 const char *GetEncoding() const;
35 static GetTextInit gettext_init;
37 #else
39 #define _(String) String
41 #endif
43 #endif