Skip to:
Content
Pages
Categories
Search
Top
Bottom

define( ‘BP_ENABLE_MULTIBLOG’, true


  • sharmavishal
    Participant

    @sharmavishal

    Got define( ‘BP_ENABLE_MULTIBLOG’, true ) to work for multi lingual BP network on separate sub domains. Everything works great. Not able to understand one point. if a user does a activity update on lets say french.site.com in french which is the default language of the sub-domain will it show up in english on the main domain site.com? or it shows in the original language the activity post was typed in?

    Right now what am seeing is that the french activity post shows up in french on the main site which has default english lang setup.

    Is this the way its supposed to work?

    Kindly let me know

    Thanks in advance….

Viewing 11 replies - 1 through 11 (of 11 total)

  • sharmavishal
    Participant

    @sharmavishal

    read on bp fourms “Of course BuddyPress user generated content will always be in the language they input in.”

    is this correct?


    danbp
    Moderator

    @danbp

    OUI !


    sharmavishal
    Participant

    @sharmavishal

    grâce ce efface 🙂

    would u suggest using google translate plugins instead? google translate plugins translate the whole stuff including menus…or using google translate plugins which do a live fetch of the page translation are heavy on the site or resource intensive? Kindly let me know @danbp

    merci encore une fois pour votre réponse


    sharmavishal
    Participant

    @sharmavishal

    dan request your inputs on the following:

    ref thread https://buddypress.org/support/topic/buddypress-2-1-bp-language/

    where do buddypress-fr_FR.mo and buddypress-fr_FR.po need to be uploaded to?

    1. you said this “po/mo files goes into wp-content/languages/buddypress-xx_XX.mo – when the translation file is in this directory, glotpress will automatically update the file”

    2. you said this in the same thread. “To get the translation, you put the files in
    wp-content/languages/plugins/buddypress-fr_FR.mo
    wp-content/languages/plugins/buddypress-fr_FR.po”

    3. or the path should be /wp-content/languages/plugins/buddypress/buddypress-fr_FR.mo

    kindly let me know…am confused on this….

    Thanks


    danbp
    Moderator

    @danbp

    Common usage

    To get automatically a buddypress translation for your site, you have nothing special to do, except setting up WordPress to a custom language.

    Note that the language should exist on GlotPress and must be completed to 100%.
    https://translate.wordpress.org/projects/wp-plugins/buddypress

    In this case, which is default situation, the translation will be automatically uploaded to wp-content/languages/plugins/

    For each new BP version (at least any major releases), you will receive the latest translation available. And the existing po/mo files are then overiden.

    Custom usage

    If you use a custom translation, you have to protect your work from automatic updates which continues to work. To do that, you need to create a buddypress folder in the default location:

    wp-content/languages/plugins/buddypress

    Once this location exist, it receives priority when a new translation is available. From this point, you continue to receive the translation in the new directory and you can store your custom version in the first directory wp-content/languages/plugins/.

    This is how it works actually for BuddyPress. Will perhaps be modified in the future. But no idea when and how.


    sharmavishal
    Participant

    @sharmavishal

    Thanks for your time on this..highly appreciated…regarding the points

    1. setting up WordPress to a custom language.

    i am not using wp lang files…so in site/settings/general i keep the default english option on a multisite for french language. is this correct way? i dont want WP in French but only BP in French. Backend WP+BP should remain in english. only frontend should be french.

    2. Note that the language should exist on GlotPress and must be completed to 100%.

    that means lang files which are NOT 100% complete i need to update them manually in future?

    3. the translation will be automatically uploaded to wp-content/languages/plugins/

    yes. i want the latest translation files to be automatically updated. i wont be doing any manual translations as i dont know the languages. so if i want to translate BP and BB then is the following structure correct:

    /wp-content/languages/plugins/buddypress-fr_FR.po
    /wp-content/languages/plugins/bbpress-fr_FR.po

    4. Custom usage

    this has me confused. this line “you can store your custom version in the first directory wp-content/languages/plugins/.”

    custom PO files go to wp-content/languages/plugins/buddypress right? which i wont require as i wont be doing custom trnaslations. is this correct assumption?

    wp-content/languages/plugins/ has the po files which would be auto updated as and when there are updates right?

    Thanks once again


    danbp
    Moderator

    @danbp

    The po file is the working copy, it’s not the translation. The only file you need is the compiled .mo format file.

    1) i’m not aware of this behave and i doubt you can get this to work.
    2) yes
    3) yes
    4) you understood wrong. I said the inverse.

    To resume the situation:
    WP stays in english and you want BP in a different language. This is not possible with the automatic translation system.

    Maybe you have to use some multilanguage plugin ?
    https://wordpress.org/plugins/search.php?q=translation


    sharmavishal
    Participant

    @sharmavishal

    Thanks a million dan….i had a tough time to get this working….thanks once again..regarding the points

    1) i’m not aware of this behave and i doubt you can get this to work.

    Yes..its not working as expected…and yes am testing plugins out..will update this thread if i find a working solution…..

    4) you understood wrong. I said the inverse.

    so this means the following:

    the po files which would be auto updated as and when there are updates need to be put in wp-content/languages/plugins/buddypress right?

    ex:

    /wp-content/languages/plugins/buddypress/buddypress-fr_FR.mo
    /wp-content/languages/plugins/bbpress/bbpress-fr_FR.mo

    custom PO files go to wp-content/languages/plugins/

    ex:

    /wp-content/languages/plugins/buddypress-fr_FR.mo
    /wp-content/languages/plugins/bbpress-fr_FR.mo

    Kindly do confirm.

    Thanks once again


    sharmavishal
    Participant

    @sharmavishal

    also what happens if i put the mo files in /wp-content/languages/buddypress folder…is this path working or not working or not required at all? Kindly do let me know this also….


    danbp
    Moderator

    @danbp

    This doesn’t work: /wp-content/languages/buddypress-fr_FR.mo, except if you want to use “buddypress” as your site language. BuddyPress isn’t a language, so i won’t recommand to do that. So, guess it’s not required.

    Auto update means “auto”, YOU have NOTHING to “put in”.

    if you use /wp-content/languages/buddypress/buddypress-fr_FR.mo, it doesn’t work.
    You have to create a BP folder in /plugins/ like this /wp-content/languages/plugins/buddypress/

    … and read again what i wrote previously. I don’t like to write things twice. 😉


    sharmavishal
    Participant

    @sharmavishal

    regrets dan…am very much confused now…will try to test/check few things and update…..

    currently in my setup only this works for me:

    /wp-content/languages/buddypress/bbpress-fr_FR.mo

    /wp-content/languages/bbpress/buddypress-fr_FR.mo

    other options are not working for me…might have messed up somewhere at my side….

    and that path has been mentioned here

    Languages and Translations

    bbPress in Your Language

    Thanks once again for your time.

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