Cyr to Lat enhanced - Version 3.4

Version Description

  • Fixes for Ukrainian characters
Download this release

Release Info

Developer webvitaly
Plugin Icon wp plugin Cyr to Lat enhanced
Version 3.4
Comparing to
See all releases

Code changes from version 3.3.3 to 3.4

Files changed (2) hide show
  1. cyr-to-lat.php +10 -7
  2. readme.txt +11 -5
cyr-to-lat.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
  Plugin Name: Cyr to Lat enhanced
4
- Plugin URI: http://wordpress.org/extend/plugins/cyr3lat/
5
  Description: Converts Cyrillic, European and Georgian characters in post, term slugs and media file names to Latin characters. Useful for creating human-readable URLs. Based on the original plugin by Anton Skorobogatov.
6
  Author: Sol, Sergey Biryukov, Nikolay Karev, Dmitri Gogelia
7
  Author URI: http://karevn.com/
8
- Version: 3.3.3
9
  */
10
 
11
  function ctl_sanitize_title($title) {
@@ -46,12 +46,16 @@ function ctl_sanitize_title($title) {
46
  case 'bg_BG':
47
  $iso9_table['Щ'] = 'SHT';
48
  $iso9_table['щ'] = 'sht';
49
- $iso9_table['Ъ'] = 'A`';
50
- $iso9_table['ъ'] = 'a`';
51
  break;
52
  case 'uk':
53
- $iso9_table['И'] = 'Y`';
54
- $iso9_table['и'] = 'y`';
 
 
 
 
55
  break;
56
  }
57
 
@@ -108,4 +112,3 @@ function ctl_schedule_conversion() {
108
  add_action('shutdown', 'ctl_convert_existing_slugs');
109
  }
110
  register_activation_hook(__FILE__, 'ctl_schedule_conversion');
111
- ?>
1
  <?php
2
  /*
3
  Plugin Name: Cyr to Lat enhanced
4
+ Plugin URI: http://wordpress.org/plugins/cyr3lat/
5
  Description: Converts Cyrillic, European and Georgian characters in post, term slugs and media file names to Latin characters. Useful for creating human-readable URLs. Based on the original plugin by Anton Skorobogatov.
6
  Author: Sol, Sergey Biryukov, Nikolay Karev, Dmitri Gogelia
7
  Author URI: http://karevn.com/
8
+ Version: 3.4
9
  */
10
 
11
  function ctl_sanitize_title($title) {
46
  case 'bg_BG':
47
  $iso9_table['Щ'] = 'SHT';
48
  $iso9_table['щ'] = 'sht';
49
+ $iso9_table['Ъ'] = 'A';
50
+ $iso9_table['ъ'] = 'a';
51
  break;
52
  case 'uk':
53
+ $iso9_table['И'] = 'Y';
54
+ $iso9_table['и'] = 'y';
55
+ break;
56
+ case 'uk_ua':
57
+ $iso9_table['И'] = 'Y';
58
+ $iso9_table['и'] = 'y';
59
  break;
60
  }
61
 
112
  add_action('shutdown', 'ctl_convert_existing_slugs');
113
  }
114
  register_activation_hook(__FILE__, 'ctl_schedule_conversion');
 
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Cyr to Lat enhanced ===
2
- Contributors: Atrax, SergeyBiryukov, karevn
3
- Tags: cyrillic, latin, l10n, russian, rustolat, slugs, translations, transliteration, media, georgian, european, diacritics
4
  Requires at least: 2.3
5
- Tested up to: 3.4.1
6
- Stable tag: 3.3.3
7
 
8
  Converts Cyrillic, European and Georgian characters in post, page and term slugs to Latin characters.
9
 
@@ -12,7 +12,7 @@ Converts Cyrillic, European and Georgian characters in post, page and term slugs
12
  Converts Cyrillic and Georgian characters in post, page and term slugs to Latin characters. Useful for creating human-readable URLs.
13
 
14
 
15
- This plugin is a fork of [cyr2lat](http://wordpress.org/extend/plugins/cyr2lat/) plugin.
16
 
17
  = Features =
18
  * Automatically converts existing post, page and term slugs on activation
@@ -44,6 +44,12 @@ add_filter('ctl_table', 'my_cyr_to_lat_table');
44
 
45
  == Changelog ==
46
 
 
 
 
 
 
 
47
  = 3.3.2 =
48
  * Added support for European diacritics
49
 
1
  === Cyr to Lat enhanced ===
2
+ Contributors: Atrax, SergeyBiryukov, karevn, webvitaly
3
+ Tags: cyrillic, latin, l10n, russian, rustolat, slugs, translations, transliteration, media, georgian, european, diacritics, ukrainian
4
  Requires at least: 2.3
5
+ Tested up to: 3.6
6
+ Stable tag: 3.4
7
 
8
  Converts Cyrillic, European and Georgian characters in post, page and term slugs to Latin characters.
9
 
12
  Converts Cyrillic and Georgian characters in post, page and term slugs to Latin characters. Useful for creating human-readable URLs.
13
 
14
 
15
+ This plugin is a fork of [cyr2lat](http://wordpress.org/plugins/cyr2lat/) plugin.
16
 
17
  = Features =
18
  * Automatically converts existing post, page and term slugs on activation
44
 
45
  == Changelog ==
46
 
47
+ = 3.4 =
48
+ * Fixes for Ukrainian characters
49
+
50
+ = 3.3.3 =
51
+ * Bugfix: posts of status "future" were not affected
52
+
53
  = 3.3.2 =
54
  * Added support for European diacritics
55