[wp-trac] [WordPress Trac] #15889: translation of widget description and name not working
WordPress Trac
wp-trac at lists.automattic.com
Sun Dec 19 07:51:11 UTC 2010
#15889: translation of widget description and name not working
--------------------------+-----------------------------
Reporter: bmb | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 3.0.3
Severity: normal | Keywords:
--------------------------+-----------------------------
I wrote a plugin for my sites. It adds a widget. The text strings in the
form() and widget() member functions of my widget class (which inherits
from WP_widget) show up translated (after calling
load_plugin_textdomain(), of course), but the name and description of my
widget, as show up in the widget selection pool, are not translated. I
thought this might have to do with my widget constructor being called as
soon as the PHP parser passes it (although I don't think this is true),
and the translation not called until the 'init' hook, but I tried puting
my class in a function called from 'widgets_init' and it still didn't
work.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15889>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list