2015-08-31, 20:31:22
(2015-08-24, 23:51:19)alex_d Wrote: Hi All,
Im using next language switch code as mvlcek wrote in one of his replies from week or a two ago:
<div align="left">
<?php $langs = return_i18n_available_languages(return_page_slug()); ?>
<?php if (in_array('de', $langs)) { ?>
<a href="<?php echo htmlspecialchars(return_i18n_setlang_url('de')); ?>">deutsch</a>
<?php } ?>
<?php if (in_array('de', $langs) && in_array('en', $langs)) { echo '|'; } ?>
<?php if (in_array('de', $langs)) { ?>
<a href="<?php echo htmlspecialchars(return_i18n_setlang_url('en')); ?>">english</a>
<?php } ?>
</div>
Everything is fine.
Just Im not sure how to set-up the default language?
Using this code my default becomes English and I want DE ..
Also how to setup classes for 'current' language ?
Thanx
Alex
Hello,
can someone help / advice me about my issue's ?
Thanx
Alex