WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. greencode
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/custom-post-type-ui/

  2. angoo
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

  5. greencode
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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

About this Topic

Tags