Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    The appropriate language file will load (if it exists) if you are running WP in the same language. So the language extention must match what you have in your WP config.

    If you are runnign WP in Portuguese, I don’t think there is a Portuguese file. There is Brazilian Portuguese, but that would be pt_BR. So if you are running pt_PT, you would need to create the translation.

    There is a template included in the /lang/ folder. This is the .pot file. You can use this to create a new translation. From this file you would create a wp-members-pt_PT.po file. You will need a program such as Poedit to compile that into a machine readable wp-members-pt_PR.mo file. Save the .mo file to the /lang/ folder and keep a local copy of both the .po and .mo for updates.

    If you do create a pt_PT translation, feel free to send it to me and I will include it in the release. You can contact me at butlerblog.com (see also https://butlerblog.com/wp-members/wp-members-translations/ ) or rocketgeek.com.

    Thread Starter jcpcosta

    (@jcpcosta)

    Hi Chad!

    thank you for your answer..the thing is I’m running WP in english..but I need the plugin to be displayed in portuguese…is this possible?

    Plugin Author Chad Butler

    (@cbutlerjr)

    I don’t think that’s possible. Plugin localization loads translation files based on the the language that is set in your wp-config.php file.

    Thread Starter jcpcosta

    (@jcpcosta)

    Hi again Chad!

    I’m already using WP in portuguese! About the plugin, well some of the words automatically updated to pt but other’s didn’t..For example ‘user’ is ok…but the login form title and others like “new user” still in english :S…Can you help?

    thank you!

    Plugin Author Chad Butler

    (@cbutlerjr)

    You could review the portuguese .po file and makes sure there are strings that match the current .pot template file (these are in the /lang/ folder). You can do this with Poedit (poedit.net). Once you’ve updated the .po file, use Poedit to create a new .mo file and load that to /lang/.

    Thread Starter jcpcosta

    (@jcpcosta)

    Hi Chad! PT translation done. I’ll contact you through Butlerblog.com.

    Thanks a lot!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘where are the language files defined?’ is closed to new replies.