[wordpress插件] Cyrlitera – transliteration of links and file namesCyrlitera –链接和文件名的音译

wordpress 插件 文章 2020-04-11 09:40 3723 0 全屏看文

AI助手支持GPT4.0

评分
98
描述

Transliteration is the transformation of one character into another, for example Cyrillic characters, into Latin.

音译是将一个字符转换为另一个字符(例如西里尔字母)的拉丁字符。

Usually transliteration is used to improve the readability of permalinks and avoid problems with displaying and reading files, because everything in network based on the Latin alphabet.

通常,音译用于提高永久链接的可读性,并避免显示和读取文件时出现问题,因为网络中的所有内容均基于拉丁字母。

Many plugins made by English-speaking developers do not optimize under the Cyrillic alphabet and can work unstable.

许多说英语的开发人员制作的插件在西里尔字母下均未进行优化,因此可能不稳定。

Cyrlitera transliteration plugin replaces Cyrillic, Georgian characters at posts, pages and tags to create readable permalinks.

Cyrlitera音译插件替换了帖子,页面和标签中的西里尔字母,格鲁吉亚字母,以创建可读的永久链接。

Also this plugin fixes incorrect file names and removes unnecessary characters, which can cause problems when accessing this file.

此外,此插件还可以修复错误的文件名并删除不必要的字符,这可能会导致访问此文件时出现问题。

Cyrillic link example:

西里尔链接示例:

_site.dev/%D0%BF%D1%80%D0%B8%D0%B2%D0%B5%D1%82-%D0%BC%D0%B8%D1%80

_site.dev/%D0%BF%D1%80%D0%B8%D0%B2%D0%B5%D1%82-%D0%BC%D0%B8%D1%80

Converted into the Latin alphabet:

已转换为拉丁字母:

_site.dev/privet-mir

_site.dev/privet-mir

In the first case, you can not visually understand the text of encoded link.

在第一种情况下,您无法直观地理解编码链接的文本。

In the second case, the link transliteration is implemented, everything looks more clear and the link is more shorter.

在第二种情况下,实现了链接音译,所有内容看起来更加清晰,链接更短。

An example of incorrect filename transliteration:

文件名音译不正确的示例:

%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

Images transliteration example:

图片音译示例:

moe_image_ 290.jpg

moe_image_ 290.jpg

a-nice-picture.png

a-nice-picture.png

If you ignore file names creation rules, then you can get 404 errors and broken links.

如果忽略文件名创建规则,则可能会出现404错误和链接断开。

Therefore, create file names using Latin characters and numbers, avoiding special characters, except dashes and underscores.

因此,请使用拉丁字符和数字创建文件名,避免使用特殊字符(破折号和下划线除外)。

Alternatively, use this plugin.

或者,使用此插件。

It will do all this work automatically when uploading a file via the WordPress interface and reduce the number of broken links.

通过WordPress界面上传文件时,它将自动完成所有这些工作,并减少断开链接的数量。

FEATURES

功能

安装步骤

    1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到 / wp-content / plugins / plugin-name 目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ screen in WordPress
    4. 通过WordPress中的“插件”屏幕激活插件

    5. Go to the general settings and click on the “Transliteration” tab, activate the options and save the settings.
    6. 转到常规设置,然后单击“音译”标签,激活选项并保存设置。

下载地址
https://downloads.wordpress.org/plugin/cyrlitera.zip
-EOF-

AI助手支持GPT4.0