question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vs code python uses system language, not vs code display language

See original GitHub issue

Environment data

  • VS Code version: 1.28.2
  • Extension version: 2018.10.1
  • OS and version: MacOS High Sierra 10.13.6
  • Python version: 3.7.0
  • Type of virtual environment used: virtualenv
  • Relevant/affected Python packages and their versions: none

Actual behavior

VS Code python extension uses system language in stead of vs code language settings. System language is german, vs code display language is english. vs-code-python language (in command palette) is german.

Expected behavior

VS Code python extension honors the configuration of VS Code and language is the same throughout VS Code. So, vs-code-python language should be english, as stated in vs code display language.

Steps to reproduce:

  1. switch mac os to some different language than english (german in my case, this was my macs default)
  2. install vs code & vs code python settings
  3. change vs code Display language to english
  4. type “> python” into command palette

Pythons command palette(All german except the Jupyter cell commands): bildschirmfoto 2018-11-12 um 10 20 55 Language settings of MacOS bildschirmfoto 2018-11-12 um 10 24 09

Output of locale on the terminal:

$ locale
LANG="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_CTYPE="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_ALL=

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
nikau6commented, Dec 18, 2018

I had the exact same problem, but with the extension displaying Python’s commands ( in command palette ) in French rather than in English.

VS Code version: 1.28.2 Extension version: 2018.10.1 OS and version: Ubuntu 18.04 Python version: 3.6 Type of virtual environment used: none Relevant/affected Python packages and their versions: none

Here’s how I fixed the issue :

  • Open the "locale.json" file ( Command Palette > Configure Display Language )
  • Change "locale":"en" to "locale":"fr", and save.
  • Restart VSCode.
  • Re-open the "locale.json" file.
  • Change back your locale to English : "locale":"en", and save.
  • Restart VSCode.

Now the extension’s commands ( in command palette ) should be in English !

1reaction
berendcommented, Nov 15, 2018

Reinstalling python extension fixed the issue. Not sure if/how the malfunctioning state can be reached again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code Display Language (Locale)
Display Language. Visual Studio Code ships by default with English as the display language and other languages rely on Language Pack extensions available ......
Read more >
How to change UI language in Visual Studio Code?
Open VScode; Press F1 and type 'display'; Choose 'Configure display language'; Select your language. On top are installed languages, ...
Read more >
Advanced Visual Studio Code for Python Developers
You can use VS Code as a lightweight code editor to make quick changes, or you can configure it as an integrated development...
Read more >
Getting started with VS Code for Python: Setting up a ...
Visual Studio Code is not to be confused with Visual Studio, ... To change the language mode for the active file, simply press...
Read more >
Visual Studio Code - Wikipedia
Visual Studio Code, also commonly referred to as VS Code, is a source-code editor made by Microsoft with the Electron Framework, for Windows, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found