How to set up WPLANG in wp-config.php for 4 languages?

Good day!
I don’t know much code so I’ve been researching on how to modify my wp-config.php file so that the content and widgets of my site will show in the four languages (aside from English) I have on there. I don’t care about translating the WP interface, just the content. The WP .mo files in the languages in question are already in the wp-content/languages folder.
How would I define 4 languages in wp-config.php? Like this?

define (‘WPLANG’, ‘es_ES’); (‘WPLANG’, ‘de_DE’); (‘WPLANG’, ‘fr_FR’); (‘WPLANG’, ‘ca_CA’)

Read More

I’ve been trying things out (only way for me to learn) but ended up destroying the file and having to restore it. Besides, like I said, no reliable info on the net.
Cheers 🙂

Related posts

Leave a Reply

2 comments

  1. I just found this which I applied and works perfectly:

    If you have your blogs installed in subdirectories you could use this solution:

    if (strpos($_SERVER['REQUEST_URI'], '/enblog') === 0) {
        define ('WPLANG', 'en_US');
    } else {
        define ('WPLANG', 'pl_PL');
    } 
    

    … and so on. Good luck!