Fixed a locale detection problem on OSX.

OSX has the same problem as Windows with locales.
This commit is contained in:
Mark de Wever 2008-11-15 18:06:15 +00:00
parent e3655fb87c
commit b7f3df91fb
2 changed files with 5 additions and 3 deletions

View file

@ -40,6 +40,8 @@ Version 1.5.5+svn:
* Help menu:
* ability upgrades for max-level advancements are now listed (bug #10337)
* Language and i18n:
* Fixed a problem on OSX where the locales detection didn't
work; all languages are now enabled for OSX.
* updated translations: Catalan, Czech, Danish, Finnish, Galician, German,
Hungarian, Italian, Lithuanian, Racv, Slovak, Turkish
* new translations: Valencian (the previous non-standard translation has

View file

@ -99,9 +99,9 @@ bool language_def::operator== (const language_def& a) const
bool language_def::available() const
{
#ifdef _WIN32
// Under windows all locales are available and testing for it seems to fail
// so just return true.
#if defined(_WIN32) || defined(__APPLE__)
// Under windows and OSX all locales are available and testing for it seems
// to fail so just return true.
return true;
#endif