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

Inconsistency between UI and status bar language #2008

Open
CSharperMantle opened this issue Jan 26, 2022 · 4 comments · May be fixed by #2017
Open

Inconsistency between UI and status bar language #2008

CSharperMantle opened this issue Jan 26, 2022 · 4 comments · May be fixed by #2017
Labels
i18n internationalisation interface Mu's UI - buttons, text, window, etc. translations

Comments

@CSharperMantle
Copy link
Contributor

CSharperMantle commented Jan 26, 2022

What were you trying to do?

Switching language, expecting the global display language of Mu to change.

What steps did you take to trigger the issue?

  1. Start Mu Editor. Then
  2. Go to "Mu Configuration" on the bottom-right corner. Then
  3. Go to "Select Language" tab and choose a language different from system language. Then
  4. Press "OK" and restart the app. Then
  5. Observe that the UI language (tags for buttons, etc.) has changed but the status bar still remains the text in the original language. At the same time,
  6. The hover-popup label for "Mu Configuration" is in the wrong language.

What did you expect to happen?

Language should be changed globally and consistently.

What actually happened?

The UI language (tags for buttons, etc.) can be changed via the "Select Language" tab but the status bar is still left unchanged. So do some popup labels.

Proof:

Screenshot 1

Note the difference of the language between the text editor, the status bar and the buttons.

Operating System Version

Microsoft Windows 10, Version 1511

Mu Version

Mu 1.1.0b7

Other Info

Currently none. :)

Editor Log

2022-01-26 18:54:05,311 - root:269(run) INFO: 

-----------------

Starting Mu 1.1.0b7
2022-01-26 18:54:05,311 - root:270(run) INFO: uname_result(system='Windows', node='PC-201401181607', release='10', version='10.0.10586', machine='AMD64', processor='Intel64 Family 6 Model 69 Stepping 1, GenuineIntel')
2022-01-26 18:54:05,358 - root:271(run) INFO: Platform: Windows-10-10.0.10586-SP0
2022-01-26 18:54:05,358 - root:272(run) INFO: Python path: ['C:\\Users\\[USERNAME REDACTED]]\\AppData\\Local\\Programs\\Mu Editor', 'C:\\Users\\[USERNAME REDACTED]]\\AppData\\Local\\Programs\\Mu Editor\\Python\\python38.zip', 'C:\\Users\\[USERNAME REDACTED]]\\AppData\\Local\\Programs\\Mu Editor\\Python\\DLLs', 'C:\\Users\\[USERNAME REDACTED]]\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib', 'C:\\Users\\[USERNAME REDACTED]]\\AppData\\Local\\Programs\\Mu Editor\\Python', 'C:\\Users\\[USERNAME REDACTED]]\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages', 'C:\\Users\\[USERNAME REDACTED]]\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\setuptools-57.4.0-py3.8.egg', 'C:\\Users\\[USERNAME REDACTED]]\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\pip-21.1.3-py3.8.egg', 'C:\\Users\\[USERNAME REDACTED]]\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\win32', 'C:\\Users\\[USERNAME REDACTED]]\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\win32\\lib', 'C:\\Users\\[USERNAME REDACTED]]\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\Pythonwin', 'C:\\Users\\[USERNAME REDACTED]]\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\IPython\\extensions']
2022-01-26 18:54:05,358 - root:273(run) INFO: Language code: zh_CN
2022-01-26 18:54:05,358 - mu.settings:220(load) WARNING: No settings file found at C:\Users\[USERNAME REDACTED]]\AppData\Local\python\mu\settings.json; skipping
2022-01-26 18:54:05,443 - mu.virtual_environment:585(ensure_and_create) INFO: Added log handler.
2022-01-26 18:54:05,759 - mu.virtual_environment:596(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2022-01-26 18:54:05,759 - mu.virtual_environment:685(ensure_path) INFO: Virtual Environment found at: C:\Users\[USERNAME REDACTED]]\AppData\Local\python\mu\mu_venv-38-20220126-182846
2022-01-26 18:54:05,759 - mu.virtual_environment:698(ensure_interpreter) INFO: Interpreter found at: C:\Users\[USERNAME REDACTED]]\AppData\Local\python\mu\mu_venv-38-20220126-182846\scripts\python.exe
2022-01-26 18:54:05,774 - mu.virtual_environment:429(run_subprocess) INFO: Running ('C:\\Users\\[USERNAME REDACTED]]\\AppData\\Local\\python\\mu\\mu_venv-38-20220126-182846\\scripts\\python.exe', '-c', 'import sys; print("%s%s" % sys.version_info[:2])') with kwargs {'shell': True}
2022-01-26 18:54:05,943 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 38
2022-01-26 18:54:05,943 - mu.virtual_environment:730(ensure_interpreter_version) INFO: Both interpreters at version 38
2022-01-26 18:54:05,943 - mu.virtual_environment:759(ensure_pip) INFO: Pip found at: C:\Users\[USERNAME REDACTED]]\AppData\Local\python\mu\mu_venv-38-20220126-182846\scripts\pip.exe
2022-01-26 18:54:05,943 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: pgzero
2022-01-26 18:54:05,943 - mu.virtual_environment:429(run_subprocess) INFO: Running ('C:\\Users\\[USERNAME REDACTED]]\\AppData\\Local\\python\\mu\\mu_venv-38-20220126-182846\\scripts\\python.exe', '-c', 'import pgzero') with kwargs {'shell': True}
2022-01-26 18:54:06,112 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2022-01-26 18:54:06,112 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: flask
2022-01-26 18:54:06,112 - mu.virtual_environment:429(run_subprocess) INFO: Running ('C:\\Users\\[USERNAME REDACTED]]\\AppData\\Local\\python\\mu\\mu_venv-38-20220126-182846\\scripts\\python.exe', '-c', 'import flask') with kwargs {'shell': True}
2022-01-26 18:54:07,130 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2022-01-26 18:54:07,130 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipykernel
2022-01-26 18:54:07,130 - mu.virtual_environment:429(run_subprocess) INFO: Running ('C:\\Users\\[USERNAME REDACTED]]\\AppData\\Local\\python\\mu\\mu_venv-38-20220126-182846\\scripts\\python.exe', '-c', 'import ipykernel') with kwargs {'shell': True}
2022-01-26 18:54:08,355 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2022-01-26 18:54:08,355 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipython_genutils
2022-01-26 18:54:08,356 - mu.virtual_environment:429(run_subprocess) INFO: Running ('C:\\Users\\[USERNAME REDACTED]]\\AppData\\Local\\python\\mu\\mu_venv-38-20220126-182846\\scripts\\python.exe', '-c', 'import ipython_genutils') with kwargs {'shell': True}
2022-01-26 18:54:08,508 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2022-01-26 18:54:08,508 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: esptool
2022-01-26 18:54:08,508 - mu.virtual_environment:429(run_subprocess) INFO: Running ('C:\\Users\\[USERNAME REDACTED]]\\AppData\\Local\\python\\mu\\mu_venv-38-20220126-182846\\scripts\\python.exe', '-c', 'import esptool') with kwargs {'shell': True}
2022-01-26 18:54:08,794 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2022-01-26 18:54:08,794 - mu.virtual_environment:628(ensure_and_create) INFO: Valid virtual environment found at C:\Users\[USERNAME REDACTED]]\AppData\Local\python\mu\mu_venv-38-20220126-182846
2022-01-26 18:54:08,794 - mu.settings:169(save) DEBUG: Saving to C:\Users\[USERNAME REDACTED]]\AppData\Local\python\mu\venv.json
2022-01-26 18:54:08,810 - mu.logic:768(__init__) INFO: Setting up editor.
2022-01-26 18:54:08,810 - mu.logic:789(__init__) INFO: Log directory: C:\Users\[USERNAME REDACTED]]\AppData\Local\python\mu\Logs
2022-01-26 18:54:08,810 - mu.logic:790(__init__) INFO: Data directory: C:\Users\[USERNAME REDACTED]]\AppData\Local\python\mu
2022-01-26 18:54:08,810 - mu.logic:804(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2022-01-26 18:54:08,810 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\[USERNAME REDACTED]]\mu_code from settings file
2022-01-26 18:54:08,879 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\[USERNAME REDACTED]]\mu_code from settings file
2022-01-26 18:54:08,879 - mu.logic:1549(change_mode) INFO: Workspace directory: C:\Users\[USERNAME REDACTED]]\mu_code
2022-01-26 18:54:08,879 - mu.logic:878(restore_session) DEBUG: <SessionSettings from C:\Users\[USERNAME REDACTED]]\AppData\Local\python\mu\session.json>
2022-01-26 18:54:08,894 - mu.logic:900(restore_session) INFO: Loaded files.
2022-01-26 18:54:08,894 - mu.logic:906(restore_session) INFO: User defined environment variables: {}
2022-01-26 18:54:08,894 - mu.logic:911(restore_session) INFO: Minify scripts on micro:bit? False
2022-01-26 18:54:08,962 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\[USERNAME REDACTED]]\mu_code from settings file
2022-01-26 18:54:08,962 - mu.logic:1549(change_mode) INFO: Workspace directory: C:\Users\[USERNAME REDACTED]]\mu_code
2022-01-26 18:54:09,311 - mu.logic:962(restore_session) INFO: Starting with blank file.
2022-01-26 18:56:27,612 - mu.logic:1364(show_help) INFO: Showing help at 'https://codewith.mu/zh/help/1.1'.
2022-01-26 18:56:39,369 - mu.logic:1416(show_admin) INFO: Showing admin with logs from C:\Users\[USERNAME REDACTED]]\AppData\Local\python\mu\Logs\mu.log
2022-01-26 18:56:39,369 - mu.virtual_environment:922(installed_packages) INFO: Discovering installed third party modules in venv.
2022-01-26 18:56:39,369 - mu.virtual_environment:114(run_blocking) INFO: About to run blocking C:\Users\[USERNAME REDACTED]]\AppData\Local\python\mu\mu_venv-38-20220126-182846\scripts\pip.exe with args ['list', '--disable-pip-version-check'] and envvars {}
2022-01-26 18:56:40,874 - mu.virtual_environment:164(wait) DEBUG: Finished: True; exitStatus 0; exitCode 0
2022-01-26 18:56:40,874 - mu.virtual_environment:249(run) DEBUG: Process output: Package           Version
----------------- -------
backcall          0.2.0
bitstring         3.1.9
cffi              1.15.0
click             8.0.3
colorama          0.4.4
cryptography      36.0.1
decorator         5.1.0
ecdsa             0.17.0
entrypoints       0.3
esptool           3.2
Flask             1.1.2
ipykernel         5.5.6
ipython           7.30.1
ipython-genutils  0.2.0
itsdangerous      2.0.1
jedi              0.18.1
Jinja2            3.0.3
jupyter-client    7.1.0
jupyter-core      4.9.1
MarkupSafe        2.0.1
matplotlib-inline 0.1.3
nest-asyncio      1.5.4
numpy             1.21.5
parso             0.8.3
pgzero            1.2.1
pickleshare       0.7.5
pip               21.3.1
prompt-toolkit    3.0.24
pycparser         2.21
pygame            2.1.0
Pygments          2.10.0
pyserial          3.5
python-dateutil   2.8.2
pywin32           303
pyzmq             22.3.0
reedsolo          1.5.4
setuptools        60.0.3
six               1.16.0
tornado           6.1
traitlets         5.1.1
wcwidth           0.2.5
Werkzeug          2.0.2
wheel             0.37.0
2022-01-26 18:56:40,874 - mu.virtual_environment:931(installed_packages) INFO: []
@CSharperMantle
Copy link
Contributor Author

Please let me know if I can do any help with the issue. I have intermediate familiarity with Python and some other languages. 😉

@xbecas
Copy link
Collaborator

xbecas commented Jan 30, 2022

Same situation, but starting from Portuguese.
mu_editor_1_1_b7_language_issue_W10

CSharperMantle added a commit to CSharperMantle/mu that referenced this issue Jan 31, 2022
@CSharperMantle
Copy link
Contributor Author

PR filed as a solution.

CSharperMantle added a commit to CSharperMantle/mu that referenced this issue Feb 18, 2022
@carlosperate carlosperate added i18n internationalisation translations labels Feb 22, 2022
@xbecas xbecas added the interface Mu's UI - buttons, text, window, etc. label Mar 5, 2022
@xbecas
Copy link
Collaborator

xbecas commented Mar 5, 2022

Related to #1849

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i18n internationalisation interface Mu's UI - buttons, text, window, etc. translations
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants