Multi Language
Localizing and translating the theme
Section titled “Localizing and translating the theme”Nixe keeps all its default strings in one language file, nixe/languages/nixe.pot. You translate them with Loco Translate or Poedit. The current steps, file names and folders are in Translating theme strings.
You can use the same method to change the theme’s English wording. Create an en_US translation and change the strings there. You do not need to edit the theme’s core files.
WPML plugin
Section titled “WPML plugin”WPML lets one website show the same content in several languages. You do not need a separate site for each language: every page, post, portfolio item and room can appear in each language on the same domain. How to set up WPML and translate content is in Translating with WPML or Polylang. This section covers what is specific to Nixe.
Changing languages
Section titled “Changing languages”When WPML is active, its language switcher shows on your site below the navigation. Visitors click a flag to see the page in that language, if the page exists in it.
- A page or post that has no translation in a language does not show in that language.
- Flags show only for the languages you activated.
Translating pages and posts
Section titled “Translating pages and posts”- Create the page with all its content, including the featured image, other images and attachments, and publish it.
- In the page list, click the plus icon in the column of the language you want, or open the page in the WPML translation editor.
- Translate the content. If you copy the original content and leave it as it is, visitors who switch the language see the same page, still untranslated.
- Do not forget to publish the translated version.
- Repeat steps 2 to 4 for each language.
If a page has no translation, a visitor who clicks a flag while viewing it is sent to the home page of the other language. Set WPML to show only translated posts. Nixe does not support showing posts that have no translation in the other languages (the All posts display option of older WPML versions).
For help with theme-related WPML issues, create a support ticket in your dashboard.
WPML and categories
Section titled “WPML and categories”Nixe’s custom post types, Portfolio, Rooms, Team and Testimonials, can be grouped into categories just like WordPress posts. To list posts by category:
- Create a post.
- Create a category.
- Assign the category to the post.
- 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 of posts in that category. When you translate the category and its posts, each translated category page lists the translated posts in its own language.
Create the categories and their translations for each language first. When you then translate a post, WPML already knows the translated category and assigns the correct one.
WPML String Translation
Section titled “WPML String Translation”WPML includes String Translation. Nixe registers its own text fields with it, so you can translate them there instead of duplicating content. You can read more about String Translation on wpml.org.
Not every string appears in String Translation. Only the fields the theme registers are listed, for example:
- Copyright text
- Slogan
- Social media
- Breadcrumb text
- And many more
Different widgets per language
Section titled “Different widgets per language”For widgets that string translation does not cover, WPML explains how to show different widgets in each language. See the WPML guide Translating widgets.
Support for WPML itself
Section titled “Support for WPML itself”We cannot help with how WPML works. WPML has its own support forum and documentation, free and paid, and its how-to guides cover the common questions, including using WPML with a theme. We support the theme code and fix our own mistakes.
Polylang plugin
Section titled “Polylang plugin”Polylang is a free alternative to WPML. When you install it, its language menu appears in the header, as with WPML. Read the Polylang documentation and Translating with WPML or Polylang.
Get all RT-Themes designs, updates and support with a single Club license.
Join the Club