diff options
Diffstat (limited to 'src/lang.c')
-rw-r--r-- | src/lang.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -247,3 +247,12 @@ const char *formatCStr_Lang(const char *formatMsgId, int count) { | |||
247 | const char *formatCStrs_Lang(const char *formatMsgId, size_t count) { | 247 | const char *formatCStrs_Lang(const char *formatMsgId, size_t count) { |
248 | return format_CStr(cstrCount_Lang(formatMsgId, (int) count), count); | 248 | return format_CStr(cstrCount_Lang(formatMsgId, (int) count), count); |
249 | } | 249 | } |
250 | |||
251 | const char *format_Lang(const char *formatTextWithIds, ...) { | ||
252 | iBlock *msg = new_Block(0); | ||
253 | va_list args; | ||
254 | va_start(args, formatTextWithIds); | ||
255 | vprintf_Block(msg, translateCStr_Lang(formatTextWithIds), args); | ||
256 | va_end(args); | ||
257 | return cstr_Block(collect_Block(msg)); | ||
258 | } | ||