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

    (@tw2113)

    The BenchPresser

    We don’t have any specific language settings for this type of thing, so it’s going to be something coming from WordPress core itself.

    Thread Starter diogobento

    (@diogobento)

    Now I’m confused! 🙂
    There is a language folder inside the plugin’s folder… What is it for then?

    It automatically changed to portuguese on the last update and I don’t really like the translation. I wish to revert back to english.

    Should I just delete the language files?

    Thanks.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    We provide language files, when possible, for WordPress to load to show CPTUI translated to the available languages we have. However, WordPress is only going to do that if the installation is set to be something different than English, and if our plugin has translation files for that set language.

    Somehow, the Portuguese files are being told to be loaded. I would check your general settings page to see if Portuguese is set as the language to load.

    Thread Starter diogobento

    (@diogobento)

    Dear Michael,

    Thanks so much for your support.

    That’s exactly the case. I have wordpress set to Portuguese in the settings, but I wish to keep the Custom Post Type plugin in English.

    Is it possible? How should I proceed?

    Best regards,
    Diogo.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I have zero experience with this function, but it may put you on the right track here https://codex.wordpress.org/Function_Reference/unload_textdomain

    Not sure if it should be run on the same hook/priority as our loading, or afterwards. I know we load the textdomain on init with the default 10 priority.

    If code isn’t quite your forte, nothing stops you from deleting the Portuguese files, but do know they would return next time there’s an update.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin translation’ is closed to new replies.