Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum changed to English from Spanish

  • @yaragad

    Participant

    http://www.ffximobile.es/foro/

    After installing bbPress, my forum was in Spanish (correct). I have changed a couple of labels inside bbpress-es_ES.po

    Example:
    msgid “Freshness”
    msgstr “Último mensaje” to “Último”

    After this change, the Forum is in English. I have uploaded the original file bbpress-es_ES.po, clear cache and everything but it still in English.

    How to change again to spanish?

Viewing 7 replies - 1 through 7 (of 7 total)
  • @yaragad

    Participant

    Also, if I’m in bbPress forum, also the user bbpress login widget is in english (http://www.ffximobile.es/foro/) but in other pages on my site, it is correctly in spanish (http://www.ffximobile.es/)

    @robin-w

    Moderator

    I suspect the file is corrupt, so not interpreted.

    I’d go back to the original, and then come back for help in changing individual phrases

    @yaragad

    Participant

    Ok, I found the problem. I read in this website to create a bbpress folder inside content languages and enter the translated files inside it. I have removed it and now is again in spanish.

    So, which file should I change? Should I just change \wp-content\languages\plugins\bbpress-es_ES.po ?

    @robin-w

    Moderator

    yes, try that, and let us know

    @yaragad

    Participant

    I changed this in \wp-content\languages\plugins\bbpress-es_ES.po:
    msgid “Posts”
    msgstr “Publicaciones”

    To this:
    msgid “Posts”
    msgstr “Mensajes”

    I cleared cache from WP and cleared Chrome cache, but I still see “Publicaciones” here:
    http://www.ffximobile.es/foro/

    @robin-w

    Moderator

    Try this :

    Put this in your child theme’s function file – or use

    Code Snippets

    /This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'Publicaciones' ) {
    	$translated_text = 'Mensajes';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );

    If that doesn’t work try

    /This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'Posts' ) {
    	$translated_text = 'Mensajes';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );

    @yaragad

    Participant

    Thanks, i will try but it will take me a bit, as I need to understand/google some things.

    Meanwhile, maybe it is easier if it is possible to use an icon instead. Like this:
    https://wordpress.org/support/plugin/bbpress/

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar