You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cita preferences are not translated to most of the languages we support.
Apparently they are only translated to English (en-US) and German (de), and all other translations are ignored.
Because both en-US and de are supported locales by Zotero, I guess this may be related to the way how we support locales not supported by Zotero (see 15de93b). Note, however, that they are not translated to zh-Hant and zh-Hans, even though these are supported by Zotero, and we have preferences translations for these languages.
Maybe this could be fixed if we move that piece of code from src/utils/locale.ts to static/bootstrap.js, as suggested here?
Note that translations do work in citationEditor.xhtml, citationImporter.xhtlm and identifierImporter.xhtml (have not tried selector.xhtml).
However, these use Wikicite.getString() (which in turn relies on our custom Localization object set up by our initLocale function), as opposed to preferences.xhtml which relies on native Fluent markup-based approach.
Noting too that Zotero.plugins.registerLocales() seems to be running before the extension bootstrap.js' startup() function. So moving the aforementioned code into bootstrap.js will probably not fix this issue.
diegodlh
changed the title
Cita preferences not translated to some languages
Cita preferences (and item pane section header and sidenav) not translated to some languages
Aug 23, 2024
Cita preferences are not translated to most of the languages we support.
Apparently they are only translated to English (
en-US
) and German (de
), and all other translations are ignored.Because both
en-US
andde
are supported locales by Zotero, I guess this may be related to the way how we support locales not supported by Zotero (see 15de93b). Note, however, that they are not translated tozh-Hant
andzh-Hans
, even though these are supported by Zotero, and we have preferences translations for these languages.Maybe this could be fixed if we move that piece of code from
src/utils/locale.ts
tostatic/bootstrap.js
, as suggested here?The thread I opened in the zotero-dev mailing list may provide further ideas: https://groups.google.com/g/zotero-dev/c/GUovOSrtQy4
The text was updated successfully, but these errors were encountered: