Last modified: 2005-12-09 15:13:43 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 3817 - date format user preference option should be translatable
date format user preference option should be translatable
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: 2005-10-28 14:21 UTC by Lejonel
Modified: 2005-12-09 15:13 UTC (History)
1 user (show)

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


Description Lejonel 2005-10-28 14:21:46 UTC
The names of the options under date format in user preferences are only english
(at least in swedish language projects). It would be nice if the options were
translatable through the messages in the MediaWiki namespace.

The "No preference" option should be translatable, and the different date
formats should use the local names of months.
Comment 1 Niklas Laxström 2005-10-28 14:27:07 UTC
You can translate them by submitting patch against LanguageSv.php and allow
everybody enjoy the translations. Because they are closely related to php code
that forms those formats, they cannot be translate separately. And looking the
code, that option should not have any effect on the actual date format as it's
not read in the code.
Comment 2 Ævar Arnfjörð Bjarmason 2005-10-28 15:34:37 UTC
Marking this as INVALID, there are some messages that should only be
translatable through the language file and this is one of them, since your
translation won't have any effect unless you change the corrisponding PHP code.
Comment 3 Brion Vibber 2005-10-28 22:50:09 UTC
Is it actually necessary to have an array hardcoded in the language file? Can't we 
just run the actual output function to show how they're formatted?

Note that since eg the month names are editable messages, a hardcoded list can be 
wrong with respect to actual output.
Comment 4 Brion Vibber 2005-11-08 01:17:08 UTC
Now uses the actual timeanddate() to produce the list. The default option text
is configurable as MediaWiki:Datedefault.

Also I've restructured some of the date/time formatting stuff internally so not
as much needs to be cut-n-pasted on most languages. There's a lot of cleanup
still that could be done...

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