0

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:

enter image description here

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?

  • It sounds like it would be best to ask Loco Translate's support team, since it looks like you've set everything up as translatable and you've verified the text-domain is correct. – WebElaine May 20 at 13:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.