Localization and W3 Total Cache
-
Hi.
I have localized my themes. I created several translations (.MO files). By detecting the browser’s locale and using the load_theme_textdomain() function, I load the variables to match the locale.
I do all of this in the theme’s functions.php.My problem now is that W3 Total Cache caches the pages. My browser’s locale is set to English, yet I see Italian, Chinese, and other languages when I browse the site as a regular visitor.
I want to continue to cache the pages. But I need to tell the plugin to not only cache one version of the template, but one version for each localized template. I would probably have to change the way that w3totalcache internally refers to and saves the templates. So if the page is internally stored as ‘header’ (header.php), I would rather have it stored as ‘header_en’ to not overwrite other languages (if possible, and just as an an example).
How can I do this?
- The topic ‘Localization and W3 Total Cache’ is closed to new replies.