Bug 386322: Localized metadata fails for multiple properties (contributor,

translator, developer). r=robstrong


git-svn-id: svn://10.0.0.236/trunk@229181 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dtownsend%oxymoronical.com
2007-07-02 19:33:39 +00:00
parent 9f2867e5a8
commit 39a384f097

View File

@@ -8046,12 +8046,6 @@ ExtensionsDataSource.prototype = {
* to specify localized text for each of these properties.
*/
_getLocalizablePropertyValue: function(item, property) {
var localized = this._getLocalizedResource(item);
if (localized) {
var value = this._inner.GetTarget(localized, property, true);
return value ? value : EM_L("");
}
// These are localizable properties that a language pack supplied by the
// Extension may override.
var prefName = PREF_EM_EXTENSION_FORMAT.replace(/%UUID%/,
@@ -8065,6 +8059,12 @@ ExtensionsDataSource.prototype = {
}
catch (e) {
}
var localized = this._getLocalizedResource(item);
if (localized) {
var value = this._inner.GetTarget(localized, property, true);
return value ? value : EM_L("");
}
return null;
},
@@ -8166,10 +8166,6 @@ ExtensionsDataSource.prototype = {
* to specify localized text for each of these properties.
*/
_getLocalizablePropertyValues: function(item, property) {
var localized = this._getLocalizedResource(item);
if (localized)
return this._inner.GetTargets(localized, property, true);
// These are localizable properties that a language pack supplied by the
// Extension may override.
var values = [];
@@ -8196,7 +8192,17 @@ ExtensionsDataSource.prototype = {
break;
}
}
return values.length > 0 ? values : null;
if (values.length > 0)
return values;
var localized = this._getLocalizedResource(item);
if (localized) {
var targets = this._inner.GetTargets(localized, property, true);
while (targets.hasMoreElements())
values.push(targets.getNext());
return values;
}
return null;
},
/**