Removed unnecessary localized string for style installation error
Would only be used for an external request that didn't pass along a filename or origin, so "null" (or whatever it shows up as) is fine
This commit is contained in:
parent
4f44cc10ce
commit
6900a5ccf8
2 changed files with 2 additions and 4 deletions
|
@ -246,7 +246,6 @@ Zotero.Styles = new function() {
|
|||
*/
|
||||
this.install = Zotero.Promise.coroutine(function* (style, origin, silent=false) {
|
||||
var styleTitle;
|
||||
origin = origin || Zotero.getString('styles.unknownOrigin');
|
||||
|
||||
try {
|
||||
if (style instanceof Components.interfaces.nsIFile) {
|
||||
|
@ -262,9 +261,9 @@ Zotero.Styles = new function() {
|
|||
// Unless user cancelled, show an alert with the error
|
||||
if(typeof error === "object" && error instanceof Zotero.Exception.UserCancelled) return;
|
||||
if(typeof error === "object" && error instanceof Zotero.Exception.Alert) {
|
||||
error.log();
|
||||
Zotero.logError(error);
|
||||
if (silent) {
|
||||
throw (error)
|
||||
throw error;
|
||||
} else {
|
||||
error.present();
|
||||
}
|
||||
|
|
|
@ -832,7 +832,6 @@ styles.validationWarning = "%S" is not a valid CSL 1.0.1 style file, and may n
|
|||
styles.installSourceError = %1$S references an invalid or non-existent CSL file at %2$S as its source.
|
||||
styles.deleteStyle = Are you sure you want to delete the style "%1$S"?
|
||||
styles.deleteStyles = Are you sure you want to delete the selected styles?
|
||||
styles.unknownOrigin = External Style
|
||||
|
||||
styles.abbreviations.title = Load Abbreviations
|
||||
styles.abbreviations.parseError = The abbreviations file "%1$S" is not valid JSON.
|
||||
|
|
Loading…
Reference in a new issue