You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
695 B
18 lines
695 B
#pragma once |
|
|
|
#include <string> |
|
|
|
#define _(x) LanguageTranslate(x) |
|
#define ngettext(x, y, z) LanguagePluralTranslate(x, y, z) |
|
#define pgettext(context, x) LanguageParticularTranslate(context, x) |
|
#define N_(x) (x) |
|
#define P_(context, x) (x) |
|
|
|
bool HasTranslation(const std::string &locale); |
|
void LanguageInitialize(); |
|
const std::string &LanguageParticularTranslate(const char *context, const char *message); |
|
const std::string &LanguagePluralTranslate(const char *singular, const char *plural, int count); |
|
const std::string &LanguageTranslate(const char *key); |
|
|
|
// Chinese and Japanese, and Korean small font is 16px instead of a 12px one for readability. |
|
bool IsSmallFontTall();
|
|
|