Hi!
I use smarty to allow different languages on my site, which works OK so far. I store the texts in config files in different sections.
But then there are sentences like this:
"You have 6 new mails!", which would be in german "Sie haben 6 neue Mails!"
Now there's text before the number and behind the number, which is loaded from the database. And I would like to put it into the config file and just load the number on its own.
so I have this in my "text.conf"
[en]
mail_count = "You have $NUMBER new mails!"
[de]
mail_count = "Sie haben $NUMBER neue Mails!"
and this in my "show_text.php"
$smarty->assign('NUMBER', 6);
Is something like this possible? Maybe with Smarty 3.0?
Thanks in advance, BH