MediaWiki  1.23.8
LanguageEo.php
Go to the documentation of this file.
1 <?php
30 class LanguageEo extends Language {
62  function iconv( $in, $out, $string ) {
63  if ( strcasecmp( $in, 'x' ) == 0 && strcasecmp( $out, 'utf-8' ) == 0 ) {
64  return preg_replace_callback (
65  '/([cghjsu]x?)((?:xx)*)(?!x)/i',
66  array( $this, 'strrtxuCallback' ), $string );
67  } elseif ( strcasecmp( $in, 'UTF-8' ) == 0 && strcasecmp( $out, 'x' ) == 0 ) {
68  # Double Xs only if they follow cxapelutaj literoj.
69  return preg_replace_callback(
70  '/((?:[cghjsu]|\xc4[\x88\x89\x9c\x9d\xa4\xa5\xb4\xb5]|\xc5[\x9c\x9d\xac\xad])x*)/i',
71  array( $this, 'strrtuxCallback' ), $string );
72  }
73  return parent::iconv( $in, $out, $string );
74  }
75 
80  function strrtuxCallback( $matches ) {
81  static $ux = array(
82  'x' => 'xx', 'X' => 'Xx',
83  "\xc4\x88" => "Cx", "\xc4\x89" => "cx",
84  "\xc4\x9c" => "Gx", "\xc4\x9d" => "gx",
85  "\xc4\xa4" => "Hx", "\xc4\xa5" => "hx",
86  "\xc4\xb4" => "Jx", "\xc4\xb5" => "jx",
87  "\xc5\x9c" => "Sx", "\xc5\x9d" => "sx",
88  "\xc5\xac" => "Ux", "\xc5\xad" => "ux",
89  );
90  return strtr( $matches[1], $ux );
91  }
92 
97  function strrtxuCallback( $matches ) {
98  static $xu = array(
99  'xx' => 'x', 'xX' => 'x',
100  'Xx' => 'X', 'XX' => 'X',
101  "Cx" => "\xc4\x88", "CX" => "\xc4\x88",
102  "cx" => "\xc4\x89", "cX" => "\xc4\x89",
103  "Gx" => "\xc4\x9c", "GX" => "\xc4\x9c",
104  "gx" => "\xc4\x9d", "gX" => "\xc4\x9d",
105  "Hx" => "\xc4\xa4", "HX" => "\xc4\xa4",
106  "hx" => "\xc4\xa5", "hX" => "\xc4\xa5",
107  "Jx" => "\xc4\xb4", "JX" => "\xc4\xb4",
108  "jx" => "\xc4\xb5", "jX" => "\xc4\xb5",
109  "Sx" => "\xc5\x9c", "SX" => "\xc5\x9c",
110  "sx" => "\xc5\x9d", "sX" => "\xc5\x9d",
111  "Ux" => "\xc5\xac", "UX" => "\xc5\xac",
112  "ux" => "\xc5\xad", "uX" => "\xc5\xad",
113  );
114  return strtr( $matches[1], $xu ) . strtr( $matches[2], $xu );
115  }
116 
117  function initEncoding() {
118  global $wgEditEncoding;
119  $wgEditEncoding = 'x';
120  }
121 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
LanguageEo\initEncoding
initEncoding()
Definition: LanguageEo.php:117
$in
$in
Definition: Utf8Test.php:42
LanguageEo\strrtxuCallback
strrtxuCallback( $matches)
Definition: LanguageEo.php:97
$out
$out
Definition: UtfNormalGenerate.php:167
LanguageEo
Esperanto (Esperanto)
Definition: LanguageEo.php:30
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
global
when a variable name is used in a it is silently declared as a new masking the global
Definition: design.txt:93
$matches
if(!defined( 'MEDIAWIKI')) if(!isset( $wgVersion)) $matches
Definition: NoLocalSettings.php:33
LanguageEo\iconv
iconv( $in, $out, $string)
Wrapper for charset conversions.
Definition: LanguageEo.php:62
LanguageEo\strrtuxCallback
strrtuxCallback( $matches)
Definition: LanguageEo.php:80
Language
Internationalisation code.
Definition: Language.php:74