Last modified: 2005-12-09 15:13:43 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 T5817, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3817 - date format user preference option should be translatable
date format user preference option should be translatable
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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.


Navigation
Links