https://bugzilla.wikimedia.org/show_bug.cgi?id=60799

       Web browser: ---
            Bug ID: 60799
           Summary: remove $wgContLang and armourMath
           Product: MediaWiki
           Version: 1.23-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Internationalization
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: phy...@ckurs.de
                CC: alolita.sha...@gmail.com, asha...@wikimedia.org,
                    da...@sheetmusic.org.uk, fred.w...@free.fr,
                    kartik.mis...@gmail.com, liang...@gmail.com,
                    niklas.laxst...@gmail.com, run...@gmail.com,
                    siebr...@wikimedia.org, sucheta.ghos...@gmail.com
            Blocks: 14202
    Classification: Unclassified
   Mobile Platform: ---
             Flags: Backport_to_Stable-

armourMath does:
* Armour rendered math against conversion.
* Escape special chars in parsed math text. (in most cases are img elements)
*
* @param $text String: text to armour against conversion
* @return String: armoured text where { and } have been converted to
* { and }
*/
public static function armourMath( $text ) {
// convert '-{' and '}-' to '-{' and '}-' to prevent
// any unwanted markup appearing in the math image tag.
$text = strtr( $text, array( '-{' => '-{', '}-' => '}-' ) );
return $text;
}
I have to proposals:
A) (the far reaching proposal):
Replace amourMath by using the marker type nowiki
If there are arguments not to remove amourMath the alternative is
B) (remove $wgContLang):
see https://gerrit.wikimedia.org/r/#/c/87519/1

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to