Support » Plugin: Custom Post Type UI » WPML and Custom Post Type UI

  • Resolved greencode


    I have a multilingual site where I’m using WPML for the translations. I would like to use the Custom Post Type UI plugin to create Portfolio and Clients post types. The only thing I can’t figure out how to do is to translate the name, label, slug for each post type I create. For example for “Clients” I would want this showing in Italian as “Clienti” but currently it shows the English slug for both languages. Any ideas would be much appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I think this is a limit of the plugin so you just can’t.
    It isn’t even well translated: some things keep showing up in English even with a it_IT language file.

    i.e “Add Film” instead of “Aggiungi Film”.

    In the code I found this line:

    $cpt_labels['add_new'] = ( $cpt_post_type[2]["add_new"] ) ? $cpt_post_type[2]["add_new"] : 'Add' .$cpt_singular;

    instead of

    $cpt_labels['add_new'] = ( $cpt_post_type[2]["add_new"] ) ? $cpt_post_type[2]["add_new"] : __('Add') . " " .$cpt_singular;

    that would take advantage of wordpress default translation.

    So you should ask the developer to update the plugin or modify it by yourself.

    I’m currently in talks with WPML so I’ll report back with their findings. There are certain strings that are getting translated but others that are not.

    I’m very interested in this one as well. Please do update us once you have something!

    Will do. I’ve heard back from WPML once who said there were no issues with compatibility between the two plugins but I mentioned that there was i.e. the slugs do not end up in the string translations, as well as a number of other strings.

    Plugin Author Michael Beckwith


    I have already noted down before I looked over any of the code, to make every possible static string translation ready. I’ve been a believer for awhile in making such a thing true with all plugins I can. Hopefully in the next release or two I can get it completely translatable including a .pot template file to work with.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WPML and Custom Post Type UI’ is closed to new replies.