summaryrefslogtreecommitdiffstats
path: root/widgets/src/intl.h
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/src/intl.h')
-rw-r--r--widgets/src/intl.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/widgets/src/intl.h b/widgets/src/intl.h
new file mode 100644
index 000000000..30bca59dc
--- /dev/null
+++ b/widgets/src/intl.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2011 Red Hat, Inc.
+ *
+ * This program 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
+ * (at your option) any later version.
+ *
+ * This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Author: Chris Lumens <clumens@redhat.com>
+ */
+
+#ifndef _INTL_H
+#define _INTL_H
+
+#include "../config.h"
+#include "gettext.h"
+
+#define _(x) gettext(x)
+
+#ifdef ENABLE_NLS
+#define P_(String) g_dgettext(GETTEXT_PACKAGE "-properties",String)
+#else
+#define P_(String) (String)
+#endif
+
+#endif