diff options
author | Robin Pepermans <robin@users.mediawiki.org> | 2011-07-06 02:26:06 +0000 |
---|---|---|
committer | Robin Pepermans <robin@users.mediawiki.org> | 2011-07-06 02:26:06 +0000 |
commit | 7c624542f0098899da5e0c9618f974955b80c2d7 (patch) | |
tree | 56122dd725b68dcf823019ec69ead9ea510a30c6 /languages/Language.php | |
parent | bf1df55887e8e32f63f7163860d45b280df97c76 (diff) | |
download | mediawikicore-7c624542f0098899da5e0c9618f974955b80c2d7.tar.gz mediawikicore-7c624542f0098899da5e0c9618f974955b80c2d7.zip |
(bug 6100; follow-up to r91315) Being bold and removing $wgBetterDirectionality (and dependent wfUILang) in core, as most or all work is finished.
Also:
* Introduce classes mw-float-end, mw-float-start so we don't have to use inline css depending on wfUILang()/$wgLang (see HistoryPage and SpecialFileDuplicateSearch)
* Add direction mark to protection log
* Remove specialpageattributes as it is obsoleted by this commit (also fixes bug 28572)
* Add two direction marks in wfSpecialList, which makes ltr links on rtl wiki (and vice versa) display nicely as well (only on those special pages however)
* Revert r91340 partially: use mw-content-ltr/rtl class anyway in shared.css. Both ways have their [dis]advantages...
* Set the direction of input fields by default to the content language direction (except buttons etc.) in shared.css
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/91518
Diffstat (limited to 'languages/Language.php')
-rw-r--r-- | languages/Language.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/languages/Language.php b/languages/Language.php index a7795a4aa75f..80faca27b77b 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -2351,10 +2351,14 @@ class Language { /** * A hidden direction mark (LRM or RLM), depending on the language direction * + * @param $opposite Boolean Get the direction mark opposite to your language * @return string */ - function getDirMark() { - return $this->isRTL() ? "\xE2\x80\x8F" : "\xE2\x80\x8E"; + function getDirMark( $opposite = false ) { + $rtl = "\xE2\x80\x8F"; + $ltr = "\xE2\x80\x8E"; + if( $opposite ) { return $this->isRTL() ? $ltr : $rtl; } + return $this->isRTL() ? $rtl : $ltr; } /** |