WordPress.org

Ready to get started?Download WordPress

Forums

CubePoints Buddypress Integration
[resolved] Translation (12 posts)

  1. BobQuentok
    Member
    Posted 2 years ago #

    Can you please tell us how to name the .mo files?

    I tried a couple of names (bp-cubepoint-de_DE.mo ; cpintegration-de_DE.mo ; ...) but none of them works :/

    Thanks!

    http://wordpress.org/extend/plugins/cubepoints-buddypress-integration/

  2. lexxy
    Member
    Posted 1 year ago #

    I want to know the same :)

  3. Tosh
    Member
    Plugin Author

    Posted 1 year ago #

    If you could go to the bp-cubepoint-core.php file and look for this at the top of the file:

    load_textdomain( ‘bp-cubepoint’, dirname( __FILE__ ) . ‘/languages/bp-cubepoint-’ . get_locale() . ‘.mo’ );

    and replace it with this:

    load_plugin_textdomain(‘cp_buddypress’, false, basename( dirname( __FILE__ ) ) . ‘/languages’ );

    Then report back if that worked or not.

  4. BobQuentok
    Member
    Posted 1 year ago #

    Sorry, it does not work :/ (I assume cp_buddypress-de_DE.po/mo is the correct name)

    But I got this error on the top of my website when your plugin was enabled: Warning: Division by zero in /kunden/282547_04105/webseiten/wp/wp-content/plugins/cubepoints-buddypress-integration/includes/bp-cubepoint-core.php on line 23

  5. Tosh
    Member
    Plugin Author

    Posted 1 year ago #

    Try replacing your bp-cubepoint-core.php file with this - http://pastebin.com/aKzKMzjN

    Can you upload your .mo/.po files somewhere so I can try as well? Which language is this?

  6. BobQuentok
    Member
    Posted 1 year ago #

    Doesn't work :/

    Here is my .po (http://dl.dropbox.com/u/23719340/GzG/cp_buddypress-de_DE.po) and .mo (http://dl.dropbox.com/u/23719340/GzG/cp_buddypress-de_DE.mo) file
    It's German btw! :)

    Thanks for your help!

  7. Tosh
    Member
    Plugin Author

    Posted 1 year ago #

    I downloaded those files and put them in the language folder within the CubePoints BuddyPress plugin. Then added this to my wp-config.php file

    define ('WPLANG', 'de_DE');

    No errors. I do see some parts of my site translated to German. But nothing related to Cubepoints. My test site is running WordPress 3.3.1, what are you running?

  8. BobQuentok
    Member
    Posted 1 year ago #

    Hi Tosh. Yes, there are no errors! They were only when I replaced the code you introduced here. After using the code you posted on pastebin there were no more errors.

    My site runs WordPRess 3.3.2 and yes, nothing CubePoints related is translated :/

  9. BobQuentok
    Member
    Posted 1 year ago #

    Have you any news? :/

  10. Tosh
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry was on a trip in Japan for most of July. Think I have this sorted out now. I'll be pushing a update tonight if I have time.

    But replace your bp-cubepoint-core.php file with this - http://pastebin.com/EZxZFB9R

    You should be good to go. I've tested it with the files you sent me and it translated it into german just fine.

    I'll add your german translation to the updated plugin when I push a update.

  11. BobQuentok
    Member
    Posted 1 year ago #

    Thank you for your help! :)

    I'll try this soon.

  12. BobQuentok
    Member
    Posted 1 year ago #

    Hey Tosh, this solution works!! Thank you very much! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic