Skip to content
RT-Theme 19 WordPress Theme

Multilanguage

The theme’s default text strings are collected in one language file that comes with the theme. It is {theme_name}.pot in the {theme_name}/languages folder. You translate it with the free Loco Translate plugin in your WordPress admin, or with the Poedit desktop program. Translating theme strings walks through both, step by step.

Loco Translate is a free plugin that lets you translate the theme’s strings in the WordPress admin, without editing files on your computer.

With Poedit you create a translation of the .pot file on your computer. Name the files after your language code, following the WordPress naming convention, for example de_DE.po and de_DE.mo. If you use other names, the theme does not find your translation. Upload the files to the /wp-content/themes/{theme_name}/languages folder.

WPML is a plugin that shows the same site in several languages. You keep one site on one domain, and each page, post, portfolio item or product has a version in every language. How to install WPML, add languages and translate content is explained in Translating with WPML or Polylang. This section covers what is specific to RT-Theme 19.

When WPML is active, the theme shows a flag for each active language in its header area. Visitors click a flag to see the page in that language.

  • A flag only shows for the languages you activated in WPML.
  • If a page or post has no version in a language, it does not show in that language. A visitor who clicks that flag goes to the home page of the other language.
  1. Create the page or post in your default language, with all its images and attachments, and publish it.
  2. In the list of pages or posts, click the plus icon in the column of the language you want. You can also translate the content in the WPML translation editor.
  3. Write the content in the other language and publish the translation.
  4. Repeat this for each language.

The original and its translations stay connected in WPML, but each translation has its own content, so you can change one without changing the others.

For help with theme-related WPML problems, create a support ticket in your dashboard.

The theme’s custom post types, Portfolio, Product Showcase, Team and Testimonials, can be grouped into categories, just like WordPress posts. To list posts by category:

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

A category page lists all posts in that category, in the sort order you chose. You can add categories to a menu, so a click on the menu item shows the list. When you translate the category and its posts, the translated category page lists the translated posts in the other language.

WPML includes String Translation. It lets you translate texts that are not pages or posts, such as theme settings, without creating duplicates. RT-Theme 19 registers its own fields with String Translation, so you can translate them there. Read more about String Translation on wpml.org.

Some widgets cannot be translated with String Translation. For those, show a different widget in each language. WPML explains how in its guide to translating widgets.

WPML has its own support forum and documentation, with free and paid help. We fix problems in the theme’s own code. The WPML documentation answers most questions about how the plugin works with a theme.

Polylang is a free alternative to WPML. When you install it, the language switcher appears in the header, just like with WPML. Setting it up is covered in Translating with WPML or Polylang and in the Polylang documentation.