Bug#1054475: spyder: Fix language autoconfiguration

2023-10-28 Thread Samuel Thibault
Julian Gilbey, le sam. 28 oct. 2023 20:06:53 +0100, a ecrit:
> On Fri, Oct 27, 2023 at 07:33:19PM +0200, Samuel Thibault wrote:
> > Control: tags -1 + fixed-upstream.
> > 
> > Samuel Thibault, le mar. 24 oct. 2023 13:40:58 +0200, a ecrit:
> > > 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?
> > 
> > Upstream preferred to apply the attached patch, which explicitly
> > disables these language (they are incomplete translations)
> > [...]
> 
> Ah, so it is probably not worth applying this to bookworm, as these
> languages are not enabled at present in the bookworm version, and this
> patch would essentially leave them disable.  Is that a correct
> understanding?

No, it is missing the point: currently, language autoconfiguration
is broken even for complete translations: even if you have a
french-installed Debian, spyder will by default show an english
interface, even if the french translation *is* complete. That is because
of a bug that is fixed by

https://github.com/spyder-ide/spyder/pull/21451/commits/7daea2051fbd28c9bf60523423366e96d68d660a

but rather than backporting that codechange which might uncover
who-knows-what bug, better apply the language list update patch:

https://github.com/spyder-ide/spyder/pull/21451/commits/28c12114299d8da8e58ee150cf1f7af1e0fd75b4

which happens to avoid the bug and let language autoconfiguration
actually work (for those languages which are not disabled due to
incompleteness).

Samuel

-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#1054475: spyder: Fix language autoconfiguration

2023-10-28 Thread Julian Gilbey
Hello Samuel,

On Fri, Oct 27, 2023 at 07:33:19PM +0200, Samuel Thibault wrote:
> Control: tags -1 + fixed-upstream.
> 
> Hello,
> 
> Samuel Thibault, le mar. 24 oct. 2023 13:40:58 +0200, a ecrit:
> > 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?
> 
> Upstream preferred to apply the attached patch, which explicitly
> disables these language (they are incomplete translations)
> [...]

Ah, so it is probably not worth applying this to bookworm, as these
languages are not enabled at present in the bookworm version, and this
patch would essentially leave them disable.  Is that a correct
understanding?

Best wishes,

   Julian

-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#1054475: spyder: Fix language autoconfiguration

2023-10-27 Thread Samuel Thibault
Control: tags -1 + fixed-upstream.

Hello,

Samuel Thibault, le mar. 24 oct. 2023 13:40:58 +0200, a ecrit:
> 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?

Upstream preferred to apply the attached patch, which explicitly
disables these language (they are incomplete translations)

Samuel

> 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.
commit 28c12114299d8da8e58ee150cf1f7af1e0fd75b4
Author: Samuel Thibault 
Date:   Tue Oct 24 13:05:45 2023 +0200

Fix language autoconfiguration for fa, hr, te, uk

Addition to LANGUAGE_CODES and DISABLED_LANGUAGES was missed.

diff --git a/spyder/config/base.py b/spyder/config/base.py
index a10bbec7f..1f64cb1cb 100644
--- a/spyder/config/base.py
+++ b/spyder/config/base.py
@@ -360,11 +360,15 @@ 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
-DISABLED_LANGUAGES = ['hu', 'pl']
+DISABLED_LANGUAGES = ['fa', 'hr', 'hu', 'pl', 'te', 'uk']
 
 
 def get_available_translations():
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#1054475: spyder: Fix language autoconfiguration

2023-10-24 Thread Samuel Thibault
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  

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  python33.11.4-5+b1
ii  python3-atomicwrites   1.4.1-1
ii  python3-autopep8   2.0.4-1
ii  python3-chardet5.2.0+dfsg-1
ii  python3-cloudpickle2.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-ipython8.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-keyring24.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-pexpect4.8.0-4
ii  python3-pickleshare0.7.5-5
ii  python3-pkg-resources  68.1.2-2
ii  python3-psutil 5.9.5-1
ii  python3-pycodestyle2.10.0-1
ii  python3-pydocstyle 6.3.0-1
ii  python3-pygments   2.15.1+dfsg-1
ii  python3-pylint-venv3.0.2-1
ii  python3-pyls-spyder0.4.0-2
ii  python3-pylsp  1.7.4-1
ii  python3-pylsp-black1.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-merge0.1.1-4
ii  python3-watchdog   3.0.0-1
ii  python3-xdg0.28-2
ii  python3-zmq24.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  
pn  python3-numpy   
pn  python3-pandas  
ii  python3-pil 10.0.0-1
pn  python3-scipy   
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  libqt5dbus55.15.10+dfsg-3
ii  libqt5designer55.15.10-5
ii  libqt5gui5 5.15.10+dfsg-3
ii  libqt5help55.15.10-5
ii  libqt5network5 5.15.10+dfsg-3
ii  libqt5printsupport55.15.10+dfsg-3
ii  libqt5test55.15.10+dfsg-3
ii  libqt5widgets5 5.15.10+dfsg-3
ii  libqt5xml5