added desktop, icon, hints
[hex-a-hop.git] / i18n.h
blob80a7707ec34f61540641a67457d7f9b25639f0a8
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 #else
37 #define _(String) (String)
38 #define gettext(String) (String)
39 #define ngettext(Singular,Plural,Number) (Number!=1?Plural:Singular)
41 class GetTextInit
43 public:
44 const char *GetEncoding() const { return ""; }
47 #endif
49 static GetTextInit gettext_init;
51 #endif