| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* displays the strings translations tab in Polylang settings |
| 5 |
*/ |
| 6 |
|
| 7 |
if ( ! defined( 'ABSPATH' ) ) { |
| 8 |
exit; // don't access directly |
| 9 |
}; |
| 10 |
?> |
| 11 |
<div class="form-wrap"> |
| 12 |
<form id="string-translation" method="post" action="<?php echo esc_url( add_query_arg( 'noheader', 'true' ) ); ?>"> |
| 13 |
<input type="hidden" name="pll_action" value="string-translation" /><?php |
| 14 |
$string_table->search_box( __( 'Search translations', 'polylang' ), 'translations' ); |
| 15 |
wp_nonce_field( 'string-translation', '_wpnonce_string-translation' ); |
| 16 |
$string_table->display(); |
| 17 |
printf( '<br /><label><input name="clean" type="checkbox" value="1" /> %s</label>', esc_html__( 'Clean strings translation database', 'polylang' ) ); ?> |
| 18 |
<p><?php esc_html_e( 'Use this to remove unused strings from database, for example after a plugin has been uninstalled.', 'polylang' );?></p><?php |
| 19 |
submit_button(); // since WP 3.1 ?> |
| 20 |
</form> |
| 21 |
</div> |
| 22 |
|