Page MenuHomePhabricator

RTL language home pages rendering in LTR
Closed, ResolvedPublic

Description

Author: philinje

Description:
Possibly all RTL language home pages are rendering in LTR, but only the home page seems to be affected.


Version: 1.0.0 (Android)
Severity: normal

Details

Reference
bz33664

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 12:07 AM
bzimport set Reference to bz33664.
bzimport created this task.Jan 11 2012, 6:33 PM

Brion says that RTL language support is really poor in Android 2.x . 3.x+ does a much better job.

brion added a comment.Jan 11 2012, 7:36 PM

This seems to be independent of the general rendering problems with Arabic; things seem to be left-aligned outside the main content area.

This affects:

  • page title
  • main page sections

Regular page content appears to be right-aligned as expected.

The bodyContent (the regular page content) contains a wrapper which forces the language & direction properly:

<div lang="ar" xml:lang="ar" class="mw-content-rtl" dir="rtl">

whereas there appears to be no such thing inside the title or main page sections. So when we extract them, they end up sitting in what's an overall LTR/english context by default.

Probably should grab the lang & dir attributes from the whole web page and slurp those in, if possible. They appear to be on the <html>, not on the <body>.

brion added a comment.Jan 11 2012, 7:50 PM

[master 0192339] Fix for bug 33664: apply dir & lang attributes to all content, including title & main page extracts