summaryrefslogtreecommitdiff
path: root/src/i18n.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/i18n.c')
-rw-r--r--src/i18n.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/i18n.c b/src/i18n.c
index 0a9d3be..5d5c33a 100644
--- a/src/i18n.c
+++ b/src/i18n.c
@@ -2,6 +2,8 @@
#include <stdio.h>
+#include "catalog.h"
+
#include "i18n.h"
@@ -47,3 +49,8 @@ MSGS[] = {
[MSG_ERR_VECTOR_OUT_OF_BOUNDS]= "idx (%ld) is beyond bounds (%ld)\n",
NULL
};
+
+const char *
+_(const int msg_id) {
+ return s(MSGS, msg_id);
+}