Plugin Directory

Changeset 1554983


Ignore:
Timestamp:
12/14/2016 08:55:04 PM (9 years ago)
Author:
studioreforma
Message:

File name conversion optional

Location:
bulglish-permalinks/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bulglish-permalinks/trunk/bulglish-permalinks.php

    r1369048 r1554983  
    22/*
    33Plugin Name: Bulglish permalinks
    4 Plugin URI: http://talkingaboutthis.eu
    5 Description: This plugins provides bulglish permalinks for cyrillic titles and filenames. Based on the work of Iacovos Constantinou
     4Plugin URI: https://github.com/talkingaboutthis/bulglish-permalinks
     5Description: This plugins transliterates cyrillic URL slugs to latin characters.
    66Author: Boyan Raichev
    7 Version: 1.3.0
     7Version: 1.4.0
    88Author URI: http://talkingaboutthis.eu/
    99*/
    1010
    11 // Based on http://www.freestuff.gr/forums/viewtopic.php?p=194579#194579
    1211function bulglish_permalinks_title($text) {
    1312   
     
    6059    return $file;
    6160}
    62 add_filter('wp_handle_upload_prefilter', 'bulglish_filenames' );
     61
     62if (!defined('CYR2LAT_FILENAMES') OR CYR2LAT_FILENAMES==true) {
     63    add_filter('wp_handle_upload_prefilter', 'bulglish_filenames' );
     64}
    6365?>
  • bulglish-permalinks/trunk/readme.txt

    r1369061 r1554983  
    44Tags: bulgarian, bulgarian permalink, cyrillic, slugs, transliteration
    55Requires at least: 3.0.1
    6 Tested up to: 4.4.2
    7 Stable tag: 1.3.0
     6Tested up to: 4.7
     7Stable tag: 1.4.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1313== Description ==
    1414
    15 This plugin converts Bulgarian cyrillic characters in slugs and filenames to Latin characters, according to the official rules for transliteration.
     15This 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%…)
    1616
    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.
     17The 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
    2118
    2219It 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.
     
    2926
    30271. Upload the plugin folder to the `/wp-content/plugins/` directory.
    31 1. Activate the plugin through the 'Plugins' menu in WordPress.
     282. Activate the plugin through the 'Plugins' menu in WordPress.
    3229
    3330== Frequently Asked Questions ==
    3431
     32= How do I stop transliteration of media uploads? =
     33
     34Put the following in your wp-config.php file:
     35define('CYR2LAT_FILENAMES',false);
    3536
    3637== Screenshots ==
     
    3839
    3940== Changelog ==
     41
     42= 1.4.0 =
     43* File names transliteration now optional
    4044
    4145= 1.3.0 =
     
    5458== Upgrade Notice ==
    5559
     60= 1.4.0 =
     61File names transliteration now optional
     62
    5663= 1.3.0 =
    5764Auto converts filenames upon upload
Note: See TracChangeset for help on using the changeset viewer.