Date: Collapsed 'sunday' and 'sun' into a closeEnough() call

- Removed the STRING_DATE_JANUARY_LONG and STRING_DATE_JANUARY_SHORT,
  replacing them with STRING_DATE_JANUARY and a call to closeEnough().
  This means you can enter 'jan', 'janu', 'janua', 'januar', 'january',
  instead of only 'jan' or 'january'.
This commit is contained in:
Paul Beckingham
2015-07-19 19:52:36 -04:00
parent 2dd2bd22b8
commit f1251303de
12 changed files with 225 additions and 408 deletions

View File

@@ -118,7 +118,7 @@ std::string Config::_defaults =
"dateformat.annotation= # Preferred display date format for annotations\n"
"date.iso=yes # Enable ISO date support\n"
"weekstart="
STRING_DATE_SUNDAY_LONG
STRING_DATE_SUNDAY
" # Sunday or Monday only\n"
"displayweeknumber=yes # Show week numbers on calendar\n"
"due=7 # Task is considered due in 7 days\n"