summaryrefslogtreecommitdiff
path: root/src/lang.h
blob: bf4c16d15511935c380972cfac7fee6b9f8e0ccb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <the_Foundation/string.h>

void            init_Lang       (void);
void            deinit_Lang     (void);

void            setCurrent_Lang (const char *language);
iRangecc        range_Lang      (iRangecc msgId);

const char *    cstr_Lang       (const char *msgId);
const iString * string_Lang     (const char *msgId);

void            translate_Lang      (iString *textWithIds);
const char *    translateCStr_Lang  (const char *textWithIds);

const char *    cstrCount_Lang      (const char *msgId, int count);
const char *    formatCStr_Lang     (const char *formatMsgId, int count);
const char *    formatCStrs_Lang    (const char *formatMsgId, size_t count);