Multilanguage support for Custom Post Type labels

Support MB Custom Post Type Multilanguage support for Custom Post Type labels

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36544
    jkarel@brovisuals.nl[email protected]
    Participant

    In 2016(!) someone reported the fact that labels in custom post types are not displayed in Dutch (or any other language).

    This basic feature seems a bit weird to be still missing after 6 years for a mature product like Metabox. 🙂

    Can you please add multilanguage support for custom post type labels?

    Thanks in advance!

    #36563
    Long NguyenLong Nguyen
    Moderator

    Hi,

    If you are using the builder to create the post type (via UI), please generate the PHP code and add it to the file functions.php in your theme/child theme folder and use a translation plugin like Loco Translate, WPML to translate the CPT strings.

    Read more on this documentation https://docs.metabox.io/extensions/mb-custom-post-type/#getting-php-code

    #36569
    jkarel@brovisuals.nl[email protected]
    Participant

    Thanks Long Nguyen for your workaround, although it's not really a user friendly solution IMHO.
    ACF offers native language for all labels, so why not just providing the same solution?

    #36582
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thanks for your feedback.

    The post type created by Meta Box might be different from other plugins. The CPT is saved in the database as a post (post type mb-post-type) so it might not work with some translation plugin and you have to use the code to register the CPT and translate the label.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.