Welcome Guest, Not a member yet? Register   Sign In
Parametric text not working
#1

[eluser]Alhazred[/eluser]
Into the view files I have lines like
Code:
lang('crd_amount',$amount);
Where $amount contains a number (and it really does, if I print it alone it prints the number)

crd_amount is defined as
Code:
$lang['crd_amount'] = "You have selected an amount of € %s";
But when I go to that page I read:
You have selected an amount of € %s

%s is not replaced by the variable passed as parameter.

This is an example, none of my parametric texts work, only those from form validation do.
What should I check to fix the problem?
#2

[eluser]Alhazred[/eluser]
I've found the problem.
Before I was using a modified language helper for the i18n (then removed), it was that file to perform the replacement, I've put back the file and it works again.




Theme © iAndrew 2016 - Forum software by © MyBB