Hello!
I've got the following array:
$entry = array(
"text_de" => "Deutscher text",
"text_en" => "english text"
"head_de" => "Deutsche Ueberschrift",
"head_en" => "english headline"
);
The variable $l stores the locale abbreviation ("en" or "de")
Something like
echo $entry["head_".$l]."
".$entry["text_".$l];
is very elegant. Is a statement like this possible in Smarty?
Or do i have to assign the correct field names from php like this:
$smarty->assign("text_local", "text_".$l);
$smarty->assign("head_local", "head_".$l);
In the template:
{$entry.$head_local}
{$entry.$text.local}
With best regards
Gabriel Birke
--
KONTOR4_Neue Medien
Plathnerstraße 5
30175 Hannover
Fax: +49 51184 48 98 99
mailto:birke@kontor4.de
http://www.kontor4.de
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php