CodeIgniter Forums

Full Version: Internationalization problem with language class
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
I have a very dumb question (haven't been coding for a while):

I try to make a bilingual website with the CI's language class. I thought I did everything as mentioned in the user guide (Language class description).

CI finds the language file, but typing e.g.
Code:
$this->lang->load('welcome_msg');
in the index function of welcome.php controller or in the view (welcome_msg.php) just echoes the lines of the language file to the HTML code.

Sounds like a really basic failure. Could someone offer a quick advice? Thanks!


p.s. I did a quick search to see if anyone has had a similar issue, but didn't find anything yet... Sorry to bother about this.

El Forum

[eluser]GSV Sleeper Service[/eluser]
not sure what's going on here, I use the language files a lot, and have had no problems.
can you post your welcome_msg language file?

El Forum

[eluser]xwero[/eluser]
no starting php tag in the welcome_msg_lang.php file?

El Forum

[eluser]Unknown[/eluser]
[quote author="xwero" date="1227647675"]no starting php tag in the welcome_msg_lang.php file?[/quote]

Yeah, silly me! I thought they would somehow not be needed there... :red:
Anyway, it works perfectly now!

Damn fast support, you guys rock! Thanks! Smile