Last modified: 2009-12-30 08:28:02 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 T23943, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21943 - parsing of month in dates
parsing of month in dates
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
PC Windows Vista
: Normal major (vote)
: ---
Assigned To: Markus Krötzsch
http://venciclopedia.com
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-24 12:14 UTC by Gustavo Morales
Modified: 2009-12-30 08:28 UTC (History)
1 user (show)

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


Attachments

Description Gustavo Morales 2009-12-24 12:14:06 UTC
After updating to version r48711 of the SemanticMediaWiki extension for MediaWiki 1.15.x dates are rendered WITHOUT months. This is for Mediawiki 1.15.1 running in Spanish. Meaning, in the previous version, this call 

<nowiki>{{#ask:
  [[Category:X]] [[X::X]] 
  | ?Date of something
  | format=template
  | template=X
  | limit=3
}}</nowiki>

produced the date of some event according to the template as <nowiki>"[day] de [month] de [year]"</nowiki>. After the update it just rendered as <nowiki>"[day] de de [year]"</nowiki>. This happened for several call on several templates. Changes in date formats didnt help at all. I reverted to the previous version, but I'm sure the error can be replicated.
Comment 1 Markus Krötzsch 2009-12-30 08:28:02 UTC
The month name translations for Spanish had been missing. Please update your file ./languages/SMW_LanguageEs.php to revision 48832 or later to obtain the month names.

I do not know how the template achieves the "X de Y de Z" format. This result might be based on some presupposed date structure that may also have changed in the new SMW version (in particular, SMW no longer uses the MW formatting functions due to their limited range). Maximum control over the appearance of dates can be achieved by using "ISO" output (done by changing the printout to "?Date of something#ISO"), and then using ParserFunctions to decompose and process the standardised date string in the template. This is of course slower than the built-in format.

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


Navigation
Links