| 1 |
<?php |
| 2 |
/** |
| 3 |
* Displays the strings translations tab in Polylang settings |
| 4 |
* |
| 5 |
* @package Polylang |
| 6 |
* |
| 7 |
* @var PLL_Table_String $string_table An object representing the translations list table. |
| 8 |
*/ |
| 9 |
|
| 10 |
defined( 'ABSPATH' ) || exit; |
| 11 |
?> |
| 12 |
<div class="form-wrap"> |
| 13 |
<form id="string-translation" method="post" action="<?php echo esc_url( add_query_arg( 'noheader', 'true' ) ); ?>"> |
| 14 |
<input type="hidden" name="pll_action" value="string-translation" /> |
| 15 |
<?php |
| 16 |
$string_table->search_box( __( 'Search translations', 'polylang' ), 'translations' ); |
| 17 |
wp_nonce_field( 'string-translation', '_wpnonce_string-translation' ); |
| 18 |
$string_table->display(); |
| 19 |
|
| 20 |
if ( current_user_can( 'manage_options' ) ) { |
| 21 |
printf( '<br /><label><input name="clean" type="checkbox" value="1" /> %s</label>', esc_html__( 'Clean strings translation database', 'polylang' ) ); |
| 22 |
?> |
| 23 |
<p><?php esc_html_e( 'Use this to remove unused strings from database, for example after a plugin has been uninstalled.', 'polylang' ); ?></p> |
| 24 |
<?php |
| 25 |
} |
| 26 |
|
| 27 |
submit_button(); |
| 28 |
?> |
| 29 |
</form> |
| 30 |
<div class="metabox-holder"> |
| 31 |
<?php |
| 32 |
wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); |
| 33 |
do_meta_boxes( PLL_Admin_Base::get_screen_id( 'strings' ), 'normal', array() ); |
| 34 |
?> |
| 35 |
</div> |
| 36 |
|
| 37 |
</div> |
| 38 |
|