I want to translate my blog into other languages and increase PV more!
In WordPress, you can easily create a multilingual site just by using a plugin.
In this article, I would like to introduce the function and usage of the plug-in "Bogo" for creating a multilingual site.
- 1 Function
- 2 How to use
- 3 Advanced setting
Make a foreign language page one by one
When installing and activating the plug-in, a button called "Add Translation" is generated on the edit post.
When you click on this button, one foreign language page corresponding to that page is automatically created.
For example, in the case of the next page,
The following permalink page is created as a Japanese page corresponding to this page.
It supports over 50 languages.
You need to translate yourself.
You can create a link to switch languages.
If there is a corresponding foreign language page, the language switching link becomes active.
If there is no corresponding foreign language page, the switch button is displayed, but the link becomes inactive.
For example, an English menu for English pages, a Japanese menu for Japanese pages,
You can change the display of the menu.
Automatically generate "hreflang" tag
This plugin automatically generates an important "hreflang" tag to create a multilingual site.
You do not have to set it yourself.
How to use
The operation after installing and activating the plugin is as follows.
Click "language" → "language pack" in the wordpress menu.
Since more than 50 languages are displayed, click on the language you want to use and install.
Click "Add translation"
Select a language from the pulldown above 'Add translation' displayed on the top right of the post you want to translate.
Then click "Add translation".
By the way, "Add translate" button will not be displayed unless we save draft once.
Then it switches to the display as shown below and a link to a foreign language page is displayed on the upper right.
With this, pages for foreign languages have already been made. Click on the link to go to the page for foreign languages.
Since the translation is not done, the same content is displayed.
Menu and widget settings
Click "Appearance" → "Menus" in the wordpress menu.
When you click the pull down of each menu, there is a check box to select each language as below.
The menu will be displayed only on the page of the language being checked.
For example, I made an English menu and a Japanese menu that translated it,
Check English menu only for "English" and Japanese menu for "Japanese" only. This way, the menu switches according to the language.
The setting method is the same for the widget too.
Click "Appearance" → "Widgets".
There is "language switcher" in "Available Widgets". Click on it.
Select an arbitrary place from the displayed list and click "Add widget".
Where you can place widgets depends on the theme.
I put it in the header and footer. (It is displayed only in the footer on the smartphone)
Site title and tag line are not supported
Bogo does not support of site titles and tag lines.
In other words, you can not change the site title and tag line by language.
However, it seems that you can do it with some customization → Reference: Making Multilingual Site Title and Tagline on WordPress
In the case of my theme, It can enter the meta description of the top page, so the description of the site is entered there. So I have the tag line of the site blank.
Multilingualization of front page
The front page of the foreign language version is automatically generated.
If the setting of the front page is set to "Your latest posts", only articles in the language of the page are displayed without setting it.
If you change the front page to "A static page", switching by language is difficult.
I set the "Your latest posts" and use the widget to display the text on the front page of the foreign language version.
The theme I am using has an area called "Front page top widget" in the widget setting.
Place "text" here and set up the text for the front page, both Japanese and English. And as mentioned above, I set the language switching of the widget.
Make the category multilingual
I think that it is better to translate the categories and to divide them by language.
For example, if you translate a post in the category "Manga" into Japanese, then create a new Japanese category "マンガ" and classify it there.