Last modified: 2006-05-03 01:43:54 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 T7767, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 5767 - Fix date formats in Vietnamese locale
Fix date formats in Vietnamese locale
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-04-30 04:55 UTC by Minh Nguyễn
Modified: 2006-05-03 01:43 UTC (History)
0 users

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

Screenshot (43.53 KB, image/png)
2006-05-01 09:52 UTC, Niklas Laxström

Description Minh Nguyễn 2006-04-30 04:55:23 UTC
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

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.
Comment 1 Minh Nguyễn 2006-04-30 06:54:20 UTC
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.
Comment 2 Niklas Laxström 2006-05-01 09:52:52 UTC
Created attachment 1635 [details]

Do these options look correct? Nevermind the font.
Comment 3 Minh Nguyễn 2006-05-01 17:12:39 UTC
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.
Comment 4 Niklas Laxström 2006-05-01 17:50:42 UTC
Committed to trunk. Looks like the content personalization is only for English.
Comment 5 Minh Nguyễn 2006-05-01 19:11:26 UTC
Marking FIXED for now; I'll file a separate bug on content personalization later on.
Comment 6 Minh Nguyễn 2006-05-03 01:43:54 UTC
This fix has caused a regression: see Bug 5802 for details.

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