[wordpress插件] Cyr to Lat reloaded – transliteration of links and file namesCyr至Lat重新加载-链接和文件名的音译

wordpress 插件 文章 2020-04-11 08:31 878 0 全屏看文

AI助手支持GPT4.0

评分
86
描述

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.

从Cyr to lat重新加载的是由Sergei Biriukov创建的流行的Cyr to lat插件和由Anton Skorobogatov设计的Rus-To-Lat插件的改进版本。

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.

由于大多数Internet使用拉丁符号,因此所有软件在设计时都具有完全拉丁支持-并非西里尔字母,中文或其他。

That is why whenever you assign Cyrillic names, you can end up with access problems in their absolute URLs.

这就是为什么每次分配西里尔字母名称时,您都可能在其绝对URL中遇到访问问题。

Besides, Cyrillic in links really deteriorates absolute URLs readability.

此外,链接中的西里尔字母确实会降低绝对URL的可读性。

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.

我们创建了一个名为Cyr的简单音译插件,以便重新加载。

It replaces Cyrillic, Georgian and Turkish symbols with Latins automatically and creates readable absolute URLs for posts, sections, marks, products and custom post types.

它会自动用拉丁语替换西里尔,格鲁吉亚和土耳其符号,并为帖子,栏目,标记,产品和自定义帖子类型创建可读的绝对URL。

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

http://webcraftic.com/%D0%BF%D1%80%D0%B8%D0%B2%D0%B5%D1%82-%D0%BC%D0%B8%D1%80

p>

>

Now the same link, but transliterated to Latin:

现在具有相同的链接,但音译为拉丁语:

http://webcraftic.com/privet-mir

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

%D0%BC%D0%BE%D0%B5_image_ 290.jpg

A+nice+picture.png

A + nice + picture.png

The example of image transliteration – readable name without special characters:

图像音译示例-可读名称,不带特殊字符:

moe_image_ 290.jpg

moe_image_ 290.jpg

a-nice-picture.png

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.

您可以忽略创建文件名的所有基本规则,但是有一天,您肯定会处理图片中的错误链接以及直接指向文件的404错误。

We recommend naming files in Latin symbols.

我们建议使用拉丁符号命名文件。

Cyr-to-lat reloaded plugin can do this for you automatically on each file loading.

从Cyr-to-lat重新加载的插件可以在每次加载文件时自动为您执行此操作。

In this case, there will be no bad links.

在这种情况下,不会有不良链接。

FEATURES

功能

    • Converts absolute URLs of existing posts, pages, sections and tags automatically (after plugin activation);
    • 自动转换现有帖子,页面,部分和标签的绝对URL(在激活插件后);

    • Preserves absolute URLs integrity;
    • 保留绝对的URL完整性;

    • Transliterates file names in attachments;
    • 音译附件中的文件名;

    • Performs transliteration of attachment file names.
    • 执行附件文件名的音译。

    • Supports Russian, Belarusian, Ukrainian, Bulgarian, Georgian, Greek, Armenian, Serbian symbols
    • 支持俄语,白俄罗斯语,乌克兰语,保加利亚语,格鲁吉亚语,希腊语,亚美尼亚语,塞尔维亚语符号

    • Support plugin Advanced custom fields
    • 支持插件的高级自定义字段

    • Support plugin Asgaros
    • 支持插件Asgaros

    • Support plugin Buddypress
    • 支持插件Buddypress

    EXTENDED VERSION OF THE PLUGIN WITH CONTROL PANEL

    带有控制面板的插件的扩展版本

安装步骤

    1. Upload cyrandlat folder to the /wp-content/plugins/ directory.
    2. cyrandlat 文件夹上载至 / wp-content / plugins / 目录。

    3. Activate the plugin through the ‘Plugins’ menu in WordPress.
    4. 通过WordPress中的“插件”菜单激活插件。

    5. Make sure your system has iconv set up right, or iconv is not installed at all.

    6. 确保您的系统正确设置了iconv,或者根本没有安装iconv。

      If you have any problems (trimmed slugs, strange characters, question marks) – please ask for support.

    7. 如果您有任何问题(塞子修剪,奇怪的字符,问号)–请寻求支持。

下载地址
https://downloads.wordpress.org/plugin/cyr-and-lat.zip
-EOF-

AI助手支持GPT4.0