How to Translate B2BKing to Any Language (Localization)

B2BKing is coded according to WordPress Internationalization standards and can be translated fully to any language. The plugin comes with a .pot file, a translation template that can be accessed and translated with a specialized plugin such as Loco Translate.

Translate B2BKing with Loco Translate #

1. Download the free plugin called Loco Translate from here. Or add directly from the WordPress administration via Plugins > Add New.

2. Install and Activate.

3. Go to the new Loco Translate menu item created in your Dashboard with six sub-sections.

4. Go to the Plugins section, and select B2BKing:

5. Add new languages using the Add New Language link:

6. Choose the language to add in the list, or enter the language ISO code (ex: fr_FR, en_US etc…), and select the folder to add the translation files to, and click Start Translating:

Note that Loco Translate offers three different locations for your create the translating, the best choice is Other if you are looking to have your own custom translating, you should avoid “Author” location since it’s inside the plugin and will be overwritten on updates.

7. Click Save when finished:

Translate B2BKing with WPML #

There are many guides out there for translation with WPML, and we recommend starting with the official guide: https://wpml.org/documentation/getting-started-guide/

WPML is a complex plugin with lots of options, so for general purpose we recommend Loco Translate instead.

Translate Admin Texts with WPML #

While we are not covering general translation with WPML, there is a specific aspect we would like to cover: translating admin texts such as "Login to view prices" or "Please login to access the B2B portal".

Since these texts are not normal strings but "admin texts" in WPML, they require a special approach. How to do it:

Step 1) Go to WPML->String Translation

Step 2) Scroll to the bottom of the screen and click on "Translate texts in admin screens »"

8392200935.png

Step 3) Find the B2BKing texts, check the boxes, scroll to the bottom of the screen, and click Apply

6758700739.png

You should see a message "The selected strings can now be translated using the string translation screen"

Now you can see the strings like this in WPML->String Translation (they show with the prefix admin_texts_):

5524951102.png

Step 4) You can now translate these as you would normally with WPML:

8398044907.png

That's it!

I go to the front page in English:

I switch to French:

Powered by BetterDocs

Leave a Reply

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