- Renamed all holiday files to include a locale, rather than just
  a country code.
- Enhanced update-holidays.pl add-on script to support regions,
  provide better error handling, error on missing Perl module,
  warnings on unavailable data, and help text.
- Updated documentation accordingly.
This commit is contained in:
Paul Beckingham 2011-04-10 15:37:30 -04:00
parent 40b2258589
commit 19582dd139
20 changed files with 86 additions and 21 deletions

View file

@ -1621,7 +1621,7 @@ used most. You can create your own, or use one of the samples to show holidays
on the calendar. Try adding this line to your ~/.taskrc file:
.RS
include /usr/local/share/doc/task/rc/holidays-US.rc
include /usr/local/share/doc/task/rc/holidays.en-US.rc
.RE
Then:
@ -1654,7 +1654,8 @@ $ task calendar
Legend: today, due, due-today, overdue, weekend, holiday, weeknumber.
.RE
There are holiday files for CA, DE, ES, FR, NL, SE, UK and US.
There are holiday files for be-BY, cs-CZ, da-DK, de-AT, de-DE, en-CA, en-GB,
en-NZ, en-US, es-ES, fr-FR, it-IT, nb-NO, nl-NL and sv-SE locales.
You can see the whole year, see due tasks as well, and see the holidays:

View file

@ -115,7 +115,7 @@ ones containing just the relevant configuration data like colors, etc.
There are two excellent uses of includes in your .taskrc, shown here:
.RS
include /usr/local/share/doc/task/rc/holidays-US.rc
include /usr/local/share/doc/task/rc/holidays.en-US.rc
.br
include /usr/local/share/doc/task/rc/dark-16.theme
.RE
@ -183,13 +183,6 @@ help text.
.SS MISCELLANEOUS
.TP
.B locale=en-US
The locale is a combination of ISO 639-1 language code and ISO 3166 country
code. If not specified, will assume en-US. If specified, taskwarrior will
locate the correct file of localized strings and proceed. It is an error to
specify a locale for which there is no strings file.
.TP
.B verbose=yes
Controls some of the verbosity of taskwarrior.
@ -562,7 +555,7 @@ be included like this:
.RS
.RS
.br
include /usr/local/share/doc/task/rc/holidays-US.rc
include /usr/local/share/doc/task/rc/holidays.en-US.rc
.RE
.RE