khal
khal copied to clipboard
birthday localisation string?
https://github.com/pimutils/khal/blob/fc5c2bfe8f8ea54e665d83d484f00cea0a6777c3/khal/khalendar/backend.py#L288
Could we add a lang
option for calendars of type = birthdays
, so that a localized string is used?
Yes, but as there is no localisation in khal of any kind right now, so this would either be a special case or we would need to tackle localisation in general.
Maybe allow users to specify format strings under [locale]
? (I randomly chose one-letter specifiers)
[locale]
bdayformat = "%a's %nth birthday"
anniformat = "%a's %nth anniversary"
miscformat = "%nth %l"
where %l
in miscformat could be X-ABLABEL
(I don't really know how that's used).
I'm referring to
https://github.com/pimutils/khal/blob/6bf9c8e47b3831782d9341ace8ea18b2c78d4860/khal/khalendar/backend.py#L266-L267
where the description could be composed. Would an (english) default be set here?
https://github.com/pimutils/khal/blob/a6d7d62388d33459e85dfb5cf57a31c46f120769/khal/settings/utils.py#L192