Welcome Guest, Not a member yet? Register   Sign In
global files
#1

[eluser]soupdragon[/eluser]
multi-language site and i need somewhere to put my lang specific texts.

normally (ie not code igniter) i would have a file somewhere with arrays in for my lang specific texts

eg

$G_ctrl['eng'] = array(
// fehlermeldungen
'errors' => array(
'e000' => 'Undefinierter Fehler',

and then for other langs etc.....

then i just call error e000 and get the correct message for the failure

what is the best way to do the same in codeigniter ?
btw this is not just for error messages

i basically am trying to avoid having lots of lang specific messages in either controllers or in views !

any help aprreciated !
#2

[eluser]soupdragon[/eluser]
ok have now started reading the manual :-P

and looks like languages might help !
#3

[eluser]Derek Allard[/eluser]
Yeah, the language class id definitely the way way to here.




Theme © iAndrew 2016 - Forum software by © MyBB