Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event Calendar Result Format Displays Error Instead of "Weekly" title #188

Closed
ckoerner opened this issue Feb 10, 2014 · 3 comments
Closed
Labels
bug Occurrence of an unintended or unanticipated behaviour that causes a vulnerability or fatal error duplicate

Comments

@ckoerner
Copy link
Contributor

The event calendar format from Semantic Result Formats shows an error message in the "week" view title. It appears to be a parsing issue.

This can be seen on the demo page on SMW.org and I was able to reproduce it in my own local environment.

https://www.semantic-mediawiki.org/wiki/Demo:Event_calendar

@mwjames
Copy link
Contributor

mwjames commented Feb 10, 2014

Should be moved to SRF [0]. Anyone how wants to tackle the issue is welcome to do so (I don't think that I will find the time to look at it.)

[0] https://github.com/SemanticMediaWiki/SemanticResultFormats

@mwjames
Copy link
Contributor

mwjames commented Feb 10, 2014

As I suspected after a quick peek I blame MW because when using mw.msg the the following output is generated.

console.log( mw.msg( 'srf-ui-eventcalendar-format-title-week' ) );
srf-ui-eventcalendar-format-title-week: Parse error at position 14 in input: d [MMM][ yyyy]{ '—' d MMM yyyy} 

In the past 'srf-ui-eventcalendar-format-title-week' => 'd [MMM][ yyyy]{ \'—\' d MMM yyyy}', [0] did work as expected but apparently something changed.

[0] https://github.com/SemanticMediaWiki/SemanticResultFormats/blob/master/SemanticResultFormats.i18n.php

@kghbln
Copy link
Member

kghbln commented Feb 10, 2014

I am closing this here now since it is now over at SRF

@kghbln kghbln closed this as completed Feb 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Occurrence of an unintended or unanticipated behaviour that causes a vulnerability or fatal error duplicate
Projects
None yet
Development

No branches or pull requests

3 participants