forked from Michel2/wp-jquery-datatable
Added a domain to most of the texts for translation files
This commit is contained in:
@@ -74,6 +74,7 @@ Is this plugin prepared for multisites? Yes.
|
|||||||
* Moved the settings page under the settings menu.
|
* Moved the settings page under the settings menu.
|
||||||
* Added support for a languages folder.
|
* Added support for a languages folder.
|
||||||
* Changed some texts to make use of global translations.
|
* Changed some texts to make use of global translations.
|
||||||
|
* Added a domain to most of the texts for translation files.
|
||||||
|
|
||||||
= 4.1.0 =
|
= 4.1.0 =
|
||||||
* Compatibility with WordPress version 6.7.1
|
* Compatibility with WordPress version 6.7.1
|
||||||
|
|||||||
+25
-25
@@ -50,7 +50,7 @@ function wp_jdt_create_menu()
|
|||||||
{
|
{
|
||||||
|
|
||||||
//create admin side menu
|
//create admin side menu
|
||||||
add_options_page(__('WP jQuery DataTable Settings'), __('WP jQuery DataTable'), 'administrator', 'wp-jdt', 'wp_jdt_settings_page');
|
add_options_page(__('WP jQuery DataTable Settings', 'wp-jquery-datatable'), __('WP jQuery DataTable', 'wp-jquery-datatable'), 'administrator', 'wp-jdt', 'wp_jdt_settings_page');
|
||||||
|
|
||||||
//call register settings function
|
//call register settings function
|
||||||
add_action('admin_init', 'wp_jdt_settings');
|
add_action('admin_init', 'wp_jdt_settings');
|
||||||
@@ -84,14 +84,14 @@ function wp_jdt_settings_page()
|
|||||||
$wp_jdt_searching = get_option('wp_jdt_searching');
|
$wp_jdt_searching = get_option('wp_jdt_searching');
|
||||||
?>
|
?>
|
||||||
<div class='wrap'>
|
<div class='wrap'>
|
||||||
<h2><?php _e('WP jQuery DataTable Settings'); ?></h2>
|
<h2><?php _e('WP jQuery DataTable Settings', 'wp-jquery-datatable'); ?></h2>
|
||||||
|
|
||||||
<form method='post' action='options.php'>
|
<form method='post' action='options.php'>
|
||||||
<?php settings_fields('wp-jdt-settings-group'); ?>
|
<?php settings_fields('wp-jdt-settings-group'); ?>
|
||||||
<?php do_settings_sections('wp-jdt-settings-group'); ?>
|
<?php do_settings_sections('wp-jdt-settings-group'); ?>
|
||||||
<table class='form-table'>
|
<table class='form-table'>
|
||||||
<tr valign='top'>
|
<tr valign='top'>
|
||||||
<th scope='row'><?php _e('Show Information'); ?></th>
|
<th scope='row'><?php _e('Show Information', 'wp-jquery-datatable'); ?></th>
|
||||||
<td>
|
<td>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<?php
|
<?php
|
||||||
@@ -133,37 +133,37 @@ function wp_jdt_settings_page()
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr valign='top'>
|
<tr valign='top'>
|
||||||
<th scope='row'><?php _e('Pagination Type'); ?></th>
|
<th scope='row'><?php _e('Pagination Type', 'wp-jquery-datatable'); ?></th>
|
||||||
<td>
|
<td>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<?php
|
<?php
|
||||||
if ($wp_jdt_paging_type == "full_numbers") {
|
if ($wp_jdt_paging_type == "full_numbers") {
|
||||||
?>
|
?>
|
||||||
<label title="<?php _e('Simple'); ?>"><input type="radio" value="simple" name="wp_jdt_paging_type"> <span><?php _e('Simple'); ?></span></label><br>
|
<label title="<?php _e('Simple', 'wp-jquery-datatable'); ?>"><input type="radio" value="simple" name="wp_jdt_paging_type"> <span><?php _e('Simple', 'wp-jquery-datatable'); ?></span></label><br>
|
||||||
<label title="<?php _e('Simple Numbers'); ?>"><input type="radio" value="simple_numbers" name="wp_jdt_paging_type"> <span><?php _e('Simple Numbers'); ?></span></label><br>
|
<label title="<?php _e('Simple Numbers', 'wp-jquery-datatable'); ?>"><input type="radio" value="simple_numbers" name="wp_jdt_paging_type"> <span><?php _e('Simple Numbers', 'wp-jquery-datatable'); ?></span></label><br>
|
||||||
<label title="<?php _e('Full'); ?>"><input type="radio" value="full" name="wp_jdt_paging_type"> <span><?php _e('Full'); ?></span></label><br>
|
<label title="<?php _e('Full', 'wp-jquery-datatable'); ?>"><input type="radio" value="full" name="wp_jdt_paging_type"> <span><?php _e('Full', 'wp-jquery-datatable'); ?></span></label><br>
|
||||||
<label title="<?php _e('Full Numbers'); ?>"><input type="radio" checked="checked" value="full_numbers" name="wp_jdt_paging_type"> <span><?php _e('Full Numbers'); ?></span></label><br>
|
<label title="<?php _e('Full Numbers', 'wp-jquery-datatable'); ?>"><input type="radio" checked="checked" value="full_numbers" name="wp_jdt_paging_type"> <span><?php _e('Full Numbers', 'wp-jquery-datatable'); ?></span></label><br>
|
||||||
<?php
|
<?php
|
||||||
} else if ($wp_jdt_paging_type == "full") {
|
} else if ($wp_jdt_paging_type == "full") {
|
||||||
?>
|
?>
|
||||||
<label title="<?php _e('Simple'); ?>"><input type="radio" value="simple" name="wp_jdt_paging_type"> <span><?php _e('Simple'); ?></span></label><br>
|
<label title="<?php _e('Simple', 'wp-jquery-datatable'); ?>"><input type="radio" value="simple" name="wp_jdt_paging_type"> <span><?php _e('Simple', 'wp-jquery-datatable'); ?></span></label><br>
|
||||||
<label title="<?php _e('Simple Numbers'); ?>"><input type="radio" value="simple_numbers" name="wp_jdt_paging_type"> <span><?php _e('Simple Numbers'); ?></span></label><br>
|
<label title="<?php _e('Simple Numbers', 'wp-jquery-datatable'); ?>"><input type="radio" value="simple_numbers" name="wp_jdt_paging_type"> <span><?php _e('Simple Numbers', 'wp-jquery-datatable'); ?></span></label><br>
|
||||||
<label title="<?php _e('Full'); ?>"><input type="radio" checked="checked" value="full" name="wp_jdt_paging_type"> <span><?php _e('Full'); ?></span></label><br>
|
<label title="<?php _e('Full', 'wp-jquery-datatable'); ?>"><input type="radio" checked="checked" value="full" name="wp_jdt_paging_type"> <span><?php _e('Full', 'wp-jquery-datatable'); ?></span></label><br>
|
||||||
<label title="<?php _e('Full Numbers'); ?>"><input type="radio" value="full_numbers" name="wp_jdt_paging_type"> <span><?php _e('Full Numbers'); ?></span></label><br>
|
<label title="<?php _e('Full Numbers', 'wp-jquery-datatable'); ?>"><input type="radio" value="full_numbers" name="wp_jdt_paging_type"> <span><?php _e('Full Numbers', 'wp-jquery-datatable'); ?></span></label><br>
|
||||||
<?php
|
<?php
|
||||||
} else if ($wp_jdt_paging_type == "simple_numbers") {
|
} else if ($wp_jdt_paging_type == "simple_numbers") {
|
||||||
?>
|
?>
|
||||||
<label title="<?php _e('Simple'); ?>"><input type="radio" value="simple" name="wp_jdt_paging_type"> <span><?php _e('Simple'); ?></span></label><br>
|
<label title="<?php _e('Simple', 'wp-jquery-datatable'); ?>"><input type="radio" value="simple" name="wp_jdt_paging_type"> <span><?php _e('Simple', 'wp-jquery-datatable'); ?></span></label><br>
|
||||||
<label title="<?php _e('Simple Numbers'); ?>"><input type="radio" checked="checked" value="simple_numbers" name="wp_jdt_paging_type"> <span><?php _e('Simple Numbers'); ?></span></label><br>
|
<label title="<?php _e('Simple Numbers', 'wp-jquery-datatable'); ?>"><input type="radio" checked="checked" value="simple_numbers" name="wp_jdt_paging_type"> <span><?php _e('Simple Numbers', 'wp-jquery-datatable'); ?></span></label><br>
|
||||||
<label title="<?php _e('Full'); ?>"><input type="radio" value="full" name="wp_jdt_paging_type"> <span><?php _e('Full'); ?></span></label><br>
|
<label title="<?php _e('Full', 'wp-jquery-datatable'); ?>"><input type="radio" value="full" name="wp_jdt_paging_type"> <span><?php _e('Full', 'wp-jquery-datatable'); ?></span></label><br>
|
||||||
<label title="<?php _e('Full Numbers'); ?>"><input type="radio" value="full_numbers" name="wp_jdt_paging_type"> <span><?php _e('Full Numbers'); ?></span></label><br>
|
<label title="<?php _e('Full Numbers', 'wp-jquery-datatable'); ?>"><input type="radio" value="full_numbers" name="wp_jdt_paging_type"> <span><?php _e('Full Numbers', 'wp-jquery-datatable'); ?></span></label><br>
|
||||||
<?php
|
<?php
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<label title="<?php _e('Simple'); ?>"><input type="radio" checked="checked" value="simple" name="wp_jdt_paging_type"> <span><?php _e('Simple'); ?></span></label><br>
|
<label title="<?php _e('Simple', 'wp-jquery-datatable'); ?>"><input type="radio" checked="checked" value="simple" name="wp_jdt_paging_type"> <span><?php _e('Simple', 'wp-jquery-datatable'); ?></span></label><br>
|
||||||
<label title="<?php _e('Simple Numbers'); ?>"><input type="radio" value="simple_numbers" name="wp_jdt_paging_type"> <span><?php _e('Simple Numbers'); ?></span></label><br>
|
<label title="<?php _e('Simple Numbers', 'wp-jquery-datatable'); ?>"><input type="radio" value="simple_numbers" name="wp_jdt_paging_type"> <span><?php _e('Simple Numbers', 'wp-jquery-datatable'); ?></span></label><br>
|
||||||
<label title="<?php _e('Full'); ?>"><input type="radio" value="full" name="wp_jdt_paging_type"> <span><?php _e('Full'); ?></span></label><br>
|
<label title="<?php _e('Full', 'wp-jquery-datatable'); ?>"><input type="radio" value="full" name="wp_jdt_paging_type"> <span><?php _e('Full', 'wp-jquery-datatable'); ?></span></label><br>
|
||||||
<label title="<?php _e('Full Numbers'); ?>"><input type="radio" value="full_numbers" name="wp_jdt_paging_type"> <span><?php _e('Full Numbers'); ?></span></label><br>
|
<label title="<?php _e('Full Numbers', 'wp-jquery-datatable'); ?>"><input type="radio" value="full_numbers" name="wp_jdt_paging_type"> <span><?php _e('Full Numbers', 'wp-jquery-datatable'); ?></span></label><br>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@@ -173,7 +173,7 @@ function wp_jdt_settings_page()
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr valign='top'>
|
<tr valign='top'>
|
||||||
<th scope='row'><?php _e('Rows Per Page'); ?></th>
|
<th scope='row'><?php _e('Rows Per Page', 'wp-jquery-datatable'); ?></th>
|
||||||
<td>
|
<td>
|
||||||
<input type="number" class="small-text" value="<?php if ($wp_jdt_page_length != NULL) {
|
<input type="number" class="small-text" value="<?php if ($wp_jdt_page_length != NULL) {
|
||||||
echo $wp_jdt_page_length;
|
echo $wp_jdt_page_length;
|
||||||
@@ -184,7 +184,7 @@ function wp_jdt_settings_page()
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr valign='top'>
|
<tr valign='top'>
|
||||||
<th scope='row'><?php _e('Show Per Page DropDown'); ?></th>
|
<th scope='row'><?php _e('Show Per Page DropDown', 'wp-jquery-datatable'); ?></th>
|
||||||
<td>
|
<td>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<?php
|
<?php
|
||||||
@@ -205,7 +205,7 @@ function wp_jdt_settings_page()
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr valign='top'>
|
<tr valign='top'>
|
||||||
<th scope='row'><?php _e('Ordering'); ?></th>
|
<th scope='row'><?php _e('Ordering', 'wp-jquery-datatable'); ?></th>
|
||||||
<td>
|
<td>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<?php
|
<?php
|
||||||
@@ -226,7 +226,7 @@ function wp_jdt_settings_page()
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr valign='top'>
|
<tr valign='top'>
|
||||||
<th scope='row'><?php _e('Specific Column Order'); ?></th>
|
<th scope='row'><?php _e('Specific Column Order', 'wp-jquery-datatable'); ?></th>
|
||||||
<td>
|
<td>
|
||||||
<input type="number" class="small-text" value="<?php if ($wp_jdt_order_row != NULL) {
|
<input type="number" class="small-text" value="<?php if ($wp_jdt_order_row != NULL) {
|
||||||
echo $wp_jdt_order_row;
|
echo $wp_jdt_order_row;
|
||||||
@@ -253,7 +253,7 @@ function wp_jdt_settings_page()
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr valign='top'>
|
<tr valign='top'>
|
||||||
<th scope='row'><?php _e('Searching'); ?></th>
|
<th scope='row'><?php _e('Searching', 'wp-jquery-datatable'); ?></th>
|
||||||
<td>
|
<td>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
Reference in New Issue
Block a user