Changeset 2875429
- Timestamp:
- 03/06/2023 03:38:08 PM (3 years ago)
- Location:
- latin-now/trunk
- Files:
-
- 2 edited
-
latin-now.php (modified) (7 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
latin-now/trunk/latin-now.php
r2550397 r2875429 3 3 * Plugin Name: Latin Now! 4 4 * Description: Converts Serbian Cyrillic characters into the Latin alphabet. No configuration required. 5 * Version: 2. 0.05 * Version: 2.1.0 6 6 * Author: Vukica Tomić 7 7 * Text Domain: latin-now … … 12 12 13 13 // Define constants 14 defined( 'LT_NOW_CYRILLIC' ) or define( 'LT_NOW_CYRILLIC', array( ' Б', 'В', 'Г', 'Д', 'Ђ', 'Ж', 'З', 'И', 'Л', 'Љ', 'Н', 'Њ', 'П', 'Р', 'С', 'Ћ', 'У', 'Ф', 'Х', 'Ц', 'Ч', 'Џ', 'Ш', 'б', 'в', 'г', 'д', 'ђ', 'ж', 'з', 'и', 'к', 'л', 'љ', 'м', 'н', 'њ', 'п', 'р', 'с', 'т', 'ћ', 'у', 'ф', 'х', 'ц', 'ч', 'џ', 'ш' ) );15 defined( 'LT_NOW_LATIN' ) or define( 'LT_NOW_LATIN', array( ' B', 'V', 'G', 'D', 'Đ', 'Ž', 'Z', 'I', 'L', 'Lj', 'N', 'Nj', 'P', 'R', 'S', 'Ć', 'U', 'F', 'H', 'C', 'Č', 'Dž', 'Š', 'b', 'v', 'g', 'd', 'đ', 'ž', 'z', 'i', 'k', 'l', 'lj', 'm', 'n', 'nj', 'p', 'r', 's', 't', 'ć', 'u', 'f', 'h', 'c', 'č', 'dž', 'š' ) );14 defined( 'LT_NOW_CYRILLIC' ) or define( 'LT_NOW_CYRILLIC', array( 'А', 'Б', 'В', 'Г', 'Д', 'Ђ', 'Е', 'Ж', 'З', 'И', 'Ј', 'К', 'Л', 'Љ', 'М', 'Н', 'Њ', 'О', 'П', 'Р', 'С', 'Т', 'Ћ', 'У', 'Ф', 'Х', 'Ц', 'Ч', 'Џ', 'Ш', 'а', 'б', 'в', 'г', 'д', 'ђ', 'е', 'ж', 'з', 'и', 'ј', 'к', 'л', 'љ', 'м', 'н', 'њ', 'о', 'п', 'р', 'с', 'т', 'ћ', 'у', 'ф', 'х', 'ц', 'ч', 'џ', 'ш' ) ); 15 defined( 'LT_NOW_LATIN' ) or define( 'LT_NOW_LATIN', array( 'A', 'B', 'V', 'G', 'D', 'Đ', 'E', 'Ž', 'Z', 'I', 'J', 'K', 'L', 'Lj', 'M', 'N', 'Nj', 'O', 'P', 'R', 'S', 'T', 'Ć', 'U', 'F', 'H', 'C', 'Č', 'Dž', 'Š', 'a', 'b', 'v', 'g', 'd', 'đ', 'e', 'ž', 'z', 'i', 'j', 'k', 'l', 'lj', 'm', 'n', 'nj', 'o', 'p', 'r', 's', 't', 'ć', 'u', 'f', 'h', 'c', 'č', 'dž', 'š' ) ); 16 16 defined( 'LT_NOW_CYR_UNICODE' ) or define( 'LT_NOW_CYR_UNICODE', array( 'u0411', 'u0412', 'u0413', 'u0414', 'u0402', 'u0416', 'u0417', 'u0418', 'u041b', 'u0409', 'u041d', 'u040a', 'u041f', 'u0420', 'u0421', 'u040b', 'u0423', 'u0424', 'u0425', 'u0426', 'u0427', 'u040f', 'u0428', 'u0431', 'u0432', 'u0433', 'u0434', 'u0452', 'u0436', 'u0437', 'u0438', 'u043a', 'u043b', 'u0459', 'u043c', 'u043d', 'u045a', 'u043f', 'u0440', 'u0441', 'u0442', 'u045b', 'u0443', 'u0444', 'u0445', 'u0446', 'u0447', 'u045f', 'u0448' ) ); 17 17 defined( 'LT_NOW_LAT_UNICODE' ) or define( 'LT_NOW_LAT_UNICODE', array( 'u0042', 'u0056', 'u0047', 'u0044', 'u0110', 'u017d', 'u005a', 'u0049', 'u004c', 'u004c\u006a', 'u004e', 'u004e\u006a', 'u0050', 'u0052', 'u0053', 'u0106', 'u0055', 'u0046', 'u0048', 'u0043', 'u010c', 'u0044\u017e', 'u0160', 'u0062', 'u0076', 'u0067', 'u0064', 'u0111', 'u017e', 'u007a', 'u0069', 'u006b', 'u006c', 'u006c\u006a', 'u006d', 'u006e', 'u006e\u006a', 'u0070', 'u0072', 'u0073', 'u0074', 'u0107', 'u0075', 'u0066', 'u0068', 'u0063', 'u010d', 'u0064\u017e', 'u0161' ) ); 18 18 19 19 // Add character filters if WP language is set to Serbian 20 if ( ! function_exists( 'lt_now_kill_cirilica' ) ) {20 if ( ! function_exists( 'lt_now_kill_cirilica' ) ) { 21 21 function lt_now_kill_cirilica() { 22 22 $language = get_locale(); … … 32 32 } 33 33 34 if ( ! function_exists( 'lt_now_get_latin' ) ) {35 function lt_now_get_latin( $translation, $text, $domain) {34 if ( ! function_exists( 'lt_now_get_latin' ) ) { 35 function lt_now_get_latin( $translation, $text, $domain ) { 36 36 $translation = str_replace( LT_NOW_CYRILLIC, LT_NOW_LATIN, $translation ); 37 37 return $translation; … … 39 39 } 40 40 41 if ( ! function_exists( 'lt_now_get_latin_context' ) ) {41 if ( ! function_exists( 'lt_now_get_latin_context' ) ) { 42 42 function lt_now_get_latin_context( $translation, $text, $context, $domain ) { 43 43 $translation = str_replace( LT_NOW_CYRILLIC, LT_NOW_LATIN, $translation ); … … 46 46 } 47 47 48 if ( ! function_exists( 'lt_now_get_latin_n' ) ) {48 if ( ! function_exists( 'lt_now_get_latin_n' ) ) { 49 49 function lt_now_get_latin_n( $translation, $single, $plural, $number, $domain ) { 50 50 $translation = str_replace( LT_NOW_CYRILLIC, LT_NOW_LATIN, $translation ); … … 53 53 } 54 54 55 if ( ! function_exists( 'lt_now_get_latin_n_context' ) ) {55 if ( ! function_exists( 'lt_now_get_latin_n_context' ) ) { 56 56 function lt_now_get_latin_n_context( $translation, $single, $plural, $number, $context, $domain ) { 57 57 $translation = str_replace( LT_NOW_CYRILLIC, LT_NOW_LATIN, $translation ); … … 61 61 62 62 // For JavaScript translations 63 if ( ! function_exists( 'lt_now_get_latin_scripts' ) ) {63 if ( ! function_exists( 'lt_now_get_latin_scripts' ) ) { 64 64 function lt_now_get_latin_scripts( $translations, $file, $handle, $domain ) { 65 65 $translations = str_replace( LT_NOW_CYR_UNICODE, LT_NOW_LAT_UNICODE, $translations ); -
latin-now/trunk/readme.txt
r2550402 r2875429 3 3 Tags: cyrillic, latin, serbian, transliteration, admin panel, admin 4 4 Requires at least: 5.0 5 Tested up to: 5.7.25 Tested up to: 6.1.1 6 6 Requires PHP: 7.0 7 Stable tag: 2. 0.07 Stable tag: 2.1.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 32 32 * Expanded filtered text to include all translatable text, including text from themes and plugins 33 33 34 = 2.1.0 = 35 * Fixed bug where not all cyrillic characters were replaced 36 34 37 == Upgrade Notice == 38 39 = 2.1.0 = 40 This version fixes a bug where not all cyrillic characters were replaced. 35 41 36 42 = 2.0.0 =
Note: See TracChangeset
for help on using the changeset viewer.