I18N Issue
-
Hi
If there are strings in your plugin that are also used in WordPress core (e.g. ‘Settings’), you should still add your own text domain to them, otherwise, they’ll become untranslated if the core string changes (which happens).
Please refer to official L10N guide from here.The modified codes are the following:
posts-filter-multiselect.php
Line 339 to 340'<li><a class="ui-multiselect-all" href="#"><span class="ui-icon ui-icon-check"></span><span><?php _e( 'Select all', 'posts-filter-multiselect' ); ?></span></a></li>' + '<li><a class="ui-multiselect-none" href="#"><span class="ui-icon ui-icon-closethick"></span><span><?php _e( 'Deselect', 'posts-filter-multiselect' ); ?></span></a></li>' +
Line 607 to 608
checkAllText: '<?php _e( 'Select all', 'posts-filter-multiselect' ); ?>', uncheckAllText: '<?php _e( 'Deselect', 'posts-filter-multiselect' ); ?>',
Line 698 to 699
'show_option_all' => __( $labels->all_items, 'posts-filter-multiselect' ), 'show_option_none' => __( $labels->no_terms, 'posts-filter-multiselect' ),
Line 709
echo '<label class="screen-reader-text" for="tag__in">' . __( 'Filter by tag', 'posts-filter-multiselect' ) . '</label>';
Line 747
$unknown_name = sprintf( __( '? Unknown %d', POSTS_FILTER_MULTISELECT_DOMAIN, 'posts-filter-multiselect' ), $author_id );
Line 769
$output = '<label class="screen-reader-text" for="author__in">' . esc_html( __( 'Filter by author', 'posts-filter-multiselect' ) ) . '</label>';
Line 771
$output .= "\t<option value=\"0\">" . esc_html( __( 'All Authors', POSTS_FILTER_MULTISELECT_DOMAIN, 'posts-filter-multiselect' ) ) . "</option>\n";
Line 815
$posts_columns['modified'] = __( 'Modified', POSTS_FILTER_MULTISELECT_DOMAIN, 'posts-filter-multiselect' );
Line 859
$datetime = mysql2date( __( 'Y/m/d g:i:s a', 'posts-filter-multiselect' ), $post->post_modified, false );
Line 863
$h_time = sprintf( __( '%s ago', 'posts-filter-multiselect' ), human_time_diff( $time ) );
Line 865
$h_time = mysql2date( __( 'Y/m/d', 'posts-filter-multiselect' ), $post->post_modified );
- The topic ‘I18N Issue’ is closed to new replies.