This bug is still open on Debian, probably because it is impossible to
translate two visible letters ("Y" and "N") when the are many other
letters among the valid answers ("D", "V", "I", "C", "S", "W", "I",
"E"). Looking at the source code of aptitude we can see that the user
can do more than simply answer "yes" or "no". It's possible to "show
Dependencies", "see the Changelog", "Enter the full visual interface",
etc. The translation of "Y" into Portuguese, for example, is "S", which
conflicts with "show Size changes".

Two logical solutions to this bug would be:

  1) Do not translate the letters "Y" and "N".
  2) Show a complete menu with all options instead
     of the simple prompt " Y/n/? ", and, then,
     pass all letters to gettext.

The first solution is easy to implement, but we would end with a partial
localization of aptitude. The disadvantage of the second one is that a
simple question would be replaced with a complex one.

The implementation of the first solution is just a matter of replacing

    string response=prompt_string(_("Do you want to continue? [Y/n/?]
"));

with something like:

    printf(_("Do you want to continue?"));
    string response=prompt_string(" [Y/n/?] ");

Does anybody has a more creative fix to this bug?

-- 
The translation gives one set of keys for Y/n but aptitude only accepts Y or N
https://bugs.launchpad.net/bugs/66372
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to