Skip to content
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

Error in getSystemL10n: Cannot read properties of undefined (reading 'replace') #984

Open
neferin12 opened this issue Dec 16, 2024 · 5 comments
Assignees
Labels

Comments

@neferin12
Copy link

neferin12 commented Dec 16, 2024

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Run the executable in the zip archive (on Arch Linux)

Expected behaviour

App should open and I should be able to login

Actual behaviour

The window that opens only shows the background:

Image

If I start it from the terminal the following error is printed:

Error occurred in handler for 'app:getSystemL10n': TypeError: Cannot read properties of undefined (reading 'replace')
    at /opt/nextcloud-talk-desktop/resources/app.asar/.webpack/main/index.js:2:601388
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:87037)
    at WebContents.emit (node:events:518:28)

Diagnosis and logs

Diagnosis report Not possible since I can't interact with the application
Client logs

Console tab.

Uncaught (in promise) Error: Error invoking remote method 'app:getSystemL10n': TypeError: Cannot read properties of undefined (reading 'replace')
@ShGKme
Copy link
Contributor

ShGKme commented Dec 16, 2024

If you have Python 3, could you show the output of

python3 -c "import locale; print(locale.getdefaultlocale())"

This should show the default language preferences.

@neferin12
Copy link
Author

This is the output I get:

<string>:1: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead.
('en_US', 'UTF-8')

@ShGKme
Copy link
Contributor

ShGKme commented Dec 16, 2024

('en_US', 'UTF-8')

Looks fine...

@neferin12
Copy link
Author

I tried some things and after changing my Language in the KDE Settings from C to American English and running locale-gen it now works.

@ShGKme
Copy link
Contributor

ShGKme commented Dec 16, 2024

I tried some things and after changing my Language in the KDE Settings from C to American English and running locale-gen it now works.

Thanks, now it's clear

@ShGKme ShGKme self-assigned this Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants