[wp-trac] [WordPress Trac] #16376: Search button not translatable on list table

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 26 13:39:34 UTC 2011


#16376: Search button not translatable on list table
--------------------------+------------------------------
 Reporter:  thomask       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  I18N          |     Version:  3.1
 Severity:  trivial       |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Old description:

> Search button on list table (e.g. /wp-admin/plugins.php - on the top)
> cannot be translated. if i understand it right, the problem is wp-
> admin/includes/class-wp-list-table.php, function search_box
> <?php submit_button( $text, 'button', false, false, array('id' =>
> 'search-submit') ); ?>
> should be
> <?php submit_button( __($text), 'button', false, false, array('id' =>
> 'search-submit') ); ?>

New description:

 Search button on list table (e.g. /wp-admin/plugins.php - on the top)
 cannot be translated. if i understand it right, the problem is wp-
 admin/includes/class-wp-list-table.php, function search_box
 `<?php submit_button( $text, 'button', false, false, array('id' =>
 'search-submit') ); ?>`
 should be
 `<?php submit_button( __($text), 'button', false, false, array('id' =>
 'search-submit') ); ?>`

--

Comment (by nacin):

 Due to the way gettext works, that won't work either. But looking.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16376#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list