-
-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Better Notes is talking half Russian to me #1094
Comments
Thanks for the report. It doesn't make sense, probably bug with Zotero. I'll see what I can do. |
@georgd: Could you open Tools -> Developer -> Run JavaScript, paste in |
(With the language set to Automatisch (Deutsch), that is) |
@AbeJellinek This is the output: {
"negotiateLanguages": function negotiateLanguages() { [native code] }
"requestedLocales": [
"0": "de-AT"
"1": "ru-AT"
]
"langNegStrategyMatching": 1
"appLocaleAsBCP47": "de"
"appLocalesAsBCP47": [
"0": "de"
"1": "ru-RU"
"2": "en-US"
]
"requestedLocale": "de-AT"
"availableLocales": [
"0": "eu-ES"
"1": "sr-RS"
"2": "ca-AD"
"3": "fi-FI"
"4": "en-AU"
"5": "el-GR"
"6": "fr-FR"
"7": "hu-HU"
"8": "nl-NL"
"9": "bg-BG"
"10": "ta"
"11": "ru-RU"
"12": "ro-RO"
"13": "de"
"14": "id-ID"
"15": "ko-KR"
"16": "lt-LT"
"17": "it-IT"
"18": "et-EE"
"19": "ja-JP"
"20": "pt-BR"
"21": "sk-SK"
"22": "pl-PL"
"23": "th-TH"
"24": "cs-CZ"
"25": "is-IS"
"26": "uk-UA"
"27": "zh-TW"
"28": "es-ES"
"29": "nb-NO"
"30": "fa"
"31": "zh-CN"
"32": "km"
"33": "da-DK"
"34": "br"
"35": "sv-SE"
"36": "ar"
"37": "en-CA"
"38": "tr-TR"
"39": "gl-ES"
"40": "en-GB"
"41": "en-US"
"42": "en-NZ"
"43": "sl-SI"
"44": "vi-VN"
"45": "pt-PT"
]
"QueryInterface": function QueryInterface() { [native code] }
"defaultLocale": "en-US"
"lastFallbackLocale": "en-US"
"appLocalesAsLangTags": [
"0": "de"
"1": "ru-RU"
"2": "en-US"
]
"regionalPrefsLocales": [
"0": "de-AT"
"1": "ru-AT"
]
"webExposedLocales": [
"0": "de-AT"
"1": "ru-AT"
]
"appLocaleAsLangTag": "de"
"isAppLocaleRTL": false
"packagedLocales": [
"0": "en-US"
"1": "ar"
"2": "bg-BG"
"3": "br"
"4": "ca-AD"
"5": "cs-CZ"
"6": "da-DK"
"7": "de"
"8": "el-GR"
"9": "en-AU"
"10": "en-CA"
"11": "en-GB"
"12": "en-NZ"
"13": "es-ES"
"14": "et-EE"
"15": "eu-ES"
"16": "fa"
"17": "fi-FI"
"18": "fr-FR"
"19": "gl-ES"
"20": "hu-HU"
"21": "id-ID"
"22": "is-IS"
"23": "it-IT"
"24": "ja-JP"
"25": "km"
"26": "ko-KR"
"27": "lt-LT"
"28": "nb-NO"
"29": "nl-NL"
"30": "pl-PL"
"31": "pt-BR"
"32": "pt-PT"
"33": "ro-RO"
"34": "ru-RU"
"35": "sk-SK"
"36": "sl-SI"
"37": "sr-RS"
"38": "sv-SE"
"39": "ta"
"40": "th-TH"
"41": "tr-TR"
"42": "uk-UA"
"43": "vi-VN"
"44": "zh-CN"
"45": "zh-TW"
]
"langNegStrategyFiltering": 0
"langNegStrategyLookup": 2
} |
Is it possible that you have a Russian language pack or keyboard installed on your computer? (System Settings -> Language and Region -> Preferred Languages; System Settings -> Keyboard -> Language input methods.) If you add English above Russian under Preferred Languages, this will likely be fixed. |
I just realized: Zotero seems to evaluate which keyboard layouts I have activated in MacOS. As I added Arabic just now, "requestedLocales" now reads: "requestedLocales": [
"0": "de-AT"
"1": "ru-AT"
"2": "ar-AT"
] |
It's Preferred Languages, not keyboards, but adding a keyboard also adds an entry to Preferred Languages automatically. You can delete Russian from Preferred Languages, or add English above it, without affecting your keyboards. |
(So basically I would say this is not a bug - your system is asking for Russian, Zotero is displaying Russian.) |
Oh, that’s nice. I just wanted to write that adding the English keyboard layout was a workaround rather than a fix. But removing the language from the preferred languages list is fine for me. Thanks! |
Or even better, thoroughly curate the list of preferred languages of which I haven't known until now :) |
@windingwind Now, the issue is gone. Definitely not the plugin’s fault but as @AbeJellinek says rather desired behaviour. |
My 2cts: It's definitly unexpected behavior IMO. I opened Zotero after not having used it in a while, found that Zotero and BN had been updated and found myself staring at the BN "introduction" (not sure how the series of small dialogs informing about BN's various functions is called) in Chinese, instead of my Windows' native German locale or even English. For what it's worth, this is output from
My Zotero language was set to Automatic and I have have a Chinese IME installed. But to conclude from that that BN should be in Chinese is unexpected in my opinion and definitely a turn-off for people trying out the plugin IMO. |
Are you sure Chinese isn’t in your list of “Preferred languages” in Windows Settings? This is tricky (from the Zotero side, not just for BN) because we do want to believe what the system tells us. If you’ve added Chinese as a preferred language but not English, why would we show you English? But on the other hand, very few users manually adjust the ordering of that list, and the OS adds preferred languages when keyboards are installed, which isn’t obvious behavior. |
On Windows there's the "Windows display language" setting. Why does it not use this? This seems the most sensible choice when the Zotero language is set to automatic. E.g. just because from time to time I like to write in language XYZ, does not mean at all that I want my apps to be automatically displayed in that language. |
Your Windows display language is German, which this plugin doesn't have localizations for. It falls back to one of your other preferred languages. English isn't one of your preferred languages, so it won't fall back to English unless none of your preferred languages are supported. Chinese is one of your preferred languages, so it uses that. You can remove languages from the preferred languages list without removing any IMEs. It's annoying that Windows (and macOS) automatically add languages to the preferred languages list when you add an IME, but we have no control over that. I'm not totally sure why the behavior is different when the Zotero language is set manually, though. Could you set Zotero to German manually (instead of Automatic (German)) and paste the |
Is there an existing issue for this?
Are you using the latest Zotero and the latest plugin?
Environment
Describe the bug
My Zotero localization is set to "Automatisch (Deutsch)" which translates to "Automatic (German)". Better Notes unluckily displays some texts in Russian instead of English as a fallback, as in these screenshots:
This doesn’t happen if I set the Zotero localization explicitly to "German" or "English": In either case, all texts are in English.
Debug Output
1724428957200 addons.xpi WARN Checking /Applications/Zotero 7.app/Contents/Resources/distribution/extensions for addons
1724428957895 addons.xpi WARN Addon with ID undefined already installed, older version will be disabled
[JavaScript Error: "Error: Addon must include an id, version, and type" {file: "resource://gre/modules/addons/XPIProvider.jsm" line: 1723}]
[JavaScript Error: "Error: Addon must include an id, version, and type" {file: "resource://gre/modules/addons/XPIProvider.jsm" line: 1723}]
[JavaScript Error: "Security Error: Content at moz-nullprincipal:{19fd610a-c91b-496c-a0a2-63690d3589d1} may not load or link to chrome://betternotes/content/treeView.html."]
[JavaScript Error: "Passing a URI to Zotero.File.getContentsAsync() is deprecated -- use Zotero.HTTP.request() instead"]
[JavaScript Error: "Passing a URI to Zotero.File.getContentsAsync() is deprecated -- use Zotero.HTTP.request() instead"]
[JavaScript Error: "TypeError: this.editorView is undefined" {file: "resource://zotero/note-editor/editor.js" line: 6}]
appName => Zotero, version => 7.0.2 (ARM64), os => macOS 14.6.1, locale => de, extensions => Better Notes for Zotero (2.0.2, extension), Better BibTex for Zotero (6.7.222, extension, disabled), Scite Zotero Plugin (V7+) (2.0.2, extension, disabled), DOI Manager (1.5.0, extension, disabled), MarkDB-Connect (0.1.1, extension, disabled), Zotero Attanger (1.2.4, extension, disabled), Zoplicate (3.0.3, extension, disabled)
(4)(+0010642): SELECT COUNT(*) FROM settings WHERE setting='mImport' AND key='cleanup'
(3)(+0006297): [Better Notes for Zotero] {}
(3)(+0000000): [Better Notes for Zotero] push blockquote
[](3)(+0000000): [Better Notes for Zotero] push ul
["ul"]
[](3)(+0000000): [Better Notes for Zotero] pop ul
(3)(+0000000): [Better Notes for Zotero] push ul
["ul"]
[](3)(+0000000): [Better Notes for Zotero] pop ul
(3)(+0000000): [Better Notes for Zotero] push ul
["ul"]
[](3)(+0000000): [Better Notes for Zotero] pop ul
(3)(+0000001): [Better Notes for Zotero] [Warning] Creating element button with no namespace specified. Found multiply namespace matches.
(3)(+0000000): [Better Notes for Zotero] [Warning] Creating element button with no namespace specified. Found multiply namespace matches.
(3)(+0000000): [Better Notes for Zotero] [Warning] Creating element button with no namespace specified. Found multiply namespace matches.
(3)(+0000000): [Better Notes for Zotero] [Warning] Creating element button with no namespace specified. Found multiply namespace matches.
(3)(+0000000): [Better Notes for Zotero] [Warning] Creating element button with no namespace specified. Found multiply namespace matches.
(3)(+0000000): [Better Notes for Zotero] [Warning] Creating element button with no namespace specified. Found multiply namespace matches.
(3)(+0000000): [Better Notes for Zotero] [Warning] Creating element button with no namespace specified. Found multiply namespace matches.
(3)(+0000001): [Better Notes for Zotero] [Warning] Creating element button with no namespace specified. Found multiply namespace matches.
(3)(+0000000): [Better Notes for Zotero] [Warning] Creating element button with no namespace specified. Found multiply namespace matches.
Anything else?
No response
The text was updated successfully, but these errors were encountered: