June 10, 2013 at 9:37 pm #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 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!June 11, 2013 at 10:34 am #124024
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.
IsmaelJune 11, 2013 at 10:48 am #124025
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)June 11, 2013 at 11:01 am #124026
i tried to add this: $defaults = __(‘Scheduled Walks’, ‘tribe-events-calendar’ );
for the events calendar under the mentioned line but no success…June 11, 2013 at 11:55 am #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.
thanksJune 12, 2013 at 10:34 pm #124028
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.
The topic ‘widget title translation problem’ is closed to new replies.