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

how to change the language? #5

Closed
LeandroStanger opened this Issue Dec 3, 2017 · 9 comments

Comments

4 participants
@LeandroStanger
Copy link

LeandroStanger commented Dec 3, 2017

No description provided.

@LeandroStanger

This comment has been minimized.

Copy link
Author

LeandroStanger commented Dec 3, 2017

@nedrichards Could help

@bochecha

This comment has been minimized.

Copy link
Collaborator

bochecha commented Dec 3, 2017

Thanks for the bug report, I hadn't realized there was an issue with languages.

So there seems to be a problem with the way locales are set up in the flatpak:

$ LANG=fr_FR.UTF-8 flatpak run org.blender.Blender 
Warning: Falling back to the standard locale ("C")

Not sure what's going on here...

@bochecha

This comment has been minimized.

Copy link
Collaborator

bochecha commented Feb 18, 2018

So the language files do seem to be present, e.g /var/lib/flatpak/app/org.blender.Blender/current/active/files/share/blender/2.79/datafiles/locale/fr/LC_MESSAGES/blender.mo

Maybe it's because they get mounted as /app/share/blender/2.79/datafiles/locale and Blender searches for them in /usr/share/blender/2.79/datafiles/locale

@bochecha

This comment has been minimized.

Copy link
Collaborator

bochecha commented May 18, 2018

Alright, so with the latest build from Flathub, I do not get the warning I used to have.

I've also just tested the Fedora package, running it as follows:

$ LC_ALL=fr_FR.UTF-8 blender

And the UI still is in English.

I tried the exact same command with the official build from https://www.blender.org/download/

$ LC_ALL=fr_FR.UTF-8 ./blender

And the UI is still in English.


However, I found that in File -> User Preferences -> System, you can tick the International Fonts checkbox.

At this point, new settings appear:

  • Language, where you can select a language;
  • Translate, where you can tell Blender to translate the Interface, Tooltips and New Data into the language selected just above;

And that actually changes the language for the whole UI.

So the languages work fine.

@brechtvl Hi there! Is that the way Blender is supposed to work? It really doesn't automatically pick up the locale, like every other app, and the user is expected to change the language themselves?

@brechtvl

This comment has been minimized.

Copy link

brechtvl commented May 18, 2018

Yes, it's not great, but that's how it works at the moment.

@bochecha

This comment has been minimized.

Copy link
Collaborator

bochecha commented May 19, 2018

Ok. It's a bit surprising and I wish I had known that before spending multiple hours investigating this issue…

But thank you very much for confirming.

I really appreciate your taking the time to come and help every time I have needed it. 🙂


Since everything is working as designed upstream, I'm closing this issue.

@bochecha bochecha closed this May 19, 2018

@nedrichards

This comment has been minimized.

Copy link
Member

nedrichards commented May 20, 2018

@bochecha does that mean we should disable split locales for this manifest?

@bochecha

This comment has been minimized.

Copy link
Collaborator

bochecha commented May 20, 2018

@nedrichards There aren't any split locales already, as there is no .Locale extension:

$ flatpak remote-ls --all flathub | rg blender
org.blender.Blender
org.blender.Blender.Debug
org.blender.Blender.Sources

The locale files aren't installed where Flatpak would normally search them, and as a result the extension doesn't get built.

@nedrichards

This comment has been minimized.

Copy link
Member

nedrichards commented May 20, 2018

Carry on :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment