• Resolved rpham

    (@rpham)


    Hi! I am looking to see if language support is available? Our site runs a french and english version and our pages and OG posts are able to switch between both languages. With CPU UI in the custom post itself there is no option to translate the post into a different language.

    How would we go about doing this?

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

    (@tw2113)

    The BenchPresser

    What plugin are you using for localizing your content?

    I know that we’re not the greatest in terms of post type labels, because we store those values in the database, and haven’t found a great way yet to get those translation-ready.

    However the post content itself isn’t an area that we’d be needing to touch, so I’m wondering if for some reason the plugin suite you’re using to translate your content isn’t finding it for some reason, and if so, why.

    There’s no setting as part of register_post_type() that i’m aware of that would prevent this.

    Thread Starter rpham

    (@rpham)

    No plugin for localizing content. Simply done through WP through its native functions (two of the same pages but different languages.) IE through the sidebar language option.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I’m not familiar with this process at all and as far as I’m aware of, one typically needs a plugin of some sort to have multi-lingual WordPress.

    It sounds like you’ve added a page, typed it in one language. Added a second page, typed it in a different language. Then you have functionality of some sort on the frontend that allows you to change the language being used, and apparently switches which page in the database gets queried and shown.

    Are you certain you’re not using something like WPML or Loco Translate or similar? Cause the process I mention above would be just the same for a custom post type to have posts be in multiple languages, and still not something blocked by CPTUI.

    Thread Starter rpham

    (@rpham)

    My apologies, looks like we are using Polylang. The steps would be the same? I’ll have to look through the options and see whats blocking it then.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I believe so yes. I wonder if Polylang support could help as well, if needed. Unsure if they have settings to enable for post types, and maybe support just post and page out of box.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Did you get this one figured out @rpham ?

    Thread Starter rpham

    (@rpham)

    Yes! Figured it out. The language plugin we have has a section in the settings labeled “Custom post types“.

    Thanks for your help Michael! 🙂

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Welcome.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘CPT UI Language Selection’ is closed to new replies.