Welcome Guest, Not a member yet? Register   Sign In
Autoload.php: Language
#1

[eluser]jurosik[/eluser]
Hello

i have problems with config autoload language folder.

my language folder:

application/language/slovak/account_lang.php, menu_lang.php... and so on

but, what should i do to autoload the whole folder?

i've tried this:
Code:
$autoload['language'] = array('slovak');
error:
Code:
Unable to load the requested language file: language/slovak_lang.php

also this:
Code:
$autoload['language'] = array('slovak/account');
not working too...

where is the problem? how to autoload it?
#2

[eluser]stuffradio[/eluser]
Are your files in the correct format?

Is the file named: slovak_lang.php?
#3

[eluser]jurosik[/eluser]
No, i have folder slovak with files something_lang.php and so on, and i need to load whole folder.

UserGuide says:
Quote:Note: Each language should be stored in its own folder. For example, the English files are located at: system/language/english
#4

[eluser]marcoss[/eluser]
You got that wrong, what you want to change is the language folder, you do that in config.php, where you have this,

Code:
$config['language']    = 'english';

change it to slovak,

Code:
$config['language']    = 'slovak';

that will tell codeigniter to look for error files on that folder, if you then need an extra language file (ie, not the system ones) you loaded in the autoload.php file or manually when you need them.
#5

[eluser]jurosik[/eluser]
Thank you, that was what i missed, the language in config file, how simple...




Theme © iAndrew 2016 - Forum software by © MyBB