# hyphen (-). If you need more characters, you may be able to change
# the regex in MagicWord::initRegex
-# NOTE: To turn off "Current Events" in the sidebar,
-# set "currentevents" => ""
-
-# NOTE: To turn off "Disclaimers" in the title links,
-# set "disclaimers" => ""
-
-# NOTE: To turn off "Community portal" in the title links,
-# set "portal" => ""
-
-
# required for copyrightwarning
global $wgRightsText;
'mainpagetext' => 'Wiki software successfully installed.',
"mainpagedocfooter" => "Please see [http://meta.wikipedia.org/wiki/MediaWiki_i18n documentation on customizing the interface]
and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] for usage and configuration help.",
+
+# NOTE: To turn off "Community portal" in the title links,
+# set "portal" => "-"
+
'portal' => 'Community portal',
'portal-url' => '{{ns:4}}:Community Portal',
'about' => 'About',
'mytalk' => 'My talk',
'anontalk' => 'Talk for this IP',
'navigation' => 'Navigation',
+
+# NOTE: To turn off "Current Events" in the sidebar,
+# set "currentevents" => "-"
+
'currentevents' => 'Current events',
'currentevents-url' => 'Current events',
+
+# NOTE: To turn off "Disclaimers" in the title links,
+# set "disclaimers" => "-"
+
'disclaimers' => 'Disclaimers',
-"disclaimerpage" => "{{ns:4}}:General_disclaimer",
+"disclaimerpage" => "{{ns:4}}:General_disclaimer",
"errorpagetitle" => "Error",
"returnto" => "Return to $1.",
"tagline" => "From {{SITENAME}}",
press \"Save page\".\n<p>",
'yourtext' => 'Your text',
'storedversion' => 'Stored version',
+'nonunicodebrowser' => "<strong>WARNING: Your browser is not unicode compliant, please change it before editing an article.</strong>",
'editingold' => "<strong>WARNING: You are editing an out-of-date
revision of this page.
If you save it, any changes made since this revision will be lost.</strong>\n",
Search in namespaces :<br />
$1<br />
$2 List redirects Search for $3 $9",
-"searchdisabled" => "<p>Sorry! Full text search has been disabled temporarily, for performance reasons. In the meantime, you can use the Google search below, which may be out of date.</p>",
+"searchdisabled" => '<p style="margin: 1.5em 2em 1em">{{SITENAME}} search is disabled for performance reasons. You can search via Google in the meantime.
+<span style="font-size: 89%; display: block; margin-left: .2em">Note that their indexes of {{SITENAME}} content may be out of date.</span></p>',
'googlesearch' => "
<!-- SiteSearch Google -->
<FORM method=GET action=\"http://www.google.com/search\">
$plang = $this->getPreferredVariant();
+ $fallback = $this->getVariantFallback($plang);
$tarray = explode("-{", $text);
$tfirst = array_shift($tarray);
$text .= $choice{0};
}
else {
+ $choice1=false;
+ $choice2=false;
foreach($choice as $c) {
$v = explode(":", $c);
if(!array_key_exists(1, $v)) {
//syntax error in the markup, give up
- $text .= $marked{0};
break;
}
$code = trim($v{0});
$content = trim($v{1});
if($code == $plang) {
- $text .= $content;
+ $choice1 = $content;
break;
}
+ if($code == $fallback)
+ $choice2 = $content;
}
+ if ( $choice1 )
+ $text .= $choice1;
+ elseif ( $choice2 )
+ $text .= $choice2;
+ else
+ $text .= $marked{0};
}
if(array_key_exists(1, $marked))
$text .= $this->autoConvert($marked{1});
return array($lang);
}
-
+ # in case some variant is not defined in the markup, we need
+ # to have some fallback. for example, in zh, normally people
+ # will define zh-cn and zh-tw, but less so for zh-sg or zh-hk.
+ # when zh-sg is preferred but not defined, we will pick zh-cn
+ # in this case. right now this is only used by zh.
+ function getVariantFallback($v) {
+ return false;
+ }
+
function getPreferredVariant() {
global $wgUser;