- Match localized answers for confirmation

Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
Rainer Müller 2013-02-19 22:15:14 -05:00 committed by Paul Beckingham
parent f9d74c9bed
commit 2bb601e6f2
3 changed files with 4 additions and 2 deletions

View file

@ -80,6 +80,7 @@ The following submitted code, packages or analysis, and deserve special thanks:
Fidel Mato
Justin Forest
Vincent Petithory
Rainer Müller
Thanks to the following, who submitted detailed bug reports and excellent
suggestions:

View file

@ -98,6 +98,7 @@ Bugs
+ Fixed a bug where the bash completion script was causing gc() to be run.
+ Fixed manpages that were not installed when running an out-of-source build
(thanks to Vincent Petithory).
+ Added missing localized confirmation strings (thanks to Rainer Müller).
------ old releases ------------------------------

View file

@ -70,8 +70,8 @@ static inline unsigned round_up_to (unsigned n, unsigned target)
bool confirm (const std::string& question)
{
std::vector <std::string> options;
options.push_back ("yes");
options.push_back ("no");
options.push_back (STRING_UTIL_CONFIRM_YES);
options.push_back (STRING_UTIL_CONFIRM_NO);
std::string answer;
std::vector <std::string> matches;