flathub / com.prusa3d.PrusaSlicer

https://flathub.org/apps/details/com.prusa3d.PrusaSlicer
7 stars 14 forks source link

Cannot choose language in PrusaSlicer 2.7.1 #99

Closed jernejp21 closed 4 months ago

jernejp21 commented 5 months ago

I think that flatpak build went wrong somewhere. When I install flatpak from flathub, I cannot choose language other than English.

slika

I built my own flatpak and installed it and language selection works, but when selecting other language (Japanese for example), I get this error message. Install command: flatpak-builder --user --install --force-clean build-dir com.prusa3d.PrusaSlicer.yml

slika

Since flatpak is in sandbox, I think locales for all supported languages should also be build. But the question is still why is only English shown.

One more thing, in /home/<user>/.local/share/flatpak/com.prusa3d.PrusaSlicer/current/active/files/share/runtime/locale, all folders are empty. They should have po and mo files inside.

eliadevito commented 4 months ago

Hi @jernejp21, You have to enable the locale on flatpak, to do it you have to set the languages/extra-languages key with flatpak config as described here: https://docs.flatpak.org/en/latest/flatpak-command-reference.html#flatpak-config.

If you need help to do it, please post here the output of flatpak config --list command and the locale that you want to enable

EDIT: after setting the key you need to run flatpak update to install the new langpack

jernejp21 commented 4 months ago

@eliadevito

Thank you for your help. Your proposal worked.