Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help! Add more language error


silver2008

Recommended Posts

I just install a new language to system:

 

1) Admin ==> login ==> localization ===> language ==> add new language ==> schinese(code:sc)

 

2) Find the file [catalog]/includes/languages/english.php

 

and the folder [catalog]/includes/languages/english/ that contains various files

 

3) Duplicate them and rename them to schinese.php (for the file)

 

and /schinese/ for the folder

 

4) find the file [catalog]/includes/languages/japanese/images/icon.gif and change it to the chinese flag

 

 

 

--------------------------------------------------------------------------------------------------------

 

 

 

finish above 1) to 4), the chinese language botton can't appear on homepage when I open my web site,

 

and then I click ==> the chinese language botton, it's showing the error message:

 

 

Warning: main(includes/languages//xxxxxxx/catalog/includes/sc.php): failed to open stream: No such file or directory in /home/content/g//xxxxxx/html/xxxxxxx/catalog/includes/application_top.php on line 288

 

Warning: main(includes/languages//xxxxxxxx/catalog/includes/sc.php): failed to open stream: No such file or directory in /home/content/g//xxxxxxx/html/xxxxxx/catalog/includes/application_top.php on line 288

 

Fatal error: main(): Failed opening required 'includes/languages//xxxxxxx/catalog/includes/sc.php' (include_path='.:/usr/local/lib/php') in /home/content/g//xxxxxx/html/xxxxxx/catalog/includes/application_top.php on line 288

 

 

Any one can help me with that? thanks!

Link to comment
Share on other sites

Additional:

 

I just install a new language to system:

 

1) Admin ==> login ==> localization ===> language ==> add new language ==> schinese(code:sc)

 

2) Find the file [catalog]/includes/languages/english.php

 

and the folder [catalog]/includes/languages/english/ that contains various files

 

3) Duplicate them and rename them to schinese.php (for the file)

 

and /schinese/ for the folder

 

4) find the file [catalog]/includes/languages/tchinese/images/icon.gif and change it to the chinese flag

 

5)For the admin part ==> repeat steps (2) and (3) paths are changing accordingly

 

 

--------------------------------------------------------------------------------------------------------

 

 

 

finish above 1) to 4), the chinese language botton can't appear on homepage when I open my web site,

 

and then I click ==> the chinese language botton, it's showing the error message:

 

 

Warning: main(includes/languages//xxxxxxx/catalog/includes/sc.php): failed to open stream: No such file or directory in /home/content/g//xxxxxx/html/xxxxxxx/catalog/includes/application_top.php on line 288

 

Warning: main(includes/languages//xxxxxxxx/catalog/includes/sc.php): failed to open stream: No such file or directory in /home/content/g//xxxxxxx/html/xxxxxx/catalog/includes/application_top.php on line 288

 

Fatal error: main(): Failed opening required 'includes/languages//xxxxxxx/catalog/includes/sc.php' (include_path='.:/usr/local/lib/php') in /home/content/g//xxxxxx/html/xxxxxx/catalog/includes/application_top.php on line 288

 

 

Any one can help me with that? thanks!

Link to comment
Share on other sites

  • 2 months later...

Exactly the same like you, bur for the french part...

 

Mmmmm, you are waiting for an answer since 2 years..... I wander if i ll have an answer! :D

 

ps: i am a blond girl, is it helping...? :D

Link to comment
Share on other sites

  • 3 months later...

I had a similar problem with the French language install.

I solved it, but since the cause in my case was my own stupidity i'm not sure it will solve your problem:

In the language menu (administration -> localization -> Languages) I had put the absolute path to my French language files in the "directory" field. Everything before the language directory doesn't need to be entered. So in the directory field you just type "french" instead of "catalog/includes/languages/french". You'll know it worked as the French language icon immediately shows in the language menu.

Edited by neglectdesign
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...