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

Parse localized Russian day names

CCBUG: 445785
parent e5a2d990
......@@ -312,6 +312,8 @@ private Q_SLOTS:
T3("Ma,Me,Je,Ve 8h-12h30, 14h-19h; Sa 8h-12h30, 14h-18h", "Tu,We,Th,Fr 08:00-12:30,14:00-19:00; Sa 08:00-12:30,14:00-18:00", "Tu-Fr 08:00-12:30,14:00-19:00; Sa 08:00-12:30,14:00-18:00");
T2("Mo-Fr: 10:00-18:30 Uhr Sa: 10:00-13:30 Uhr", "Mo-Fr 10:00-18:30; Sa 10:00-13:30");
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");
// 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");
......
......@@ -268,6 +268,15 @@ Jumat { yylval->num = 5; return T_WEEKDAY; }
Sabtu { yylval->num = 6; return T_WEEKDAY; }
Minggu { yylval->num = 7; return T_WEEKDAY; }
/* Russian localized day names */
Понедельник|Пон|Пк { yylval->num = 1; return T_WEEKDAY; }
Вторник|Вто|Вт { yylval->num = 2; return T_WEEKDAY; }
Среда|Сре|Ср { yylval->num = 3; return T_WEEKDAY; }
Четверг|Чет|Чт { yylval->num = 4; return T_WEEKDAY; }
Пятница|Пят|Пя|Пт { yylval->num = 5; return T_WEEKDAY; }
Суббота|Суб|Су|Сб { yylval->num = 6; return T_WEEKDAY; }
Воскресенье|Вос|Во { yylval->num = 7; return T_WEEKDAY; }
/* creative rule separators */
、|and|et|e|y|und|& { return T_ADDITIONAL_RULE_SEPARATOR; }
......
Supports Markdown
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