Multilingual and Multi Domain Sites in WordPress

One of the things we're doing more and more of recently is building multilingual, multi domain corporate sites in WordPress. Doing that used to be a fair amount of work, but we've been able to make it a lot simpler lately.

We start the process with a simple WordPress MU install, to which we then add the Multi Site Manager plugin, to be able to run multiple domains off of it. Now this is all pretty simple and straight forward. Now we used to have to build a theme in several languages, but we've recently developed some new stuff that makes that simpler.

Localized templates

One of the things I've done for the StudioPress themes is localize them, which is actually not even that much work if you read the how to for it that John Godley wrote. On top of doing that, we add some other code that I've written, which allows you to pick the language for a blog in the themes backend.

language select

Now this means, that we can run a multi domain, multilingual site in 1 WordPress install, while maintaining only 1 theme.

Localizing dates

One of the other things you need to take care of when you're localizing your WordPress theme is localizing the date output. To be honest the way I'm doing that right now is a bit of a hack, but it allows for us to translate dates from within a theme, without having to use the backend in the other language. It works by adding stuff like this to the themes functions.php:

$wp_locale->weekday[0] = __('Sunday','orangevalley');

So now, we can have an english backend, and a frontend in as many different languages on as many different domains as we want, served from one WordPress MU install, with only one theme to maintain. How cool is that?

52 Responses to “Multilingual and Multi Domain Sites in WordPress”

  1. When you use MU do all of the sites have to be on "one box"? is there a way to string it across several hosting plans? What if you sell a website how difficult is it to extricate a site out of MU?

    • How about proxy-ing those sites with a internal scraping function, which only is used as an pass through window. That would solve your "problem".

  2. Just a quick question - do the different sites have to be on different domains or could they run on separate folders - e.g xyc.com/de xyc.com/it ?

  3. I think, it would be much easier to skip the "hacked" theme in terms of dates but allow loading the correct WPMU main language files in relation to the international presented page.
    This can be achived by a simple frontend locale filter.
    To get the backend in the right language and also make it comfortable for native writing authors (because they can choose the prefered language) i would suggest my plugin WP Native Dashboard that works with WP, WPMU and BuddyPress.
    This would be in total the maximum flexibility you can provide for any i18n site.

  4. Can you share how to add theme option to choose language from theme backend?

    Thanks

  5. What about the database? It separate or not?

  6. A good multi-lingual plugin is the Qtranslate http://www.qianqin.de/qtranslate/ .

    Tricky to install though, you need to know what you are doing on this install.

  7. You must have known I was looking for this and then made it, knew I could count on you ;)

    Nice on again Joost

  8. Hey Joost, when you use WordPress MU this way on different domains can different themes and different plugins be used on specific domains? Would you choose this strategy over 6-7 separate WP installs if developing a blog network with different admins?

  9. Hi Joost, any favorite examples of a live multi language WPMU install that you could mention? I'm also looking into an MU solution for an entity that has offices in many countries and they want to use subdomains for remote offices. Thanks - Cheers -

  10. Hello - I am attempting to migrate 6 blogs with individual domains (that have been 'networked and are on the Blogger platform) to WP. Would this multi-domain plugin on the WPMU platform be what I am looking for? Or do I have to install separate copies of WP for each blog/domain? Thank you

  11. Really Cool , It will save lot of time and remove headache to manage sites

  12. Thanks for posting about this, I would love to read more about this topic.

  13. wordpress MU ?
    oh no,, I dont know it..
    but, sure.. I must learn more about it..
    thanks

  14. Multilingual Multi domains on Wordpress. Now I like that idea.

  15. I used the Language Switcher (langswitch) plugin for WP and it's working quite well. See it working here: http://vocatia-te-angajeaza.ro

    You can select the language, it uses the wp included GNU Gettext so you can have a lot of languages if you want, all you need is to:
    1. make the .mo files for each language (in my case ro.mo only)
    2. each article is to be written in the posts/pages area in wp-admin for all the languages, between the custom tag [lang_en][/lang_en], [lang_ro][/lang_ro], etc.

    Florin

  16. With the futur merging of WP MU into the core WP development, will this multi domain plugin will still work ? any ideas if this can work with a WP instalation ?
    thanks for putting that enhancement to that plugin Yoast.

  17. Wow! Pretty cool indeed! I think I could apply this nifty trick with my other websites :D

    @Samuel Lavoie - that's also my question in mind.. Hmmmmmmm...

  18. I host a single blog in both English and French. I only have the xlanguage plugin by Sam Wong and have modified one theme. I also have the French wordpress language files on the server.
    Backend is only in English, which suits me fine
    It works a treat for me even if I have to write the articles in both English and French

  19. no to convince my bosses to migrate from asp to php

    *evil laugh*

    thanks for the info Joost!

  20. Creo que es buena la teoria en un principio, pero definitivamente solo la implementaria solo para empresas grandes, para empresas chicas se pueden encontrar plug-ins mas sencillos en su manejo.

  21. hey great concept and really cool!

    from seo prespective, will each site be able to garner its own PR? and be different for seo purposes; for example, each site would have same category and post with a different take? And if so, will database be easy for admin to understand and make different posts on same subject at same time to multiple domains but be different for seo and user experience?

  22. this is one of the best concept i have ever seen and a awesone job done by u..
    thanks

  23. my solution to multilingual blog was to make videos in several languages! Do you know which are the best multilingual blogs out there?

  24. tararengkiu kang infonya......

  25. Buy Viagra, paxil, meth at low low prices. Testing how effective your spam filters are. Asksimet.

  26. Great!
    I've been searching around the good sites for MU-support and haven't found any good and well tested way yet. You are working with one of the most wanted functions for Wordpress at date. Good!
    Still trying to figure out how the MU-functions will influence my SEO work though.

    Thanx for the good post. I found the WPML as some other above. Think your trick is more reliable. But... as WPML is for free, and I wont be able to hire you. I will give that a try.

    Keep up your good work! Using your breadcrums with great success!!!

    best regards
    /jocke

  27. i like this and i will try this plugin.

  28. What if what you need is to use two different API keys from google in order to be able to run maps in any of them?

  29. Can we use MU to host our blog on our upcoming PC site http://www.sno.travel and then use one of the mobile plug-ins to put a phone-friendly version on our mobile site http://www.sno.mobi ?

    We wanted to put the blog on our mobile site, as that's what we launched and are promoting first, but find that there's all sorts of conflicts with WP and our clever, device-detecting mobile system (eg we have created the world's first mobile site with dynamic URL re-writing in all 6 major mobile browser languages) ... so it would be more ideal to put WP on the PC site domain.

    SO THE BIG QUESTION IS... will WP allow us to put, not simply another blog on a different domain, but the mobile version of the SAME blog onto the other domain?

  30. an alternative is to use a different domain for the blog as we own http://www.snoman.mobi and http://www.snoman.me but I don't think we would get nearly as much SEO benefit for the main ski holiday sites (and that's really the point of having the blog)

    we've been looking at adding all the plug-ins and settings listed on your excellent must-have page but will they all work with MU?
    and can we still implement a really simple mobile theme for one instance of the blog (ie on sno.mobi or snoman.mobi) ?

    we're at the start of an incredible 4 month tour of the French and Swiss ski resorts and realise that we're missing a potentially unrepeatable load of top drawer blog material... so we really need to get this right quickly...

    ... what say you?

  31. by the way - we just tested your excellent plug-ins with the dotMobi plug-in (its designed to put your site on a regular and a dotMobi domain, which is what we have) and there ae errors/conflicts so, really annoyingly, we can't combine the best mobile WP plug-in with the best SEO plug-ins

    :-(

    sinking into an un-optimised fug

  32. Really nice article, i read entries blog afternoon then add it to my bookmarks and wait for your next article, i plan follow as you.

    Thanks so much
    decha kunla

Comments closed, if you feel you have something to say:
drop me a line.

1 Trackbacks to “Multilingual and Multi Domain Sites in WordPress”

  1. Mehrsprachiger Blog - Ja oder Nein? | Das Allround Blog - Wed, November 25th, 2009 at 14:47