Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.08 KB

File metadata and controls

24 lines (17 loc) · 1.08 KB

Multisite Language Switcher Theme

About

This Theme is a hack for multilingual blog using multisite wordpress. It redirect users from "/" to "/en/" or "/fr/" in function of the accepted languages of the browser. The Theme redirect the 404 error page too.

This theme is a quick and dirty hack for my multilingual blog (http://oncleben31.cc). I don't have any competency in Theme development. Don't hesitate to fork and improve it.

This theme is a good companion to Multisite Language Switcher (by lloc) plugin for Wordpress. I've develop a similar plugin few years ago but this one is far more mature. Give it a try

Set-up Instructions

Install this theme on your network and use this theme for the root blog (which is useless).

TODO

  • use theme option to set the languages and redirect adresses
  • don't use only the prefered language ($Langue[0]), use the others.
  • add an ignore list for (robot.txt or sitemap file generated by plugin or wordpress)