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

starting with default OS language (if in the list of available) #567

Closed
stonebig opened this issue Oct 21, 2018 · 3 comments
Closed

starting with default OS language (if in the list of available) #567

stonebig opened this issue Oct 21, 2018 · 3 comments

Comments

@stonebig
Copy link
Contributor

stonebig commented Oct 21, 2018

On Windows, at first start, would it be possible to guess the default langage of the operating system, and set the menus to that language ?

for example, if you start it on a french pc, menu would by default appear in french instead of english.

(or I missed something, and 'normal' pyzo does that)

@stonebig
Copy link
Contributor Author

stonebig commented Oct 21, 2018

In [3]: from PyQt5.QtCore  import QLocale

In [4]: QLocale.system().name()
Out[4]: 'fr_FR'
In [5]: QLocale.French
Out[5]: 37

@stonebig
Copy link
Contributor Author

@almarklein
Copy link
Member

Makes sense!

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