Translating a theme

All of our themes are localized, which means they can easily be translated in your own language. There are various methods to do a simple translate or create a website in multiple languages, so just use the one which works best for you.

Simple translate

There's an awesome plugin which you can use to translate any theme or plugin into your own language, directly from the WordPress dashboard.

Loco Translate →

If you want a manual thing instead, here's what to do:

1. Download and install  http://www.poedit.net/

2. Go to /wp-content/themes/your-theme-name/lang/ and open default.po file.

3. In the window that appears you have all the strings that were used in this theme, so you just need to go through them and write a translation.

4. When you’re done go to File > Save as and save your translation in a *.po file.

5. You should name your file xx_XX, based on the language that you're using. Read here more about language codes:  https://codex.wordpress.org/Installing_WordPress_in_Your_Language

6. Let’s take a practical example. If you are using WordPress in spanish, your .po file should be called es_ES.po and the WordPress language should be defined like (‘WPLANG’, ‘es_ES’).

Multilanguage

If you’re looking for having a website in two or more languages, we suggest using WPML. This is a powerful translation plugin with perfect support from the theme.

To use this plugin you’ll have to first purchase a copy - you should buy the Multilingual CMS version.

Initial Setup

You first have to install and activate the core WPML plugins (WPML Multilingual CMS, WPML String Translation, WPML Translation Management), and then other WPML plugins that may depend on them. After this, set up WPML from WPML > Languages. You should also read the official WPML documentation here: http://wpml.org/documentation/getting-started-guide/

Translating Pages, Posts and other post types

To translate a page you need to go to your Pages dashboard and in the list you will see columns for each active language, with a pencil icon (for ‘edit translation’) or a ‘+’ icon (for ‘add translation’) next to each page.

Translating custom post types and taxonomies

Koncept has a custom post type for the portfolio (and shop if you’re using WooCommerce). In order to get a similar interface for translation/duplication as for posts and pages, you need to go to WPML > Translation Management, and select the tab ‘Multilingual Content Setup’.

Translating Menus and Language Switcher in Header

WPML can synchronize menus for you. This means that if some entries, for example some pages, posts or categories, are in the English menu, WPML can generate and keep in synch menus for other languages pointing to the translated versions of these pages, posts or categories. From Appearance > Menus you can see your existing menus and add menu translations and synchronize menus across translations.

To show the language switcher in the header your need to use one of the first three menu types. Please note that the header switcher DOESN’T work with the “classical” menu style.

To show the language switcher in the header, go to Appearance > Widgets and drag the Language Selector widget into the header widget. You can change the style of the switcher in the WPML > Languages dashboard. Please use the Drop-down menu Classic style for a similar style as in the online preview.

Translating theme texts and other strings in your site

To translate strings you need to follow the procedure for Theme and Plugin Localization. Go to WPML->Theme and Plugin Localization, and click on ‘Scan the theme for strings’ and you will see theme strings and which ones are translated or not.