summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-06-18 00:19:39 +0200
committerHaru <haru@dotalux.com>2016-06-25 17:29:50 +0200
commit9164ea7ec938958245e1ceb75035f90500c8a7c8 (patch)
treeca80feaddfdcd859163e3977d4569d32a46feda1 /src/plugins
parent17f4709adeb4d9159359d901b1743de56348e7e4 (diff)
downloadhercules-9164ea7ec938958245e1ceb75035f90500c8a7c8.tar.gz
hercules-9164ea7ec938958245e1ceb75035f90500c8a7c8.tar.bz2
hercules-9164ea7ec938958245e1ceb75035f90500c8a7c8.tar.xz
hercules-9164ea7ec938958245e1ceb75035f90500c8a7c8.zip
Added mesf() command (combination of mes() and sprintf())
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/generate-translations.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/generate-translations.c b/src/plugins/generate-translations.c
index 7928fec9c..0f69c69a1 100644
--- a/src/plugins/generate-translations.c
+++ b/src/plugins/generate-translations.c
@@ -116,7 +116,9 @@ void script_add_translatable_string_posthook(const struct script_string_buf *str
|| script->syntax.lang_macro_active
) {
is_translatable_string = true;
- } else if (script->syntax.lang_macro_fmtstring_active) {
+ } else if (script->syntax.last_func == script->buildin_mesf_offset
+ || script->syntax.lang_macro_fmtstring_active
+ ) {
is_translatable_fmtstring = true;
}
}