Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to install a new language


totsubo2000

Recommended Posts

Posted

Hi, I'm very new to osCommerce and would like instructions on how to install a new language. Are there any online instructions on how to do this? I've looked around but can't find any.

 

I'm looking to have those little flags that let the user change the display language. Specifically I would like to support English (no problem there) and Japanese.

 

I'm guessing this is relatively simple I just can't seem to find any documentation.

Posted

Never mind

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

I don't know if there is or not, but you can do it your self in the following way

 

1) Find the file [catalog]includes/languages/english.php and the folder [catalog]includes/languages/english/ that contains various files

2) Duplicate them and rename them to japanese.php (for the file) and /japanese/ for the folder

3) Open file japanese.php and do following:

 

find the next 3 lines (they are at the beginning)

@setlocale(LC_TIME, 'en_US.ISO_8859-1');

define('HTML_PARAMS','dir="LTR" lang="en"');

define('CHARSET', 'utf-8');

and change them to the japanese settings (I don't know them) As a help you can look how the settings are in the package you found, they should not be different. As for the charset I would keep the utf-8

 

I would also have the encoding for the file itself to be utf-8

 

In the same file translate every record into japanese, in the same way you would edit the text in english. Be carefull not to remove the ---' ' ---- and also to write ie --- it\'s monday -- and not -- it's monday --

 

4) Do the same translation for all other files in the folder japanese

5) find the file {catalog}/includes/languages/japanese/images/icon.gif and change it to the japanese flag

6) find the folder {catalog}/includes/languages/japanese/images/buttons/. All the buttons (that are images) need to be changed into japanese. You can do this in photoshop or search the net for a button generator

 

7) For the admin part you repeat steps (1) and (2),paths are changing accordingly.

8) If you don't mind to have the admin panel in english you can leave everything as it is. If you want japanese, repeat the steps (3) till (7)

9) Upload all files and folders.

10) Enjoy japanese kawasaki, harakiri, kamikazi etc :)

 

PS If you do and it works you might want to upload the result to the contributions your self for other japanese people

Archived

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

×
×
  • Create New...