d1d8fda637
* BLocale now keeps language and country completely separate and mixes the formatting conventions into the current language's locale when formatting dates and times (needs to be done for number- and currency-formatting, too, since the digits may not be in the preferred language) * optimized fetching of the flag icons such that they are all loaded in one go (by the locale roster) - this alone speeds up the Locale preflet considerably * worked on fixing the language confusion in the Locale preflet * fixed a couple of bugs in the Locale preflet that would lead to illegal characters being displayed in the date-subpart menus git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39013 a95241bf-73f2-0310-859d-f6bbb57e9c96
38 lines
520 B
C++
38 lines
520 B
C++
/*
|
|
* Copyright 2010, Oliver Tappe <zooey@hirschkaefer.de>
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _LANGUAGE_PRIVATE_H
|
|
#define _LANGUAGE_PRIVATE_H
|
|
|
|
|
|
#include <Language.h>
|
|
|
|
|
|
class BLanguage::Private {
|
|
public:
|
|
Private(const BLanguage* language = NULL)
|
|
:
|
|
fLanguage(language)
|
|
{
|
|
}
|
|
|
|
void
|
|
SetTo(const BLanguage* language)
|
|
{
|
|
fLanguage = language;
|
|
}
|
|
|
|
icu_44::Locale*
|
|
ICULocale()
|
|
{
|
|
return fLanguage->fICULocale;
|
|
}
|
|
|
|
private:
|
|
const BLanguage* fLanguage;
|
|
};
|
|
|
|
|
|
#endif // _LANGUAGE_PRIVATE_H
|