Be a bit more helpful when calling getString() on a string with no localization

This commit is contained in:
Dan Stillman 2006-06-26 20:41:09 +00:00
parent 4242c62b1b
commit 031d78eeee

View file

@ -156,7 +156,13 @@ var Scholar = new function(){
function getString(name){
return _localizedStringBundle.GetStringFromName(name);
try {
var l10n = _localizedStringBundle.GetStringFromName(name);
}
catch (e){
throw ('Localized string not available for ' + name);
}
return l10n;
}