NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.94k stars 13.96k forks source link

Translation missing from certain Cinnamon components #121307

Open Aakodal opened 3 years ago

Aakodal commented 3 years ago

Some Cinnamon modules are not translated, examples are:


Edit - @bobby285271: The original issue is a packaging request for mintlocale but the discussion part is mostly about cinnamon localization so I am converting this issue to serve that purpose. Note that this package requires apt package manager and cannot really do what it should here. Here is the original issue:

Project description mintlocale is Cinnamon's language helper. It allows users to change their DE's language. Currently, Cinnamon is only available in english under NixOS.

Metadata

svavs commented 3 years ago

The Cinnamon interface follows the system locale (i18n.defaultLocale), not exclusively english, if you install the cinnamon.cinnamon-translations package. This worked to me to have the system settings voices in italian. The mintlocale is helpful to switch between system languages as far as I know.

mkg20001 commented 3 years ago

@svavs Was installing cinnamon-translations required separately from enabling cinnamon?

I'd have to add it to the module then

@Aakodal Not sure if mintlocale should be included, since it goes against nixOS principles.

svavs commented 3 years ago

@mkg20001 yes. I've done a first install from the NixOS KDE iso and then, after switching to Cinnamon, I had to add environment.systemPackages = with pkgs; [ cinnamon.cinnamon-translations ]; to have the package installed and the italian interface. Anyway, now I have the control center in my main locale, but the shutdown and disconnect menus are recently again in english, don't know why.

Forgive my ignorance, but for what reason mintlocale does not respect the NixOS principles? It's still a useful package to have in Cinnamon (otherwise in the control center is missing the Language section).

mkg20001 commented 3 years ago

@svavs nixOS is very bold on things being configured through configuration.nix, like i18n.defaultLocale. I'm not sure if it is a problem when mintlocale sets the locale for just a specific user, but changing the system locale should only be possible through configuration.nix.

svavs commented 3 years ago

@mkg20001 have you any idea why I'm having only the shutdown and disconnect menus in english? All the sistem is translated (Nemo too). Could this be related to the mintlocale things?

mkg20001 commented 3 years ago

The PR for fixing the locale is here https://github.com/NixOS/nixpkgs/pull/124056

Do you mean this UI? Mine seems translated

image

svavs commented 3 years ago

The PR for fixing the locale is here #124056

Thank you!

Do you mean this UI? Mine seems translated

Yes. The Nemo menu and the desktop icons (see Trash below) are in english too. This is my situation: Schermata del 2021-05-22 22-10-48

mkg20001 commented 3 years ago

I updated my PR and patched the locale in some places

The display settings and the floppy disk still aren't translated, but I guess that's for another time.

You can apply the patches to your local nixpkgs (in case you use a fork) or use https://github.com/mkg20001/nixpkgs/archive/cinnamonlocale.tar.gz as a channel temporarily to get everything translated

image

svavs commented 3 years ago

I updated my PR and patched the locale in some places

Thank you for your work! I'll check it :)

mkg20001 commented 2 years ago

It appears everything is translated now. In case anyone noticed something not being translated please comment/reopen.

svavs commented 2 years ago

Am I missing something in my configuration? I've just upgrated to 21.11 on the stable channel. Schermata del 2021-12-06 18-47-00 .

mkg20001 commented 2 years ago

Strange. This is only affecting some of the content.