#16376 closed defect (bug) (invalid)
Search button not translatable on list table
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | I18N | Version: | 3.1 |
| Severity: | trivial | Keywords: | |
| Cc: |
Description (last modified by nacin)
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') ); ?>
Change History (5)
comment:2
nacin
— 2 years ago
- Description modified (diff)
Due to the way gettext works, that won't work either. But looking.
comment:3
nacin
— 2 years ago
It gets translated here:
<?php $wp_list_table->search_box( __( 'Search Plugins' ), 'plugin' ); ?>
search_box() gets passed translated text as $text.
<?php submit_button( __($text), 'button', false, false, array('id' => 'search-submit') ); ?>