idno / events

A lightweight way to post or reply to events.
0 stars 3 forks source link

Localising "Event" and "Events" can break category URLs #5

Open cdn opened 4 years ago

cdn commented 4 years ago

If you create an events.po for French, and add msgid "Event" and msgid "Events" and their msgstr translations for the strings in ContentType.php you can end up with /content/%E3%89v%E3%A9nements which will not give you filtered posts.

If you localise sans diacritics the code in Idno/Common/ContentType.php can handle it.

cdn commented 4 years ago

This is partly down to routing, and partly the functions in ContentType.php

If you overload the slug function then there’s a mismatch to the category string

msgid "Events" msgstr "Événements"