Theme Internationalization

Over 60 million people have chosen WordPress to power the place on the web they call “home”. People from all over the word create wordpress site in different languages.

While WordPress has translations for over 162 languages, you will be only able to see languages that are fully translated (62).
If you do not see your language in the list, this does not mean that it is not available or that you can not use it.

Description Description

In this training you will learn how to install WordPress in a language other than English, how you can change the language after installation, and also how to change the wp-admin language per user. We will also learn how to find a theme in the theme directory with my local language and which also supports RTL (Right to Left) languages.

Top ↑

Prerequisite Skills Prerequisite Skills

  • Knows how to install a theme
  • Knows how to create users

Top ↑

Objectives Objectives

It’s recommended that you include a bulleted list of objective(s) for each lesson plan. Objectives should be worded as actions that the student can do once they’ve finished. Avoid using words like “know,” “understand,” “be introduced to,” etc.

  • Students will be able to install WordPress in a language other than English.
  • Students will be able to change the WordPress language after thet have installed the site.
  • Students will be able to change the wp-admin language, per user (4.7 feature).
  • Students will be able to choose a theme from the theme directory which supports their local language
  • Students will be able to choose a theme which supports RTL.

Top ↑

Assets Assets

A bulleted list of linked files/materials the instructor needs to teach the module.

  • An installed WordPress site.

Top ↑

Screening Questions Screening Questions

  • Have you ever installed a new WordPress site?
  • Have you ever created new users on a WordPress site?

Top ↑

Teacher Notes Teacher Notes

A bulleted list of any handy tips or information for the instructor.

  • Tips teachers may want to know

Top ↑

Hands-on Walkthrough Hands-on Walkthrough

These are the steps for creating WordPress in your own language:

  1. Start the famous “5 minute install”
  2. During the installation process you will have the option to select your language via this screen:
    Selecting this language will set the language for the “Front end” of your website and also for the “Back end” – the wp-admin.

 

You will continue with the installation process and soon you will have a WordPress install in the language you selected.

I have already installed a site in english – can I change it to a different language? I have already installed a site in english – can I change it to a different language?

Fortunatley, yes you can!
This can easily be done by navigating to: Settings > General and then changing the language in the “Site Language”

Top ↑

Changing only the wp-admin language Changing only the wp-admin language

There are situations where the site is installed in one language, but  a user in your site (an Author or Editor) would like to edit the site in a different one. This is a new feature in version 4.7 and can be done by accessing a user’s profile and changing the admin to a different language.

Top ↑

Internationalizing a Theme Internationalizing a Theme

If you would like to create a website in your own language, chances are there is a theme translated to that language. If your language is RTL (Arabic, Hebrew, Persian etc…), you would also want to install a theme which supports RTL.

WordPress has thousands of themes to choose from, either from the theme directory on wordpress.org or from other theme merchants on the web. When choosing a theme for use in a language other than English, we should take in account for 2 major items:

  1. Is the theme translated to my local language.
  2. Does the theme have an RTL CSS file – for languages which are RTL – Hebrew, Arabic, Persian etc…

Top ↑

Is the theme translated to my local language Is the theme translated to my local language

When selecting a new theme from the WordPress theme directory  click on the “More Info” button. On the The’s information page you can see in the sidebar a link to the theme’s translation page.

More info theme select
In that page you can see if the theme has been translated to other languages and how much progress has been made for each language.

Let’s look at the twentysixteen theme.
In the Theme’s page in the directory we can see a link to “Translations”

Clicking that link will bring us to the translations page of that theme where we can see the progress of all the translations available for this theme. If we see a Language which is not 100% and we would like to translate , it can easily be done by clicking on the language, and from there translate the strings that are in need for translating.

WordPress theme tranlations are centralized and can be accessed via https://translate.wordpress.org

Top ↑

Does the theme have an RTL CSS file Does the theme have an RTL CSS file

When looking for themes, we have a filter option in the themes’ directory which will allow us to fine tune a selection of themes to our needs. One of these options is selecting a theme with support to RTL languages.

RTL languages need support for RTL themes in order to display their content correctly.

Features Filter

Clicking on the Features Filter button will bring up various features for selecting from the themes.

One of those features is selecting RTL support.

RTL Language Support Checkbox

Checking that checkbox and then clicking the button “Apply Filters” on the top of the page, will display themes which support RTL layout (and any other filter that has been selected).

Theme RTL Filter

This would be a good starting point for creating your RTL website.

Top ↑

Exercises Exercises

Change the language of your WordPress install
After installing WordPress, go to the wp-admin and change it to a different language.

Create a new user and change his language to a different than the one installed.

Select a theme from the theme direcory which supports RTL and has a left sidebar.

Top ↑

Quiz Quiz

A short quiz for students to evaluate their retention of the material presented.

How are WordPress themes translated.

  1. A language file inside the theme’s folder
  2. In the theme’s code
  3. Centralized, via wordpress.org website
  4. Themes are not translated

Answer: 3. Correct answer

Do themes support RTL languages?

  1. No, You would have to code it yourself
  2. Yes, you can find RTL supported themes in the theme directory.
  3. Why would I need a theme for?

Answer: 2. Correct answer

Can you change the installation language of WordPress?

  1. No, you would have to reinstall WordPress again
  2. You can only change the usr’s wp-admin language, not the install language
  3. Yes, you can always change the WordPress language through the settings menu.

Answer: 3. Correct answer