* Extend the Model class with a method bool HasLocalizedName().

* Disallow renaming of entries with localized names for now - this is meant to be temporary - and so far only in Tracker's Info window. Renames do not result in a change, visually, as the localized name hides the real name, and results in a bad user experience. One could possibly allow renames of the localized name, writing it back to the catalog. I've experimented with using BCatalogAddOn::SetString() but haven't been able to make it stick yet.
* Disallow renaming Trash in Tracker's Info window via Command-E.
* Adjust the argument order of BLocaleRoster::GetLocalizedFileName().
* Add a BLocaleRoster::GetLocalizedFileName() variant to look up another app's name given its signature and unlocalized, canonical name.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41126 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jonas Sundström
2011-03-27 18:38:05 +00:00
parent 6ccba002a8
commit ee6a2e5589
8 changed files with 98 additions and 46 deletions
+10 -2
View File
@@ -68,10 +68,14 @@ public:
bool IsFilesystemTranslationPreferred() const;
status_t GetLocalizedFileName(const entry_ref& ref,
BString& localizedFileName,
status_t GetLocalizedFileName(BString& localizedFileName,
const entry_ref& ref,
bool traverse = false);
status_t GetLocalizedFileName(BString& localizedFileName,
const char* signature, const char* context,
const char* string);
static const char* kCatLangAttr;
static const char* kCatSigAttr;
static const char* kCatFingerprintAttr;
@@ -82,6 +86,10 @@ public:
private:
static BCatalog* _GetCatalog(BCatalog* catalog,
vint32* catalogInitStatus);
status_t _PrepareCatalogEntry(const entry_ref& ref,
BString& signature, BString& context,
BString& string, bool traverse);
};