Custom Post Type UI
[resolved] WPML and Custom Post Type UI (6 posts)

  1. greencode
    Posted 3 years ago #

    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.


  2. angoo
    Posted 3 years ago #

    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.

  3. greencode
    Posted 3 years ago #

    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.

  4. spectrus
    Posted 3 years ago #

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

  5. greencode
    Posted 3 years ago #

    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.

  6. Michael Beckwith
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post Type UI
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic