Remove superfluous function.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41147 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -72,10 +72,6 @@ public:
|
|||||||
const entry_ref& ref,
|
const entry_ref& ref,
|
||||||
bool traverse = false);
|
bool traverse = false);
|
||||||
|
|
||||||
status_t GetLocalizedFileName(BString& localizedFileName,
|
|
||||||
const char* signature, const char* context,
|
|
||||||
const char* string);
|
|
||||||
|
|
||||||
static const char* kCatLangAttr;
|
static const char* kCatLangAttr;
|
||||||
static const char* kCatSigAttr;
|
static const char* kCatSigAttr;
|
||||||
static const char* kCatFingerprintAttr;
|
static const char* kCatFingerprintAttr;
|
||||||
|
|||||||
@@ -412,30 +412,7 @@ BLocaleRoster::GetLocalizedFileName(BString& localizedFileName,
|
|||||||
if (status != B_OK)
|
if (status != B_OK)
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
return GetLocalizedFileName(localizedFileName, signature, context, string);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*! \brief Looks up a localized filename from a catalog.
|
|
||||||
\param localizedFileName A pre-allocated BString object for the result
|
|
||||||
of the lookup.
|
|
||||||
\param signature The "x-vnd..." part of an application signature.
|
|
||||||
\param context A catalog context. Likely B_TRANSLATE_SYSTEM_NAME_CONTEXT.
|
|
||||||
\param string A catalog string entry. Likely the unlocalized app name.
|
|
||||||
\return
|
|
||||||
- \c B_OK: success
|
|
||||||
- \c B_ENTRY_NOT_FOUND: failure. Catalog entry not found in catalog, etc
|
|
||||||
- other error codes: failure
|
|
||||||
|
|
||||||
Lookup is done for the top preferred language, only.
|
|
||||||
Lookup fails if a comment is present in the catalog entry.
|
|
||||||
*/
|
|
||||||
status_t
|
|
||||||
BLocaleRoster::GetLocalizedFileName(BString& localizedFileName,
|
|
||||||
const char* signature, const char* context, const char* string)
|
|
||||||
{
|
|
||||||
BCatalog catalog(signature);
|
BCatalog catalog(signature);
|
||||||
|
|
||||||
const char* temp = catalog.GetString(string, context);
|
const char* temp = catalog.GetString(string, context);
|
||||||
|
|
||||||
if (temp == NULL)
|
if (temp == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user