From b3ae7efcb9adb1de3d02f0753e2a79888bdb71ac Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 17 Oct 2021 20:33:14 +0300 Subject: FontPack management via "about:fonts" --- src/lang.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lang.c') 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) { const char *formatCStrs_Lang(const char *formatMsgId, size_t count) { return format_CStr(cstrCount_Lang(formatMsgId, (int) count), count); } + +const char *format_Lang(const char *formatTextWithIds, ...) { + iBlock *msg = new_Block(0); + va_list args; + va_start(args, formatTextWithIds); + vprintf_Block(msg, translateCStr_Lang(formatTextWithIds), args); + va_end(args); + return cstr_Block(collect_Block(msg)); +} -- cgit v1.2.3