Page MenuHomePhabricator

Fix date formats in Vietnamese locale
Closed, ResolvedPublic

Description

Currently, the Vietnamese locale offers the following four options for date formats:

  1. 16:12, tháng 1 ngày 15 năm 2001
  2. 16:12, ngày 15 tháng 1 năm 2001
  3. 16:12, năm 2001 tháng 1 ngày 15
  4. 2001-01-15 lúc 16:12:34

Of these, options 1 and 3 are incorrect and never used in Vietnamese, and option
4 should be identical to the corresponding option in the English locale, since
that's the ISO date format. These options should be changed to the following
formats:

  1. 16:12, ngày 15 tháng 1 năm 2001 to be linked as [[15 tháng 1]] năm [[2001]]
  2. 16:12, ngày 15 tháng Một năm 2001 to be linked as [[15 tháng 1|15 tháng Một]] năm [[2001]]
  3. 16:12 15/1/2001 dd/m/yyyy, to be linked as [[15 tháng 1|15/1]]/[[2001]]
  4. 16h12 15/1/2001 dd/m/yyyy, to be linked as [[15 tháng 1|15/1]]/[[2001]]
  5. 2001-01-15 16:12:34 to be linked as [[2001]]-[[15 tháng 1|01-15]]

In #2, "Một" corresponds to the month, from January to December: Một, Hai, Ba,
Tư, Năm, Sáu, Bảy, Tám, Chín, Mười, Mười một, Mười hai. These month names cannot
be taken from [[MediaWiki:January]] et al., because those use numerals like #1.
#4 is not ambiguous to Vietnamese speakers, who never use the American short
date format (mm/dd/yyyy).

Please note that, except for the default date format, none of the options
currently available even work: [[2005-01-19]] is never transformed into another
date according to the user preference, and selecting the ISO date format doesn't
do anything.


Version: unspecified
Severity: normal

Details

Reference
bz5767

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:12 PM
bzimport set Reference to bz5767.
bzimport added a subscriber: Unknown Object (MLST).

Actually, the date preferences do work, but only in the interface. They do
nothing to personalize dates in the *content* like the English locale does, however.

Created attachment 1635
Screenshot

Do these options look correct? Nevermind the font.

Attached:

mw-vi-dates.png (483×777 px, 43 KB)

Yep, it looks great. Your screenshot reminds me that we need to update the
localization file as a whole sometime soon, though, because there are a slew of
new interface messages.

Committed to trunk. Looks like the content personalization is only for English.

Marking FIXED for now; I'll file a separate bug on content personalization later on.

This fix has caused a regression: see Bug 5802 for details.