changed: removed Languages::Land enum
now we set the languages in the config file: option locale_files, sample: locale_files = ( en, pl ) it represents the name of locale files (those from locale_dir directory) renamed config option: locale to locale_default git-svn-id: svn://ttmath.org/publicrep/winix/trunk@722 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -181,8 +181,6 @@ void winix_err_code(Info & i)
|
||||
|
||||
|
||||
|
||||
static std::wstring winix_error_key;
|
||||
|
||||
|
||||
void winix_is_err_in_locales(Info & i)
|
||||
{
|
||||
@@ -190,9 +188,7 @@ wchar_t buff[40];
|
||||
size_t buff_len = sizeof(buff) / sizeof(wchar_t);
|
||||
|
||||
swprintf(buff, buff_len, L"winix_err_%d", cur->request->status);
|
||||
winix_error_key = buff;
|
||||
|
||||
i.res = locale.IsKey(winix_error_key);
|
||||
i.res = locale.IsKey(buff);
|
||||
}
|
||||
|
||||
|
||||
@@ -202,9 +198,7 @@ wchar_t buff[40];
|
||||
size_t buff_len = sizeof(buff) / sizeof(wchar_t);
|
||||
|
||||
swprintf(buff, buff_len, L"winix_err_%d", cur->request->status);
|
||||
winix_error_key = buff;
|
||||
|
||||
i.out << locale.Get(winix_error_key);
|
||||
i.out << locale.Get(buff);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user