Skip to:

Customizing Labels Failed

  • I followed the instructions at ttp:// to customize my bp labels, however I did not have a /plugins/bp-custom.php file, so I created one in my wp-content/plugins directory and added:

    define( ‘BPLANG’, ‘mav’ );
    if ( file_exists( WP_PLUGIN_DIR . ‘/buddypress-‘ . BPLANG . ‘.mo’ ) ) {
    load_textdomain( ‘buddypress’, WP_PLUGIN_DIR . ‘/buddypress-‘ . BPLANG . ‘.mo’ );

    This resulted in no change in my site labels, so I looked at my file:
    > cat
    ??$,8R9Project-Id-Version: BuddyPress
    Report-Msgid-Bugs-To: wp-polyglots
    POT-Creation-Date: 2010-06-27 13:13+0000
    PO-Revision-Date: 2010-MO-DA HO:MI+ZONE
    Last-Translator: FULL NAME <EMAIL @ADDRESS>
    Language-Team: LANGUAGE <LL>
    MIME-Version: 1.0
    Content-Type: text/plain; charset=utf-8
    Content-Transfer-Encoding: 8bit

    That’s all there is. I was expecting to see more even if it wasn’t readable.

    What could I have missed?

Viewing 2 replies - 1 through 2 (of 2 total)
  • just ran msgfmt again but in verbose mode:
    > msgfmt -v -o buddypress-mav.po
    0 translated messages, 903 untranslated messages.

    ??? –caplain

    I found my stupid mistake. I changed the msgid string instead of the msgstr string. doh!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Customizing Labels Failed’ is closed to new replies.
Skip to toolbar