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

Only English selectable for spell checking #79

Closed
llabusch93 opened this issue Jan 19, 2022 · 2 comments
Closed

Only English selectable for spell checking #79

llabusch93 opened this issue Jan 19, 2022 · 2 comments

Comments

@llabusch93
Copy link

Hello,
in the Flatpak version there is only English available for the spell checking. Is there a way to install for instance also a German dictionary into the flatpak container, so Evolution can spell check it as well?

@Sesivany
Copy link
Collaborator

Evolution flatpak doesn't ship dictionaries, it relies on the runtime for them. AFAIK there is no way for an app to request a specific locale. By default Flatpak installs the locale of the system language. If it's German, you should have a German spellchecking available in Evolution. If you use English as the system language, but want German for spellchecking, there are just workarounds: you can set Flatpak to install locales of other languages by default and I think there is a way to install a specific locale for runtimes, too.

@llabusch93
Copy link
Author

llabusch93 commented Jan 24, 2022

Hello @Sesivany

this did not work for me, but this answer I gave myself on Reddit. Hope that helps other guys coming around here as well!

(The answer copied over here):

As u/tinywrkb wrote, for his answer you need Flatpak version 1.12.0 at least. If you look at the release note of that version, it gets clear why:

Install translations for all languages in the locale, not just the ones in LC_MESSAGES.

As with the current most recent version of Pop!_OS (21.10), I only have Flatpak version 1.11.2. I need to set LC_MESSAGES correctly, so Flatpak takes it into account.

If you need multiple languages in one program like me, for instance to have multiple dictionaries for the spell checking, you can give a list of wanted locaes for that variable, divided by a colon:

LC_MESSAGES=en_US.UTF-8:de_DE.UTF-8:fr_CA.UTF-8

Make sure that this environment variable is set, then you can just reinstall the wanted flatpak and it will install it with all those languages!

flatpak install --reinstall <NAME_OF_YOUR_PACKAGE>

I hope that helps a few guys having the same issue I had!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants