hey guys,
theme: modern
i created a page (lang.php) for language-selection and put it in public_html folder (osclass installed folder)
and put 3 links for 3 languages, (i just want, when i click on them, it redirects to main.php and change the language of website)
links:
<ul class="lang">
<li><a href=<?php echo osc_base_url() . "index.php?page=language&locale=en_US"; ?> target="_self">English</a></li>
<li><a href=<?php echo osc_base_url() . "index.php?page=language&locale=es_ES"; ?> target="_self">Spanish</a></li>
<li><a href=<?php echo osc_base_url() . "index.php?page=language&locale=it_IT"; ?> target="_self">Italian</a></li>
</ul>
but when i click on them, they do NOT work, it does NOT redirect to main.php
and when i remove the part of the link after (?), it works and it redirects to main.php but does NOT select a language:
<li><a href=<?php echo osc_base_url() . "index.php"; ?> target="_self">English Language</a></li>
what should i do to change the osclass language by clicking on a link in this page? i just want 3 links (like: english, spanish, italian) and when i click on one of them, it redirects to main.php and changes the language of the website
Thanks