Just another WordPress.com weblog

Main menu

Bogo

The core of WordPress itself has the built-in localization capability so you can use the dashboard and theme in one language other than English. Bogo expands this capability to let you easily build a multilingual blog on a single WordPress install.

Here are some technical details for those interested. Bogo plugin assigns one language per post. It plays nice with WordPress – Bogo does not create any additional custom table on your database, unlike some other plugins in this category. This design makes Bogo a solid, reliable and conflict-free multilingual plugin.

Getting Started with Bogo

1. Install language files

First, make sure you have installed language files (*.mo) for all languages used in your site. If you have a localized version of WordPress installed, you should already have these files for that language.

If you don’t have language files yet, you can install them via the Bogo Tools page (Tools > Bogo).

2. Select your language for admin screen (dashboard)

Bogo allows each user to select a language for his/her own WordPress admin screen. Logged-in users can switch languages from the drop-down menu on the Admin Bar.

If the Admin Bar is hidden, you can also switch language on your Profile page.

3. Translate posts and pages

You can translate any posts and pages into your language you have set at the step 2 above with the Language post box.

WordPress saves the contents of each post or page as usual, but Bogo adds ‘_locale’ post_meta data. The ‘_locale’ holds the language code of the post.

4. Add a language switcher to your site

You will want to place a language switcher on your site that allows visitors to switch languages they see on the site. The easiest method is using the Language Switcher widget included in Bogo.

Bogo also provides a shortcode “[bogo]” to allow you to place a language switcher inside a post or page content by simply inserting [bogo]. To embed a language switcher directly into your theme’s template file, use this shortcode as follows:

<?php echo do_shortcode( '[bogo]' ); ?>

Share this:

Like this:

8 thoughts on “Bogo”

Hi,
I understood, that this plugin copies a page and adds it to /lang/page. This is wonderful so far. What I did not understand is, how I can tell a language selector to show just /en or /de pages. And I did not find the place in the source of my template to add the shortcode globally.

Takayuki-san,
It is great to see you making new commits in the bogo wordpress repository. Let me know if you need any testing or if there is anything I can do. I am looking forward to the newest version of bogo plugin!

Thanks for a great plugin. The simplicity of use in comparison with other language plugins is fantastic. The only question I have not found an answer for is how to customize the language Switcher, hence how do I use my own images and label them differently.

Love the concept, which is much easier to use than anything else I’ve tried for a site which has a relatively small second language content. Works fine for posts, and for items on the main menu, but I’m having difficulty with second level items (such as http://ews.mtarr.co.uk/programme/programme-2013-14/), where I’ve created a Welsh equivalent, but the links don’t work. Any ideas?