Skip to:
Content
Pages
Categories
Search
Top
Bottom

Customizing Labels Failed

  • @caplain

    Member

    I followed the instructions at ttp://codex.buddypress.org/how-to-guides/customizing-labels-messages-and-urls/ 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 buddypress-mav.mo file:
    > cat buddypress-mav.mo
    ??$,8R9Project-Id-Version: BuddyPress
    Report-Msgid-Bugs-To: wp-polyglots @lists.automattic.com
    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 @li.org>
    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)
  • @caplain

    Member

    just ran msgfmt again but in verbose mode:
    > msgfmt -v -o buddypress-mav.mo buddypress-mav.po
    0 translated messages, 903 untranslated messages.

    ??? –caplain

    @caplain

    Member

    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