summaryrefslogtreecommitdiff
path: root/src/lang.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-17 20:33:14 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-17 20:33:14 +0300
commitb3ae7efcb9adb1de3d02f0753e2a79888bdb71ac (patch)
tree57fb9f82f2d19a1c8e6d1aa85865f9df210e2c4b /src/lang.c
parent2e2b823bfb5d34d42c6b6c1b289193c854459b45 (diff)
FontPack management via "about:fonts"
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}