Update reader submodule and support overriding FTL with current locale

This commit is contained in:
Martynas Bagdonas 2025-06-25 16:38:34 +03:00
parent 4dbe0f7842
commit 355c61e6d8
2 changed files with 5 additions and 7 deletions

View file

@ -35,11 +35,6 @@ const ZipReader = Components.Constructor(
Components.utils.import("resource://gre/modules/InlineSpellChecker.jsm");
let ftl = [
Zotero.File.getContentsFromURL(`chrome://zotero/locale/zotero.ftl`),
Zotero.File.getContentsFromURL(`chrome://zotero/locale/reader.ftl`),
];
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Invalid_array_length
const ARRAYBUFFER_MAX_LENGTH = Services.appinfo.is64Bit
? Math.pow(2, 33)
@ -211,7 +206,10 @@ class ReaderInstance {
contextPaneOpen: this._contextPaneOpen,
rtl: Zotero.rtl,
fontSize: Zotero.Prefs.get('fontSize'),
ftl,
ftl: [
Zotero.File.getContentsFromURL('chrome://zotero/locale/zotero.ftl'),
Zotero.File.getContentsFromURL('chrome://zotero/locale/reader.ftl'),
],
showAnnotations: true,
textSelectionAnnotationMode: Zotero.Prefs.get('reader.textSelectionAnnotationMode'),
customThemes: Zotero.SyncedSettings.get(Zotero.Libraries.userLibraryID, 'readerCustomThemes') ?? [],

2
reader

@ -1 +1 @@
Subproject commit b23aeeefc36f03df02457d79f7f7e241881089c0
Subproject commit bec7d4396df3d7e9e508d209a1f058549d842d39