https://bugzilla.wikimedia.org/show_bug.cgi?id=34514
--- Comment #8 from Fomafix <[email protected]> 2012-11-08 22:04:33 UTC --- A possible solution is to remove the <span dir="auto"> from r105854/r105870 in skin/* again and add lang and dir to every message for setPageTitle() when necessary: * The title contains only a message in user interface message, use: setPageTitle( wfMessage( 'message' ) ) This generates <h1 id="firstHeading" class="firstHeading">Nachricht</h1> The title has the alignment, the direction and the language like the user interface. * The title contains only the page title $pageLang = $title->getPageViewLanguage(); setPageTitle( Html::rawElement( 'div', array( 'lang' => $pageLang->getHtmlCode(), 'dir' => $pageLang->getDir(), 'class' => 'mw-content-'.$pageLang->getDir() ), $title->getPrefixedText() ) This generates <h1 id="firstHeading" class="firstHeading"><div lang="ar" dir="rtl" class="mw-content-rtl">مكة</div></h1> The title has the alignment, the direction and the language like the page content. * The title contains the page title in a user language message $pageLang = $title->getPageViewLanguage(); setPageTitle( wfMessage( 'editing', Html::rawElement( 'span', array( 'lang' => $pageLang->getHtmlCode(), 'dir' => $pageLang->getDir(), 'class' => 'mw-content-'.$pageLang->getDir() ), $title->getPrefixedText() ) This generates <h1 id="firstHeading" class="firstHeading">Bearbeiten von „<span lang="ar" dir="rtl" class="mw-content-rtl">مكة</span>“</h1> The title has the alignment, the direction and the language like the rest of the user interface, but the title has the direction and the language like the page content. To improve this there should be a central function to get the page title language and direction and generate the div/span container. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- 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 [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
