summaryrefslogtreecommitdiff
path: root/languages/classes/LanguageIu.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-05-03 13:01:35 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-05-03 13:01:35 +0200
commitd9022f63880ce039446fba8364f68e656b7bf4cb (patch)
tree16b40fbf17bf7c9ee6f4ead25b16dd192378050a /languages/classes/LanguageIu.php
parent27cf83d177256813e2e802241085fce5dd0f3fb9 (diff)
Update to MediaWiki 1.19.0
Diffstat (limited to 'languages/classes/LanguageIu.php')
-rw-r--r--languages/classes/LanguageIu.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/languages/classes/LanguageIu.php b/languages/classes/LanguageIu.php
index c6221dee..72f6af13 100644
--- a/languages/classes/LanguageIu.php
+++ b/languages/classes/LanguageIu.php
@@ -7,7 +7,7 @@
* Conversion script between Latin and Syllabics for Inuktitut.
* - Syllabics -> lowercase Latin
* - lowercase/uppercase Latin -> Syllabics
-*
+*
*
* Based on:
* - http://commons.wikimedia.org/wiki/Image:Inuktitut.png
@@ -21,6 +21,8 @@ require_once( dirname( __FILE__ ) . '/../LanguageConverter.php' );
*
*/
class IuConverter extends LanguageConverter {
+
+ protected $mDoContentConvert;
var $mToLatin = array(
'ᐦ' => 'h', 'ᐃ' => 'i', 'ᐄ' => 'ii', 'ᐅ' => 'u', 'ᐆ' => 'uu', 'ᐊ' => 'a', 'ᐋ' => 'aa',
'ᑉ' => 'p', 'ᐱ' => 'pi', 'ᐲ' => 'pii', 'ᐳ' => 'pu', 'ᐴ' => 'puu', 'ᐸ' => 'pa', 'ᐹ' => 'paa',
@@ -111,10 +113,7 @@ class IuConverter extends LanguageConverter {
* @return string
*/
function parserConvert( $text, &$parser ) {
- if ( is_object( $parser->getTitle() ) && $parser->getTitle()->isTalkPage() )
- $this->mDoContentConvert = false;
- else
- $this->mDoContentConvert = true;
+ $this->mDoContentConvert = !( is_object( $parser->getTitle() ) && $parser->getTitle()->isTalkPage() );
return parent::parserConvert( $text, $parser );
}