If you happen to write Word Press posts in one of the Cyrillic-based languages (i.e. Russian, Bulgarian, Ukrainian, Belarusian, etc.) and are using post’s title in Permalinks then you know that your post’s URL will become an unreadable mash of encoded characters (like %45%f0%…)
I got finally tired of changing encoded slugs to their latin equivalents on my son’s blog, and started looking for ways to automate this process. The Cyrillic Slugs plug-in written by Petko Bossakov was my only alternative at the time in WordPress plug-in repository. Unfortunatelly that plug-in didn’t work for me, since Cyrillic Slugs expects the page to be written in Windows-1251 encoding, and my blog uses WP’s default/recommended UTF-8. Hence Cyr2Lat Slugs plug-in was born.
Here’s a sample that illustrates what this plug-in does.
Before Cyr2Lat Slugs:
- You write a post with title “?????? ?????????”
- WordPress creates permalink like this:
http://www.myblog.com/2008/12/19/%d0%bf%d1%80%d…b2%d0%ba%d0%b0
After Cyr2Lat Slugs:
- You write a post with title “?????? ?????????”
- WordPress creates permalink like this:
http://www.myblog.com/2008/12/19/primer-zagolovka
Cyr2Lat Slugs is based on Petko’s original idea and uses one of his functions, but otherwise is written in a more contemporary, object-oriented fashion. It also uses strtr function instead of str_replace which should be much faster.
Please note that you have to save post (click Save or Publish button) for slug conversion to take place!
Version: 1.0
Requirements: WP 2.3+ (WP MU compatible)
Author: Ruslan Ulanov
License: GPL
Download Cyr2Lat Slugs plug-in now.
Installation:
- Copy file cyr2lat-slugs.php to folder wp-content/plugins/ on your server.
- Activate Cyr2Lat Slugs in Plugins menu of your blog’s admin interface.
- You’re done. There are no options to configure.
Comments are welcome (moderated, no spam please).
#
*In Russian*
Cyr2Lat Slugs ??? ?????? ??? ????????? Word Press, ??????? ????????? ??????? ????? ? ????????? ????? ? ???????? (????????), ??? ????? ????? URL ???????? ? ????????? ??? ???????????.
???????????????? ?????? ??????? Cyr2Lat Slugs ?? ???????.
?? ????????? Cyr2Lat Slugs:
- ?? ?????? ???? ? ?????????? “?????? ?????????”
- WordPress ??????? ??? ???? ?????????:
http://www.myblog.com/2008/12/19/%d0%bf%d1%80%d…b2%d0%ba%d0%b0
????? ????????? Cyr2Lat Slugs:
- ?? ?????? ???? ? ?????????? “?????? ?????????”
- WordPress ??????? ??? ???? ?????????:
http://www.myblog.com/2008/12/19/primer-zagolovka
??????????: ???? ?????????? ????????? (?????? ?????? Save ??? Publish), ????? ????????? ??? ????????? ? ????????!
??????: 1.0
??????????: WP 2.3+ (???????? ? WP MU)
?????: ?????? ??????
????????: GPL
?????????:
- ?????????? ???? cyr2lat-slugs.php ? ????? wp-content/plugins/ ?? ???????.
- ??????????? Cyr2Lat Slugs ? ???? Plugins ????????????????? ?????????? ?????? ?????.
- ??????. ?????? ?????? ??????????????? ?? ????.
??????????? ?????????????? (?? ????????????, ??? ?????????? ?????).
hi. Thanks for plugin
perfect.
Regards
baron
12 Dec 08 at 4:54 am
Unfortunally, this plugin doesn’t work on re-publishing old posts…
Anyway, thank you very much!
Eugene
21 Mar 09 at 1:53 am
Hello,
I just downloaded your plugin and will give it a try.
I would like to ask – is there a way to change the transliteration rules (to correspond the Bulgarian alphabet)
Thank you.
Dimitre
7 Apr 09 at 11:47 pm
?????? ??? ??? ???-?? ?????? ???????????? ?????. ??????? ?? ??????????, ????? ?????????.
Illiblyneew
12 May 09 at 11:18 am
?????????? ????, ???????? ?? ?????
Steptacramp
12 May 09 at 7:31 pm
???????? ?? ? ????? ??????
JatBoodssnins
13 May 09 at 8:02 am
??????? ? ????????? ? ?????? ????? ????? ? ???? ??????????
Greehorgops
14 May 09 at 7:50 am
?????. ? ?? ??????.
rusgrafx
21 May 09 at 6:54 pm
???-???? ??????? ??????????? – ????. ???????? ?? ??????? ????, ?? ???????? ?????? ??????????, ?????? ??????? ? ???? ???????????? ???????? ? ????? ????????? ??? ???? ????? ????? ??????? ?? ???? ?????.
Xo????????o?a
25 May 09 at 6:43 pm
??????? ?? ?? ??? ???????? ??? ???, ????? ??? ????????
MamyGreespemy
9 Oct 09 at 6:12 pm