Package: spyder Version: 5.4.4+ds-1 Severity: normal Tags: l10n patch upstream Forwarded: https://github.com/spyder-ide/spyder/pull/21451
Hello, The autoconfiguration of the language is currently completely broken in spyder: when starting spyder on a e.g. french-installed Debian, spyder still displays english by default, and one has to change the language by hand. I have submitted a bug to upstream, but a very simple fix is possible for Debian to apply easily, as attached, could you apply it? I'd argue that it would be very useful to upload it to bookworm too. It's hard to convince our thousands of students that spyder is a good IDE, when it's not even able to automatically speak their language. Samuel -- System Information: Debian Release: trixie/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'oldstable-proposed-updates-debug'), (500, 'oldstable-proposed-updates'), (500, 'oldoldstable-proposed-updates'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386, arm64 Kernel: Linux 6.5.0-1-amd64 (SMP w/8 CPU threads; PREEMPT) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages spyder depends on: ii python3 3.11.4-5+b1 ii python3-spyder 5.4.4+ds-1 spyder recommends no packages. Versions of packages spyder suggests: pn python3-spyder-unittest <none> Versions of packages python3-spyder depends on: ii ipython3 8.14.0-2 ii libjs-jquery 3.6.1+dfsg+~3.5.14-1 ii libjs-mathjax 2.7.9+dfsg-1 ii pyflakes3 2.5.0-1 ii pylint 2.17.4-1 ii python3 3.11.4-5+b1 ii python3-atomicwrites 1.4.1-1 ii python3-autopep8 2.0.4-1 ii python3-chardet 5.2.0+dfsg-1 ii python3-cloudpickle 2.2.1-1 ii python3-cookiecutter 1.7.3-3 ii python3-diff-match-patch 20230430-1 ii python3-docutils 0.19+dfsg-7 ii python3-flake8 5.0.4-4 ii python3-intervaltree 3.0.2-1.1 ii python3-ipython 8.14.0-2 ii python3-jedi 0.18.2-1 ii python3-jellyfish 0.8.9-1+b4 ii python3-jsonschema 4.10.3-2 ii python3-keyring 24.2.0-1 ii python3-mccabe 0.7.0-1 ii python3-nbconvert 6.5.3-4 ii python3-numpydoc 1.5.0-1 ii python3-parso 0.8.3-1 ii python3-pexpect 4.8.0-4 ii python3-pickleshare 0.7.5-5 ii python3-pkg-resources 68.1.2-2 ii python3-psutil 5.9.5-1 ii python3-pycodestyle 2.10.0-1 ii python3-pydocstyle 6.3.0-1 ii python3-pygments 2.15.1+dfsg-1 ii python3-pylint-venv 3.0.2-1 ii python3-pyls-spyder 0.4.0-2 ii python3-pylsp 1.7.4-1 ii python3-pylsp-black 1.3.0-1 ii python3-pyqt5 5.15.9+dfsg-2 ii python3-pyqt5.qtwebengine 5.15.6-1 ii python3-qdarkstyle 3.1+ds1-1 ii python3-qstylizer 0.2.2-1 ii python3-qtawesome 1.2.3+dfsg-1 ii python3-qtconsole 5.4.3-2 ii python3-qtpy 2.3.1-1 ii python3-rope 1.10.0-1 ii python3-rtree 1.1.0-2 ii python3-setuptools 68.1.2-2 ii python3-sphinx 5.3.0-7 ii python3-spyder-kernels 2.4.4-2 ii python3-textdistance 4.5.0-1 ii python3-three-merge 0.1.1-4 ii python3-watchdog 3.0.0-1 ii python3-xdg 0.28-2 ii python3-zmq 24.0.1-4+b1 ii spyder-common 5.4.4+ds-1 ii yapf3 0.33.0-1 python3-spyder recommends no packages. Versions of packages python3-spyder suggests: ii cython3 0.29.36-1 pn python3-matplotlib <none> pn python3-numpy <none> pn python3-pandas <none> ii python3-pil 10.0.0-1 pn python3-scipy <none> ii python3-sympy 1.12-6 Versions of packages python3-pyqt5 depends on: ii libc6 2.37-12 ii libgcc-s1 13.2.0-5 ii libpython3.11 3.11.6-3 ii libqt5core5a [qtbase-abi-5-15-10] 5.15.10+dfsg-3 ii libqt5dbus5 5.15.10+dfsg-3 ii libqt5designer5 5.15.10-5 ii libqt5gui5 5.15.10+dfsg-3 ii libqt5help5 5.15.10-5 ii libqt5network5 5.15.10+dfsg-3 ii libqt5printsupport5 5.15.10+dfsg-3 ii libqt5test5 5.15.10+dfsg-3 ii libqt5widgets5 5.15.10+dfsg-3 ii libqt5xml5 5.15.10+dfsg-3 ii libstdc++6 13.2.0-5 ii python3 3.11.4-5+b1 ii python3-pyqt5.sip 12.12.2-1 -- no debconf information -- Samuel --- Pour une évaluation indépendante, transparente et rigoureuse ! Je soutiens la Commission d'Évaluation de l'Inria.
commit 32f72bd898c2e75c8496252f005788d2cd85f61b Author: Samuel Thibault <samuel.thiba...@ens-lyon.org> Date: Tue Oct 24 13:05:45 2023 +0200 Fix language autoconfiguration for fa, hr, te, uk Addition to LANGUAGE_CODES was missed. diff --git a/spyder/config/base.py b/spyder/config/base.py index a10bbec7f..d46c5ae90 100644 --- a/spyder/config/base.py +++ b/spyder/config/base.py @@ -360,7 +360,11 @@ def is_py2exe_or_cx_Freeze(): 'zh_CN': u'简体中文', 'ja': u'日本語', 'de': u'Deutsch', - 'pl': u'Polski' + 'pl': u'Polski', + 'fa': u'Persian', + 'hr': u'Croatian', + 'te': u'Telugu', + 'uk': u'Ukrainian', } # Disabled languages because their translations are outdated or incomplete