Bilingual Blogs

Ok, as you have probably seen within the last few postings, I am trying to make my blog biligual. Because of my bad foreign language knowledges, I will only get along with English and German.

The first plugin I used to make postings in more than one language was the Simple Multi Language Plugin (SMLP). With certain tags (like [en] or [de]) it was possible to have text blocks in different languages. Unfortunately the plugin was not able to handle some of WordPress‘ most neat features like multiple pages or an excerpt of a posting with the possibility to read on further. After searching the web for a while (this time I was using Yahoo instead of Google, because I think Google cannot handle spam as good as Yahoo can) I stumbled across the Polyglot Plugin (funnily enough I am already using other plugins from the author, but I hadn’t discovered it yet). In almost every way, it is the better plugin, compared to SMLP. It allows pages, postings and even categories and titles of everything to be translated.

When selecting a language (defined for the plugin itself) the preferred language of WordPress is changed. This means that besides the posting itself (which can be written in multiple languages via tags) also the template, which is hopefully coded localizable will be translated. To understand the method of localization of WordPress have a look at the page about Word Press Localization. I had change a lot of strings in my template from a constant value to something like _e('xxx') for translation. Moreover some translations I wanted on my page weren’t already inside the German WordPress Language File ( To edit this file I downloaded the German translation definition file (de_DE.PO) and added some lines. After this, the translation definition used by WordPress had to be recompiled (I used poEdit for this).

As you can see, every posting (which exists in more than one language) shows a flag in the header. If you click that flag you’ll see the translated version. But I recommend to set the language for the whole blog instead by selecting the preferred language from the sidebar (on the right). Besides the pages and postings, this also changes the corresponding links for the RSS feeds. So if you selected English, your feeds will be in English too (this also applies for German). For more information on this, take a look at the Polyglot plugin and the localization page.

I guess you’ve already seen it, this blog is no longer bilingual. Well it is, but if one posting is written in English, then it’s English only. Same procedure for German posts.

1 Kommentar zu „Bilingual Blogs

  • I hope you keep up with bilingual posting. I am way to slothful to do so as I stated earlier but I will support you with any means necessary ^^

    „Soon“ we will see the WACKEN2007 Report in english and german!


Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.