Use Zotero.appName for localization in note-editor

Fixes #2073
This commit is contained in:
Martynas Bagdonas 2021-05-27 13:37:26 +03:00
parent 6be797bc14
commit ded077dc8e
3 changed files with 4 additions and 2 deletions

View file

@ -106,6 +106,8 @@ class EditorInstance {
hasBackup: note && !Zotero.Notes.hasSchemaVersion(note)
|| !!await Zotero.NoteBackups.getNote(this._item.id),
localizedStrings: {
// Figure out a better way to pass this
'zotero.appName': Zotero.appName,
...Zotero.Intl.getPrefixedStrings('general.'),
...Zotero.Intl.getPrefixedStrings('noteEditor.')
}

View file

@ -1268,7 +1268,7 @@ noteEditor.paste = Paste
noteEditor.rightToLeft = Right to Left
noteEditor.leftToRight = Left to Right
noteEditor.viewNoteBackup = View Note Backup
noteEditor.updateNotice = This note was edited with a newer version of Zotero.\nPlease update Zotero to make changes.
noteEditor.updateNotice = This note was edited with a newer version of %1$S.\nPlease update %1$S to make changes.
noteEditor.enterLink = Enter Link
noteEditor.heading1 = Heading 1
noteEditor.heading2 = Heading 2

@ -1 +1 @@
Subproject commit 6aa6dd3388b0b9c38778fcbe09245cdbab5d4d40
Subproject commit 6f4e81b11788a1059ce6c2cb5f70c30d5578d4de