WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Registration Options
[resolved] Translation (22 posts)

  1. pladame
    Member
    Posted 11 months ago #

    Hi,

    I intend to use BP registration options, but I fail to make it speak French.
    I have created bp-registration-options-fr_FR.po and bp-registration-options-fr_FR.mo. They are in the /wp-content/plugins/bp-registration-options/languages. But still not a single French word.

    I noticed that the .pot in the /languages directory is called bpregistration_options.pot (no - after bp). Maybe there is a possible flaw here.

    Has anyone encountered and solved the problem ?

    Best regards
    Philippe

    http://wordpress.org/plugins/bp-registration-options/

  2. Michael Beckwith
    Member
    Plugin Author

    Posted 11 months ago #

    That very well may be a typo on my part, and I'll look into fixing it soon. May be a few days though.

  3. Michael Beckwith
    Member
    Plugin Author

    Posted 11 months ago #

    While I can't guarantee it, I did push out 4.1.1 that at least renamed the pot file to match the textdomain. I'm hoping that helps fix this issue of yours, but if it doesn't let me know and I'll dig in more extensively.

  4. pladame
    Member
    Posted 11 months ago #

    The pot file has been renamed all right. The .po and .mo files were subsequently created fine (with "CodeStyling Localization") but still bp-registration-options stubbornly refuses to speak French ;-)
    Sorry I can't help.

  5. Michael Beckwith
    Member
    Plugin Author

    Posted 11 months ago #

    I'll keep prodding it a bit then.

  6. patloq
    Member
    Posted 10 months ago #

    Hi, I encountered the same issue: my translation didn't load. Then I added a line at the very end of the 'bp-registration-options.php' file with the following code:

    load_plugin_textdomain( 'bp-registration-options', false, 'bp-registration-options/languages' );

    Now it loads the translation, except from the email messages which don't display my translation.

    By the way, the buttons 'Reset Messages' and 'Save Options' are not localized.

  7. Michael Beckwith
    Member
    Plugin Author

    Posted 10 months ago #

    thanks patloq, i'll get those two spots fixed and look into getting your working fixes in.

  8. Michael Beckwith
    Member
    Plugin Author

    Posted 10 months ago #

    patloq, just checked the code and the buttons are using esc_attr_e(). I'll run the plugin through poedit soon and make sure it looks for that as well.

  9. Michael Beckwith
    Member
    Plugin Author

    Posted 10 months ago #

    And pushed out 4.1.2. You'll both want to update :) Thanks for the feedback and helping me realize what was missing.

  10. patloq
    Member
    Posted 10 months ago #

    Michael, thank you for the update and the ongoing development of this particularly useful plugin.

  11. R J
    Member
    Posted 10 months ago #

    Doesn't work for me. I try to add russian translation ...
    https://dl.dropboxusercontent.com/u/60952367/bp-registration-options-ru_RU.zip

  12. pladame
    Member
    Posted 10 months ago #

    Hi,

    (Sorry, I was away for a few days)

    4.1.2 doesn't work for me either yet.

  13. Michael Beckwith
    Member
    Plugin Author

    Posted 10 months ago #

    grrr @ this issue.

    will investigate. Can anyone confirm that any part of the translating process is working? Or is it all failing?

  14. pladame
    Member
    Posted 10 months ago #

    All failing as far as I'm concerned.

  15. Michael Beckwith
    Member
    Plugin Author

    Posted 10 months ago #

    So. I realize now how much I still need to learn regarding localization of plugins. This article proved very handy. http://geertdedeckere.be/article/loading-wordpress-language-files-the-right-way

    I also need to thank R J for providing some translated files for me to test with. I'm admittedly limited to English, but I try to help others out the best I can with this topic.

    Before I push this out to everyone, R J or pladame, would you be kind enough to test a couple manual changes to help verify that they work for someone besides just me.

    In the bp-registration-options.php file, change the "plugins_loaded" hook, on line 17, to "init". Then, move down to line 43 with the load_plugin_textdomain() function, and change it to:

    load_plugin_textdomain( 'bp-registration-options', false, basename( dirname( __FILE__ ) ) . '/languages/' );

    If you start seeing it translated correctly with your chosen language, then we have success, finally, and I can push up for everyone.

  16. R J
    Member
    Posted 10 months ago #

    Michael Beckwith
    Yes, it works !
    You can get full russian translation here (download it again) and add to new version of plugin:
    https://dl.dropboxusercontent.com/u/60952367/bp-registration-options-ru_RU.zip

  17. pladame
    Member
    Posted 10 months ago #

    Works fine here too. Well done !

  18. Michael Beckwith
    Member
    Plugin Author

    Posted 10 months ago #

    Awesome to hear. It's 2am for me at this point, so I'll have to push out the .org update tomorrow. Thanks for confirming for me.

  19. pladame
    Member
    Posted 10 months ago #

  20. Michael Beckwith
    Member
    Plugin Author

    Posted 10 months ago #

    since you two are graciously providing translated versions, I might as well add them to the plugin for everyone to benefit.

  21. patloq
    Member
    Posted 10 months ago #

    Thank you for the update. Now translations work fine.
    German language files for download:
    https://dl.dropboxusercontent.com/u/1681643/WP/bp-registration-options-de_DE.zip

  22. Michael Beckwith
    Member
    Plugin Author

    Posted 10 months ago #

    Thanks patloq. Added to our github copy which is where all the actual dev goes on, so they won't be distributed with the plugin till the next release, but they'll be there.

Reply

You must log in to post.

About this Plugin

About this Topic