• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
global files

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


$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 !

ok have now started reading the manual :-P

and looks like languages might help !

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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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