Im trying to make my page multi-lingual. But I dont want a separate page for each language - that would require too many pages and same updates.
Instead I have a table that has fields like StringNo, English, Lang1, Lang2, Lang3.
The other 3 fields are not Lang1, Lang2 or Lang3 - I just replaced the actual field names.
Somewhere in the beginning of the page, I have
Code: Select all
$Language_Words = GetLanguageStrings(
$Language,
array(
'Search','News','Enter your name','Something else','etc'
)
);I then do
Code: Select all
<tr><td><? echo $Language_Words['News']; ?></td></tr>But will this be very resource intensive ? Is this efficient ?
How are sites multi-lingual ?
Thanks