2013-05-05, 02:33:51
I figured out where my problem is... instead of get_page_content I use (and have to use) returnPageContent('slug')... and as the slug for both versions is news (intead of "news" and "news_en") I always get the german (news) version.
I know a quick fix is adding _en if the get-parameter lang is set to en, but that's not really nice... also because I guess there is a cookie set after the language was switched, right?
Therefore it's be better to work with the right slug (including the _en) all along... get_page_slug() returns it without the ending sadly Is there a way to get the slug WITH the language end??
I know a quick fix is adding _en if the get-parameter lang is set to en, but that's not really nice... also because I guess there is a cookie set after the language was switched, right?
Therefore it's be better to work with the right slug (including the _en) all along... get_page_slug() returns it without the ending sadly Is there a way to get the slug WITH the language end??