Welcome Guest, Not a member yet? Register   Sign In
Localization for an app
#3

[eluser]Georgi Budinov[/eluser]
Actually I have never thought of doing something to eliminate that calling to $this->lang->line(). I quickly looked at the language class -> you can pass that language array to the view like this -
Code:
$this->load->view('some_view', array('lang'=>&$this->lang->language));

And then use the $lang variable in the view like $lang['some_label'].


Messages In This Thread
Localization for an app - by El Forum - 08-09-2010, 06:08 AM
Localization for an app - by El Forum - 08-09-2010, 06:34 AM
Localization for an app - by El Forum - 08-09-2010, 06:40 AM
Localization for an app - by El Forum - 08-09-2010, 06:41 AM
Localization for an app - by El Forum - 08-09-2010, 07:00 AM
Localization for an app - by El Forum - 08-09-2010, 07:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB