Home › Forums › Additional Help › Translations › Weekly Widget Translation: Week Day & Date
- This topic has 7 replies, 2 voices, and was last updated 6 years, 8 months ago by Bernhard.
-
AuthorPosts
-
July 5, 2017 at 4:10 am #1316210BernhardParticipant
Hi there,
We are using The Events Calendar on a German website and were wondering if you could help with a translation issue regarding the weekly widget. We managed to get the plugin working great for most parts of the site, but the weekly widget does not seem to take the changed settings for date formats and language. It still shows the English format for day of the week and date (e.g. Thu 6th). We are using a temporary workaround for this right now by suppressing all non-numeric characters associated with the date, for example. Is there a way to have the day of the week and date properly format and translate into German?
You can find an example on our site here: http://efeu.org/wk220
Thanks,
BernhardJuly 6, 2017 at 7:59 am #1316802BarryMemberMorning, Bernhard!
I’m guessing it’s week view itself you are interested in here (as opposed to the “This Week” widget).
If you visit Events → Settings → Display you should be able to modify the format via the Week Day Format setting.
Does that help?
July 6, 2017 at 8:04 am #1316804BernhardParticipantBarry,
Thanks for the reply! We have adjusted all the settings to the format we need, but unfortunately it does not seem to carry through to the “This Week” widget (it is the widget we are using on the site, not just the weekly view). See the following link for an example:
Right now we are suppressing all the non-numeric characters next to the date manually in the code, but that does not seem to be a sustainable solution (I am guessing it may also limit our ability to update the plugin).
Best,
BernhardJuly 6, 2017 at 12:19 pm #1317060BarryMemberAre you comfortable with the idea of setting up snippets in either a custom plugin or your theme’s functions.php file? If so, these samples could help:
add_filter( 'tribe_events_this_week_date_format', function() { return 'j'; } ); add_filter( 'tribe_events_this_week_day_format', function() { return 'D '; } );
You would need to adjust the returned format using the conventions described here, though.
Does that help at all?
July 7, 2017 at 5:59 am #1317326BernhardParticipantThanks, Barry! I think we were looking for something just like this. Will look into it a bit more, but should be able to make this work. Thank you for your help!
Best,
BernhardJuly 7, 2017 at 10:58 am #1317532BarryMemberNo problem, happy to help (and let me know if you’re still blocked after you’ve had a chance to play with it) 🙂
July 29, 2017 at 9:35 am #1327897Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Weekly Widget Translation: Week Day & Date’ is closed to new replies.