summaryrefslogtreecommitdiff
path: root/src/i18n.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/i18n.c')
-rw-r--r--src/i18n.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/i18n.c b/src/i18n.c
index 5ecc47f..06b828f 100644
--- a/src/i18n.c
+++ b/src/i18n.c
@@ -1,12 +1,14 @@
-#include "config.h"
+#include <s.h>
#include <stdio.h>
-#include "catalog.h"
+#include "meta.h"
+#include "msgs.h"
#include "i18n.h"
+
const char *const
MSGS[] = {
[MSG_USAGE_FIRST]="Usage:\n",
@@ -26,11 +28,11 @@ MSGS[] = {
[MSG_HELP_10]="\n",
[MSG_HELP_11]="Run the " NAME "(1) parser program.\n",
[MSG_HELP_12]="\n",
- [MSG_HELP_13]="Here is the explanation for what it does, and the synopsis\n",
- [MSG_HELP_14]="of its usage.\n",
+ [MSG_HELP_13]="Here is the explanation for what it does, and the\n",
+ [MSG_HELP_14]="synopsis of its usage.\n",
[MSG_HELP_15]="\n",
[MSG_HELP_16]="See \"man " NAME "\" for usage information and\n",
- [MSG_HELP_17]="\"man " NAME ".tutorial\" for a beginner introduction.\n",
+ [MSG_HELP_17]="\"man " NAME ".tutorial\" for a beginner intro.\n",
[MSG_HELP_18]="\n",
[MSG_HELP_19]="\n",
[MSG_HELP_20]="Examples:\n",
@@ -50,12 +52,14 @@ MSGS[] = {
NULL
};
+
+
const char *
_(const int msg_id) {
- return s(MSGS, msg_id);
+ return msgs_string(MSGS, msg_id);
}
int
i18n_init(void) {
- return i18n_init_msgs(MSGS);
+ return msgs_init(MSGS);
}