nephila / djangocms-blog

django CMS blog application - Support for multilingual posts, placeholders, social network meta tags and configurable apphooks
https://djangocms-blog.readthedocs.io
BSD 3-Clause "New" or "Revised" License
392 stars 192 forks source link

Russian slug to Latin #696

Open mamedovramil opened 2 years ago

mamedovramil commented 2 years ago

When creating a title in Russian, slug is also created in Russian, but the Latin alphabet is required. Setting allow_unicode = False in the model Post.translations.slug helps, but there is no separate setting for that.

fsbraun commented 2 years ago

@mamedovramil Which version of djangocms-blog are you using. I believe in 1.2.3 the allow_unicode = True option is set for all post slugs.

Or are you talking about category slugs? I fear there the flag is missing in version 1.2.3.

fsbraun commented 2 years ago

PS: Just included the allow_unicode=True setting in PR #695 since it fits the PR's purpose. The PR needs to be approved, however.

mamedovramil commented 2 years ago

@fsbraun sorry wrong, only setting allow_unicode = False helps to solve my problem. But I can't change that without editing blog model. My version is 1.2.3

-- When creating a title in Russian, slug is also created in Russian, but the Latin alphabet is required. Setting allow_unicode = False in the model Post.translations.slug helps, but there is no separate setting for that.

fsbraun commented 2 years ago

@mamedovramil All right, I misunderstood. You get Cyrillic letters proposed for the slug but need latin letters, right? This means right now you have to manually change the slug to latin letters.

Can you check if category slugs behave as you propose?

If I get this right, you propose a feature to make configurable in the settings.

mamedovramil commented 2 years ago

@fsbraun Correct. Category slug behave as I need.

yakky commented 1 year ago

Thanks a lot @fsbraun for taking care of this. Hopefully we will be able to merge support for this soon