![]() |
Parametric text not working - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Parametric text not working (/showthread.php?tid=56080) |
Parametric text not working - El Forum - 11-25-2012 [eluser]Alhazred[/eluser] Into the view files I have lines like Code: lang('crd_amount',$amount); crd_amount is defined as Code: $lang['crd_amount'] = "You have selected an amount of € %s"; 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? Parametric text not working - El Forum - 11-25-2012 [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. |