I’m unsure of how to proceed with the following problem. It seems simple enough but i get the feeling this is a user profile setting.
I’ve got a piece of code that seems to be causing me a lot of grief and anguish on this but I need to clarify the problem first no?
{paginate}
{if simple_language == "English"}
Part {current_page} of {total_pages} {pagination_links}
{if:else} {!-- in This case it's french --}
Partie {current_page} de {total_pages} {pagination_links}
{/if}
{/paginate}To allow a user to “toggle” between the english and french content I use the following method.
<?php
$myurl = $_SERVER["QUERY_STRING"];
if (substr($myurl,-1) != "/") {
$myurl = $myurl . "/";
}
?>
{if simple_language == "French"}
<a href="http://<?php">English</a>
{if:else}
<a href="http://<?php">Français</a>
{/if}What ends up happening is the rest of the page changes to french except for the {pagination_links}.
Is there a function that will change / update the user language in their profile?