Tim Starling wrote:
I've removed almost all of the time and date
functions from the
Language*.php files of my working copy (now checked in as the
localisation-work branch), replacing them by format strings in the style of
PHP's date() function. They're much easier to understand than PHP code, so
hopefully this will encourage people to review and edit them.
There is a chance that I made a transcription error during this process, and
there is also the chance that the original language files had an incorrect
or non-ideal date format to start with. So I invite everyone to have a look
at them. I formatted the date "15 January 2001, 12:34" in every defined date
format in every language, and put all the resulting strings at:
http://www.mediawiki.org/wiki/Date_formats
One deliberate difference since the previous version of MediaWiki is to make
our ISO 8601 formats technically correct. This format had been labelled "ISO
8601" since I introduced it to the wikitext date formatter, but somehow when
it was copied to the language files, and a time format added, someone forgot
to include the "T" separator between time and date. The ISO 8601 format was
originally requested by Ray Saintonge in the interests of standardisation,
and I would like to see MediaWiki remain true to that goal.
You can find the format strings themselves in the Messages*.php files at:
http://svn.wikimedia.org/viewvc/mediawiki/branches/localisation-work/phase3…
In other news, I think the localisation-work branch is now ready for beta
testing.
-- Tim Starling
The Vietnamese (vi) entry is incorrectly formatted. Instead of:
vi date: 15 1 năm 2001 | 15 1 năm 2001 | 15 1 năm 2001 | 15 1 năm 2001 |
2001-01-15
vi time: 12:34 | 12:34 | 12:34 | 12:34 | 12:34
vi both: 12:34, 15 tháng 1 2001 | 12:34, tháng 1 15, 2001 | 12:34, 15
tháng 1 2001 | 12:34, 2001 tháng 1 15 | 2001-01-15T12:34
It should read:
vi date: 15 tháng 1 năm 2001 | 15 tháng XX năm 2001 | 15/1/2001 |
15/1/2001 | 2001-01-15
vi time: 12:34 | 12:34 | 12:34 | 12h34 | 12:34
vi both: 12:34, ngày 15 tháng 1 năm 2001 | 12:34, ngày 15 tháng XX năm
2001 | 12:34, 15/1/2001 | 12:34, 15/1/2001 | 2001-01-15T12:34
Where XX maps to the following:
January Một
Feburary Hai
March Ba
April Tư
May Năm
June Sáu
July Bảy
August Tám
September Chín
October Mười
November Mười một
December Mười hai
Note that the Vietnamese localization doesn't use [[MediaWiki:January]]
etc. because the option for spelled-out month names isn't chosen by
default. See also Bug 5802.
--
Minh Nguyen <mxn(a)zoomtown.com>
AIM: trycom2000; Jabber: mxn(a)myjabber.net; Blog:
http://mxn.f2o.org/