Unlike stories, staticpages can have if statements, which allows a setup for multilinguality right in the same item (using parameters). However, it causes a problem because there's only one canonical/print/sitemap link.
So I thought of another idea - creating one main staticpage (e.g. foobar) and then minor staticpages (foobar_en, etc.) that do nothing other than setting up the language for the main staticpage.
Alas, staticpages are not actual files, so how can you call them?
For example, my foobar_en is
Text Formatted Code
$lang = "en"; // the main foobar uses that to choose a language
echo what_do_i_put_here(PLG_replaceTags(""));
I tried using "eval" for what_do_i_put_here, but nothing happened.
This works but just returns finished text (that doesn't take the new $lang into account):
Text Formatted Code
$lang = "en"; // the main foobar uses that to choose a language
echo PLG_replaceTags(""); // ignores the new $lang
So do you know how to call/include/require one staticpage from another?