Skip to:
Content
Pages
Categories
Search
Top
Bottom

Translation stopped working


  • LavishDhand
    Participant

    @lavishdhand

    Hi!

    I have just updated BuddyPress 2.7.4 to 2.8.1 (Skipped 2.8.0). My translation (po/mo) has stopped working.

    My translation files have been living at wp-content/languages/plugins/buddypress-en_US.mo and wp-content/languages/plugins/buddypress-en_US.po

    I have now tried

    1 – to save files to wp-content/languages/buddypress/buddypress-en_US.mo and wp-content/languages/buddypress/buddypress-en_US.po
    2 – define (‘WPLANG’, ‘en_US’); in wp-config
    3 – Dashboard >> Settings >> General >> Site Language (buuddpress-en_US is not in the list)

    I am not using any cache method / cache plugin. I had a few customized phrases defined by my po/mo files. One of them for example is following

    “Your profile photo will be used on your profile and throughout the site. If there is a Gravatar associated with your account email we will use that, or you can upload an image from your computer.”

    I am using :

    WordPress 4.7.3
    BudduPress 2.8.1

    Please help

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

  • LavishDhand
    Participant

    @lavishdhand

    Forgot to mention I also tried deactivating and reactivating BuddyPress which did not work.

    Now, finally something has worked for me. While trying random things, I switched to English (UK) in Dashboard >> Settings >> General >> Site Language and switched back to English (United States) and it has worked.

    Anyone, facing this issue try the above.

    Thank you!


    danbp
    Participant

    @danbp

    Hi,

    2 – define (‘WPLANG’, ‘en_US’); in wp-config
    3 – Dashboard >> Settings >> General >> Site Language (buuddpress-en_US is not in the list)

    2 is no more necessary since WP 4.0. Remove it.
    3 is not intended to show in that list. General settings are for WordPress language, not for plugins.

    WP’s language files use only the domain name (en_UK.mo, en_US.mo, be_BE.mo, etc)
    Plugin language files like BuddyPress use their name in addition to the domain (buddypress-fr_FR.mo, buddypress-en_US.mo, and so on)

    In your case, you can use WP default language setting (english) and a more specific lang for BP, en_US. It is an avantage for you, as there are only few difference beetwen US and GB, and you can even omit BP translation, as it is coded in english. The situation is much more annoying for all other non english languages!

    https://codex.wordpress.org/Installing_WordPress_in_Your_Language

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