Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Pass language to slugify and unslugify. (WIP) #2284
Since slugify could be used by plugins, unless you want this to have to
El dom., mar. 6, 2016 14:15, Felix Fontein firstname.lastname@example.org
It is important for a german site since it is the grammatically correct representation.
Wordpress supports it since Version 3.6:
before, most people used a plugin.
To implement this as a plugin would be ok for me.
there is a python module that does what we want:
@davidak: this Python module cannot be used for all languages since for most it would be simply wrong. Also, I wonder how well it works for languages such as Chinese and Japanese.
My goal is to not change Nikola's default behavior, but to just enable this to be changed by plugins without writing a really insane plugin (which does post preprocessing etc.). Such a plugin could use this Python module for the German language, though.
About WordPress: I wonder why they only support de_DE and not also de_CH and de_AT. Also, the current version of WordPress uses similar translations for Danish (da_DK).
Seems to work fine. I created a mini plugin for testing, for those who are interested, which can be put into the
The code (
I recommend to remove the
So from my side, merging is fine.