CodeIgniter Forums
i18n problem with italian and spanish - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: i18n problem with italian and spanish (/thread-61098.html)



i18n problem with italian and spanish - El Forum - 09-16-2014

[eluser]kamikaz[/eluser]
Hello,

I'm using codeigniter 3.0.dev from github and codeigniter_i18n.

It works with language like french, English, Dutch, German BUT not with Spanish (es) and Italian (it).
I get a 404 each time I want to change to these two languages.

In my config.php I have:
Code:
//For the dropdown menu.
$config["lang"] = array(
"en" => "English",
"fr" => "Français",
"es" => "Español",
"it" => "Italiano",
"de" => "Deutsch",
"nl" => "Nederlands");

In MY_Lang I have:
Code:
//The keys are the same as those above
//Values define the folder in language folder
private $languages = array(
    'en' => 'english',
    'de' => 'german',
    'fr' => 'french',
    'nl' => 'dutch',
    'es' => 'spanish',
    'it' => 'italian'
  );

I don't have any information other than the 4O4.

Thank you


i18n problem with italian and spanish - El Forum - 09-16-2014

[eluser]CroNiX[/eluser]
First, that library was written for an older version of CI (2.x), so it might not work 100% with CI3. But since you say you have it working for other languages, did you:
1) create the routes for the new languages?
2) create the language files for the new languages?

I'm just getting info from the link you gave...


i18n problem with italian and spanish - El Forum - 09-16-2014

[eluser]kamikaz[/eluser]
The routes...of course! Thank you and sorry for your time Wink