• Resolved paolo4z

    (@paolo4z)


    Hi,
    I’m developing a site with CPT UI plugin for the creation of customized sections as “applications”, inside the cpt I created the various pages of applications (application 1 page, application 2 page etc.).
    Then in “pages” I created a page named “applications” and inserted inside it the summary of the applications pages with links to the individual pages.
    In menu the hierarchy is Applications (page) > Application 1 (CPT page)

    With WPML all contents translate correctly except the name of custom post type in the breadcrumbs.
    example:
    IT
    home > applicazioni > application 1
    EN
    home > applicazioni (this one remain in italian language) > application 1

    I checked the strings in WPML but there’s no slug to translate.
    I ran all the procedures to find the parts to translate with wpml. Also asked to WPML support and we concluded that it’s the CPT UI plugin that does not provide the slug to be translated.

    have you had this experience?
    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Internationalization is one spot that I know we’re a little weak on, and don’t have any great solution available either. Specifically, we do store hardcoded versions of the labels and rewrite slug value in the database as part of our options.

    That said though, is “application 1” the title of a post in your “applications” post type? If yes, then I’m not sure why WPML isn’t managing to pick that one up. I’m also not sure what plugin or code you’re using for the Breadcrumbs, so it’s hard to say for certain if the spot is able to be edited to use a translated version of content, or is somehow using a hardcoded value.

    Thread Starter paolo4z

    (@paolo4z)

    Thank you for the quick response,
    yes “application 1” is the title of a post in “applications” cpt.
    I use oceanwp but I also tried with twenty twenty theme and breadcrumb plugin and the result is the same.
    The page applications is not a archive page of ctp “applications” but a normal page, I don’t know if it would help to know.

    we did a test without plugin, with CPT inserted by function.php and it is translated correctly because the slug string is found.
    So the problem is with the CPT UI plugin that I don’t know why it doesn’t find the slug in WPML that the breadcrumb needs. ??

    I don’t know if I explained it correctly.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    what breadcrumbs plugin are you using?

    Thread Starter paolo4z

    (@paolo4z)

    I found it!!!!!!!!
    cpt UI is correct, wpml is correct, the problem is only in the name of the ARCHIVE.

    I ran a test and I think I figured it out.
    The problem is that I created a page with the name of the cpt and this was in conflict because wordpress creates the archive page of the cpt even if you say you don’t create it.

    so I changed the name to the “applications” page because it was already an archive of the cpt “applications”.
    So I went to translate the string like you did (it gave it to me in a different language for some reason, English instead of Italian). and then I saw that the breadcrumbs are now correct.
    The only error is that the link points to the archive page and not to my “applications” page, so I’ll have to redirect to open my page.

    I think this is the correct procedure.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Whatever gets the job done here, is what I say. As long as things are translated, we’re good to go.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CPT UI breadcrumb translate’ is closed to new replies.