Introducing a Locale option to display localized filesystem entries (primarily apps and folders) in Deskbar, Tracker, etc. Making use of this in Deskbar's list of apps. The option currently defaults to off, to avoid exposing everyone to unfinished work.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40918 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -65,6 +65,8 @@ public:
|
||||
// Get the catalog for the calling image
|
||||
// (that needs to link with liblocalestub.a)
|
||||
|
||||
bool IsFilesystemTranslationPreferred() const;
|
||||
|
||||
static const char* kCatLangAttr;
|
||||
static const char* kCatSigAttr;
|
||||
static const char* kCatFingerprintAttr;
|
||||
|
||||
@@ -44,6 +44,7 @@ public:
|
||||
// the message contains one or more
|
||||
// 'language'-string-fields which
|
||||
// contain the language-name(s)
|
||||
status_t SetFilesystemTranslationPreferred(bool preferred);
|
||||
|
||||
status_t GetSystemCatalog(BCatalogAddOn** catalog) const;
|
||||
|
||||
@@ -110,6 +111,8 @@ struct RosterData {
|
||||
|
||||
BLocale fDefaultLocale;
|
||||
BTimeZone fDefaultTimeZone;
|
||||
|
||||
bool fIsFilesystemTranslationPreferred;
|
||||
|
||||
bool fAreResourcesLoaded;
|
||||
BResources fResources;
|
||||
@@ -133,6 +136,8 @@ struct RosterData {
|
||||
const BFormattingConventions& convetions);
|
||||
status_t SetDefaultTimeZone(const BTimeZone& zone);
|
||||
status_t SetPreferredLanguages(const BMessage* msg);
|
||||
status_t SetFilesystemTranslationPreferred(
|
||||
bool preferred);
|
||||
private:
|
||||
status_t _Initialize();
|
||||
|
||||
@@ -156,6 +161,8 @@ private:
|
||||
BMessage* message) const;
|
||||
status_t _AddPreferredLanguagesToMessage(
|
||||
BMessage* message) const;
|
||||
status_t _AddFilesystemTranslationPreferenceToMessage(
|
||||
BMessage* message) const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user