Welcome Guest, Not a member yet? Register   Sign In
Problem with Language class
#1

[eluser]Agustín Villalba[/eluser]
Hello! I need to make my site multilanguage. I have a question, how can I make a success message multilanguage when I have a variable in the message, something like this:
"The product with the id $id has been created successfully". Is posible to put a variable in the message stored in the diferent language files?? Thank you.
#2

[eluser]WanWizard[/eluser]
Use sprintf() to replace parameters in strings, or use your own solution using str_replace().
#3

[eluser]Agustín Villalba[/eluser]
That could be a great solution! Thank you very much WanWizard!




Theme © iAndrew 2016 - Forum software by © MyBB