Changeset 1554983
- Timestamp:
- 12/14/2016 08:55:04 PM (9 years ago)
- Location:
- bulglish-permalinks/trunk
- Files:
-
- 2 edited
-
bulglish-permalinks.php (modified) (2 diffs)
-
readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bulglish-permalinks/trunk/bulglish-permalinks.php
r1369048 r1554983 2 2 /* 3 3 Plugin Name: Bulglish permalinks 4 Plugin URI: http ://talkingaboutthis.eu5 Description: This plugins provides bulglish permalinks for cyrillic titles and filenames. Based on the work of Iacovos Constantinou4 Plugin URI: https://github.com/talkingaboutthis/bulglish-permalinks 5 Description: This plugins transliterates cyrillic URL slugs to latin characters. 6 6 Author: Boyan Raichev 7 Version: 1. 3.07 Version: 1.4.0 8 8 Author URI: http://talkingaboutthis.eu/ 9 9 */ 10 10 11 // Based on http://www.freestuff.gr/forums/viewtopic.php?p=194579#19457912 11 function bulglish_permalinks_title($text) { 13 12 … … 60 59 return $file; 61 60 } 62 add_filter('wp_handle_upload_prefilter', 'bulglish_filenames' ); 61 62 if (!defined('CYR2LAT_FILENAMES') OR CYR2LAT_FILENAMES==true) { 63 add_filter('wp_handle_upload_prefilter', 'bulglish_filenames' ); 64 } 63 65 ?> -
bulglish-permalinks/trunk/readme.txt
r1369061 r1554983 4 4 Tags: bulgarian, bulgarian permalink, cyrillic, slugs, transliteration 5 5 Requires at least: 3.0.1 6 Tested up to: 4. 4.27 Stable tag: 1. 3.06 Tested up to: 4.7 7 Stable tag: 1.4.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 13 13 == Description == 14 14 15 This plugin converts Bulgarian cyrillic characters in slugs and filenames to Latin characters, according to the official rules for transliteration. 15 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%…) 16 16 17 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%…) 18 The Plugin based on the work of Iacovos Constantinou for a similar plugin for greek alphabet. 19 20 The plugin automatically converts slugs when a post is created, as well as file names, when a file is uploaded. 17 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 21 18 22 19 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. … … 29 26 30 27 1. Upload the plugin folder to the `/wp-content/plugins/` directory. 31 1. Activate the plugin through the 'Plugins' menu in WordPress.28 2. Activate the plugin through the 'Plugins' menu in WordPress. 32 29 33 30 == Frequently Asked Questions == 34 31 32 = How do I stop transliteration of media uploads? = 33 34 Put the following in your wp-config.php file: 35 define('CYR2LAT_FILENAMES',false); 35 36 36 37 == Screenshots == … … 38 39 39 40 == Changelog == 41 42 = 1.4.0 = 43 * File names transliteration now optional 40 44 41 45 = 1.3.0 = … … 54 58 == Upgrade Notice == 55 59 60 = 1.4.0 = 61 File names transliteration now optional 62 56 63 = 1.3.0 = 57 64 Auto converts filenames upon upload
Note: See TracChangeset
for help on using the changeset viewer.