lightdm-gtk-greeter icon indicating copy to clipboard operation
lightdm-gtk-greeter copied to clipboard

New password process localization

Open Jorilx opened this issue 4 years ago • 6 comments

When a user password expires, the process that allows to set a new one shows messages that are not translated according to the system locale.

Even though the rest of the UI is shown in my language, here's what I'm seeing when my password expires:

  1. I type the current (old) password
  2. The message "Changing password for (user)" appears
  3. I retype the old password
  4. "New password" appears and I type it
  5. "Retype new password" appears

I'm using LightDM 1.26.0 and lightdm-gtk-greeter 2.0.6 on Devuan 3.0 (similar to Debian 10). Is this a known bug? Should I check something on my system?

Jorilx avatar Aug 25 '20 15:08 Jorilx

I just did a bit of grepping, that message isn't in this repository. You should probably check the lightdm repo.

bagnacauda avatar Dec 21 '20 07:12 bagnacauda

@bagnacauda Actually that message comes from linux-pam (libpam-runtime package on Debian), here. It looks like PAM is not using the system locale (but only when called from lightdm, after login everything is OK). I was wondering if this is because lightdm-gtk-greeter is somehow telling PAM to use the C locale instead of the system one, or maybe it's lightdm itself that calls the PAM modules?

Jorilx avatar Dec 21 '20 08:12 Jorilx

Good night. I have the same problem with Linux-PAM an shadow translations using 'pi-greeter' or 'lightdm-gtk greeter' on Raspberry Pi OS based on Debian 10 (buster). My system is completely updated and localization works well through terminal but it doesn't show the right translated messages when forcing password change at user's first logon. It shows the same information in english (not spanish, in my case) that @Jorilx already explained. Hope you can help us to find a solution. Thank you very much in advance. Best Regards

joeoharasp avatar Jan 26 '21 02:01 joeoharasp

Hi @bluesabre Would you be willing to accept a patch like this?

https://github.com/linuxmint/mdm/blob/31845a618704ea6b4adcd44f69a70cba1f949b95/daemon/verify-pam.c#L173-L228

matiasdelellis avatar Jul 28 '21 22:07 matiasdelellis

p.s: We can also put the individual texts in a header that would be even easier .. 🙈

I admit that it is not nice to translate texts from another library, and they can change the text at any time... but it is probably rare..

matiasdelellis avatar Jul 28 '21 22:07 matiasdelellis

@matiasdelellis Yes, I think a patch like this should be reasonable.

bluesabre avatar Nov 16 '21 02:11 bluesabre