djangocms-blog icon indicating copy to clipboard operation
djangocms-blog copied to clipboard

Russian slug to Latin

Open mamedovramil opened this issue 3 years ago • 6 comments

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.

mamedovramil avatar Dec 12 '21 21:12 mamedovramil

@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 avatar Dec 13 '21 10:12 fsbraun

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.

fsbraun avatar Dec 13 '21 10:12 fsbraun

@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.

mamedovramil avatar Dec 13 '21 17:12 mamedovramil

@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.

fsbraun avatar Dec 13 '21 19:12 fsbraun

@fsbraun Correct. Category slug behave as I need.

mamedovramil avatar Dec 13 '21 19:12 mamedovramil

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

yakky avatar Jul 28 '22 21:07 yakky