Buddypress community language?

Hello

I do not get to change the language of the Spanish theme.

I removed the comments function.php to find the file es_ES.mo. I've placed the file in the directory languages es_ES.mo the theme.

test_localization function ($ locale) (
return "es_ES"
)
add_filter ('locale', 'test_localization');

if (function_exists ('load_theme_textdomain')) (
load_theme_textdomain ('bp-community', TEMPLATEPATH. '/ languages /');
)

I can not get change to Spanish.

I'm doing wrong? I need to do something?

A greeting.

  • Mason
    • DEV MAN’s Sidekick

    Hiya!

    First off, welcome to WPMU DEV!

    All our themes work according to WordPress' translation guidelines, and your steps above look correct. I'll have one of our theme designers drop by and take a look at this with you.

    Thanks and again, welcome! :smiley:

  • locolacolina
    • New Recruit

    Hello

    I found two errors for languages

    In the file navigation.php

    <? Php _e ('Activity', 'bp-corp')?>
    <? Php _e ('Activity', 'bp-community')?>

    This evil is for corp bp-bp-community should be this happens several times in Elstead file.

    And in the file default.po

    #: C: \ xampp \ htdocs \ buddytest \ wp-content \ themes \ bp-community/404.php: 4
    msgid "Permission Denied"
    msgstr ""

    should put

    #: 404.php: 4
    msgid "Permission Denied"
    msgstr ""

    This error is repeated throughout the file

    It would be interesting to solve for other users.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.