• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best practice for View translations

#1
Hello,
I'm using CI4 and, after reading the documentation, I'm still a bit lost on what the best practice to translate strings in a View is. Right now I created two translation files, one for Italian and one for English. Using the lang method and passing the proper language I can get the right translation. Is there a way to get it straight within my own view instead of having to load each translation file in my controller and then pass it to the view?

Let me know if something is not clear, thank you.  Smile
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.