Bug 113790

Summary: vipw asks for editing shadow in local language but only "Y" is accepted as yes
Product: [Fedora] Fedora Reporter: Alexandre Strube <surak>
Component: util-linuxAssignee: Elliot Lee <sopwith>
Status: CLOSED RAWHIDE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-12-02 20:20:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alexandre Strube 2004-01-18 02:26:54 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031202

Description of problem:
If you edit /etc/passwd/ with vipw and saves the passwd file, it
immediately asks if you want to edit shadow. But if you're not using
english as your language, it asks in the right language, but only
expects a positive answer on the "Y" letter.

Version-Release number of selected component (if applicable):
util-linux-2.11y-29

How reproducible:
Always

Steps to Reproduce:
1. type "vipw" as root, using non-english desktop
2. edit it
3. save it.
    

Actual Results:  For instance, in brazilian portuguese, it asks 
Voc� est� usando senhas sombra (shadow) neste sistema
Voc� gostaria de editar /etc/shadow agora [s/n]s
(Translation: you're using shadow password on this system
would you like to edit shadow now?)

And if you press "S", nothing happens. Pressing "Y" works.

Expected Results:  Accept (in case of brazilian portuguese) the "s" as
positive answer, once it's the one on question.

Additional info:

Comment 1 Elliot Lee 2004-02-20 20:50:53 UTC
Solution: change the translation so that it says something like:
"Do you really want to save? (Yes = 'Y', No = 'N')"

Could get hairy

Comment 2 Eido Inoue 2004-02-20 21:04:05 UTC
This is a translation problem. You can't re-translate hot keys unless
the corresponding hotkeys are translated to. The hotkeys cannot always
be translated depending on the language and the application.

I agree with Elliot. The solution is to change the pt_BR.po file so it
reads:

Voc� est� usando senhas sombra (shadow) neste sistema
Voc� gostaria de editar /etc/shadow agora ["Y" = Sim, "N" = Não]

Comment 3 Alexandre Strube 2004-02-21 04:07:43 UTC
GNU nano (pine's pico cover) accepts both, Y and "S" (from Y in
portuguese), but asks in portuguese...

Comment 4 Elliot Lee 2004-12-02 20:20:06 UTC
Patch is in CVS to fix the .po files.