Translate BuddyPress and
bbPress to Danish

In this post, we’ll translate two WordPress plugins called BuddyPress and bbpress to Danish.

Ultimately, you could translate these plugins or any WordPress plugin to any language you want using a method like this. But for the sake of this example, we’ll be translating these specific plugins to Danish.

Things you’ll need:

Keep in mind plugin translations are usually a community driven effort helped along by volunteers. As such, most plugins are not fully translated. You can change that by volunteering as a translator on wordpress.org or using PoEdit.

PoEdit is a great tool which lets you focus entirely on the actual translation. You can change any sentence structure or word to whatever you want.

Translating BuddyPress

1) Let’s start out with grabbing the already made translation from WordPress.org. We’ll pick the stable version as seen on the picture below.

buddypress stable version

2) Once you’ve downloaded the plugin translation, in this case named wp-plugins-buddypress-stable-da.po, you want to both rename it and create a .mo file out of it.

Open the file you downloaded in PoEdit and save the file as buddypress-da_DK. PoEdit will then create both a .po file and a .mo file for you with this name.

3) Once you have the .po and .mo files of your translation, you can go ahead and upload it to your server. Your buddypress-da_DK.mo and buddypress-da_DK.po files should be uploaded into the language plugins directory. As seen below, you can find it through:

  •   public_html
  •   wp-content
  •   languages
  •   plugins
  •   buddypress-da_DK.po
  •   buddypress-da_DK.mo
  •   bp-custom.php
  • Note: You’ll eventually lose your translation if you upload it in your regular BuddyPress plugin directory. Once BuddyPress is updated, it’ll erase any translation files in the process.

    4) To register the translation, BuddyPress needs a bit of help to understand another translation is available. We’ll help the plugin through a bit of coding.

    Inside the same folder you uploaded the buddypress-da_DK.mo and buddypress-da_DK.po files, there should be a file named bp-custom.php.

    If there isn’t such a file, then create bp-custom.php, and fill in the following code.

    5) Your BuddyPress translation is now complete. If you’d like to change any sentence structure or words in the translation, you can always enter PoEdit to edit it, save the files and re-upload them.

    Translating bbPress

    1) Like the BuddyPress translation, we’ll grab what the community have translated so far on WordPress.org. We’ll download the stable version as seen on the picture below.

    bbpress stable version

    Unlike BuddyPress, we don’t need to add any code for bbpress to register a translation. It’s already been built into bbpress to register alternative translations.

    2) We’ll run the bbpress download through PoEdit, and save the files as bbpress-da_DK.po and bbpress-da_DK.mo. Create a folder named bbpress and add both files you’ve just created.

    3) This time, we’ll upload the bbpress folder, with our bbpress-da_DK.po and bbpress-da_DK.mo files, directly to the languages directory as seen below.

  •   public_html
  •   wp-content
  •   languages
  •   bbpress
  •   bbpress-da_DK.po
  •   bbpress-da_DK.mo
  • 4) The bbpress translation is now completed. As previously mentioned, you can always alter the words or sentence structure in PoEdit, resave them and reupload them.

    Translating any Plugin

    Using PoEdit, you should now be able to translate any WordPress plugin. If you’re a multilingual, you could even help translate plugins in other languages than Danish.

    You can get involved on wordpress.org, and help millions of people understand each plugin better in their own language.

    9 Comments

    1. Hej Jonas!

      Den første vejledning virkede straks! Men jeg har problemer med bbpress’en.. Jeg følger din vejledning, men der sker ikke en brik..

      Ift. din vejledning, så kan jeg ikke få lov til at uploade selve mappen bbpress, som jeg har lavet med filerne i, til one.com, som jeg bruger. Det burde vel give det samme, at jeg selv opretter mappen på one.com og uploader de to filer til den, ikke?

      What to do?

      På forhånd mange tak for svar!

      Mvh. Lise

      1. Hej Lise, du har den rigtige ide!

        hvis bare .mo og .po filerne ligger i bbpress mappen under den rigtige filsti, så er det sådan set ligemeget om den bliver oprettet direkte eller uploadet til serveren.

        1. Tak for hurtigt svar, Jonas! Jeg kan bare stadig ikke få det til at virke.. 🙁 Er der noget kode, man kan indsætte i noget .php for at få det til at makke ret?

    2. Hej Jonas!

      Vil bare lige sige tak. Efter at have kæmpet i adskillige timer, med alle mulige forskellige upræcise vejledninger, fandt jeg din og den klarede det på 5 minutter!

      Tusinde tak.

    Leave a Reply

    Your email address will not be published. Required fields are marked *