summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-01-03 23:45:11 +0100
committerDastgir <dastgirp@gmail.com>2019-10-02 12:12:37 +0530
commitddb11b5ea7997173128f00796b1b90a0b1985c9e (patch)
tree987f991a799151011904ae109b3cb3e91d2bbf91 /src/plugins
parent557384a0628c82303db29ff0b81ac77c8fdb5a1d (diff)
downloadhercules-ddb11b5ea7997173128f00796b1b90a0b1985c9e.tar.gz
hercules-ddb11b5ea7997173128f00796b1b90a0b1985c9e.tar.bz2
hercules-ddb11b5ea7997173128f00796b1b90a0b1985c9e.tar.xz
hercules-ddb11b5ea7997173128f00796b1b90a0b1985c9e.zip
Improve format of the generated messages_conf.pot file
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/generate-translations.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/generate-translations.c b/src/plugins/generate-translations.c
index d3c76eac2..14a3c0a4d 100644
--- a/src/plugins/generate-translations.c
+++ b/src/plugins/generate-translations.c
@@ -330,9 +330,13 @@ bool msg_config_read_posthook(bool retVal, const char *cfg_name, bool allow_over
for (i = 0; i < MAX_MSG; i++) {
if (atcommand->msg_table[0][i] == NULL)
continue;
- fprintf(lang_export_fp, "msgctxt \"messages.conf\"\n"
+ fprintf(lang_export_fp, "\n#: conf/messages.conf\n"
+ "# %d: %s\n"
+ "#, c-format\n"
+ "msgctxt \"messages.conf\"\n"
"msgid \"%s\"\n"
"msgstr \"\"\n",
+ i, atcommand->msg_table[0][i],
atcommand->msg_table[0][i]
);
lang_export_stringcount_total++;