Avoid calling formatStringByName with no formats b=379889 r=smontagu sr=biesi
git-svn-id: svn://10.0.0.236/trunk@226176 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -840,7 +840,8 @@ nsProgressDialog.prototype = {
|
||||
.getService( Components.interfaces.nsIStringBundleService )
|
||||
.createBundle( "chrome://global/locale/nsProgressDialog.properties");
|
||||
}
|
||||
return this.mBundle.formatStringFromName( propertyId, strings, len );
|
||||
return len ? this.mBundle.formatStringFromName( propertyId, strings, len )
|
||||
: this.mBundle.getStringFromName( propertyId );
|
||||
},
|
||||
|
||||
// Get localizable string (from dialog <data> elements).
|
||||
|
||||
Reference in New Issue
Block a user