diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-17 20:33:14 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-17 20:33:14 +0300 |
commit | b3ae7efcb9adb1de3d02f0753e2a79888bdb71ac (patch) | |
tree | 57fb9f82f2d19a1c8e6d1aa85865f9df210e2c4b /src/lang.c | |
parent | 2e2b823bfb5d34d42c6b6c1b289193c854459b45 (diff) |
FontPack management via "about:fonts"
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 | } | ||