Commit e50c9edd authored by Volker Krause's avatar Volker Krause Committed by David Faure
Browse files

Add localized Russian month names

CCBUG: 445785
parent 71423958
......@@ -314,6 +314,7 @@ private Q_SLOTS:
T2("Montag & Dienstag Ruhetag", "Mo,Tu closed");
T2("Понедельник - Суббота 09:00 - 21:00", "Mo-Sa 09:00-21:00");
T2("Пон-Пт 08:00-20:00, Суб 08:00-19:00", "Mo-Fr 08:00-20:00, Sa 08:00-19:00");
T2("Ноябрь-Март", "Nov-Mar");
// recovery from wrong rule separators
T2("Fr,Sa 10:00-02:00,Su 10:00-20:00", "Fr,Sa 10:00-02:00, Su 10:00-20:00");
......
......@@ -147,6 +147,21 @@ Dec\.? { yylval->num = 12; return T_MONTH; }
"Novembre" { yylval->num = 11; return T_MONTH; }
"Décembre" { yylval->num = 12; return T_MONTH; }
/* Month names in Russian */
"Январь" { yylval->num = 1; return T_MONTH; }
"Февраль" { yylval->num = 2; return T_MONTH; }
"Март" { yylval->num = 3; return T_MONTH; }
"Апрель" { yylval->num = 4; return T_MONTH; }
"Май" { yylval->num = 5; return T_MONTH; }
"Июнь" { yylval->num = 6; return T_MONTH; }
"Июль" { yylval->num = 7; return T_MONTH; }
"Август" { yylval->num = 8; return T_MONTH; }
"Сентябрь" { yylval->num = 9; return T_MONTH; }
"Октябрь" { yylval->num = 10; return T_MONTH; }
"Ноябрь" { yylval->num = 11; return T_MONTH; }
"Декабрь" { yylval->num = 12; return T_MONTH; }
/* different quote types are sometimes mixed and/or used nested, so this is a compromise to catch most of them */
["][^"]*["] {
yylval->strRef.str = yytext + 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment