forked from Michel2/wp-jquery-datatable
Added a domain to most of the texts for translation files
This commit is contained in:
+25
-25
@@ -50,7 +50,7 @@ function wp_jdt_create_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
|
||||
add_action('admin_init', 'wp_jdt_settings');
|
||||
@@ -84,14 +84,14 @@ function wp_jdt_settings_page()
|
||||
$wp_jdt_searching = get_option('wp_jdt_searching');
|
||||
?>
|
||||
<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'>
|
||||
<?php settings_fields('wp-jdt-settings-group'); ?>
|
||||
<?php do_settings_sections('wp-jdt-settings-group'); ?>
|
||||
<table class='form-table'>
|
||||
<tr valign='top'>
|
||||
<th scope='row'><?php _e('Show Information'); ?></th>
|
||||
<th scope='row'><?php _e('Show Information', 'wp-jquery-datatable'); ?></th>
|
||||
<td>
|
||||
<fieldset>
|
||||
<?php
|
||||
@@ -133,37 +133,37 @@ function wp_jdt_settings_page()
|
||||
</tr>
|
||||
|
||||
<tr valign='top'>
|
||||
<th scope='row'><?php _e('Pagination Type'); ?></th>
|
||||
<th scope='row'><?php _e('Pagination Type', 'wp-jquery-datatable'); ?></th>
|
||||
<td>
|
||||
<fieldset>
|
||||
<?php
|
||||
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 Numbers'); ?>"><input type="radio" value="simple_numbers" name="wp_jdt_paging_type"> <span><?php _e('Simple Numbers'); ?></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 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('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', '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', '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', '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
|
||||
} 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 Numbers'); ?>"><input type="radio" value="simple_numbers" name="wp_jdt_paging_type"> <span><?php _e('Simple Numbers'); ?></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 Numbers'); ?>"><input type="radio" value="full_numbers" name="wp_jdt_paging_type"> <span><?php _e('Full Numbers'); ?></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', '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', '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', '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
|
||||
} 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 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('Full'); ?>"><input type="radio" value="full" name="wp_jdt_paging_type"> <span><?php _e('Full'); ?></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('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', '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', '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', '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
|
||||
} 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 Numbers'); ?>"><input type="radio" value="simple_numbers" name="wp_jdt_paging_type"> <span><?php _e('Simple Numbers'); ?></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 Numbers'); ?>"><input type="radio" value="full_numbers" name="wp_jdt_paging_type"> <span><?php _e('Full Numbers'); ?></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', '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', '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', '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
|
||||
}
|
||||
?>
|
||||
@@ -173,7 +173,7 @@ function wp_jdt_settings_page()
|
||||
</tr>
|
||||
|
||||
<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>
|
||||
<input type="number" class="small-text" value="<?php if ($wp_jdt_page_length != NULL) {
|
||||
echo $wp_jdt_page_length;
|
||||
@@ -184,7 +184,7 @@ function wp_jdt_settings_page()
|
||||
</tr>
|
||||
|
||||
<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>
|
||||
<fieldset>
|
||||
<?php
|
||||
@@ -205,7 +205,7 @@ function wp_jdt_settings_page()
|
||||
</tr>
|
||||
|
||||
<tr valign='top'>
|
||||
<th scope='row'><?php _e('Ordering'); ?></th>
|
||||
<th scope='row'><?php _e('Ordering', 'wp-jquery-datatable'); ?></th>
|
||||
<td>
|
||||
<fieldset>
|
||||
<?php
|
||||
@@ -226,7 +226,7 @@ function wp_jdt_settings_page()
|
||||
</tr>
|
||||
|
||||
<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>
|
||||
<input type="number" class="small-text" value="<?php if ($wp_jdt_order_row != NULL) {
|
||||
echo $wp_jdt_order_row;
|
||||
@@ -253,7 +253,7 @@ function wp_jdt_settings_page()
|
||||
</tr>
|
||||
|
||||
<tr valign='top'>
|
||||
<th scope='row'><?php _e('Searching'); ?></th>
|
||||
<th scope='row'><?php _e('Searching', 'wp-jquery-datatable'); ?></th>
|
||||
<td>
|
||||
<fieldset>
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user