Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Trouble Adding a Language


saleem145

Recommended Posts

Posted

Hello,

 

My store still under construction at

 

http://shamrock.jhservers212.com/~scylaxo/store

 

I added additional languages

 

1. United States

2. United Kingdom

3. Australia

4. Canada

 

The reason I added them as "new languages" was because besides seperate currencies, I want different date formats and also different text in parts of my site.

 

I installed these languages thru the admin interface. Then I copied the english folder into new folders called english_usa, english_cad, english_aus. Also copied english.php.

 

My site works just fine. Clicking on the flags produces the desired results.

 

The admin interface does not work at all. In fact I get the following error messages when I try to login.

 

Warning: main(includes/languages/english_usa.php): failed to open stream: No such file or directory in /home/scylaxo/public_html/store/admin/includes/application_top.php on line 130

 

Fatal error: main(): Failed opening required 'includes/languages/english_usa.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/scylaxo/public_html/store/admin/includes/application_top.php on line 130

 

After reading the error message, my suspicion would be the english_usa.php does not exist. But it does exist. And the permissions are set correctly -- everyone can read, write and execute. And please do keep in mind that the store itself which does use this file, works.

 

Any ideas. Thanks a million in advance.

 

Saleem

Posted

What are the lines of code on line 130. Install languages is usually easy - I just copied and renamed the folders. Created the relevant language file and then I tested install 2 other english and no problems

Posted
After reading the error message, my suspicion would be the english_usa.php does not exist. But it does exist. And the permissions are set correctly -- everyone can read, write and execute. And please do keep in mind that the store itself which does use this file, works.

 

Your suspicion is correct, there are missing files! You have created three different english for your shop, you also have to create them for the administration area. Shop and admin have different language files! The admin's language files are located in admin/includes/languages, the shop's language files are in catalog/includes/languages.

 

B)

Antonios

 

olympicslogo_en.gif

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...