Support

Home Forums Event Espresso Premium ical / google link / translation issues

ical / google link / translation issues

Posted: January 26, 2016 at 6:57 am


Katharina

January 26, 2016 at 6:57 am

hi,

i switched from EE4 to EE3 again, because of the “Event Espresso – Recurring Events” plugin. The EE4 version is really great and with EE3 i’m a little bit unhappy, because I can’t fix this issues, so I hope someone can help me 🙂

1. can’t see the start & end time http://www.suchhunde-hessen-sued.de/termine/event-registration/?ee=1 (only if i activate the reg. form. need to show it also without it)
2. iCal is not working, it shows no date & time within outlook
3. i have uploaded both files event_espresso-de_DE.po but now the backend is again in english mixed with german translations ( i am using it only, because the calender shows english months without this files, otherwise i would delete again to have a german backend!)
4. Backend / Add new event > Event Times: date picker is working, but there is no for the start & end time?
5. have you planed to let customers pay for all translations? I would pay for it, if it’s a perfect translation, because right now it is a cumbersome solution.

Thanks for your help!


Katharina

January 26, 2016 at 8:01 am

Update:
point 3 is obsolite. I deleted the translations, because the registration page was shown in english, not german.
new point: how can I show the months in german ? http://www.suchhunde-hessen-sued.de/termine/training-im-bereich-rhein-main/nadja-helfrich-egelsbach-gross-gerau-moerfelden/


Tony

  • Support Staff

January 26, 2016 at 10:53 am

Hi Katharina,

1. can’t see the start & end time http://www.suchhunde-hessen-sued.de/termine/event-registration/?ee=1 (only if i activate the reg. form. need to show it also without it)

It is possible to move the time display out of the conditional check that check for the registration form, are you comfortable with PHP, HTML and FTP?

2. iCal is not working, it shows no date & time within outlook

Can you link me to one of your events so I can view this please? The iCal times are working correctly for me so I’d like to view the iCal itself.

4. Backend / Add new event > Event Times: date picker is working, but there is no for the start & end time?

With EE3 you need to manually input the time – http://take.ms/oCHD7

5. have you planed to let customers pay for all translations? I would pay for it, if it’s a perfect translation, because right now it is a cumbersome solution.

The translations are add by the community through out glotpress project and we offer translator incentives for helping with any part of the translations.

As such we currently have no plans to force users to pay for translations but I will open a discussion regarding this with the team.

new point: how can I show the months in german ?

You can translate them using a custom function such as:

function mycustom_calendar_filter_gettext( $translated, $original, $domain ) {
 
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'January'  => 'Jan',
        'February' => 'Feb',
        'March'    => 'Mar',
        'April'    => 'Apr',
        'May'      => 'May',
        'June'     => 'Jun',
        'July'     => 'Jul',
        'August'   => 'Aug',
        'September'=> 'Sep',
        'October'  => 'Oct',
        'November' => 'Nov',
        'December' => 'Dec'    
        // Add some more strings here
    );
 
    // See if the current string is in the $strings array
    // If so, replace its translation
    if ( isset( $strings[$original] ) ) {
        // This accomplishes the same thing as __()
        // but without running it through the filter again
        $translations = get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
 
    return $translated;
}
 
add_filter( 'gettext', 'mycustom_calendar_filter_gettext', 10, 3 );

That’s taken from the example posted here: https://eventespresso.com/wiki/how-to-change-wording-with-poedit/#custom-function

The original string is on the left, the translated string on the right:

'Original String' => 'Translated String',

You can add that to a Site Specific Plugin or your themes functions.php file.


Katharina

January 26, 2016 at 11:10 am

1. yes, i am, but not sure where i can find it
2. ical example: http://www.suchhunde-hessen-sued.de/termine/event-registration/?ee=1

month issue is fixed, thanks!!!


Katharina

January 26, 2016 at 11:26 am

one more question regarding “category colors” within calender overview:
i have created 2 categorys, the first one have a color “x”, the second one “y”, but if i create an event and select both categorys for this event, it shows the color “x”. Is there a way to say use color “y”?
Example: http://www.suchhunde-hessen-sued.de/test/
cat 1. = blue / cat 2. = red

in the second step i have disabled the category color:
cat 1. = no color / cat 2. = red

but it still shows color “blue”. I thought, that if i disable it, it will take the color from the second category.


Tony

  • Support Staff

January 27, 2016 at 5:14 am

1. yes, i am, but not sure where i can find it

Within /plugins/event-espresso/templates/ you will find:

registration_page.php
registration_page_display.php

Copy both those templates to /wp-content/uploads/espresso/templates/

Within registration_page_display.php around line 130 you’ll find this:

<p class="event_time">
	<?php
//This block of code is used to display the times of an event in either a dropdown or text format.
if (isset($time_selected) && $time_selected == true) {//If the customer is coming from a page where the time was preselected.
	echo event_espresso_display_selected_time($time_id); //Optional parameters start, end, default
} else {
	echo event_espresso_time_dropdown($event_id);
}//End time selected

Move that out of the if ($display_reg_form == 'Y') conditional to allow the times to always display.

2. ical example:

Can you take a screen shot of your event date/time section and post that here please?


Katharina

January 27, 2016 at 8:10 am

1. fixed, thanks! can i also show the “registration ends” under start “star/end date”?
2. here is my screen: http://www.suchhunde-hessen-sued.de/datei_download/event.JPG as you can see, the time is always “1:00” for start & end


Tony

  • Support Staff

January 27, 2016 at 8:40 am

1. fixed, thanks! can i also show the “registration ends” under start “star/end date”?

Sure, all of the variables for that display are setup within the registration_page.php file.

You’ll find this:

$reg_start_date = $event->registration_start;
$reg_end_date	 = $event->registration_end;

So you can use:

echo event_date_display($reg_end_date, get_option('date_format'));

To output that date.

2. here is my screen: http://www.suchhunde-hessen-sued.de/datei_download/event.JPG as you can see, the time is always “1:00” for start & end

Sorry I should have been more specific, the section I need is fro the event editor, this one – http://take.ms/DDb1f


Katharina

January 27, 2016 at 11:17 am

1. fixed, thanks!
2. img update : http://www.suchhunde-hessen-sued.de/datei_download/event.JPG


Tony

  • Support Staff

January 27, 2016 at 11:44 am

Hmm, ok.

What is the Date and Time format set within Dashboard -> Settings -> General?


Katharina

January 28, 2016 at 6:02 am

you can see it here: http://www.suchhunde-hessen-sued.de/datei_download/date.JPG


Tony

  • Support Staff

January 29, 2016 at 4:19 am

Hmm this is strange.

The function that generates the iCal link either can not parse the dates being passed to it, or is not being pass the dates at all.

Within registration_page_display.php you’ll find this line:

<?php echo apply_filters('filter_hook_espresso_display_ical', $all_meta); ?> </p>

Just about that use var_dump($all_meta);, you may need to wrap it in PHP tags depending on where you place it.

Then refresh the registration page.

Does that var_dump output have start_date, end_date, start_time and end_time set correctly? – http://take.ms/ZnIUq


Katharina

February 1, 2016 at 9:53 am

here is the result and it shows the corect date:

Datum: 20. Dezember 2016 array(28) { [“event_id”]=> string(3) “150” [“event_name”]=> string(38) “Feste Gruppe (Trainer Chris & Malikka)” [“event_desc”]=> string(0) “” [“event_address”]=> NULL [“event_address2”]=> NULL [“event_city”]=> NULL [“event_state”]=> NULL [“event_zip”]=> NULL [“event_country”]=> NULL [“venue_title”]=> string(0) “” [“venue_address”]=> string(0) “” [“venue_address2”]=> string(0) “” [“venue_city”]=> string(0) “” [“venue_state”]=> string(0) “” [“venue_country”]=> string(0) “” [“location”]=> string(0) “” [“is_active”]=> string(1) “Y” [“event_status”]=> string(1) “A” [“contact_email”]=> string(29) “*protected email*” [“start_time”]=> string(5) “15:00” [“end_time”]=> string(5) “17:00” [“registration_startT”]=> string(5) “00:01” [“registration_start”]=> string(10) “2015-12-21” [“registration_endT”]=> string(5) “23:59” [“registration_end”]=> string(10) “2017-11-14” [“start_date”]=> string(17) “20. Dezember 2016” [“end_date”]=> string(17) “20. Dezember 2016” [“google_map_link”]=> string(86) “Karte und Wegbeschreibung” }
Startzeit: 15:00
Endzeit: 17:00


Tony

  • Support Staff

February 1, 2016 at 3:00 pm

Ok, this looks an issue with the formatted dates the ical is using.

It appears the date() function used to create the ical can not parse the dates in the format being passed to it. So with the date format you are using and the month names being in German the function fails.

I have created a ticket to investigate a fix for this.


Katharina

February 2, 2016 at 3:57 am

thanks!
i have checked it: after the wordpress language switch to “english (USA)” it’s working.


Katharina

February 2, 2016 at 7:13 am

one more question regarding “category colors” within calender overview:
i have created 2 categorys, the first one have a color “x”, the second one “y”, but if i create an event and select both categorys for this event, it shows the color “x”. Is there a way to say use color “y”?
Example: http://www.suchhunde-hessen-sued.de/test/
cat 1. = blue / cat 2. = red

in the second step i have disabled the category color:
cat 1. = no color / cat 2. = red

but it still shows color “blue”. I thought, that if i disable it, it will take the color from the second category.


Josh

  • Support Staff

February 3, 2016 at 4:00 pm

Hi there,

You should be able to override the colors with some custom CSS. Also, there’s a filter hook for the EE3 calendar that allows for changing the order of the categories as to which one takes precedence for setting the color. You can reverse the order by adding some code like this to your website:

function my_change_ee_category_color_sort_order() {
 return 'arsort';
}
add_filter( 'filter_hook_espresso_calendar_category_color_sort', 'my_change_ee_category_color_sort_order' );

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

The support post ‘ical / google link / translation issues’ 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.

Event Espresso