Linux 软件免费装
Banner图

PlugForge Transliteration Standards

开发者 plugforge
更新时间 2026年9月27日 19:47
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce slug cyrillic transliteration ukrainian

下载

0.1.0

详情介绍:

Cyrillic, Greek, Georgian or Armenian in a URL gets percent-encoded, and a link that reads %d0%ba%d0%b8%d1%97%d0%b2 is no use to anyone. Transliteration fixes that. The question is which Latin letters to use, and tables written so the Latin can be turned back into the original produce addresses no one would type, such as shhastya or czokol. PlugForge Transliteration Standards uses the romanisation standards that countries and the United Nations publish: a resolution of Ukraine's Cabinet of Ministers, Bulgaria's Transliteration Act, Georgia's national system and others. Some of them change a letter by its place in the word. Bulgarian ия is ia at the end of a word and iya inside one, and the plugin follows rules like that as written. Nothing changes until you choose a standard for a language. Features Supported standards An address keeps plain letters only. WordPress folds diacritics away, so Serbian Ћирилица and Чирилица both end up as cirilica, and the apostrophes the Georgian and Armenian standards write are dropped. Existing URLs Installing the plugin changes no existing address. The "What would change" screen lists your existing posts whose slug does not match the standard you chose, with the address each has now, the address it would get and the language of the post. A row that would collide with another is marked and left for you to resolve by hand. Reading the list or downloading it as a CSV changes nothing. A button under the list rewrites the posts on that page, after you tick a box to confirm. WordPress keeps each old post slug and redirects it to the new one, so links already published go on working. Pages, categories, tags and media files already on your site are never converted. WordPress keeps no record of their old addresses, so nothing would redirect them. Exceptions Whole words and whole phrases for brand names and for spellings someone's passport already carries. One per line: the word or phrase, an equals sign, what it becomes. вордпрес = wordpress Жуковський = Zhukovsky Matching ignores case, and spaces, hyphens and underscores between words count as the same join. Only whole words are replaced. Digits and symbols that belong to a name, as in Формула 1 or AT&T, have to be written as they appear. Multilingual sites On a site with one language, the standard follows the site language. With Polylang, it follows the language set on each post or term, so two posts in the same admin can go through two different standards. On such a site, a slug that carries no language, such as one created by WP-CLI, is left alone. The language is never guessed from the text: Гора is hora in Ukrainian and gora in Russian, and the letters are identical. WPML is not supported, because it has not been tested with this plugin. WooCommerce Tested with WooCommerce 11. New product slugs, product categories and tags, shipping classes, attribute names and terms, downloadable files and product images are all transliterated. Coupon codes are left alone, because customers type them and codes already printed have to go on working. So is the product permalink base, which you set yourself. Privacy and performance For developers

安装:

  1. Install and activate PlugForge Transliteration Standards.
  2. Go to Settings > PlugForge Transliteration Standards.
  3. Choose a standard for each language your site writes in. None is selected on install, and a language you leave alone stays untouched.
  4. Add exceptions if you need them.
  5. Open "What would change" to see what your existing post slugs would become.
The plugin needs the PHP mbstring extension.

屏幕截图:

  • What your existing slugs would become, with the language each post is in.
  • Exceptions are whole words and whole phrases, for brand names and for

常见问题:

Will activation change my existing URLs?

No. It affects slugs and file names created after you choose a standard. Existing post slugs change only if you rewrite them from the "What would change" screen.

Why are existing pages and categories not converted?

When a post slug changes, WordPress stores the old one and redirects visitors from it. It does nothing of the kind for pages and terms, so a changed address would break every link to it.

Why are existing media files not renamed?

A file's address appears in post content, in caches, in a CDN and on other people's pages. Renaming it breaks all of those at once, and nothing can put them back.

Can I edit the transliteration table?

No. A standard edited letter by letter stops matching the document it came from, and that match is why you picked it. Use exceptions instead.

My site is in two languages. Which one does it use?

The language set on the post or term, if Polylang can tell it. Without a language the text is left unchanged.

更新日志:

0.1.0