Posted: June 10, 2014 at 1:08 pm
|
Hey, I really did a lot of searching in the forum but none of the solutions worked for me. My problem is that I use the german version of wordpress and therefore I also want to translate EE_4, of course. I hope you can help. |
|
Hi Martin, I tested this on a German WP install. I had some issues with it at first, but I believe it is down to caching, as the translations did go through correctly once I had cleared the browser cache. http://take.ms/wZrbC I could not check your calendar, as the link provided did not show the calendar at all. I assume you have the language files in wp-content/uploads/espresso/languages/ ? |
|
Hi Dean, It is not in a calendar. It is the headline of the short code [espresso_events]. Not the headline but the date under the headline. Thanks |
|
Hi Martin, Sorry about that, I think I misunderstood you there. OK, I see the issue now. This is something that we are looking to resolve in future updates (it’s currently in testing). If you would like to, it could be resolved manually by editing the template – see here for further information https://eventespresso.com/topic/format-date-and-time-in-ee4/ |
|
Hey Dean, I’m sorry but I changed the code in an other template. I already did some customization to show the start and the end date instead of the start time. The template file is the content_espresso_events_header.php. <code><?php //echo '<br/><h6 style="color:#2EA2CC;">'. __FILE__ . ' &nbsp; <span style="font-weight:normal;color:#E76700"> Line #: ' . __LINE__ . '</span></h6>'; global $post; ?> <header class="event-header"> <h1 id="event-details-h1-<?php echo $post->ID; ?>" class="entry-title"> <?php the_title(); ?> </h1> <?php if ( ! is_archive() && has_excerpt( $post->ID )): the_excerpt(); endif;?> <h5 id="event-date-p"> <?php if ( isset( $post->EE_Event ) && $post->EE_Event instanceof EE_Event ) { echo $post->EE_Event->primary_datetime()->start_date(); echo " - "; echo $post->EE_Event->primary_datetime()->end_date(); } ?> </h5> </header></code> If I understand this right it fetches the start_date() and the end_date(). regards martin |
Hi Martin, Where you have this: echo $post->EE_Event->primary_datetime()->start_date(); echo " - "; echo $post->EE_Event->primary_datetime()->end_date(); You can use this instead: espresso_event_date_range('j. F'); Please note that you don’t use echo with the above template tag. |
|
|
Thanks that did the trick. The translation of the month names is now german. regards martin |
You’re welcome. |
|
Hi Martin, The fix for the month name translation was added to Event Espresso 4.2.6, which was just released as an update. |
|
The support post ‘EE_4 german translation of months’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.