Search code examples
wordpresspostlocalizationtranslationarticle

posts in multiple languages?


im searching for a Tool/ way to write 2 different Articles in 1 Article page. For example: I want to write English articles and an translation in German with a few differences and when someone want to see the Articles of the whole page in German they just need to press a Button to change to the translation of all articles. I hope this is understandable and im looking forward to an answer. Btw the Multisite feature don´t work due to another tool. Thanks in advance.


Solution

  • There are some plugins for multilingual websites (Wpml, QTranslate, Polylang etc.) but I'd suggest the solution I'm using myself.
    I'm using the Polylang plugin. You can easily install it either by downloading it manually or (which I prefer) by simply searching for it from your Plugins page.
    Then, you have different options to separate your languages, namely:

    • Each language on its own virtual subdomain (my favorite way, btw) — en.yoursite.com, de.yoursite.com etc. To do this, you need to add an *.yoursite.com wildcarded domain in your control panel (it's quite easy in CPanel, for instance).
    • Each language in its own virtual folder — yoursite.com/en/, yoursite.com/de/ etc.
    • Languages switch with a parameter in the URL — yoursite.com?lang=en, yoursite.com?lang=de etc.

    Whatever you choose, you'll be able to:

    • Select the languages you need, customize their order and how they are shown;
    • Select the default language to show when a user opens yoursite.com;
    • Choose where to put your language switcher;
    • when writing/editing a post, indicate its language and have a link to add translation in any of the language you had selected for your website. Note that this is very nifty since, if a user gets a direct link to one of your posts in English and then switches the language to German with your widget, he/she gets directly to the translated post;
    • have quite separate interfaces in all of the languages, so, for example, Greek or Japanese users won't see inscriptions in English and vice versa;
    • Translate categories, tags, titles, taglines, dates and so on.