Welcome Guest, Not a member yet? Register   Sign In
Multilanguage Support Needed
#4

[eluser]adamfairholm[/eluser]
Nico,

If you extended the view function of the Loader, you can save the name of the view into an array of views that you've loaded. Would that solve that problem? I'm still unclear as to why the hook is necessary, but you know your site better than I do! I've always just put in <?=$this->lang->line('');?> calls for lines in shared views for different languages.

Just remember to extend the Language class and the Loader class to add in that functionality - otherwise when you want to upgrade CI you're screwed.

It might be throwing up the error because the first time it does the array merge, we haven't defined $this->language[$idiom]. I guess you could do a check for that before that line like:

Code:
if( ! isset($this->language[$idiom]) )
     $this->language[$idiom] = array();

This is all untested, but that might work as a solution.

Adam


Messages In This Thread
Multilanguage Support Needed - by El Forum - 06-22-2010, 05:06 PM
Multilanguage Support Needed - by El Forum - 06-22-2010, 05:31 PM
Multilanguage Support Needed - by El Forum - 06-23-2010, 02:58 AM
Multilanguage Support Needed - by El Forum - 06-23-2010, 08:17 AM
Multilanguage Support Needed - by El Forum - 06-23-2010, 12:28 PM
Multilanguage Support Needed - by El Forum - 06-23-2010, 12:32 PM
Multilanguage Support Needed - by El Forum - 06-24-2010, 08:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB