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

--- Comment #3 from foma...@googlemail.com 2012-02-19 23:58:14 UTC ---
When there is a foreign RTL title in a LTR wiki or a foreign LTR title in a RTL
wiki the correct direction can be set by DISPLAYTITLE.

Example: If you want to write an article in arwiki for the alternative metal
band from Northern Ireland [[Therapy?]] with the original title "Therapy?" you
should use:
{{DISPLAYTITLE:<span lang="en" dir="ltr">Therapy?</span>}}

The first heading is right aligned because the page content language for all
pages in arwiki is RTL, but the text itself is LTR so it doesn't generate
"?Therapy" independent of the user interface language:
<h1 id="firstHeading" class="firstHeading mw-content-rtl" dir="rtl"
lang="ar"><span lang="en" dir="ltr">Therapy?</span></h1>

This solution also solves Bug 31738.

The first heading in the MediaWiki namespace isn't in the page content language
(and even not in the user interface language). So a automatic DISPLAYTITLE
should be generated: For example [[MediaWiki:Help/ar]] should contain:
<h1 id="firstHeading" class="firstHeading mw-content-rtl" dir="rtl"
lang="ar"><span lang="en" dir="ltr">MediaWiki:Help/ar</span></h1>

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to