-
Notifications
You must be signed in to change notification settings - Fork 274
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
Element desktop does not have an en_US translation #871
Comments
Examples of defects where this is obscuring the root cause element-hq/element-web#18038 |
Fixed in #275 |
@novocaine I believe this issue is not completely resolved. In the |
|
I see, my bad. Should I go ahead and make a new issue about the output to |
@acxz can you post the output you are seeing that still seems broken, and the details of the version of Element that you are seeing it on? We can re-open the issue if the same log line remains visible. |
Sure here is the complete log: /home/acxz/.config/Element exists: yes
/home/acxz/.config/Riot exists: no
No update_base_url is defined: auto update is disabled
Fetching translation json for locale: en_EN
Changing application language to en-us
Fetching translation json for locale: en-us
Could not fetch translation json for locale: 'en-us' Error: Cannot find module './i18n/strings/en-us.json'
Require stack:
- /usr/lib/element/app.asar/lib/language-helper.js
- /usr/lib/element/app.asar/lib/tray.js
- /usr/lib/element/app.asar/lib/electron-main.js
- /usr/lib/electron15/resources/default_app.asar/main.js
-
at Module._resolveFilename (node:internal/modules/cjs/loader:934:15)
at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1128)
at Module._load (node:internal/modules/cjs/loader:779:27)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Module.require (node:internal/modules/cjs/loader:1006:19)
at require (node:internal/modules/cjs/helpers:93:18)
at AppLocalization.fetchTranslationJson (/usr/lib/element/app.asar/lib/language-helper.js:76:20)
at /usr/lib/element/app.asar/lib/language-helper.js:89:39
at Array.forEach (<anonymous>)
at AppLocalization.setAppLocale (/usr/lib/element/app.asar/lib/language-helper.js:88:17) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/lib/element/app.asar/lib/language-helper.js',
'/usr/lib/element/app.asar/lib/tray.js',
'/usr/lib/element/app.asar/lib/electron-main.js',
'/usr/lib/electron15/resources/default_app.asar/main.js',
undefined
]
}
Resetting the UI components after locale change
Resetting the UI components after locale change
Changing application language to en-us
Fetching translation json for locale: en-us
Could not fetch translation json for locale: 'en-us' Error: Cannot find module './i18n/strings/en-us.json'
Require stack:
- /usr/lib/element/app.asar/lib/language-helper.js
- /usr/lib/element/app.asar/lib/tray.js
- /usr/lib/element/app.asar/lib/electron-main.js
- /usr/lib/electron15/resources/default_app.asar/main.js
-
at Module._resolveFilename (node:internal/modules/cjs/loader:934:15)
at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1128)
at Module._load (node:internal/modules/cjs/loader:779:27)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Module.require (node:internal/modules/cjs/loader:1006:19)
at require (node:internal/modules/cjs/helpers:93:18)
at AppLocalization.fetchTranslationJson (/usr/lib/element/app.asar/lib/language-helper.js:76:20)
at /usr/lib/element/app.asar/lib/language-helper.js:89:39
at Array.forEach (<anonymous>)
at AppLocalization.setAppLocale (/usr/lib/element/app.asar/lib/language-helper.js:88:17) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/lib/element/app.asar/lib/language-helper.js',
'/usr/lib/element/app.asar/lib/tray.js',
'/usr/lib/element/app.asar/lib/electron-main.js',
'/usr/lib/electron15/resources/default_app.asar/main.js',
undefined
]
}
Resetting the UI components after locale change OS: Archlinux |
I'm having the same issue on Schildi Chat and Element Desktop, using the flatpak... except I can't even launch the app in either case. |
Sorry to hear that. As noted in the description of this issue:
Can you please file a separate issue? |
Ah, I see. Oddly enough I got element to launch once and that error was gone from the logs, but I guess it was unrelated. I'll try to file a bug report in the relevant flatpak repository as I am not sure if it belongs here (correct me if I'm wrong). |
Hi,
or directly from command line |
@TPiUnikie do you want to send in the patch as a PR? It would help all of us. For the lazy folks to dl and unzip the zip file.
|
Should this be closed due to the merge of #339 ? |
Steps to reproduce
Settings -> General -> Language and Region -> select English (US)
What happened?
Doing this causes the language to be set both in matrix-react-sdk (to translate the webapp) and in element-desktop (to translate the os menus etc).
matrix-react-sdk has en_US translations, but Element desktop doesn't. This causes the electron layer to write an error to its log and fall back to plain en (I guess this is UK?). The log looks something like https://gist.github.com/monochromec/14ce9a604a368d0ee017730923ab9265 - this is more visible on linux where the log appears on stderr, I'm not sure where it appears on other platforms.
This isn't a fatal issue but it does appear loudly in the stderr of every en_US Element user on Linux (or any platform where the users tend to see stderr) so it is a red herring in almost every bug report on linux.
Operating system
Any, but most visible on Linux
Application version
1.9.0
How did you install the app?
Nightly
Homeserver
matrix.org
Have you submitted a rageshake?
No
The text was updated successfully, but these errors were encountered: