WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
[resolved] where are the language files defined? (7 posts)

  1. jcpcosta
    Member
    Posted 1 year ago #

    Hi everyone!

    I'm sorry for this question but where/ in which file do I define the use of the portuguese language files??

    I'm not very keen on php as yu can see but I searched a lot on this and all I can find is how to translate the files..

    Thank you!

    http://wordpress.org/extend/plugins/wp-members/

  2. Chad Butler
    Member
    Plugin Author

    Posted 1 year ago #

    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 http://butlerblog.com/wp-members/wp-members-translations/ ) or rocketgeek.com.

  3. jcpcosta
    Member
    Posted 1 year ago #

    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?

  4. Chad Butler
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. jcpcosta
    Member
    Posted 1 year ago #

    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!

  6. Chad Butler
    Member
    Plugin Author

    Posted 1 year ago #

    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/.

  7. jcpcosta
    Member
    Posted 1 year ago #

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

    Thanks a lot!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic