urbanstorm

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Language translation issue with customized theme #1391392
    urbanstorm
    Participant

    Thanks Geoff, that last resolution worked perfectly.

    in reply to: Language translation issue with customized theme #1391138
    urbanstorm
    Participant

    I tried adding the following to functions.php which worked BUT it made most the website text on the English language side disappear. I’m sure it’s a simple fix, but my php knowledge is limited. Thanks for any help you can give:

    add_filter('gettext', 'webnus_framework');
    add_filter('ngettext', 'webnus_framework');
    function webnus_framework($translated) {
        	if ( ICL_LANGUAGE_CODE=="fr" ) {
    $translated = str_ireplace('Time', 'Temps', $translated);
    $translated = str_ireplace('Cost', 'Coût', $translated);
    $translated = str_ireplace('Location', 'Emplacement', $translated);
    $translated = str_ireplace('Share this Event', 'Partagez cet événement', $translated);
    return $translated;
    }
    }
    in reply to: Date Format Translation Missing #1390958
    urbanstorm
    Participant

    Of course, the day after I write this to you, the fields magically appear haha
    I forced WPML to search the Events plugin for strings yesterday, so I’m guessing it finally completed that and cleared a cache of some kind… who knows. Anyway it’s fixed, TY!

Viewing 3 posts - 1 through 3 (of 3 total)