changeset 11781:03baca2aa79c

polish yes/no options support
author wight
date Mon, 12 Jan 2004 07:09:10 +0000
parents 8e7098f960f8
children 423af01a4ceb
files etc/example.conf m_option.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/etc/example.conf	Mon Jan 12 06:30:30 2004 +0000
+++ b/etc/example.conf	Mon Jan 12 07:09:10 2004 +0000
@@ -53,6 +53,7 @@
 ## English	yes	no
 ## German	ja	nein
 ## Spanish	si	no
+## Polish	tak	nie
 ## Binary	1	0
 ##
 ## You can also use spaces and/or tabs.
--- a/m_option.c	Mon Jan 12 06:30:30 2004 +0000
+++ b/m_option.c	Mon Jan 12 07:09:10 2004 +0000
@@ -82,6 +82,7 @@
 	!strcasecmp(param, "y") ||
 	!strcasecmp(param, "j") ||
 	!strcasecmp(param, "i") ||
+	!strcasecmp(param, "tak") ||
 	!strcmp(param, "1")) {
       if(dst) VAL(dst) = opt->max;
     } else if (!strcasecmp(param, "no") ||
@@ -90,6 +91,7 @@
 	       !strcasecmp(param, "nicht") ||
 	       !strcasecmp(param, "nem") ||
 	       !strcasecmp(param, "n") ||
+	       !strcasecmp(param, "nie") ||
 	       !strcmp(param, "0")) {
       if(dst) VAL(dst) = opt->min;
     } else {