Re: if language english show this
Hi again,
If this is being used just for displaying text alone???.. then you are better to just add a new "language variable" in X-Cart...
In X-Cart Admin choose -> Languages
Then...
a) select the language you want to work on, from the drop-down box e.g. English
b) go to the bottom of the languages page and choose to "add" a language variable e.g. lbl_my_new_language_variable (hint - I use lbl_z_my_new_language_variable , so I can tell which language tags have been manually added by me)...
c) then change to an alternative language using the drop down box at top e.g. Japanese
c1) and search / filter looking for... lbl_my_new_language_variable ...
c2) then input the text in Japanese for example, that matches the English you have translated and click the "update all" button.
Note: you can use html in language tags - so this method can be used for url links as well, as I understand.
Then in your php template code, use "lng.lbl_my_new_language_variable" (without the quotes) to reference that text / language variable tag... then you will see the text you want appear, as the language(s) changes.
Hope comments help - cheers, Asiaplay
__________________
X-Cart Gold version 4.1.9
(plus built in X-Cart bugs!)
|