Page MenuHomePhabricator

Date cannot be set to German month "März"
Closed, ResolvedPublic

Description

Author: krabina

Description:
this works:
[[Geburtsdatum::Mai 1986]]

but this doesn't:
[[Geburtsdatum::März 1986]]
[[Geburtsdatum::23. März 1986]]

The reason is probably that "März" ist the only month in German language with an Umlaut.

By the way, it would be nice if SMW would also accept "Jänner", which is the Austrian version of "Januar".

Bug has been reproduced in SMW 1.8.0.4 and 1.8.0.5


Version: unspecified
Severity: normal

Details

Reference
bz53843

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:56 AM
bzimport set Reference to bz53843.
bzimport added a subscriber: Unknown Object (MLST).

michaelfreiberg wrote:

There is a patch on GitHub fixing the internationalization issue in includes/datavalues/SMW_DV_Time.php. The regex did not understand Umlaute. Please refer to: https://github.com/wikimedia/mediawiki-extensions-SemanticMediaWiki/commit/3f06a3faa523d0f7ccc88d003538f2f66a543382

I have replaced the regex statement and now it works fine.

michaelfreiberg wrote:

(In reply to comment #2)

There is a patch on GitHub fixing the internationalization issue in
includes/datavalues/SMW_DV_Time.php. The regex did not understand Umlaute.
Please refer to:
https://github.com/wikimedia/mediawiki-extensions-SemanticMediaWiki/commit/
3f06a3faa523d0f7ccc88d003538f2f66a543382

I have replaced the regex statement and now it works fine.

Thank you JeroenDeDauw

Because of this also the "#set_recurring_event" and "#set_internal_recurring_event" parser functions were affected. Not dates for March were shown which was a real pain as I now realised.

Just tested this in SMW 1.9.1.1 and it works now. Should also do so for SMW 1.9.0.x and 1.9.1. Thus closing as RESOLVLED FIXED.