Skip to content

birthday localisation string? #842

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sharethewisdom opened this issue Mar 1, 2019 · 2 comments
Open

birthday localisation string? #842

sharethewisdom opened this issue Mar 1, 2019 · 2 comments

Comments

@sharethewisdom
Copy link

vevent.add('summary', '{0}\'s birthday'.format(name))

Could we add a lang option for calendars of type = birthdays, so that a localized string is used?

@geier
Copy link
Member

geier commented Sep 12, 2019

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.

@sharethewisdom
Copy link
Author

sharethewisdom commented Sep 14, 2019

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

for key in vcard.keys():
if key in ['BDAY', 'X-ANNIVERSARY', 'ANNIVERSARY'] or key.endswith('X-ABDATE'):

where the description could be composed. Would an (english) default be set here?

def config_checks(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants