* Cleaned up formatNum usage in langfiles
* (bug 5716) Warn when a user tries to upload a file which was previously deleted
* (bug 5565) Add a class attribute to the table on Special:Allpages
+* "lang=xx" option for parser test cases to set content language
+
== Compatibility ==
if( !isset( $this->uploadDir ) ) {
$this->uploadDir = $this->setupUploadDir();
}
+
+ if( preg_match( '/language=([a-z]+(?:_[a-z]+)?)/', $opts, $m ) ) {
+ $lang = $m[1];
+ } else {
+ $lang = 'en';
+ }
+ $langClass = 'Language' . str_replace( '-', '_', ucfirst( $lang ) );
+ $langObj = setupLangObj( $langClass );
$settings = array(
'wgServer' => 'http://localhost',
'wgStyleSheetPath' => '/skins',
'wgSitename' => 'MediaWiki',
'wgServerName' => 'Britney Spears',
- 'wgLanguageCode' => 'en',
- 'wgContLanguageCode' => 'en',
+ 'wgLanguageCode' => $lang,
+ 'wgContLanguageCode' => $lang,
'wgDBprefix' => 'parsertest_',
'wgDefaultUserOptions' => array(),
- 'wgLang' => new LanguageUtf8(),
- 'wgContLang' => new LanguageUtf8(),
+ 'wgLang' => $langObj,
+ 'wgContLang' => $langObj,
'wgNamespacesWithSubpages' => array( 0 => preg_match('/\\bsubpage\\b/i', $opts)),
'wgMaxTocLevel' => 999,
'wgCapitalLinks' => true,
# subpage enable subpages (disabled by default)
# noxml don't check for XML well formdness
# title=[[XXX]] run test using article title XXX
+# language=XXX set content language to XXX for this test
# disabled do not run test
#
# For testing purposes, temporary articles can created:
Something, but defenetly not <br id="9" />...
!! end
+!! test
+Language converter: output gets cut off unexpectedly (bug 5757)
+!! options
+language=zh
+!! input
+this bit is safe: }-
+
+but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
+
+then we get cut off here: }-
+
+all additional text is vanished
+!! result
+<p>this bit is safe: }-
+</p><p>but if we add a conversion instance: xxx
+</p><p>then we get cut off here: }-
+</p><p>all additional text is vanished
+</p>
+!! end
+
+
TODO:
more images
more tables