Make WordPress Core

Opened 7 years ago

Closed 7 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:


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)

#1 @nacin
7 years ago

This works fine for me -- you're likely doing something wrong. I suggest the support forums: http://wordpress.org/support/.

Last edited 7 years ago by nacin (previous) (diff)

#2 @nacin
7 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.