summaryrefslogtreecommitdiffstats
path: root/src/libr-i18n.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libr-i18n.h')
-rw-r--r--src/libr-i18n.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libr-i18n.h b/src/libr-i18n.h
new file mode 100644
index 0000000..5b61546
--- /dev/null
+++ b/src/libr-i18n.h
@@ -0,0 +1,14 @@
+#ifndef __LIBR_I18N_H
+#define __LIBR_I18N_H
+
+#include "libr.h"
+#include "gettext.h"
+
+#define _(string) gettext(string)
+/* for strings used in structures (must manually call gettext!): */
+#define N_(string) (string)
+
+int libr_i18n_autoload(const char *domain);
+int libr_i18n_load(libr_file *handle, const char *domain);
+
+#endif /* __LIBR_I18N_H */