Bulglish Permalinks
This plugin converts Bulgarian cyrillic characters in slugs and filenames to Latin characters, according to the official rules for transliteration. Cyrillic letters in URLs, while supported, are ugly and when copy/pasted around the internet are often encoded (converted to those ugly URLs looking lik
This plugin converts Bulgarian cyrillic characters in slugs and filenames to Latin characters, according to the official rules for transliteration. Cyrillic letters in URLs, while supported, are ugly and when copy/pasted around the internet are often encoded (converted to those ugly URLs looking like %DU^ED%…)
The plugin automatically converts slugs when a post is created or updated. It also automatically will convert cyrillic characters in filenames, upon media upload. The filename conversion can be disabled through wp-config.php
It will also work for Russian permalinks, as it matches all the letters in the Russian alphabet, although the user should have in mind that there are minor differences in the common transliterations rules in the two languages.
Features
- Automatically converts existing post, page and taxonomy slugs when you save them
- 01Upload the plugin folder to the /wp-content/plugins/ directory.
- 02Activate the plugin through the ‘Plugins’ menu in WordPress.
Frequently asked questions.
How do I change the transliteration rules?
You can change the transliteration rules by using the bulglish_permalinks_map filter. For example, to transliterate “я” as “ia” instead of “ya”, add the following code to your theme’s functions.php file:
function my_bulglish_permalinks_map( $map ) { $map['я'] = 'ia'; $map['Я'] = 'ia'; return $map; } add_filter( 'bulglish_permalinks_map', 'my_bulglish_permalinks_map' );
The filter receives the default transliteration map and must return the modified map. Any rules you do not change retain their default values.
How do I stop transliteration of media uploads?
Put the following in your wp-config.php file:
define('CYR2LAT_FILENAMES',false);