Update csl validator for CSL 1.0.2 (#2493)

This commit is contained in:
Adomas Ven 2022-04-20 01:42:48 +03:00 committed by GitHub
parent 3f10e4c064
commit 7b0d6951d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1607 additions and 4 deletions

View file

@ -444,7 +444,7 @@ Zotero.Styles = new function() {
Components.utils.import("resource://gre/modules/Services.jsm");
var shouldInstall = Services.prompt.confirmEx(null,
Zotero.getString('styles.install.title'),
Zotero.getString('styles.validationWarning', origin),
Zotero.getString('styles.validationWarning', [origin, Zotero.appName]),
(Services.prompt.BUTTON_POS_0) * (Services.prompt.BUTTON_TITLE_OK)
+ (Services.prompt.BUTTON_POS_1) * (Services.prompt.BUTTON_TITLE_CANCEL)
+ Services.prompt.BUTTON_POS_1_DEFAULT + Services.prompt.BUTTON_DELAY_ENABLE,

View file

@ -985,7 +985,7 @@ styles.installStyle = Install style "%1$S" from %2$S?
styles.updateStyle = Update existing style "%1$S" with "%2$S" from %3$S?
styles.installed = The style "%S" was installed successfully.
styles.installError = "%S" is not a valid style file.
styles.validationWarning = "%S" is not a valid CSL 1.0.1 style file, and may not work properly with Zotero.\n\nAre you sure you want to continue?
styles.validationWarning = "%S" is not a valid CSL 1.0.2 style file, and may not work properly with %S.\n\nAre you sure you want to continue?
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?

File diff suppressed because one or more lines are too long