Text Domain Issue
-
Hi,
I fully localize this plugin and it has a text domain issue.
I modified the following code to correct them.
drophtml.php, line 9
New code:* Text Domain: drophtml\includes\post-types\drop.php, Line 7 to 33
'name' => _x( 'DropHTML', 'Post Type General Name', 'drophtml' ), 'singular_name' => _x( 'Drop', 'Post Type Singular Name', 'drophtml' ), 'menu_name' => __( 'DropHTML', 'drophtml' ), 'name_admin_bar' => __( 'Drop', 'drophtml' ), 'archives' => __( 'Item Archives', 'drophtml' ), 'attributes' => __( 'Item Attributes', 'drophtml' ), 'parent_item_colon' => __( 'Parent Item:', 'drophtml' ), 'all_items' => __( 'List', 'drophtml' ), 'add_new_item' => __( 'Upload Item', 'drophtml' ), 'add_new' => __( 'Upload', 'drophtml' ), 'new_item' => __( 'New Item', 'drophtml' ), 'edit_item' => __( 'Edit Item', 'drophtml' ), 'update_item' => __( 'Update Item', 'drophtml' ), 'view_item' => __( 'View Item', 'drophtml' ), 'view_items' => __( 'View Items', 'drophtml' ), 'search_items' => __( 'Search Item', 'drophtml' ), 'not_found' => __( 'Not found', 'drophtml' ), 'not_found_in_trash' => __( 'Not found in Trash', 'drophtml' ), 'featured_image' => __( 'Featured Image', 'drophtml' ), 'set_featured_image' => __( 'Set featured image', 'drophtml' ), 'remove_featured_image' => __( 'Remove featured image', 'drophtml' ), 'use_featured_image' => __( 'Use as featured image', 'drophtml' ), 'insert_into_item' => __( 'Insert into item', 'drophtml' ), 'uploaded_to_this_item' => __( 'Uploaded to this item', 'drophtml' ), 'items_list' => __( 'Items list', 'drophtml' ), 'items_list_navigation' => __( 'Items list navigation', 'drophtml' ), 'filter_items_list' => __( 'Filter items list', 'drophtml' ),\includes\post-types\drop.php, Line 37 to 38
'label' => __( 'Drop', 'drophtml' ), 'description' => __( 'Drop Html', 'drophtml' ),I upload all zh_TW translations to https://translate.wordpress.org/locale/zh-tw/default/wp-plugins/drophtml/, and system push mo and po file named drophtml which doesn’t match your text domain drop.
If text domain is the same as plugin slug, that can avoid some L10N issues.
Regards,
Alex Lion
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Text Domain Issue’ is closed to new replies.