Last modified: 2012-04-16 09:16:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T29485, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27485 - block log entry duration message is broken in RTL wikis
block log entry duration message is broken in RTL wikis
Status: RESOLVED DUPLICATE of bug 25839
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
Blocks: rtl
  Show dependency treegraph
Reported: 2011-02-17 03:24 UTC by Huji
Modified: 2012-04-16 09:16 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Huji 2011-02-17 03:24:31 UTC
I recently noted that on RTL Wikipedia (such as Persian Wikipedia and Arabic Wikipedia), the "duration" message for block log entries is rotated and the order of words is not correct.


It reads:

Behzad.Modares (بحث | مشارکت‌ها | بسته شود) « (بحث)» را ۱ روز بست 

However, instead of reading as "1 days" (in Persian) it is read as "days 1". This is because in the HTML code, the duration is surrounded by an HTML tag:

<span class="blockExpiry" dir="ltr" title="1 day">

Which has the dir value hardcoded. This breaks RTL layout and should be reverted. Such modifications should always take place at CSS level.
Comment 1 Niklas Laxström 2011-02-17 09:07:20 UTC
That's because you yourself requested it in bug 25839.
Comment 2 Huji 2011-02-17 13:30:31 UTC
Well, I never asked this to be added hardcoded; I asked this to be added through CSS.

Also, I relied on Roan's comment there, that after this change the Arabic text for "1 week" was still shown in the correct order (I didn't check it myself).

The LTR rendering is still required when the block expiry is a timestamp. However, if the expiry is a localized text, it shouldn't be rendered as LTR.
Comment 3 Mark A. Hershberger 2011-02-17 19:17:15 UTC
Resolving dupe of 25839 so that we can all concentrate on that bug.

*** This bug has been marked as a duplicate of bug 25839 ***

Note You need to log in before you can comment on or make changes to this bug.