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


    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 i have english as default, which is correct according to 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!



    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.





    Thank you for your reply!

    I want to translate them via WPML because i will have 3-4 languages of the content. Is there any modification that i can do in that code to make it work? is it a bug of WP, theme or 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)


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

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


    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.




    The easiest way to deal with widgets is to use widget logic plugin

    Then you simply add the language to the extra field on each widget and that’s it. . 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.



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

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