My question looks almost the same as this Is it possible to put variables inside config files?
I have a config file that controls the language. Also I have a feedback div that is showed for the feedback.
Now I want to assign feedback like this:
$smarty->assign('feedback', 'the_age_of_user_' . $user->name . '_is_changed_to_' . $user->age . '_years');
nl.conf
the_age_of_user_%s_is_changed_to_%s_years
= De leeftijd van gebruiker %s gewijzigd naar %s jaar
en.conf
the_age_of_user_%s_is_changed_to_%s_years
= The age of user %s is changed to %s years
Does anyone know how I can accomplish this? Or is there a better solution to assign variables to the config file?