WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Can not translate widget (WPML) (9 posts)

  1. bruse
    Member
    Posted 9 months ago #

    Have the latest Events manager, WPML and Events Manager and WPML Compatibility installed. In every field in EM setting page, I can translate. But in the widget there is such possibility. Is there a bugg or?

    http://wordpress.org/plugins/events-manager/

  2. paintball85
    Member
    Posted 9 months ago #

    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?

  3. philipjohn
    Member
    Posted 9 months ago #

    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

  4. bruse
    Member
    Posted 9 months ago #

    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/

  5. bruse
    Member
    Posted 9 months ago #

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

  6. caimin_nwl
    NetWebLogic Support
    Posted 9 months ago #

  7. bruse
    Member
    Posted 9 months ago #

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

  8. angelo
    NetWebLogic Support
    Posted 9 months ago #

    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/

  9. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 9 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.