summaryrefslogtreecommitdiff
path: root/src/i18n.c
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-05-24 22:08:02 -0300
committerEuAndreh <eu@euandre.org>2024-05-24 22:10:24 -0300
commit8ebb7b875a0bc5a417ce62238afcc79c366b5fa1 (patch)
tree13a37aaad7f11831196edfbdede27083eb0bd4fe /src/i18n.c
parentsrc/i18n.c: Remove leading empty string in MSGS[] (diff)
downloadpindaiba-8ebb7b875a0bc5a417ce62238afcc79c366b5fa1.tar.gz
pindaiba-8ebb7b875a0bc5a417ce62238afcc79c366b5fa1.tar.xz
src/catalog.h: Do bounds checking on calls to s()
Diffstat (limited to 'src/i18n.c')
-rw-r--r--src/i18n.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/i18n.c b/src/i18n.c
index 4f5f748..5ecc47f 100644
--- a/src/i18n.c
+++ b/src/i18n.c
@@ -54,3 +54,8 @@ const char *
_(const int msg_id) {
return s(MSGS, msg_id);
}
+
+int
+i18n_init(void) {
+ return i18n_init_msgs(MSGS);
+}