Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#15889 closed defect (bug) (worksforme)

translation of widget description and name not working

Reported by: bmb Owned by:
Priority: normal Milestone:
Component: Widgets Version: 3.0.3
Severity: normal Keywords:
Cc: Focuses:

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)

#1 @nacin
16 years ago

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

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

#2 @nacin
16 years ago

  • Milestone Awaiting Review
  • Resolution → worksforme
  • Status new → closed
Note: See TracTickets for help on using tickets.