From a2aabf5d19313b6644d89aff387cbe955baac5ad Mon Sep 17 00:00:00 2001 From: Jan Kupec Date: Mon, 27 Aug 2007 13:08:45 +0000 Subject: [PATCH] - mark [y/n] for translation (#304650) --- src/zypper-callbacks.cc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/zypper-callbacks.cc b/src/zypper-callbacks.cc index 8b9e5c8..81d0ea7 100644 --- a/src/zypper-callbacks.cc +++ b/src/zypper-callbacks.cc @@ -126,7 +126,8 @@ int read_action_ari (int default_action) { bool read_bool_answer(const string & question, bool default_answer) { if (!gSettings.machine_readable) - cout << CLEARLN << question << " [y/n]: " << flush; + cout << CLEARLN << question + << " [" << _("y") << "/" << _("n") << "]: " << flush; // non-interactive mode: print the answer for convenience and return default if (gSettings.non_interactive) @@ -143,20 +144,18 @@ bool read_bool_answer(const string & question, bool default_answer) bool been_here_before = false; while (stm.good () // TranslatorExplanation This is a Lowercase 'y' for "yes" used as an - // answer in y/n prompts. Translate to the same letter as you translated - // it in the "[y/n]" string!. + // answer in y/n prompts. This letter will appear in the "Question [y/n]" + // prompts and will be expected as a possible answer. && c != _("y") // TranslatorExplanation Uppercase 'Y' for "yes" used as an - // answer in y/n prompts. Translate to the same letter as you translated - // it in the "[y/n]" string!. + // answer in y/n prompts. && c != _("Y") // TranslatorExplanation Lowercase 'n' for "no" used as an - // answer in y/n prompts. Translate to the same letter as you translated - // it in the "[y/n]" string!. + // answer in y/n prompts. This letter will appear in the "Question [y/n]" + // prompts and will be expected as a possible answer. && c != _("n") // TranslatorExplanation Uppercase 'N' for "no" used as an - // answer in y/n prompts. Translate to the same letter as you translated - // it in the "[y/n]" string!. + // answer in y/n prompts. && c != _("N")) { if (been_here_before) -- 2.7.4