Post by GeoBots » Mon Aug 31, 2009 9:58 pm

hello, i started translate default language to Latvian and in admin panel i'm change language code from EN to LV and save, I not can enter in admin panel. All time show this text:

Code: Select all

Notice: Undefined index: en in /mysite.com/htdocs/system/library/language.php on line 40Notice: Undefined index: en in /mysite.com/htdocs/system/library/language.php on line 60Error: Could not load language !
i put original language.php on FTP, but nothing happens :-\

sorry for my english :-[

User avatar
Newbie

Posts

Joined
Mon Aug 31, 2009 7:57 pm

Post by Daniel » Mon Aug 31, 2009 11:15 pm

yuo will have to go through your db manager and alter the field manually

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by takayuki » Wed Sep 02, 2009 8:44 am

exactly which table and field needs to be updated to get US english?

My client attempted to change the site to US english and now I'm getting the same error:

Notice: Undefined index: en in /usr/www/users/takayuki/jof/system/library/language.php on line 40Notice: Undefined index: en in /usr/www/users/takayuki/jof/system/library/language.php on line 60Error: Could not load language !

thanks

New member

Posts

Joined
Thu Aug 13, 2009 10:16 pm

Post by takayuki » Wed Sep 02, 2009 8:56 am

i changed the config_language field in the setting table to

us_en

but page still errors...

am i editing the right field?

New member

Posts

Joined
Thu Aug 13, 2009 10:16 pm

Post by takayuki » Wed Sep 02, 2009 12:03 pm

FIXED...

My client got in and changed the Admin > Configuration > Localization > Language parameters which broke the site.

I changed the settings back to 1 | English | en | en_US.UTF-8,en_US,en-gb,english | us.png | english | english | 1 | 1 |

in the language table via phpmyadmin.

Maybe there should be a warning on this page? My client typed in US instead of en trying to switch the site to US, which broke the site. Yes, he should have read the manual, etc. But maybe a warning here would be good, if you change these values and don't know what you are doing, you can break the site.

takayuki

New member

Posts

Joined
Thu Aug 13, 2009 10:16 pm

Post by GeoBots » Fri Sep 04, 2009 3:06 am

Daniel wrote:yuo will have to go through your db manager and alter the field manually
thanks :)

User avatar
Newbie

Posts

Joined
Mon Aug 31, 2009 7:57 pm

Post by eric232 » Sun Nov 22, 2009 8:28 pm

Changed the language from "en" to "us" on the setting page. Now site is broken. "Undefined index" and "Could not load language!" Can't find the file with my erroneous "us", so I can change back to "en". Any help?

Newbie

Posts

Joined
Thu Nov 12, 2009 4:10 am
Who is online

Users browsing this forum: No registered users and 44 guests