WIP Timezone support

* BCountry can list the timezones applicable for the country
 * BCountry can give its name (for example France), or LocaleName (french (France)). The second one will later be moved to BLocale class along with 
most of the locale settings ; but this needs a bit of refactoring.
 * The Locale preflet now uses LocaleName instead of Name, since it deals with locales. The time preflet will want only country names, without te 
language information, for example.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37690 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adrien Destugues
2010-07-22 12:47:00 +00:00
parent 6600877a5f
commit a03aca6e06
5 changed files with 73 additions and 30 deletions
+5
View File
@@ -8,6 +8,7 @@
class BBitmap;
class BMessage;
namespace icu_44 {
class DateFormat;
@@ -41,6 +42,7 @@ class BCountry {
virtual ~BCountry();
virtual bool Name(BString&) const;
bool LocaleName(BString&) const;
const char* Code() const;
status_t GetIcon(BBitmap* result);
@@ -106,6 +108,9 @@ class BCountry {
bool MonGrouping(BString&) const;
virtual int32 MonFracDigits() const;
// timezones
status_t GetTimeZones(BMessage* timezones);
private:
icu_44::DateFormat* fICULongDateFormatter;
icu_44::DateFormat* fICUShortDateFormatter;
+2
View File
@@ -53,6 +53,8 @@ class BLocaleRoster {
// the message contains one or more 'language'-string-fields
// which contain the language-name(s)
status_t GetAvailableCountries(BMessage *) const;
status_t GetInstalledCatalogs(BMessage *, const char* sigPattern = NULL,
const char* langPattern = NULL, int32 fingerprint = 0) const;
// the message contains...