i18n: Add support for locale-dependent fonts

Currently it ws not decided where to put fonts, but if you put BDF files into
themepath, they will get picked up.

The font name has to contain same codepage specification as in the .po file,
i.e. fixed5x8-iso-8859-5.bdf for Cyrillic codepage. In case the font does not
exist, default will be used.

All built in fonts get proper names.

TODO: Currently there is a bug with our font cacher. Font clR6x12-iso-8859-5
is empty after loading from FCC file. Reason is unknown.

svn-id: r50448
This commit is contained in:
Eugene Sandulenko 2010-06-28 15:17:10 +00:00
parent 8410dbab53
commit 0e7ccb896d
10 changed files with 891 additions and 800 deletions

View file

@ -130,6 +130,10 @@ const char *TranslationManager::getTranslation(const char *message) {
return po2c_gettext(message);
}
const char *TranslationManager::getCurrentCharset() {
return po2c_getcharset();
}
String TranslationManager::getTranslation(const String &message) {
return po2c_gettext(message.c_str());
}