I have setup a WP site with CMS pod. So it’s more like a CMS than a blogging site.
In this, I have setup 10 pages which represent different country. I want to set different language for different pages.
So far I have done,
1 .Created directory “wp-content/languages” and copied all languages .po and .mo file there.
2. Tested this with changing define (‘WPLANG’, ‘nb_NO’) in wp-config.php
Now the question is, how to change my language in each page ? I can detect the page by using get_the_title() in page template file. can I use dynamically ‘define (‘WPLANG’, “$country_language”)’ in start of page template itself or any other method ?
- The topic ‘How to change language in each page ?’ is closed to new replies.