WordPress.org

Support

Support » Plugins and Hacks » Events Manager » [Resolved] Can not translate widget (WPML)

[Resolved] Can not translate widget (WPML)

Viewing 8 replies - 1 through 8 (of 8 total)
  • Same goes for me.

    The error i’m getting is:

    Fatal error: Cannot use object of type WP_Error as array in /home/develop/domains/wedesignyourbrand.nl/public_html/operafamilia/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 5609

    If I look into the troubleshooting of WPML it’s says it can’t find the the_category_name_filter. Somehow the post_type is not recognized.

    When I use the troubleshooter of WPML and force the type to post, the error is gone. So as all of my events. Biiiiiggg bummer..

    When I try to add an event i get:

    Fatal error: Cannot use object of type WP_Error as array in /home/develop/domains/wedesignyourbrand.nl/public_html/operafamilia/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 5609

    Same problem there..

    Hope it helps?

    Hiya,

    @bruse Can you clarify which widget you were trying to translate, the steps you took to attempt a translation, what you were expecting to be able to do, and what actually happened, please?

    @paintball85 Your issue sounds like a different problem so can you start a new thread please?

    Thanks,
    Phil

    It is the Events, and it is the field Title. I tried to spell it in English or Swedish. It is not recognize by the string translation.

    Look at the third sidebar:
    http://dedi59.fsdata.se/~muma/trafikdagar/
    http://dedi59.fsdata.se/~muma/en/operating-schedule/

    It is the “no events” and “all events” that I not Can translate.

    caimin_nwl

    @caimin_nwl

    NetWebLogic Support

    Wpml recognize the title and I can translating that. It is the FIELD n the widget i ment.

    angelo_nwl

    @angelo_nwl

    NetWebLogic Support

    not sure if this will help you but maybe you can try this snippet

    function my_em_text_rewrites($translation, $orig, $domain) {
    	switch ($orig) {
    		case 'all events' :
    			$translation = 'ALL EVENTS';
    			break;
    		case 'No events' :
    			$translation = 'NO EVENTS';
    			break;
    	}
    	return $translation;
    }
    add_action ( 'gettext', 'my_em_text_rewrites', 1, 3 );

    then use wpml conditional tags inside the switch condition – http://wpml.org/forums/topic/conditional-tags-based-on-which-language-the-page-shows/

    you can paste the snippet in your theme functions.php or http://wp-events-plugin.com/tutorials/how-to-safely-add-php-code-to-wordpress/

    Plugin Author Marcus

    @netweblogic

    the problem is we haven’t accounted for widget settings being translatable. I’ve noted this down and will investigate asap, although given what we’re working on right now it will be a while, weeks at very least.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Can not translate widget (WPML)’ is closed to new replies.
Skip to toolbar