Page MenuHomePhabricator

Modification_date property does not seem to be created in 'ca' locale
Closed, ResolvedPublic

Description

When $wgLanguage=ca in LocalSettings.php, Modification_date property does not seem to be created. No problem when $wgLanguage=en. I haven't tested other languages.

These are some of the warnings I get when I repair/upgrade tables in this state:

<br />
<b>Notice</b>: Undefined property: SMWTimeValue::$m_errors in
<b>/homez.93/wikisofi/www/extensions/SemanticMediaWiki/includes/SMW_DV_Time.php</b>
on line <b>384</b><br />
<br />
<b>Warning</b>: implode() [<a
href='function.implode'>function.implode</a>]: Invalid arguments
passed in <b>/homez.93/wikisofi/www/extensions/SemanticMediaWiki/includes/SMW_DV_Time.php</b>
on line <b>384</b><br />

Reference here:
http://sourceforge.net/mailarchive/forum.php?thread_name=90d651101002021009o38aaab01w4ea28fe1be79f829%40mail.gmail.com&forum_name=semediawiki-user


Version: unspecified
Severity: normal

Details

Reference
bz22578

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:02 PM
bzimport set Reference to bz22578.

The problem was that the date string used internally as generated by MediaWiki used ca localisation for month names, while SMW does not currently have this localisation for date inputs. Hence the date was not understood. The problem is fixed now (but the issue also hints at the fact that SMW's internal preparation of modification dates is more complicated than it should be).