• Hey guys, do you know how to translate the labels of a CPT with WPML? Is your plugin adding a text domain? To clarify: I don’t want your plugin translated, I want different labels in different languages.
    I only found this info on the WPML forums regarding the text domain: https://wpml.org/forums/topic/translate-custom-post-type-archive-slug/

    'name' => _x( 'Books', 'post type general name', 'your-plugin-textdomain' ),
    'singular_name' => _x( 'Book', 'post type singular name', 'your-plugin-textdomain' ),
    'menu_name' => _x( 'Books', 'admin menu', 'your-plugin-textdomain' ),
    'name_admin_bar' => _x( 'Book', 'add new on admin bar', 'your-plugin-textdomain' ),
    'add_new' => _x( 'Add New', 'book', 'your-plugin-textdomain' ),

    Thanks in advance!

  • The topic ‘Translation of Labels’ is closed to new replies.