Hardcoded translation
-
Hi.
I have a few websites that rely on a few hard functions within the template. It used to work untill version 4.2 if i’m correct, everything after that was not working no more. I’m not sure what caused this, but it’s surely an update from wordpress itself.
I have a few websites with Qtranslate x in order to make a multilanguage website. Most common languages are NL & EN. For example, i have a hard coded footer and sometimes i need a translation in that as well. It’s really simple code and does’nt require much:
<?php if(get_bloginfo(‘language’) == ‘nl-NL’) { ?>
<p>show something in NL</p>
<? } else { ?>
<p>Show something in other language</p>
<? } ?>
This always used to work, untill an update of wordpress came by. What it does: if the language is NL, show this, else show that which presents english. The only thing i get now is that it always works on /en/ in this case, but no longer /nl/ and only displays the “Show something in other language”.
The switch does’nt work no more. Anyone has a clue?
- The topic ‘Hardcoded translation’ is closed to new replies.