]> git.sur5r.net Git - bacula/bacula/commitdiff
o get_yesno check for yes/no and local _(yes) _(no)
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 22 Jul 2006 10:37:35 +0000 (10:37 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sat, 22 Jul 2006 10:37:35 +0000 (10:37 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3166 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/ua_input.c

index f1101d2cd09c95a095d665e17e16f86d0c81c555..98030367b3bd81d606b0ba1e09f9dda5ee706cf3 100644 (file)
@@ -117,11 +117,15 @@ bool get_yesno(UAContext *ua, const char *prompt)
       if (len < 1 || len > 3) {
          continue;
       }
-      if (strncasecmp(ua->cmd, _("yes"), len) == 0) {
+      if ((strncasecmp(ua->cmd,   _("yes"), len) == 0)  ||
+         (strncasecmp(ua->cmd, NT_("yes"), len) == 0)) 
+      {
          ua->pint32_val = 1;
          return true;
       }
-      if (strncasecmp(ua->cmd, _("no"), len) == 0) {
+      if ((strncasecmp(ua->cmd,   _("no"), len) == 0)  ||
+         (strncasecmp(ua->cmd, NT_("no"), len) == 0))
+      {
          return true;
       }
       bsendmsg(ua, _("Invalid response. You must answer yes or no.\n"));