I am currently translating all of my plugins with loco translate. This is working fine on frontend and in all metaboxes in the backend, but not in the wp-admin menu:
The red circled word should be in german but isn't.
My Custom Post Type:
<?php
function add_ons() {
register_post_type('add_ons',
array(
'labels' => array(
'name' => __( 'Add-Ons', 'add-ons' ),
'singular_name' => __( 'Add-On', 'add-ons' ),
),
'taxonomies' => array( 'add_ons_category' ),
'public' => true,
'has_archive' => true,
'show_ui' => true,
'rewrite' => array(
'slug' => 'add-ons'
),
'supports' => array(
'title',
'editor',
'post-thumbnail',
'custom-fields',
'revisions'
)
)
);
}
add_action('init', 'add_ons');
function add_on_category() {
register_taxonomy( 'add_ons_category', 'add_ons', array(
'label' => __( 'Add-On Category', 'add-ons' ),
'rewrite' => array( 'slug' => 'add-on-category' ),
'show_admin_column' => true,
'hierarchical' => true,
) );
}
add_action( 'init', 'add_on_category', 0 );
The text domain is correct and I have translated the strings in Loco Translate, they are just not showing in the menu. But they are shown anywhere else where they are used.
Any ideas?