Skip to content
BusinessLounge WordPress Theme

Multi Language

The theme’s own text strings, such as button labels and headings that the theme adds, are in a language file that comes with the theme. The file is businesslounge.pot, in the businesslounge/languages folder. You translate these strings with Poedit or with the free Loco Translate plugin. Translating theme strings explains both ways, the file names WordPress expects and where to put the translated files.

Things to know for BusinessLounge:

  • Name the translation files after the WordPress language codes, for example de_DE.po and de_DE.mo. If the names differ, the theme does not find your translation.
  • If you upload Poedit files by hand, put them in the wp-content/themes/businesslounge/languages folder.

WPML (the WordPress Multilingual Plugin) lets your site show the same content in several languages. You do not need a separate site for each language: you run one site, on one domain, and each page, post, portfolio item or product can have a version in another language.

Translate your site with WPML or Polylang explains how to add languages and translate pages, posts, categories, menus and widgets. In the current WPML, you translate a page or post with the plus icon in the language column of the post list, or with the WPML translation editor. The sections below cover what is specific to BusinessLounge.

When WPML is active, the header shows a language menu icon. Visitors use it to view a page in another active language, if the page has a translation in that language. You can show or hide the icon in Appearance › Customize › Styling Options › Header (see Header).

  • A page or post that has no translation in a language does not appear in that language.
  • The language menu lists only the languages you activated.

Create and publish the page or post in your default language first, with its featured image and other images. Then add the translation for each other language and publish it. If you do not translate a page or post, it does not appear in the other language, and a visitor who switches language on that page lands on the home page of the other language.

The theme’s custom post types, Portfolio and Testimonials, can be grouped in categories, just like WordPress posts. Team members have no categories. To list posts by category:

  1. Create a post.
  2. Create a category.
  3. Assign the category to the post.
  4. Publish the post.

A category lists all posts assigned to it, in the chosen sort order. You can add categories to a menu, so that clicking the menu item shows the posts of that category. When you translate the category and the posts, each translated category lists the translated posts of its language.

WPML comes with an add-on called String Translation. BusinessLounge registers the text of many of its settings with it, so you can translate them there instead of duplicating content. Read more about String Translation on wpml.org.

Not every string appears in String Translation. Only the fields that the theme registers are listed, for example:

  • the copyright text
  • the slogan
  • the social media links
  • the breadcrumb text
  • and more

For widgets that String Translation does not cover, WPML advises using a plugin such as Widget Logic or Dynamic Widgets, which shows a widget in a widget area only for a given language. The WPML documentation explains how to translate widgets.

We cannot help with how the WPML plugin itself works. WPML has its own support forum and documentation, with free and paid help. We support the theme’s own code. The WPML documentation covers the common questions about working with WPML in a theme.

Polylang is a free alternative to WPML. When you install it, the language menu appears in the header, as it does with WPML. Read the Polylang documentation to set it up, or see Translate your site with WPML or Polylang.