Linux 软件免费装
Banner图

Cyr to Lat reloaded – transliteration of links and file names

开发者 webcraftic
preslilvs
更新时间 2018年12月24日 08:13
捐献地址: 去捐款
PHP版本: 5.2 及以上
WordPress版本: 4.9
版权: GPLv2
版权网址: 版权信息

标签

media russian l10n translations slugs cyrillic transliteration latin rustolat european diacritics georgian cyr-to-lat cyr to lat rus to lat muiltilanguage

下载

1.0.3 1.1.1

详情介绍:

Cyr to lat reloaded is the improved version of the popular Cyr to lat plugin, created by Sergei Biriukov, and Rus-To-Lat plugin designed by Anton Skorobogatov. Even though the plugin is still easy & simple, we have updated both the symbol base and the source code, and fixed known bugs. What is transliteration? This term usually refers to the action aiming to convert symbols from one language to another. For example, when we change Cyrillic symbols to Latin. Since the majority of the Internet uses Latin symbols, all software is designed with full Latin support – not Cyrillic, Chinese or whatever. That is why whenever you assign Cyrillic names, you can end up with access problems in their absolute URLs. Besides, Cyrillic in links really deteriorates absolute URLs readability. And it this case you might need transliteration of links and file names. We have created a simple transliteration plugin named Cyr to lat reloaded. It replaces Cyrillic, Georgian and Turkish symbols with Latins automatically and creates readable absolute URLs for posts, sections, marks, products and custom post types. In addition, this plugin fixes incorrect file names and removes extra symbols, which may cause access problems. Here’s an example of Cyrillic URL: http://webcraftic.com/%D0%BF%D1%80%D0%B8%D0%B2%D0%B5%D1%82-%D0%BC%D0%B8%D1%80 Now the same link, but transliterated to Latin: http://webcraftic.com/privet-mir Do you see the difference? The first one is encoded and recognized by browser only, when the second one with Latin symbols is shorter and much clearer. Incorrect file name of the image: %D0%BC%D0%BE%D0%B5_image_ 290.jpg A+nice+picture.png The example of image transliteration – readable name without special characters: moe_image_ 290.jpg a-nice-picture.png You can ignore all basic rules of creating file names, but one day you’ll definitely deal with bad links in images and 404 error in direct links to the files. We recommend naming files in Latin symbols. Cyr-to-lat reloaded plugin can do this for you automatically on each file loading. In this case, there will be no bad links. FEATURES EXTENDED VERSION OF THE PLUGIN WITH CONTROL PANEL RECOMMENDED SEPARATE MODULES We invite you to check out a few other related free plugins that our team has also produced that you may find especially useful: * Disable Comments for Any Post Types (Remove Comments) * Disable updates, Disable automatic updates, Updates manager * Disable admin notices individually * WordPress Assets manager, dequeue scripts, dequeue styles * Hide login page THANKS TO THE PLUGIN DEVELOPERS We’ve used some features of the following plugins: Cyrlitera, WP Translitera, Rus-To-Lat, Cyr-To-Lat, Clearfy — WordPress optimization plugin, translit-it, Cyr to Lat enhanced, Cyr-And-Lat, Rus filename translit, rus to lat advanced

安装:

  1. Upload cyrandlat folder to the /wp-content/plugins/ directory.
  2. 通过WordPress的“插件”菜单激活插件。
  3. Make sure your system has iconv set up right, or iconv is not installed at all. If you have any problems (trimmed slugs, strange characters, question marks) - please ask for support.

屏幕截图:

  • Example for posts
  • Example for files

常见问题:

How can I define my own substitutions?

Add this code to your theme's functions.php file: function my_cyr_and_lat_table($cal_table) { $cal_table['Ъ'] = 'U'; $cal_table['ъ'] = 'u'; return $cal_table; } add_filter('wbcr_ctl_default_symbols_pack', 'my_cyr_and_lat_table');

Does this plugin support multisites?

Unfortunately, the answer is no. It’s temporary, as we are trying to add this support in some of the future versions.

How to restore converted slugs?

You can roll back the changes you have made, using the extended version of Cyrlitera plugin.

How can I redirect users from old links to new ones?

You can do this by installing the extended version of Cyrlitera plugin

更新日志:

1.1.1 1.1.0 1.0.2 1.0.1 1.0