Page MenuHomePhabricator

MediaWiki version date is forced to ltr direction on Special:Version
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
The date part of the MediaWiki version appears in the wrong order, from left to right.

What should have happened instead?:
In Hebrew, the date must appear from right to left.

Other information (browser name/version, screenshots, etc.):
This happens because the <td>s are forced to LTR, which generally makes sense because they are mostly numbers and other technical info. Even the numbers are not localized to local numerals in languages that use them, such as Burmese (my), and that, too, is fine. The MediaWiki version date, however, is written in the user language ($wgLang), but lang and dir are not explicitly set.

I can think of two solutions:

  1. Put the date in a <span> with correct dir and lang attributes.
  2. Use a universal generic date format in all the languages, for example YYYY-MM-DD, under the rationale that Special:Version provides rather technical information and full localization is perhaps not so necessary. This was actually suggested in the discussion of T40783#468770, which is the bug because of which the date was added, but eventually a localized date was used. Even though I usually support localizing everything that can be localized, in this case it's perhaps better to use YYYY-MM-DD.