Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #24608

    Hi!

    i want to translate, using WPML, event-list-widget, pages widget and latest posts widget.

    my languages are greek, english and german. Default site language is greek but in string translation of WPML documentation.

    The translated content of the widgets is correct but widget titles remain in english (default for strings). I have tried to delete widgets, add them again and re-translate the strings but no success. any ideas?

    P.S: latest posts widget is successfully translated in title and content, so the problem only remains in pages and event-list widgets.

    Thank you!

    #124024

    Hi,

    1.) Open includes > admin > register-widget-area.php, find this code

    $title = apply_filters('widget_title', __('Pages','avia_framework') );

    2.) Open config-events-calendar > the-events-calendar > widget-list.class.php, find this code

    $defaults = array( 'title' => 'Upcoming Events', 'limit' => '5', 'no_upcoming_events' => false);

    Translate them manually.

    Regards,

    Ismael

    #124025

    Hi!

    Thank you for your reply!

    I want to translate them via WPML? (pages-widget is not the default set by incarnation when sidebar is empty, i have added it together with event-list-widget in Page Sidebar)

    #124026

    i tried to add this: $defaults = __(‘Scheduled Walks’, ‘tribe-events-calendar’ );

    for the events calendar under the mentioned line but no success…

    #124027

    fixed the events-list-widget. Please give me some help for Pages widget in Page,Blog sidebar.

    Also the problem exists in home page where i have created a custom widget area from template builder and i have assigned a widget. The title is not translated there too.

    thanks

    #124028

    Hi,

    The easiest way to deal with widgets is to use widget logic plugin http://wordpress.org/plugins/widget-logic/

    Then you simply add the language to the extra field on each widget and that’s it. http://wpml.org/2011/03/howto-display-different-widgets-per-language/ . It’s a lot easier then going about it the other way, since you will have all your widgets in one place instead of segregated by language.

    Thanks,

    NIck

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

The topic ‘widget title translation problem’ is closed to new replies.