Widget title string not translatable in Recent Posts widget
-
Hi,
Thanks for the great theme.
I noticed that in your theme’s widget code, the default title string"Recent Posts"is not passed through a translation function, which makes it impossible to translate via.po/.mofiles.Current code in file /inc/widgets/recent-posts.php line 19
$graceful_title = apply_filters( 'widget_title', empty( $instance['title'] ) ? 'Recent Posts' : $instance['title'], $instance, $this->id_base );Suggested fix:
$graceful_title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Recent Posts', 'graceful' ) : $instance['title'], $instance, $this->id_base );This way the widget title becomes properly translatable, following WordPress i18n best practices.
Thanks!
Bests Lena
You must be logged in to reply to this topic.
