WordPress.org. Транслит url wordpress


Rus filename translit | WordPress.org

WordPress russian filename translitter. Russian filename not correct save by WordPress.

For example: “Приказ от 16_06_2011г_N755 О проведении единого государственного экзамена в Республике Марий Эл в 2011 году в дополнительные сроки.pdf” saved as “Prikaz-ot-16_06_2011g_N755-O-provedenii-edinogo-gosudarstvennogo-ehkzamena-v-Respublike-Marijj-EHl-v-2011-godu-v-dopolnitelnye-sroki.pdf”, but file title saved as “Приказ от 16_06_2011г_N755 О проведении единого государственного экзамена в Республике Марий Эл в 2011 году в дополнительные сроки”.

License

The WordPress Rus filename translit plugin is copyright В© 2009 with GNU General Public License by fixed77.

This program is free software; you can redistribute it and/or modify it underthe terms of the GNU General Public License as published by the FreeSoftware Foundation; either version 2 of the License, or (at your option) anylater version.

This program is distributed in the hope that it will be useful, but WITHOUT ANYWARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR APARTICULAR PURPOSE. See the GNU General Public License for more details.

To use WordPress russian filename translitter, you will need:

New Installations
  1. Download the WordPress russian filename translitter archive in zip or gzipped tar format andextract the files on your computer.

  2. Copy rufilenametranslit in the wp-content/pluginsdirectory of your WordPress installation. Use an FTP or SFTP client toupload the contents of your WordPress Rus filename translit archive to the new directorythat you just created on your web host.

  3. Log in to the WordPress Dashboard and activate the WordPress Rus filename translit plugin.

“Rus filename translit” is open source software. The following people have contributed to this plugin.

Contributors

wordpress.org

Google Transliteration | WordPress.org

This plugin offers Complete language transliteration support for your wordpress blogs in Persian, Tamil, Telugu, Hindi, Malayalam, Kannada, Arabic, Nepali, Marathi, Punjabi, Bengali, Gujarati and Urdu using google transliteration API. Visitors can use Ctrl+G key combination to toggle between english and selected language.

What’s New in version 1.7.2:

* Added support for wordpress 4.5 and buddypress 2.5.2
  1. Upload google-transliteration to the /wp-content/plugins/ directory
  2. Активируйте плагин через меню «Плагины» в WordPress.

«Google Transliteration» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники
1.7.2
1.7.1
1.7
1.6
1.5
1.1
1.0
0.8
0.7.0.1
0.7
0.6.1
0.6
0.5

ru.wordpress.org

SrbTransLatin | WordPress.org

SrbTransLatin handles using Serbian or Russian language Cyrillic and Latin script. For Cyrillic content, visitor may choose to view it using Cyrillic or Latin.

Contents of the site should be written using Cyrillic script. Then, this plugin will allow users to choose to read contents in Cyrillic or Latin script.

If some contents is entered in Latin script, it would stay in Latin even if user chooses to use Cyrillic. Transliteration occurs only from Cyrillic to Latin script.

Site owner may set default for script to show Cyrillic or Latin.

Script also may be selected manually, by adding ?script=cir or ?script=lat to document url. If parameter is not specified default script is used.

Site owner may use widget to allow visitors to choose among Cyrillic and Latin script. He may choose if script options are shown as html links or items of combo box. By default, html link are dipslayed. He also may set if widget would show title or not.

When user selects script, his choice stays permanent while he is on site. All internal links within site are altered to contain information about selected script. This means, when link is copied and pasted to some other site, it would contain information which script to use for displaying contents.

Initially, when new article is posted using Cyrillic script in title, permalink is created with conversion to Latin script. Site owner may turn it of.

Transliteration works for all feeds too (atom, rdf, rss, rss2).

Disabling transliteration for part of page contents

When transliteration occurs, everything in the HTML document is transliterated from Cyrillic to Latin script except if contents is placed among [lang id=”skip”] and [/lang] tags. This leaves user to mark part of the text he does not want to be transliterated at all, meaning, some parts of Cyrillic text may stay Cyrillic even if user chooses to view site in Latin script.

Changing image depending on selected script

If you want to add image on page which contains Cyrillic text and you want it to be replaced with image that contains Latin script then add -cir- as suffix in image name. On transliteration, Image name will be changed to have -lat- as suffix.

Example: filename-cir-.jpg will be replaced with filename-lat-.jpg

You have to provide Latin version image at same path as Cyrillic image is placed, of course.

You may use other delimiter besides “-“. You have to set delimiter in plugin settings. Delimiter may be more than one character long.

Script mark may be placed anywhere in path, not just file name.

If you want to test there are two example files available in img directory of a plugin.

Using script selector on custom places

If you need to put script selector in site template outside widgets areas then you can use function stl_show_selector() provided with plugin. Function accepts four parameters (all optional):

stl_show_selector (selector_type, oneline_separator, cyrillic_caption, latin_caption, inactive_script_only, show_only_on_wpml_languages)

selector_type chooses which type of selector to display:

Default value is ‘oneline’

oneline_separator is a string that should be inservted between script selection items. Default value is ‘/’.

cirillic_caption is a string that should be used as caption for item of cyrillic sleection. Default is ‘ћирилица’

latin_caption is a string that should be used as caption for item of latin sleection. Default is ‘латиница’

inactive_script_only if checked dosplays only option to select inactive script, currently active script wil not be an option

show_only_on_wpml_languages contains list of WPML languages comma separated for which script selection swhould be visible

To use this function just call it from place where you need code to be inserted, like:

<?php stl_show_selector('oneline', '/', 'ћирилица', 'латиница') ?>

Selector templates are stored in plugins ‘template’ directory. IF you want to customiye, you may copy template to your template directory and customize there.

Using script info in custom code

You may use some info about script state for customizing templates. Here are available functions:

stl_get_current_script() – returns id of currently displayed script. It returns id as set in plugin options.

stl_is_current_cyrillic() – returns true if currently displayed script is Cyrillic.

stl_is_current_latin() – returns true if currently displayed script is Latin.

stl_get_cyrillic_id() – returns

wordpress.org


Смотрите также

Prostoy-Site | Все права защищены © 2018 | Карта сайта
'; }); });