Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION i18n showing word 'home' in English
#3
global variable $language is intended for this purpose:

Code:
if ($language == 'en') { echo 'Home'; }


(2016-12-15, 22:30:25)cobber Wrote: this is because the link is hard coded into the header.


Hmmm ... Perhaps you can use your page menu title for that purpose? So you don't need to check current language, something like:

Code:
echo $data_index->menu;
Reply


Messages In This Thread
i18n showing word 'home' in English - by cobber - 2016-12-15, 22:30:25
RE: i18n showing word 'home' in English - by Bigin - 2016-12-20, 06:03:46



Users browsing this thread: 1 Guest(s)