From 229554044dc4894313198de46b489449df442e5c Mon Sep 17 00:00:00 2001 From: wight Date: Mon, 12 Jan 2004 07:09:10 +0000 Subject: [PATCH] polish yes/no options support git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11782 b3059339-0415-0410-9bf9-f77b7e298cf2 --- etc/example.conf | 1 + m_option.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/etc/example.conf b/etc/example.conf index 4a8afa812f..33aff8e9be 100644 --- a/etc/example.conf +++ b/etc/example.conf @@ -53,6 +53,7 @@ fs=yes # Enlarges movie window to your desktop's size. ## English yes no ## German ja nein ## Spanish si no +## Polish tak nie ## Binary 1 0 ## ## You can also use spaces and/or tabs. diff --git a/m_option.c b/m_option.c index 3be937f76b..01fdbfdb61 100644 --- a/m_option.c +++ b/m_option.c @@ -82,6 +82,7 @@ static int parse_flag(m_option_t* opt,char *name, char *param, void* dst, int sr !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 @@ static int parse_flag(m_option_t* opt,char *name, char *param, void* dst, int sr !strcasecmp(param, "nicht") || !strcasecmp(param, "nem") || !strcasecmp(param, "n") || + !strcasecmp(param, "nie") || !strcmp(param, "0")) { if(dst) VAL(dst) = opt->min; } else {