Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Language Problem


ilovebgp4

Recommended Posts

i made a chinese language pack for oscommerce,but i found one word in the top page can not be translated.i have translated all the words in the files of /include/language directory,it works.but only one word in the first page seems not translated as i hope--the word above the drop down select menu in the left column: "Manufacturers"!

 

i am sure i have translated all the the words in cn.php;include

 

define('BOX_HEADING_MANUFACTURERS', 'my words');

 

but it is strange that when i first visit the page,the title of the box heading is translated as i hoped,but when i refresh the page,it changed back to the original word "Manufacturers",how does it do this?

Link to comment
Share on other sites

Hi,

I don't know much about language packs, but I _think_ if your default language is chinese this file:

 

cn.php

 

should be called

 

chinese.php

 

also the /inludes/languages sub path should be named 'chinese'

 

Peter

 

sorry, i mean my default language is chinese,but in the php code it's "cn",so the file name is cn.php

Link to comment
Share on other sites

Hi,

 

Have you read these in the knowledge base ?

 

http://www.oscommerce.info/kb/osCommerce/C...n_and_Layout/53

 

http://www.oscommerce.info/kb/osCommerce/A...ocalization/163

 

Do you have the switch to default langaue set in admin ?

 

Switch to Default Language Currency -> If there are several currencies being used this setting will automatically switch currencies when the language is changed.

 

Have you updated the array in these files

 

/catalog/admin/includes/classes/language.php

/catalog/includes/classes/language.php

 

to add the entry:

 

'cn' => 'cn|chinese',

 

Your database should have an entry:

 

name - 'Chinese'

code - 'cn'

image - 'icon.gif'

directory - 'cn'

 

Peter

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...