problem with strings
Posted: Fri Jul 18, 2008 5:13 am
hello i developed one site with multilanguage support
so i have one lang file
and i have one example word like
$lang_click_here = "Please click here";
in my php script i use $lang_click_here and shown the word "Please click here"
but i want something different
i have one record in mysql and i load
example
$res->message // shown the word "click_here"
the best way i know to show rigth is
if($res->message = "click_here")
{
echo "$lang_click_here"; /// show Please click here
}
but i want something direct like
echo "".$lang_."$res->message"; //direct show please click here
but return "$lang_click_here" exactly not "please click here"
any idea to add the $lang_ in to mysql result as string and tranlsate from file ?
so i have one lang file
and i have one example word like
$lang_click_here = "Please click here";
in my php script i use $lang_click_here and shown the word "Please click here"
but i want something different
i have one record in mysql and i load
example
$res->message // shown the word "click_here"
the best way i know to show rigth is
if($res->message = "click_here")
{
echo "$lang_click_here"; /// show Please click here
}
but i want something direct like
echo "".$lang_."$res->message"; //direct show please click here
but return "$lang_click_here" exactly not "please click here"
any idea to add the $lang_ in to mysql result as string and tranlsate from file ?