აღწერა
გარდაქმნის კირილიცას სიმბოლოებს ჩანაწერის, გვერდისა და ელემენტის იარლიყებში ლათინურ სიმბოლოებად. გამოსადეგი URL-ების შესაქმნელად.
მახასიათებლები
- The only plugin with fully editable transliteration table. Allows to add/remove and edit pairs like ‘Я’ => ‘Ya’, or even ‘Пиво’ => ‘Beer’
- გარდაქმნის არსებული ჩანაწერების, გვერდებისა და ელემენტების ნებისმიერ რაოდენობას
- ინახავს არსებული ჩანაწერის და გვერდის მუდმივი მისამართების მთლიანობას
- ასრულებს დანართი ფაილების სახელების თარგმნას
- Includes Russian, Belorussian, Ukrainian, Bulgarian, Macedonian, Serbian, Greek, Armenian, Georgian, Kazakh, Hebrew, and Chinese characters
- Has many advantages over similar plugins
- ოფიციალურად თავსებადია WPML-თან
ეფუძნება ანტონ სკორობოგატოვის მიერ შექმნილი ორიგინალი Rus-To-Lat პლაგინს.
Sponsored by Blackfire.
Plugin Support
ეკრანული სურათები
დაყენება
- ატვირთეთ
cyr2lat
საქაღალდე/wp-content/plugins/
საქაღალდეში. - გააქტიურეთ პლაგინი „პლაგინების“ გვერდზე, WordPress-ის მართვის პანელში.
ხდკ
-
როგორ შემიძლია განვსაზღვრო საკუთარი შემცვლელი?
-
დაამატეთ ეს კოდი თქვენი თემის
functions.php
ფაილში:/** * Modify conversion table. * * @param array $table Conversion table. * * @return array */ function my_ctl_table( $table ) { $table['Ъ'] = 'U'; $table['ъ'] = 'u'; return $table; } add_filter( 'ctl_table', 'my_ctl_table' );
-
How can I redefine non-standard locale?
-
მაგალითად, თუ თქვენი არასტანდარტული ლოკალი არის uk_UA, შეგიძლიათ შეცვალოთ იგი
uk
-ზე , შემდეგი კოდის დამატებით თქვენი თემისfunction.php
ფაილში:/** * Use non-standard locale. * * @param string $locale Current locale. * * @return string */ function my_ctl_locale( $locale ) { if ( 'uk_UA' === $locale ) { return 'uk'; } return $locale; } add_filter( 'ctl_locale', 'my_ctl_locale' );
-
How can I define own transliteration of titles?
-
Add similar code to your theme’s
functions.php
file:/** * Filter title before sanitizing. * * @param string|false $result Sanitized title. * @param string $title Title. * * @return string|false */ function my_ctl_pre_sanitize_title( $result, $title ) { if ( 'пиво' === $title ) { return 'beer'; } return $result; } add_filter( 'ctl_pre_sanitize_title', 10, 2 );
-
How can I define own transliteration of filenames?
-
Add similar code to your theme’s
functions.php
file:/** * Filter filename before sanitizing. * * @param string|false $result Sanitized filename. * @param string $filename Title. * * @return string|false */ function my_ctl_pre_sanitize_filename( $result, $filename ) { if ( 'пиво' === $filename ) { return 'beer'; } return $result; } add_filter( 'ctl_pre_sanitize_filename', 10, 2 );
-
How can I allow the plugin to work on the frontend?
-
Add similar code to your theme’s
functions.php
file:/** * Filter status allowed Cyr To Lat plugin to work. * * @param bool $allowed * * @return bool */ function my_ctl_allow( bool $allowed ): bool { $uri = isset( $_SERVER['REQUEST_URI'] ) ? sanitize_url( wp_unslash( $_SERVER['REQUEST_URI'] ) ) : ''; if ( 0 === strpos( $uri, '/divi-comments' ) ) { return true; } return $allowed; } add_filter( 'ctl_allow', 'my_ctl_allow' );
-
How can I limit post types for background conversion?
-
Add similar code to your theme’s
functions.php
file:/** * Filter post types allowed for background conversion. * * @param array $post_types Allowed post types. * * @return array */ function my_ctl_post_types( $post_types ) { return [ 'post' => 'post', 'page' => 'page', 'attachment' => 'attachment', 'product' => 'product', 'nav_menu_item' => 'nav_menu_item', ]; } add_filter( 'ctl_post_types', 'my_ctl_post_types' );
-
How can I convert many posts/terms using wp-cli?
-
Use the following command in the console:
wp cyr2lat regenerate [--post_type=<post_type>] [--post_status=<post_status>]
სადაც
-post_type არის ჩანაწერის ტიპების სია,
-post_status არის ჩანაწერის სტატუსების სია. -
How can I regenerate thumbnails safely?
-
Regeneration of thumbnails with the command
wp media regenerate
can break links in old posts as file names become transliterated.To avoid it, deactivate cyr2lat plugin during regeneration:
wp media regenerate --skip-plugins=cyr2lat
-
შემიძლია წვლილი შევიტანო?
-
დიახ, შენ შეგიძლია!
- შემოგვიერთდით ჩვენს GitHub საცავში
- Join in on our Telegram Group
მიმოხილვები
მონაწილეები & დეველოპერები
“Cyr-To-Lat” ღია პროგრამული უზრუნველყოფაა. შემდეგმა ადამიანებმა წვილი შეიტანეს მის განვითარებაში.
მონაწილეები“Cyr-To-Lat” ითარგმნა 9 ენაზე. გმადლობთ თარჯიმნებო თქვენი წვლილისათვის.
გადათარგმნეთ Cyr-To-Lat თქვენს ენაზე.
დაინტერესებული ხართ დეველოპმენტით?
დაათვალიერეთ კოდი, შეამოწმეთ SVN რეპო, ან გამოიწერეთ შექმნის ჟურნალი : RSS.
ცვლილებები
6.0.5 (09.10.2023)
- Fixed displaying file descriptions in the Theme Editor; now in the current locale.
6.0.4 (23.09.2023)
-
Fixed disappeared file descriptions on the Theme File Editor page.
-
= 6.0.3 (29.07.2023) =
- Fixed fatal error with Jetpack sync.
6.0.2 (26.07.2023)
- Fixed fatal error in admin_footer_text().
6.0.1 (26.07.2023)
- Fixed fatal error on System Info page with empty options.
6.0.0 (26.07.2023)
- Dropped support of PHP 5.6. Minimum required PHP version is 7.0 now.
- Tested with WordPress 6.3.
- Tested with WooCommerce 7.9.
- Added System Info tab.
- Added filter ‘ctl_allow’
- Fixed console error when saving table data.
- Fixed current table setting on Tables page with WPML.
5.5.3 (15.07.2023)
- Tested with WooCommerce 7.8.
- Fixed deprecation error “strpos(): Passing null to parameter” appeared in debug.log.
5.5.2 (31.03.2023)
- Fixed transliteration of tags with Polylang and WPML.
5.5.1 (21.03.2023)
- Fixed transliteration of attributes on WC frontend.
5.5.0 (18.03.2023)
- Tested with WordPress 6.2.
- Tested with WooCommerce 7.5.
- Improved performance of Tables settings page.
- Fixed showing posts by tags on the frontend.
- Fixed showing non-transliterated cyrillic tags on the backend.
5.4.0 (15.12.2022)
- Tested with WordPress 6.1 and WooCommerce 7.2.
- Added compatibility with WC High-Performance order storage (COT) feature.
5.3.0 (23.05.2022)
- Tested with WordPress 6.0 and WooCommerce 6.5.
5.2.7 (14.02.2022)
- Tested with WooCommerce 6.2.
- Added PHP 8.1 support.
5.2.6 (25.12.2021)
- Revert fix made in 5.2.5 for 404 with WPML, as it created several issues on the frontend.
- Fix again 404 on archives created with WPML before activation of cyr2lat.
5.2.5 (19.12.2021)
- Tested up to WordPress 5.9 and WooCommerce 6.0.
- Fix issue with Polylang – do not modify admin language when editing a post.
- Fix issue with JetPack – fatal error on synchronisation.
- Fix 404 on archives created with WPML before activation of cyr2lat.
5.2.4 (07.09.2021)
- Fix issue with not showing WooCommerce variable product attributes.
- Fix issue with Elementor and WPML, endless loop.
5.2.3 (07.09.2021)
- Fix issue with WP Foro plugin – transliterate topic slug when created on frontend.
- Fix bug with Polylang on REST request.
5.2.2 (06.09.2021)
- Fix issue caused by the bug in Jetpack sync.
- Optimize code related to WPML locale filtering.
- Fix endless loading of a taxonomy page with WPML.
- Fix ‘nothing found’ on a taxonomy page with WPML.
5.2.1 (29.07.2021)
- Determine WPML language only once to improve performance.
- Avoid notice on bad SQL request when taxonomies are empty.
5.2.0 (27.07.2021)
- Add support for categories and tags in other languages with wpml.
5.1.0 (19.07.2021)
- Fix issue-95 – 404 on localized terms created before plugin install.
- Add cache flushing after batch conversion.
- Tested with WordPress 5.8
5.0.4 (17.04.2021)
- Fix bug in converter without saved options
5.0.3 (03.04.2021)
- Add filter ‘ctl_locale’
- Fix translation of tabs on settings pages
- Fix registered post types in conversion settings
5.0.2 (27.03.2021)
- Fix bug creating tag with the same slug as category
5.0.1 (22.03.2021)
- Fix fatal error during plugin load on some servers
5.0.0 (18.03.2021)
- Introduce tabs on options page
- Add options to select post types and statuses for background conversion
- Make colors compatible to WP official palette
- Fix bug with Polylang when locale is not equal to language slug
4.6.4 (03.03.2021)
- Tested up to WordPress 5.7
4.6.3 (21.02.2021)
- Fix bug with attachment post type filtered by ‘ctl_post_types’
- Fix bug with background conversion of product attribute terms
4.6.2 (11.02.2021)
- Fix bug with non-existing function PLL().
4.6.1 (10.02.2021)
- Fix bug with Polylang
4.6.0 (10.02.2021)
- Add compatibility with Polylang
- Add confirmation popup before mass conversion of slugs
- Improve selection of posts and tags for conversion to avoid selection of excessive items for mass conversion
- Fix bug with redirection from the old slug to a new one after background slug conversion
- Fix js to run in old browsers like IE
4.5.2 (08.12.2020)
- Fix bug with the deployment to wp.org
4.5.1 (07.12.2020)
- Tested up to WordPress 5.6
- Tested on PHP 5.6 – 8.0
4.5.0 (18.05.2020)
- Added Greek and Armenian languages
- Added background conversion of attachments and thumbnails
- Fixed background conversion of existing slugs
4.4.0 (18.04.2020)
- Full flexibility to edit transliteration table: now it is possible to add/remove transliteration pairs on the settings page
- Ability to edit not only values in the transliteration table, but also keys
- Saving active table via ajax
- Watching changes in active table
- Auto-saving of changed table
- Info about the current locale on settings page
- Making table with current locale active at setting page load
- Chinese language added
- Fixed: slug not updated at woocommerce product duplication
4.3.5 (28.03.2020)
- Tested up to WordPress 5.4
- Fixed bug with disappearing of WooCommerce attributes
4.3.4 (22.02.2020)
- Fixed non-conversion of slugs with WPML
- Restricted conversion of post to public and nav_menu_item
- Introduced ctl_post_types filter
4.3.3 (20.02.2020)
- Reworked main plugin filter
- Improved performance by minimizing number of calls
- Updated Georgian table
- Fixed slug duplication in taxonomies
- Fixed warnings with WooCommerce when mbstring is not loaded
- Fixed transliteration of draft post slug
- Tables sorted by local alphabets
4.3.2 (29.12.2019)
- Fixed problems with setting of max_input_vars on some hosting
4.3.1 (27.12.2019)
- დაემატა მოთხოვნა, რომ გვქონდეს max_input_vars> = 5000
- დაემატა პლაგინის ავტომატური დეაქტივაცია, თუ მოთხოვნები არ დაკმაყოფილებულა
- დაემატა max_input_variable მნიშვნელობის ავტომატური დაფიქსირების მცდელობა
4.3 (14.12.2019)
- დაემატა ჩინური ცხრილი
- შემოწმებულია WordPress 5.3 ვერსიის ჩათვლით
- შემოწმებულია PHP 7.4-მდე
- გარე ბიბლიოთეკა wp-background-processing დაფიქსირდა საკუთარ სახელთა სივრცეში, ზოგიერთ შემთხვევაში შეცდომების თავიდან ასაცილებლად
4.2.3 (29.08.2019)
- Scoped Symfony Mbstring-ის მრავალჯერადი შევსება, რათა თავიდან იქნას აცილებული პრობლემები ზოგიერთ საიტზე კომპოზიტორ autoloader-თან დაკავშირებით.
4.2.2 (28.08.2019)
- დაემატა ACF (Advanced Custom Fields) მოდულის მხარდაჭერა
- დაემატა სერბული ცხრილი
- დაემატა ახალი ფილტრი
ctl_pre_sanitize_filename
- დაფიქსირებული შეცდომა არასათანადო კოდირების
Ё
,ё
,Й
,й
სიმბოლოების სახელები ზოგიერთ Mac კომპიუტერში (ძველი ცნობილი პრობლემა Mac-ის)
4.2.1 (23.06.2019)
- დაფიქსირებული პრობლემა სესიებთან
- დაფიქსირებული შეცდომა შეტყობინებების თანმიმდევრობა არსებული იარლიყების კონვერტაციისთვის.
- დაემატა PHP ვერსიის შემოწმება, რათა თავიდან ავიცილოთ ფატალური შეცდომა ძველ საიტებზე გააქტიურებისას.
- დაემატა ვერტიკალური ჩანართები პლაგინის პარამეტრებში.
4.2 (28.05.2019)
- მინიმალურად საჭირო PHP ვერსია აწეულია 5.6-მდე
- დაემატა phpunit ტესტები ყველა php ვერსიაზე 5.6-დან 7.3-მდე
- დაფიქსირებული შეცდომა PHP გაფრთხილება არსებული იარლიყების გარდაქმნის დროს
- WPML-ის გააქტიურებისას ლოკალური ადგილის ფიქსირება ხდება არსებული ფოსტის გადაკეთების დროს
- დაფიქსირებული შეცდომა ზოგიერთი იარლიყის უსასრულო გადამისამართებით არსებული იარლიყების გარდაქმნის შემდეგ
4.1.2 (22.05.2019)
- დაფიქსირებული შეცდომა ფატალური შეცდომით Cyr_To_Lat_Converter-ში php 5.2-ით
4.1.1 (22.05.2019)
- დაფიქსირებული შეცდომა ფატალური შეცდომით Cyr_To_Lat_Converter-ში php 5.6-ით
4.1 (21.05.2019)
- დაემატა he_IL ცხრილი
- დაემატა მოდულის თარგმანი უკრაინულ ენაზე
- დაემატა მოდელის თარგმანი შვედურ ენაზე
- დაემატა phpunit ტესტები. ყველა მოდულის კლასი 100% დაფარულია
- დაემატა js ტესტები. პლაგინის ყველა js კოდი 100% დაფარულია
- დაფიქსირებული შეცდომა Jetpack სინქრონიზაციით
- დაფიქსირებული ცარიელი იარლიყის შეცდომა ლოკალის გარეთ სიმბოლოების გამოყენების დროს
4.0 (24.04.2019)
- დაემატა ღილაკი არსებული იარლიყების გადასატანად, თოლიას ნაცვლად
- დაემატა ადმინისტრაციული შეტყობინებები არსებული იარლიყების კონვერტაციის დროს
- დაემატა Post_type და post_status პარამეტრები wp-cli ბრძანებაში
- ფიქსირებული ტექსტური დომენი
- გამარტივებული package.json, რომ საბოლოო js კიდევ უფრო მცირე იყოს
- დაემატა phpunit ტესტები პლაგინის ძირითადი კლასში
- დაემატა travis.yml GitHub-ზე უწყვეტი ინტეგრაციისთვის და კოდის საიმედოობის გასაუმჯობესებლად
3.7 (12.04.2019)
- დაემატა ბელორუსული, მაკედონიური, ყაზახური ცხრილები
- დაფიქსირებული შეცდომა MariaDB-ით ძველი იარლიყის გარდაქმნის დროს
- Iso9 ცხრილში დაფიქსირებული არ არის მომხმარებლის მოდიფიკაციების შენახვა
3.6.5 (11.02.2019)
- დაემატა რიგები ფონური კონვერტაციის პროცესისთვის
3.6.4 (06.02.2019)
- გასწორდა შეცდომა
_wp_old_slug
გადამისამართებით. - გასწორდა შეცდომა
urldecode
ჩანაწერებში.
3.6.3 (04.02.2019)
- დაფიქსირებული შეცდომა ქსელის გააქტიურებით multisite-ზე
3.6.2 (01.02.2019)
- მენიუს გადატანა პარამეტრების განყოფილებაში
- ტექსტის დომენის დაფიქსირება.
3.6.1 (31.01.2019)
- ტექსტური დომენი გასწორებულია.
3.6 (31.01.2019)
- პლაგინის პარამეტრების გვერდი დაემატა.
- პარამეტრების გვერდი საშუალებას აძლევს მომხმარებლებს შეცვალონ კონვერტაციის ცხრილები ინტერნეტით.
- კოდი გადაკეთებულია OOP-ში.
- კოდი გადაკეთებულია WordPress-ის კოდირების სტანდარტებთან შესაბამისობაში.
- JS შეიმუშავებულია ECMA-6 სკრიპტის სტანდარტების შესაბამისად.
- პარამეტრების გვერდი ასევე მუშაობს, თუ JS გამორთულია ბრაუზერში.
- დაემატა Composer და yarn.
- დაემატა აქტივები (ბანერი, ხატულა, ადმინისტრატორის ხატულა).
3.4 (21.01.2019)
- შემოწმებულია WP 5.1-მდე ჩათვლით
- კოდი დაფორმატებულია WPCS-ის წესების მიხედვით.
- მკაცრი შედარებები.
- ფიგურული ფრჩხილები {} ამოღებულია MySQL-ის ოპერატორიდან, რათა დაუშვას ცხრილის სახელების შემოწმება PhpStorm-ში.
- განახლებულია .gitignore და README.md
- დაემატა ახალი ფილტრი
ctl_pre_sanitize_title
3.3 (18.01.2019)
- wpcs 1.0
- დაფიქსირდა ბევრი შეცდომა
- დაემატა გუტენბერგის მხარდაჭერა
3.2
- დაემატა XML-RPC-ის საშუალებით გამოქვეყნებისას ტრანსლიტერაცია
- დაფიქსირებული არასწორი ტაქსონომიის შეცდომა ყველაზე ხშირად გამოყენებული ჭდეების ნახვისას
3.1
- დარეგისტრირების დროს ფიქსირდება ტრანსლიტერაცია
3.0
- დაემატა არსებული ფოსტის, გვერდისა და ელემენტის იარლიყების ავტომატური კონვერტაცია
- დაემატა არსებული ჩანაწერების და გვერდების მუდმივი ბმულების მთლიანობის ინტეგრაცია
- დაემატა დანართის ფაილების სახელების თარგმნა
- განახლდა ტრანსლიტერაციის ცხრილი ISO 9 სტანდარტის შესაბამისად
- მოიცავს რუსულ, უკრაინულ, ბულგარულ და ქართულ სიმბოლოებს
- დაემატა ფილტრი ტრანსლიტერაციის ცხრილისთვის
2.1
- ოპტიმიზებული ფილტრის ზარი
2.0
- დაემატა არსებული იარლიყების შემოწმება
1.0.1
- განახლებული აღწერა
1.0
- საწყისი ვერსია