in2tech Posted October 27, 2018 Report Share Posted October 27, 2018 Alright so for the longest time I wondered what some of these were, such as @lang('common.dashboard') , which I now know are references to display names. Are these referenced some where and we can change them or choose from a list? Not sure what these mean, {{ trans_choice('common.pilot', 2) }} , or what the number at the end means. Just wondering. I know we can place static text where we need too to replace those! Thanks! Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 1, 2018 Administrators Report Share Posted November 1, 2018 They're all Laravel built-ins for the Blade templating engine Quote Link to comment Share on other sites More sharing options...
in2tech Posted November 1, 2018 Author Report Share Posted November 1, 2018 5 hours ago, Nabeel said: They're all Laravel built-ins for the Blade templating engine Although I am still going through the Laravel 5.7 Tutorials, I don't grasp these instead of just test yet? But I did find the master file, just trying to understand why these instead of text. Is it like a CSS file one reference takes care of them all? Or something like that? Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 4, 2018 Administrators Report Share Posted November 4, 2018 Those insert the phrases from the resources/lang files. So if someone has it set to Spanish, it'll use the Spanish translation files Quote Link to comment Share on other sites More sharing options...
in2tech Posted November 5, 2018 Author Report Share Posted November 5, 2018 18 hours ago, Nabeel said: Those insert the phrases from the resources/lang files. So if someone has it set to Spanish, it'll use the Spanish translation files Cool, makes total sense now! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.