Opened 14 years ago
Closed 14 years ago
#15889 closed defect (bug) (worksforme)
translation of widget description and name not working
Reported by: | bmb | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.0.3 |
Component: | Widgets | Keywords: | |
Focuses: | Cc: |
Description
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.
Change History (2)
Note: See
TracTickets for help on using
tickets.
This works fine for me -- you're likely doing something wrong. I suggest the support forums: http://wordpress.org/support/.