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)) {
|
else if (/^[^\s]+\w\.\w[^\s]+$/.test(column.label)) {
|
||||||
try {
|
try {
|
||||||
return Zotero.getString(column.label);
|
let labelString = Zotero.getString(column.label);
|
||||||
|
if (labelString !== column.label) {
|
||||||
|
return labelString;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
// ignore missing string
|
// ignore missing string
|
||||||
|
|
|
@ -89,7 +89,10 @@ Zotero.Exception.Alert.prototype = {
|
||||||
get title() {
|
get title() {
|
||||||
if(this._title) {
|
if(this._title) {
|
||||||
try {
|
try {
|
||||||
return Zotero.getString(this._title);
|
let titleString = Zotero.getString(this._title);
|
||||||
|
if (titleString !== this._title) {
|
||||||
|
return titleString;
|
||||||
|
}
|
||||||
} catch(e) {}
|
} catch(e) {}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue