Created
July 17, 2017 10:09
-
-
Save dn7734/dee624dd13b8fba93ae66bea20802791 to your computer and use it in GitHub Desktop.
як в шаблонах виводити потрібний язик qTranslate-X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (qtranxf_getLanguage() == 'ua') { | |
// run code here if the current language is ua | |
echo 'Всі новини'; | |
} elseif (qtranxf_getLanguage() == 'ru') { | |
// run code here if the current language is ru | |
echo 'Все новости'; | |
} ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment