WordPress.org

Forums

Loco Translate
Translate in Custom Post Types (5 posts)

  1. easypeasy1
    Member
    Posted 1 year ago #

    Is there a way to translate text in custom post types?
    It seems to be that i doesn't work.
    Thanks a lot for your feedback

    https://wordpress.org/plugins/loco-translate/

  2. timwhitlock
    Member
    Plugin Author

    Posted 1 year ago #

    This plugin manages PO files and generates MO files.
    It does not translate WordPress post content.

  3. easypeasy1
    Member
    Posted 1 year ago #

    Yes, but can i translate in ex. in single-portfolio.php file a label?
    It works fine in the page.php but not in custom post php files.

  4. timwhitlock
    Member
    Plugin Author

    Posted 1 year ago #

    I see, well if WordPress has bootstrapped the text domain I see no reason why they would be different. Loco can't help with whatever problem you're experiencing. All it does is create MO files. It has no awareness of the runtime of your site or theme.

  5. timwhitlock
    Member
    Plugin Author

    Posted 1 year ago #

    Can you confirm please whether there is an issue to here to be resolved?

    Correctly configured themes should translate strings in any template file regardless of what the template does. I can't see a problem with the plugin, but please let me know if I can close this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Loco Translate
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.