• Resolved samdalex

    (@samdalex)


    Hi

    Thanks for your help, I wanted to point out that in the calendar now the days of the week appear regularly in the default language of wordpress but the name of the month on the bar has remained unchanged, which always appears in English.

    Regards

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support EventPrime Support

    (@eventprimesupport)

    Hi,

    Thanks for reporting the issue.

    We are analyzing it and we will fix it in our upcoming releases.

    Thread Starter samdalex

    (@samdalex)

    Many thanks, in the meantime I’ve discovered another little thing to translate and that is the user’s greeting on the profile page “good morning, good afternoon ….etc.” I solved the problem, if it will lighten your work, by tweaking the plugin function in this way to have the possibility to translate in the desired language

    Change the “Get greeting text function” in

    function ep_get_greeting_text() {
    $hour = date(‘H’);
    $greet = esc_html__( ‘Good ‘, ‘eventprime-event-calendar-management’ );
    $greet .= ( $hour >= 17 ) ? esc_html__( ‘Evening’, ‘eventprime-event-calendar-management’ ) : ( ( $hour >= 12 ) ? esc_html__( ‘Afternoon’, ‘eventprime-event-calendar-management’ ) : esc_html__( ‘Morning’, ‘eventprime-event-calendar-management’ ) );
    return $greet;
    }

    from original function:

    function ep_get_greeting_text() {
    $hour = date(‘H’);
    $greet = ‘Good ‘;
    $greet .= ( $hour >= 17 ) ? ‘Evening’ : ( ( $hour >= 12 ) ? ‘Afternoon’ : ‘Morning’);
    return $greet;
    }

    If you can also insert this change in the next release

    Best Regards

    Plugin Support EventPrime Support

    (@eventprimesupport)

    Hi,

    Thanks for your suggestion.

    We are analyzing it and we will surely add it in our next release.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Calendar – Translation is good with days but not with months’ is closed to new replies.