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

@@ -627,47 +627,26 @@
#define STRING_DATE_INVALID_FORMAT "'{1}' is not a valid date in the '{2}' format."
#define STRING_DATE_BAD_WEEKSTART "The 'weekstart' configuration variable may only contain 'Sunday' or 'Monday'."
#define STRING_DATE_JANUARY_LONG "january"
#define STRING_DATE_FEBRUARY_LONG "february"
#define STRING_DATE_MARCH_LONG "march"
#define STRING_DATE_APRIL_LONG "april"
#define STRING_DATE_MAY_LONG "may"
#define STRING_DATE_JUNE_LONG "june"
#define STRING_DATE_JULY_LONG "july"
#define STRING_DATE_AUGUST_LONG "august"
#define STRING_DATE_SEPTEMBER_LONG "september"
#define STRING_DATE_OCTOBER_LONG "october"
#define STRING_DATE_NOVEMBER_LONG "november"
#define STRING_DATE_DECEMBER_LONG "december"
#define STRING_DATE_JANUARY "january"
#define STRING_DATE_FEBRUARY "february"
#define STRING_DATE_MARCH "march"
#define STRING_DATE_APRIL "april"
#define STRING_DATE_MAY "may"
#define STRING_DATE_JUNE "june"
#define STRING_DATE_JULY "july"
#define STRING_DATE_AUGUST "august"
#define STRING_DATE_SEPTEMBER "september"
#define STRING_DATE_OCTOBER "october"
#define STRING_DATE_NOVEMBER "november"
#define STRING_DATE_DECEMBER "december"
#define STRING_DATE_JANUARY_SHORT "jan"
#define STRING_DATE_FEBRUARY_SHORT "feb"
#define STRING_DATE_MARCH_SHORT "mar"
#define STRING_DATE_APRIL_SHORT "apr"
#define STRING_DATE_MAY_SHORT "may"
#define STRING_DATE_JUNE_SHORT "jun"
#define STRING_DATE_JULY_SHORT "jul"
#define STRING_DATE_AUGUST_SHORT "aug"
#define STRING_DATE_SEPTEMBER_SHORT "sep"
#define STRING_DATE_OCTOBER_SHORT "oct"
#define STRING_DATE_NOVEMBER_SHORT "nov"
#define STRING_DATE_DECEMBER_SHORT "dec"
#define STRING_DATE_SUNDAY_LONG "sunday"
#define STRING_DATE_MONDAY_LONG "monday"
#define STRING_DATE_TUESDAY_LONG "tuesday"
#define STRING_DATE_WEDNESDAY_LONG "wednesday"
#define STRING_DATE_THURSDAY_LONG "thursday"
#define STRING_DATE_FRIDAY_LONG "friday"
#define STRING_DATE_SATURDAY_LONG "saturday"
#define STRING_DATE_SUNDAY_SHORT "sun"
#define STRING_DATE_MONDAY_SHORT "mon"
#define STRING_DATE_TUESDAY_SHORT "tue"
#define STRING_DATE_WEDNESDAY_SHORT "wed"
#define STRING_DATE_THURSDAY_SHORT "thu"
#define STRING_DATE_FRIDAY_SHORT "fri"
#define STRING_DATE_SATURDAY_SHORT "sat"
#define STRING_DATE_SUNDAY "sunday"
#define STRING_DATE_MONDAY "monday"
#define STRING_DATE_TUESDAY "tuesday"
#define STRING_DATE_WEDNESDAY "wednesday"
#define STRING_DATE_THURSDAY "thursday"
#define STRING_DATE_FRIDAY "friday"
#define STRING_DATE_SATURDAY "saturday"
// dependency
#define STRING_DEPEND_BLOCKED "Task {1} is blocked by:"