Last active
August 5, 2018 19:45
-
-
Save luclemo/3e71cb50b1088eb2f36d0aea798134a2 to your computer and use it in GitHub Desktop.
Function for checking language #wordpress
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 | |
// Language ckecker test | |
if (get_locale() == 'fr_FR') : | |
echo "bonjour la France"; | |
elseif (get_locale() == 'fr_CA') : | |
echo "bonjour le Québec"; | |
else : echo "hello"; | |
endif; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment