I have following code snippet to implement a multilingual website.
Idea is to, depending on user's language i need to translate word "Man" to "Hombre"
My Question: Will it be valid to use $user_language instead of hard coded column name "Spanish" here.
code:
TranslationTabl e:
English Spanish
Man Hombre
Thanks
SW
Idea is to, depending on user's language i need to translate word "Man" to "Hombre"
My Question: Will it be valid to use $user_language instead of hard coded column name "Spanish" here.
code:
Code:
//$user_language is passed from his profile after log in to the site SELECT $user_language FROM TranslationTable WHERE English=Man
English Spanish
Man Hombre
Thanks
SW
Comment