changeset 11785:3f488aa0d646

swedish yes/no options support
author wight
date Tue, 13 Jan 2004 09:55:40 +0000
parents 6d19216b4f2c
children 06474b60be53
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 22:48:03 2004 +0000
+++ b/etc/example.conf	Tue Jan 13 09:55:40 2004 +0000
@@ -54,6 +54,7 @@
 ## German	ja	nein
 ## Spanish	si	no
 ## Polish	tak	nie
+## Swedish ja nej
 ## Binary	1	0
 ##
 ## You can also use spaces and/or tabs.
--- a/m_option.c	Mon Jan 12 22:48:03 2004 +0000
+++ b/m_option.c	Tue Jan 13 09:55:40 2004 +0000
@@ -83,6 +83,7 @@
 	!strcasecmp(param, "j") ||
 	!strcasecmp(param, "i") ||
 	!strcasecmp(param, "tak") ||
+	!strcasecmp(param, "ja") ||
 	!strcmp(param, "1")) {
       if(dst) VAL(dst) = opt->max;
     } else if (!strcasecmp(param, "no") ||
@@ -92,6 +93,7 @@
 	       !strcasecmp(param, "nem") ||
 	       !strcasecmp(param, "n") ||
 	       !strcasecmp(param, "nie") ||
+	       !strcasecmp(param, "nej") ||
 	       !strcmp(param, "0")) {
       if(dst) VAL(dst) = opt->min;
     } else {