Home › Forums › Calendar Products › Events Calendar PRO › Translate Widget Mini Calendar Day Name
- This topic has 12 replies, 4 voices, and was last updated 12 years, 7 months ago by
Barry.
-
AuthorPosts
-
August 26, 2013 at 3:57 pm #62913
sambellerose
ParticipantI looked inside the .po files and I didn’t find the place where it was written “MON”, “TUE”, “THU”, etc… for each day of the week of the plugin’s widget feature. I need to translate those in an other language.
Thanks !
August 26, 2013 at 3:58 pm #62914Barry
MemberHi sambellerose, as far as I know the days of the week and month names are translated by the WordPress core (The Events Calendar simply uses wp_locale to handle this) … does that help at all?
August 26, 2013 at 4:57 pm #62936sambellerose
ParticipantHi Barry, thanks for your tip ! Any idea where it could be located in the WordPress Core ? I tried to change the file locale.php but it didn’t worked at all.
August 26, 2013 at 5:05 pm #62942Barry
MemberYou’d need to set WordPress up to run with the appropriate language files in place: https://codex.wordpress.org/WordPress_in_Your_Language
Hopefully that will get you on track here š
August 26, 2013 at 5:09 pm #62946sambellerose
ParticipantI’ll take a look thanks a lot !
August 26, 2013 at 7:27 pm #62976Barry
MemberNo problem at all, let us know if you hit any other roadblocks.
August 30, 2013 at 2:54 am #63780dimitrilongo
Participanthello, I have the same issue, but the 3 letters day are well translated in worpress, but still in english in the calendar widget
August 30, 2013 at 3:43 am #63783dimitrilongo
ParticipantAs you can see the 3 letters day name are well translated in the calendar
http://imgh.us/event-calendar-widget.pngbut bellow in the list of the day selected, it appears still in english (THU 21)
Strange ?Thanks for advices
DimitriAugust 30, 2013 at 4:14 am #63785dimitrilongo
Participantin /wp-content/plugins/events-calendar-pro/views/widgets/mini-calendar/single-event.php
line 29
class=”list-dayname”>
date(‘D’,$postdate) are short english day name but in grid.php there is a var :
$days_of_week = tribe_events_get_days_of_week(‘short’);
this one is well translatedHope that can help investigation
August 30, 2013 at 6:05 am #63792Barry
MemberExcellent catch Dimitri – you’re absolutely right. Please accept our apologies for the inconvenience (it sounds like you hit on a workaround there which may also be useful for others) and we’ll be sure to get this fixed in one of our maintenance releases š
September 18, 2013 at 4:11 am #66564elokron
ParticipantIf you add in Line 1 of
widgets\mini-calendar\single-event.php and change date( ‘D’, $postDate ) in Line 31 to strftime(“%a”,$postDate ) it will display the language correctly.September 18, 2013 at 4:13 am #66565elokron
ParticipantIf you add setlocale(LC_TIME, get_locale()); in Line 3 of
widgets\mini-calendar\single-event.php and change date( āDā, $postDate ) in Line 31 to strftime(ā%aā,$postDate ) it will display the language correctly (Sorry for doublepost).September 18, 2013 at 5:38 am #66570Barry
MemberGreat – sounds like everyone is good here and has a workaround they’re happy with … and we should hopefully get things fixed up in a forthcoming maintenance release, too. In light of which I’ll go ahead and close this thread – if there’s anything else please don’t hesitate to create new threads as required.
Thanks!
-
AuthorPosts
- The topic ‘Translate Widget Mini Calendar Day Name’ is closed to new replies.
