Welcome Guest, Not a member yet? Register   Sign In
Using an multidimensional array in a language file


I have pulldownitem in my form and would like to translate the values coming from the database. My database looks like this:
#id        #country
1        abc
2        def
3        ghi
4        jkl
Now I would like to create a language file which translates the countrynames, something like this:
$lang['language_abc'] = 'translation of abc';
$lang['language_def'] = 'translation of def';
$lang['language_ghi'] = 'translation of ghi';
$lang['languge_jkl'] = 'translation of jkl';
This is my first project with Codeigniter and I have no idea if this is possible or if I have to customize the language library. Maybe you know a solution for this? (My suggestion doesn't seem to work).


Theme © iAndrew 2016 - Forum software by © MyBB