linuxmint / mint22-beta

BETA Bug Squash Rush
33 stars 1 forks source link

l10n: Adding Turkish in mintlocale automatically adds Italian, which can't be removed #151

Closed gunerc closed 4 months ago

gunerc commented 4 months ago

Hello,

My Mint22 Beta system language is En-US, and keyboard/region/time language is Turkish. When I add Turkish language support files via System Settings' Language Settings GUI, Italian-Itally language support and its related files are added automatically too unwantedly. Afterwards when I click Remove button to uninstall Italian-Italy language in GUI, it does not work, it is not removed.

Then I manually unistall all Italian related language files manuall by cli:

guner@hpg62:~/Desktop$ sudo apt purge hunspell-it hyphen-it language-pack-gnome-it language-pack-it libreoffice-help-it libreoffice-l10n-it mythes-it witalian language-pack-gnome-it-base language-pack-it-base hunspell-it

However, after removal, Italian language support still remains appearing in Install / Remove Languages' GUI.

Would this be corrected: no addition of Italian language support when Turkish is added and it can be removed and not remain via/in GUI.

Kind Regards. Screenshot from 2024-07-10 17-51-01

clefebvre commented 4 months ago

I'm pretty sure this is upstream from us and specific to Ubuntu and their language-pack.. I'll try to find more info.

clefebvre commented 4 months ago

The postinst for the language pack calls locale-gen.

Locale-gen doesn't just generate TR_CY, it also generates TR_CY which collides with IT_IT, see the hash collision here:

image

This has been observed for years in Ubuntu. Here's an example:

https://ubuntuforums.org/showthread.php?t=1652079

I don't think it's a bug per se, I think it's by design. Ubuntu completely redesigned the way locales work and deviated from Debian to introduce the notion of language packs, i.e. the grouping of different locales under the same packs.

What you're seeing here are unwanted links between locales. It doesn't just bring Italian via Turkish-Cyprus, it can bring a multitude of locales closely or remotely related to your installed locales.

I'll close this now since it's upstream from us.