Date format when clicking on calendar
-
Hello Stephen,
I’m using the pluging and it’s great. Just a small detail:
When I click on a day in the calendar widget, it displays the date in spanglish despite using spanish e.g. Events: 27th marzo 2015
https://poc.aullox.com/ccemx/?post_type=event&ondate=2015-03-27Where should I look to edit this? Should be Eventos: 27 marzo 2015
Thank you in advance!!
George
-
Hi George,
The translation, although present, had been marked as ‘fuzzy’. I’ve since remedied this, so in the next update it should appear translated.
Thank you Stephen for the quick reply!!
I edited the po file, removed all that’s fuzzy while translating what was missing, to no avail. Read somewhere else in the forum it has to do with the jS (S being the php instruction to add the st, nd, rd, th). Unless it’s some other translation I’m missing here… :-))Thank you again for the quick support!!
One more thing and this is really weird: when I click on a day with multiple events (I have a custom sidebar for each event different than the main sidebar elsewhere), one of the resulting events’ sidebar is displayed instead of the main one… which is a bit confusing. I guess both issues have to do with the “page” that’s generated on calendar clicking??
.po file is the human-readable version. You’d need to generate the .mo file from that (which is not human-readable).
You can also edit the template to remove the ‘S’ (3.0.0 will use the date format option rather than the fixed ‘jS F Y’ format).
Regarding the sidebar, it will depend on the theme and what changes you’ve made. The default templates will just display a sidebar, if you’re code is changing the contents of that (main) sidebar based on the event, then if it’s not checking if the page being rendered is a single event page, then it may well be effecting the events page, and using the last event on the page.
Indeed, po and mo files – the mo is generated automatically, so I just uploaded both. I’m sorry I wasn’t clear about it.
I edited the template (archive-event.php despite your recommendation not to – just deleted the S in jS in line 34) and it’s solved. Thank you!
I haven’t modified any code (per client request), just used a plugin (simple page sidebars) to change the sidebar, and a custom field that displays in a php code widget. I wouldn’t mind removing the sidebar altogether in this particular rendering of a day’s events. Any idea how to go about it without making it impervious to updates? (Or maybe assign it its own sidebar?)
One more thing – I noticed a weird behavior when there is a private event: the day in the calendar gets highlighted if I see the events of a previous day. Just mentioning this for you to look into it. (If you want, I can try reproducing it for you).
I can’t thank you enough Stephen. This is the best support – and quickest replies – I have received!!
Ok solved it conditioning the php code widget using widget logic, is_singular() && (get_post_type()==’event’) so it won’t show anymore on listings.
Thanks again Stephen!!!
archive-event.php despite your recommendation not to
Please do yet this file; it’s intended to be :). Just copy into your theme, so that when you update the plug-in, the changes aren’t lost.
That’s odd about the translation – I’ve checked on my test installation, so at least the next update should have ‘Events:’ translated.
One more thing – I noticed a weird behavior when there is a private event: the day in the calendar gets highlighted if I see the events of a previous day.
So this is the events widget calendar? Just to confirm, if you’ve got a private event (and only a private event) on 25th March, then the widget calendar doesn’t highlight that date, unless you’re viewing events on the 24th?
Please do yet this file; it’s intended to be ??
Ok I will!! ??
So this is the events widget calendar?
Yes. I’m reproducing it, I just remarked the event of the 31st as private:
https://poc.aullox.com/ccemx/?post_type=event&ondate=2015-03-30
If you click on the 27th, the 31st is not highlighted. On the 30th, it highlights, and if you click on the 31st, it gives the event of the previous day (i.e. of the 30th).Ah, that’s not a private event – it’s actually the event starting on the 30th which runs over onto the 31st. That calendar’s settings have been set to show all dates of long (multi-day) events.
When you click on the 27th you’ve seeing the events page, with one sidebar and a calendar which is set to show long events. When you click on the 31st, since there is only event you’re seeing the single event page which has a sidebar and calendar on it, which is set to only show the first date of a multi-day event.
I think there’s just a setting disparity between the two sidebars.
Oh my bad!! I’m trying to resolve so many things at the same time!! True, the event is spread on 10 days… As for the sidebars, the one you see on the 31st is the main one. The others are just tests – haven’t worked on the contents yet, just the container – which was no small feat lol!
Will have to check how to highlight it all the days…
What’s taking forever to figure out is how to make the featured content widget included in the suffusion theme to use the event custom type not only posts.
One more quick question (sorry!) Do you recommend the booking add-on since the managed events are all free but sometimes subject to quota?
If you want to take event bookings/registration (free or otherwise) then yes, Pro provides that ??
Can you provide a link to screenshots??
How does the registration functionality works? Does it have its own registering process or does it use worpdress official one? If autonomous, does it have custom fields?
Sorry for all the questions, but have to be sure before tackling the buying protocol in here lol!!Yes – https://wp-event-organiser.com/pro-screenshots/ (though those screenshots are taken with the ‘old’ WordPress UI, I can’t recall the exact version but it would be pre-3.8).
I can go better than that too. You can trial the plug-in for free.
To answer your questions: The plug-in allows you to create your own booking forms. Bookees can have an WP account registered for them (if you want), or they can book logged-in (or logged out, if you allow).
Feel free to direct any further pre-sales questions here: wp-event-organiser.com/forums/forum/pre-sales-questions/ as these forums should only be about the codebase that is hosted here (i.e. the free base version).
Thanks Stephen – and sorry forum moderators.
Will continue per your instructions.
- The topic ‘Date format when clicking on calendar’ is closed to new replies.