{"id":35089,"date":"2015-03-13T07:25:54","date_gmt":"2015-03-13T07:25:54","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/dco-russian-fixes\/"},"modified":"2019-11-24T19:44:36","modified_gmt":"2019-11-24T19:44:36","slug":"dco-russian-fixes","status":"closed","type":"plugin","link":"https:\/\/tt.wordpress.org\/plugins\/dco-russian-fixes\/","author":14326752,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.10","stable_tag":"1.0.10","tested":"4.9.29","requires":"4.1","requires_php":"","requires_plugins":"","header_name":"DCO Russian Fixes","header_author":"Denis Yanchevskiy","header_description":"","assets_banners_color":"","last_updated":"2019-11-24 19:44:36","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.me\/yadenis","header_plugin_uri":"https:\/\/github.com\/Denis-co\/dco-russian-fixes","header_author_uri":"http:\/\/denisco.pro","rating":5,"author_block_rating":0,"active_installs":100,"downloads":3896,"num_ratings":0,"support_threads":1,"support_threads_resolved":1,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1806061","resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1806061","resolution":"256x256","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":"1806061","resolution":"","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.0.10","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1111742","resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Settings page"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1114,8312],"plugin_category":[],"plugin_contributors":[86329],"plugin_business_model":[],"class_list":["post-35089","plugin","type-plugin","status-closed","hentry","plugin_tags-russian","plugin_tags-transliteration","plugin_contributors-denisco","plugin_committers-denisco"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/dco-russian-fixes\/assets\/icon.svg?rev=1806061","icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/dco-russian-fixes.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/dco-russian-fixes\/assets\/screenshot-1.png?rev=1111742","caption":"\u041a\u04e9\u0439\u043b\u04d9\u043d\u0435\u0448\u0435 page"}],"raw_content":"<!--section=description-->\n<p><strong>Not maintained<\/strong>\nThis plugin will no longer be maintained. Please use <a href=\"https:\/\/ru.wordpress.org\/plugins\/cyr2lat\/\">Cyr-To-Lat<\/a>.<\/p>\n\n<p>DCO Russian Fixes is a WordPress plugin is intended for:<\/p>\n\n<ul>\n<li>transliteration permanent links<\/li>\n<li>transliteration russian names of uploading files<\/li>\n<li>correct dates for russian language<\/li>\n<\/ul>\n\n<h4>Usage<\/h4>\n\n<p>The plugin does not require any configuration. After installation and activation will work automatically. The plugin converts only the new permanent links and the names of new uploaded files. <strong>Permanent links and file names created before activating the plugin will not be converted.<\/strong><\/p>\n\n<h4>Settings<\/h4>\n\n<ul>\n<li>Transliterate url<\/li>\n<li>Transliterate file name<\/li>\n<li>Correct dates<\/li>\n<\/ul>\n\n<h4>Filters list<\/h4>\n\n<p><strong>dco_rf_get_options<\/strong><\/p>\n\n<p>Filter for hardcoding override plugin settings. You won't be able to edit them on the settings page anymore when using this filter.<\/p>\n\n<p><strong>dco_rf_symbol_table<\/strong><\/p>\n\n<p>Filter for override standard transliterate symbol table<\/p>\n\n<p><strong>dco_rf_transliterate<\/strong><\/p>\n\n<p>Filter for change transliterate results<\/p>\n\n<p><strong>dco_rf_replace_dates_table<\/strong><\/p>\n\n<p>Filter for override standard correct dates table<\/p>\n\n<p><strong>dco_rf_correct_dates<\/strong><\/p>\n\n<p>Filter for change correct dates results<\/p>\n\n<p><strong>dco_rf_replace_archive_titles_table<\/strong><\/p>\n\n<p>Filter for override standard correct archive titles table<\/p>\n\n<p><strong>dco_rf_correct_archive_titles<\/strong><\/p>\n\n<p>Filter for change correct archive titles results<\/p>\n\n<h4>Examples of using filters<\/h4>\n\n<p><strong>Hardcoding override plugin settings<\/strong><\/p>\n\n<pre><code>function custom_get_options( $current, $options, $default ) {\n    $array = array(\n        'transliterate_url'          =&gt; 1,\n        'transliterate_file_name'    =&gt; 1,\n        'correct_dates'              =&gt; 1\n    );\n\n    return $array;\n}\n\nadd_filter( 'dco_rf_get_options', 'custom_get_options', 10, 3 );\n\n\/*\n* $current - current plugin settings\n*\n* $options - plugin settings from database\n*\n* $default - default plugin settings\n*\/\n<\/code><\/pre>\n\n<p><strong>Override standard transliterate symbol table<\/strong><\/p>\n\n<pre><code>function custom_transliterate_table( $symbol_table ) {\n    $symbol_table = array(\n        '\u0410'  =&gt; 'A', '\u0411'     =&gt; 'B', '\u0412'     =&gt; 'V', '\u0413'     =&gt; 'G', '\u0414'     =&gt; 'D',\n        '\u0415'  =&gt; 'E', '\u0401'     =&gt; 'YO', '\u0416'    =&gt; 'ZH', '\u0417'    =&gt; 'Z', '\u0418'     =&gt; 'I',\n        '\u0419'  =&gt; 'Y', '\u041a'     =&gt; 'K', '\u041b'     =&gt; 'L', '\u041c'     =&gt; 'M', '\u041d'     =&gt; 'N',\n        '\u041e'  =&gt; 'O', '\u041f'     =&gt; 'P', '\u0420'     =&gt; 'R', '\u0421'     =&gt; 'S', '\u0422'     =&gt; 'T',\n        '\u0423'  =&gt; 'U', '\u0424'     =&gt; 'F', '\u0425'     =&gt; 'H', '\u0426'     =&gt; 'C', '\u0427'     =&gt; 'CH',\n        '\u0428'  =&gt; 'SH', '\u0429'    =&gt; 'SHH', '\u042a'   =&gt; \"\", '\u042b'  =&gt; 'YI', '\u042c'    =&gt; \"\",\n        '\u042d'  =&gt; 'E', '\u042e'     =&gt; 'YU', '\u042f'    =&gt; 'YA',\n        '\u0430'  =&gt; 'a', '\u0431'     =&gt; 'b', '\u0432'     =&gt; 'v', '\u0433'     =&gt; 'g', '\u0434'     =&gt; 'd',\n        '\u0435'  =&gt; 'e', '\u0451'     =&gt; 'yo', '\u0436'    =&gt; 'zh', '\u0437'    =&gt; 'z', '\u0438'     =&gt; 'i',\n        '\u0439'  =&gt; 'y', '\u043a'     =&gt; 'k', '\u043b'     =&gt; 'l', '\u043c'     =&gt; 'm', '\u043d'     =&gt; 'n',\n        '\u043e'  =&gt; 'o', '\u043f'     =&gt; 'p', '\u0440'     =&gt; 'r', '\u0441'     =&gt; 's', '\u0442'     =&gt; 't',\n        '\u0443'  =&gt; 'u', '\u0444'     =&gt; 'f', '\u0445'     =&gt; 'h', '\u0446'     =&gt; 'c', '\u0447'     =&gt; 'ch',\n        '\u0448'  =&gt; 'sh', '\u0449'    =&gt; 'shh', '\u044c'   =&gt; \"\", '\u044b'  =&gt; 'yi', '\u044a'    =&gt; \"\",\n        '\u044d'  =&gt; 'e', '\u044e'     =&gt; 'yu', '\u044f'    =&gt; 'ya'\n    );\n\n    return $symbol_table;\n}\n\nadd_filter( 'dco_rf_symbol_table', 'custom_transliterate_table' );\n\n\/*\n* $symbol_table - default transliterate table\n*\/\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>dco-russian-fixes<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>It is necessary to configure the plugin?<\/dt>\n<dd><p>The plugin does not require any configuration. After installation and activation will work automatically. But you can configure it on the settings page.<\/p><\/dd>\n<dt>Old links and file names will be changed?<\/dt>\n<dd><p>No. The plugin converts only the new permanent links and the names of new uploaded files. Permanent links and file names created before activating the plugin will not be converted.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.10<\/h4>\n\n<ul>\n<li>Added <code>dco_rf_disable_transliterate_lower<\/code> filter to disable processing transliterate string with <code>mb_strtolower<\/code> function. You can use <code>add_filter('dco_rf_disable_transliterate_lower', '__return_true');<\/code> for it. (thank you @shitpoet for idea, link to discussion https:\/\/wordpress.org\/support\/topic\/crashes-wp-on-moved-to-domain\/)<\/li>\n<\/ul>\n\n<h4>1.0.9<\/h4>\n\n<ul>\n<li>Fixed bug with existing russian urls (thank you @valery-kondakoff for notifying)<\/li>\n<\/ul>\n\n<h4>1.0.8<\/h4>\n\n<ul>\n<li>Fixed Text Domain<\/li>\n<li>Transliteration post url enabled for frontend of site<\/li>\n<\/ul>\n\n<h4>1.0.7<\/h4>\n\n<ul>\n<li>Corrected localization<\/li>\n<li>Updated admin settings page heading to WordPress 4.3 styles<\/li>\n<li>Fixed bug with \"\u044d\" transliteration for upload files<\/li>\n<li>Restricted direct access to plugin files<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>Fixed bug with russian urls<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Added support transliteration for frontend<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Added additional links for the WP plugin configuration page<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Optimized<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Fixed bug with filter for override plugin settings<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Corrected settings page<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Rework architecture<\/li>\n<li>Add settings<\/li>\n<li>Add additional hooks<\/li>\n<\/ul>\n\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>Add filter \"dco_symbol_table\" for overriding the standard transliteration table<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"Add WordPress russian language fixes.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/35089","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=35089"}],"author":[{"embeddable":true,"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/denisco"}],"wp:attachment":[{"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=35089"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=35089"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=35089"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=35089"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=35089"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=35089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}