summaryrefslogtreecommitdiff
path: root/src/utils/gettext.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-01-06 14:33:20 +0100
committerPhilipp Sehmisch <crush@themanaworld.org>2009-01-06 16:40:46 +0100
commit6b60673b0805fbab747924d1a0b6d9c66fc96f64 (patch)
treee40cc55a4d952bfb9bc89a41c3205c1d7bd90616 /src/utils/gettext.h
parent090b4893a57a1b7e9c83f7db043843d35016fcff (diff)
downloadmana-6b60673b0805fbab747924d1a0b6d9c66fc96f64.tar.gz
mana-6b60673b0805fbab747924d1a0b6d9c66fc96f64.tar.bz2
mana-6b60673b0805fbab747924d1a0b6d9c66fc96f64.tar.xz
mana-6b60673b0805fbab747924d1a0b6d9c66fc96f64.zip
Added support for animated tiles.
Diffstat (limited to 'src/utils/gettext.h')
-rw-r--r--src/utils/gettext.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/utils/gettext.h b/src/utils/gettext.h
new file mode 100644
index 00000000..0cd9114b
--- /dev/null
+++ b/src/utils/gettext.h
@@ -0,0 +1,44 @@
+/*
+ * The Mana World
+ * Copyright 2007 The Mana World Development Team
+ *
+ * This file is part of The Mana World.
+ *
+ * The Mana World is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * The Mana World is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with The Mana World; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef _TMW_UTILS_GETTEXT_H
+#define _TMW_UTILS_GETTEXT_H
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#if ENABLE_NLS
+
+#include <libintl.h>
+
+#define _(s) ((char const *)gettext(s))
+#define N_(s) ((char const *)s)
+
+#else
+
+#define gettext(s) ((char const *)s)
+#define _(s) ((char const *)s)
+#define N_(s) ((char const *)s)
+
+#endif
+
+#endif