Transliterator

Περιγραφή

This plugin provides a seamless solution for converting WordPress content between Cyrillic and Latin scripts. Crafted to be user-friendly and lightweight, it facilitates the conversion process with minimal clicks. It also incorporates support for unique shortcodes, enabling selective transliteration of designated content sections and delivering superior flexibility in how content is presented. Make your site latin now!

FEATURES

✅ WordPress Cyrillic to Latin and Latin to Cyrillic
✅ Converts Cyrillic, European and Georgian characters in post, page and term slugs to Latin characters.
✅ Transliterate Cyrillic filenames to Latin
✅ Transliterate Cyrillic permalinks to Latin
✅ Allow Cyrillic Usernames
✅ Search posts, pages, custom post types written in cyrillic using both latin and cyrillic script
✅ WP-CLI Support

BENEFITS

✅ Compatible with Multilanguage Plugins
✅ Compatible with any WordPress template
✅ Compatible with SEO plugins
✅ Possibility of partial transliteration
✅ Scalable and customizable
✅ It does not affect on the HTML, CSS or JS codes
✅ Multilingual support
✅ Transcription mode selection
✅ Diacritical support (currently for the Serbian language)
✅ Support for special characters
✅ Support PHP version 8.1
✅ Page speed impact: insignificant

LANGUAGE SUPPORT

Serbian latinisation – Serbian language (by locale:sr_RS)
Bosnian latinisation – Bosnian language (follows the rules of the Serbian language with additional special characters)
Montenegrin latinisation – Montenegrin language (follows the rules of the Serbian language with additional special characters)
Russian latinisation – Russian language (by locale:ru_RU)
Belarusian latinisation – Belarusian language (by locale:bel)
Bulgarian latinisation – Bulgarian language (by locale:bg_BG)
Macedonian latinisation – Macedonian language (by locale:mk_MK)
Kazakh latinisation – Kazakh Language (by locale:kk)
Ukrainian latinisation – Ukrainian Language (by locale:uk)
Greek (Elini’ka) latinisation – Greek Language (by locale:el)
🔸 Arabic latinisation – Arabic Language (EXPERIMENTAL) (by locale:ar)
🔸 Armenian latinisation – Armenian Language (EXPERIMENTAL) (by locale:hy)
✅ more languages are coming soon…

PLUGINS SUPPORT

This plugin is made to support all known plugins and visual editors.

We also do special compatible functions with:

WooCommerce
Polylang
Elementor Website Builder
CF Geo Plugin
Yoast SEO
Data Tables Generator by Supsystic
Slider Revolution
Avada theme
Themify
Divi (Theme & Builder)

It’s crucial to understand that while our plugin is compatible with most others, the sheer diversity of WordPress installations and the thousands of available plugins mean there’s a small chance of encountering conflicts. We strive to ensure maximum compatibility, but given the vast number of variables, we can’t guarantee flawless operation in all instances. If you experience issues, they may stem from incompatibility with other plugins. We encourage you to reach out to us or the respective plugin authors for resolution. Regularly updating all your plugins and your WordPress installation is the most common solution for most problems.

This plugin can also serve as an alternative to SrbTransLatin, Cyr-To-Lat, Allow Cyrillic Usernames, Filenames to latin, Cyrillic Permalinks, Latin Now!, Cyr to Lat enhanced, Cyrlitera and other similar plugins. We have managed to combine all the necessary functionalities into one plugin, but if you want to have all the separate functions, we invite you to use some of these excellent plugins.

It is important for you to know that any functionality in our plugin can be turned off if you do not need it, as well as the ability to filter certain hooks and filters. We have tried to provide maximum flexibility and compatibility to everyone.

Documentation

Everything you need to do is to go to Settings->Transliteration and setup plugin according to your needs. Just follow descriptions and you will easily manage it.

Shortcodes

This plugin has two shortcodes that work independently of the plugin settings. These two shortcodes aim to transliterate some content. This is great if you have an article and want to display part of the text in Cyrillic, and if your entire portal is displayed in Latin.

Cyrillic to Latin:

[rstr_cyr_to_lat]Ћирилица у латиницу[/rstr_cyr_to_lat]

Latin to Cyrillic:

[rstr_lat_to_cyr]Latinica u ćirilicu[/rstr_lat_to_cyr]

Skip transliteration:

[rstr_skip]Keep this in original script[/rstr_skip]

Add an image depending on the language script:
With this shortcode you can manipulate images and display images in Latin or Cyrillic depending on the setup.

[rstr_img lat="YOUR_SITE_URL/logo_latin.jpg" cyr="YOUR_SITE_URL/logo_cyrillic.jpg"]

(The documentation for these shortcodes is inside the plugin settings or see the screenshot.)

Language script menu
This shortcode displays a selector for the transliteration script.

[rstr_selector]

(The documentation for these shortcodes is inside the plugin settings or see the screenshot.)

Available Tags

These tags have a special purpose and work separately from short codes and can be used in fields where short codes cannot be used. These tags have no additional settings and can be applied in plugins, themes, widgets and within other short codes.

Cyrillic to Latin:

{cyr_to_lat}Ћирилица у латиницу{/cyr_to_lat}

Latin to Cyrillic:

{lat_to_cyr}Latinica u ćirilicu{/lat_to_cyr}

Skip transliteration:

{rstr_skip}Keep this in original script{/rstr_skip}

Permalink Tool

This tool can rename all existing Cyrillic permalinks to Latin inside the database. This tool is in the configuration of this plugin.

PHP Functions

We also thought of PHP developers where we have enabled several useful functions that they can use within WordPress themes and plugins. The documentation for these functions is inside the plugin settings.

Στιγμιότυπα

  • Cyrillic page before serbian transliteration
  • Latin page after serbian transliteration
  • Transliteration settings
  • Converter for transliterating Cyrillic into Latin and vice versa
  • Permalink tools
  • Shortcodes
  • Available PHP Functions
  • Language script inside Menus
  • Automated test

Εγκατάσταση

  1. Go to WP-Admin->Plugins->Add new, search term “WordPress Transliteration” and click on the “install” button
  2. OR, upload serbian-transliteration.zip to /wp-content/plugins directory via WordPress admin panel or upload unzipped folder to your plugins folder via FTP
  3. Activate the plugin through the “Plugins” menu in WordPress
  4. Go to Settings->Transliteration to update options

Συχνές Ερωτήσεις

What is Romanization or Latinisation?

Romanisation or Latinisation, in linguistics, is the conversion of writing from a different writing system to the Roman (Latin) script, or a system for doing so. Methods of romanization include transliteration, for representing written text, and transcription, for representing the spoken word, and combinations of both.

Which Romanization does this plugin support?

This plugin supports several world letters written in Cyrillic and enables their Romanization

  • Romanization of Serbian what include Bosnian and Montenegrin
  • Romanization of Russian
  • Romanization of Belarusian
  • Romanization of Bulgarian
  • Romanization of Macedonian
  • Romanization of Kazakh
  • Romanization of Ukrainian
  • Romanization of Greek
  • Romanization of Arabic (EXPERIMENTAL)
  • Romanization of Armenian (EXPERIMENTAL)

Each of these transliterations is created separately and follows the rules of the active language.

What is the best practice for transliteration?

Through various experiences, we came to the conclusion that it is best to create the entire site in Cyrillic and enable transliteration for Latin.

The reason for this solution lies in the problem of transliteration of Latin into Cyrillic due to encoding and, depending on the server, can create certain problems, especially in communication with the database. Creating a site in Cyrillic bypasses all problems and is very easily translated into Latin.

Is Latin better for SEO than Cyrillic?

According to Google documentation and discussions on forums and blogs, it is concluded that Latin is much better for SEO and it is necessary to practice Latin at least when permalinks and file names are in Latin, while the text can be in both letters but Latin is always preferred.

Can I translate Cyrillic letters into Latin with this plugin?

YES! Without any problems or conflicts.

Can I translate Latin into Cyrillic with this plugin?

YES! This plugin can translate a Latin site into Cyrillic, but this is not recommended and often causes problems. It is suggested that this approach be approached experimentally.

The best practice is to create a Cyrillic site including all other content and in the end just add transliteration to navigation so that the visitor can choose the desired script.

How to transliterate Cyrillic permalinks?

This plugin has a tool that transliterates already recorded permalinks in your database. This option is safe but requires extra effort to satisfy SEO.

With this tool, you permanently change the permalinks in your WordPress installation and a 404 error can occur if you visit old Cyrillic paths.

Therefore, you must re-asign your sitemap or make additional efforts to redirect old permalinks to new ones, which our plugin does not do.

If you are using WP-CLI, this function can also be started with a simple shell command: wp transliterate permalinks

How can I define my own substitutions?

Inside your theme’s functions.php you can define your own substitutions for each language using filters:

add_filter( 'rstr/inc/transliteration/{$locale}', 'function_callback', 10, 1 );

Here’s an example.

/*
 * Modify conversion table for Serbian language.
 *
 * @param array $map Conversion map.
 *
 * @return array
 */
function my_transliteration__sr_RS( $map ) {

    // Example For 2 or more letters
    $new_map = [
        'Ња' => 'nja',
        'Ње' => 'nje',
        'Обједињени' => 'Objedinjeni'
    ];
    $map = array_merge($new_map, $map);

    // Example for one letter
    $new_map = [
        'А'=>'X',
        'Б'=>'Y',
        'В'=>'Z'
    ];
    $map = array_merge($map, $new_map);

    return $map;
}
add_filter( 'rstr/inc/transliteration/sr_RS', 'my_transliteration__sr_RS', 10, 1 );

Κριτικές

27 Νοεμβρίου 2023
Zaista je odlican dodatak za svaki sajt sa dva pisma...bravo za ekipu i hvala od srca! Svako dobro
19 Οκτωβρίου 2023
Koristim ga od skora i za sada sam zadovoljan! Imam ga na 2 WP sajta 🙂
19 Οκτωβρίου 2023 1 απάντηση
Wordpress dodatak bez kojeg se jednostavno ne može. Nadam se da će pratiti svaki naredni Wordpress update.
Ανάγνωση όλων των 66 κριτικών

Συνεισφέροντες & Προγραμματιστές

“Transliterator” είναι λογισμικό ανοιχτού κώδικα. Οι παρακάτω έχουν συνεισφέρει στη δημιουργία του.

Συντελεστές

Το “Transliterator” έχει μεταφραστεί σε 6 γλώσσες. Ευχαριστούμε τους μεταφραστές για τις συνεισφορές τους.

Μεταφράστε το “Transliterator” στην γλώσσα σας.

Ενδιαφέρεστε για την ανάπτυξη;

Περιηγηθείτε στον κώδικα, ανατρέξτε στο αποθετήριο SVN ή εγγραφείτε στο αρχείο καταγραφής αλλαγών ανάπτυξης μέσω RSS .

Σύνοψη αλλαγών

1.11.3

  • Fixed plugin and theme transliteration
  • Fixed problem with duplicated percentages

1.11.2

  • Fixed Avada theme support
  • Fixed “print formatted” text support
  • Fixed lat to cyr transliteration

1.11.1

  • Fixed transliteration bug on certain themes
  • Fixed WooCommerce integration

1.11.0

  • ATTENTION: IMPORTANT UPDATE, PLEASE BE CAUTIOUS.
  • Transliteration mode modified
  • DOM component added
  • HTML content check added
  • Read and write buffer mode changed
  • PHP code optimized
  • Deprecated codes removed
  • Transliteration added for emails through PHP mailer

1.10.5

  • Fixed problem with the themes that not support menus
  • Fixed problems with wp title
  • Removed support for the older WP versions below 5.4
  • Removed PHP errors from previous versions

1.10.4

  • Fixed Block Editor transliteration
  • Fixed Elementor transliteration
  • Fixed URL rendering

1.10.3

  • Improved WP Mail transliteration

1.10.2

  • Improved PHP transliteration buffer
  • Improved transliteration for Woocommerce
  • Fixed transliteration for files
  • Fixed PHP errors of the previous version
  • Fixed PHP errors for Windows operating system

1.10.1

  • Fixed problem with serialized data
  • Fixed problems with PHP8.1 and above
  • Optimized PHP code

1.10.0

  • Improvement for Elementor builder
  • Improvement for Oxygen builder
  • Enhanced security
  • Improved textdomain for translations
  • Fixed bugs inside AJAX calls
  • Fixed UX