16
General Questions / Re: jDiction language switcher language name with 2 symbols
« on: March 09, 2015, 08:45:45 pm »
In jDiction language module there are only these options:
Show current language
Add alternate meta tags
Style (none of options have 2character language code)
Update fragment
But none of these settings changes the display of full language to 2 letter sybmol
Then I looked into original language switcher module and found the code that can do this.
So in the end I changed this in modules/mod_jdlanguage/tmpl/default.php on line 46:
from
echo $language->title_native;
to
strtoupper($language->sef);
And now instead of displaying Englsih, I get EN.
Show current language
Add alternate meta tags
Style (none of options have 2character language code)
Update fragment
But none of these settings changes the display of full language to 2 letter sybmol
Then I looked into original language switcher module and found the code that can do this.
So in the end I changed this in modules/mod_jdlanguage/tmpl/default.php on line 46:
from
echo $language->title_native;
to
strtoupper($language->sef);
And now instead of displaying Englsih, I get EN.