aboutsummaryrefslogtreecommitdiffstats
path: root/languages
diff options
context:
space:
mode:
authorZheng Zhu <zhengzhu@users.mediawiki.org>2005-04-28 03:33:54 +0000
committerZheng Zhu <zhengzhu@users.mediawiki.org>2005-04-28 03:33:54 +0000
commitff1e0c05815411d6b513dc5cfe1d49cf5362e064 (patch)
tree0a2eb9a355785e0df9bfddb119935d42aaa83205 /languages
parentb725d0748b24442578ff1a2afea1a41a7a94b1d5 (diff)
downloadmediawikicore-ff1e0c05815411d6b513dc5cfe1d49cf5362e064.tar.gz
mediawikicore-ff1e0c05815411d6b513dc5cfe1d49cf5362e064.zip
Full conversion support for category pages
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/8694
Diffstat (limited to 'languages')
-rw-r--r--languages/Language.php6
-rw-r--r--languages/LanguageZh.php4
2 files changed, 10 insertions, 0 deletions
diff --git a/languages/Language.php b/languages/Language.php
index d654fad6776a..1460693f8eda 100644
--- a/languages/Language.php
+++ b/languages/Language.php
@@ -1902,6 +1902,8 @@ class fakeConverter {
function getExtraHashOptions() {return '';}
function getParsedTitle() {return '';}
function markNoConversion($text) {return $text;}
+ function convertCategoryKey( $key ) {return $key; }
+
}
#--------------------------------------------------------------------------
@@ -2532,6 +2534,10 @@ class Language {
return $this->mConverter->convert($text, $isTitle);
}
+ function convertCategoryKey( $key ) {
+ return $this->mConverter->convertCategoryKey( $key );
+ }
+
/**
* get the list of variants supported by this langauge
* see sample implementation in LanguageZh.php
diff --git a/languages/LanguageZh.php b/languages/LanguageZh.php
index c8b34f9608fc..f7f3255fdd19 100644
--- a/languages/LanguageZh.php
+++ b/languages/LanguageZh.php
@@ -31,6 +31,10 @@ class ZhConverter extends LanguageConverter {
function markNoConversion($text) {
return $text;
}
+
+ function convertCategoryKey( $key ) {
+ return $this->autoConvert( $key, 'zh-cn' );
+ }
}