Update more try-wrapped calls to getString
This commit is contained in:
parent
82228a1072
commit
470d9cd7c2
2 changed files with 8 additions and 2 deletions
|
@ -1575,7 +1575,10 @@ function formatColumnName(column) {
|
|||
}
|
||||
else if (/^[^\s]+\w\.\w[^\s]+$/.test(column.label)) {
|
||||
try {
|
||||
return Zotero.getString(column.label);
|
||||
let labelString = Zotero.getString(column.label);
|
||||
if (labelString !== column.label) {
|
||||
return labelString;
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
// ignore missing string
|
||||
|
|
|
@ -89,7 +89,10 @@ Zotero.Exception.Alert.prototype = {
|
|||
get title() {
|
||||
if(this._title) {
|
||||
try {
|
||||
return Zotero.getString(this._title);
|
||||
let titleString = Zotero.getString(this._title);
|
||||
if (titleString !== this._title) {
|
||||
return titleString;
|
||||
}
|
||||
} catch(e) {}
|
||||
}
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue