summaryrefslogtreecommitdiff
path: root/src/lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lang.c')
-rw-r--r--src/lang.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lang.c b/src/lang.c
index a867f911..1dac4201 100644
--- a/src/lang.c
+++ b/src/lang.c
@@ -247,3 +247,12 @@ const char *formatCStr_Lang(const char *formatMsgId, int count) {
247const char *formatCStrs_Lang(const char *formatMsgId, size_t count) { 247const 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
251const 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}