totsubo2000 Posted November 9, 2009 Posted November 9, 2009 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.
germ Posted November 9, 2009 Posted November 9, 2009 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 >
multimixer Posted November 9, 2009 Posted November 9, 2009 Maybe you read here --> how to install a new language It's part of the knowledge base, the first place I would look if I don't know something My community profile | Template system for osCommerce - New: Responsive | Feedback channel
totsubo2000 Posted November 9, 2009 Author Posted November 9, 2009 Thanks! I did not know about the Knowledge base. My question now is: Is there a language pack for Japanese? I did a search in the community add-ons for 'Japanese' and only found this one which is from 2003 (way too old). http://addons.oscommerce.com/info/1636
multimixer Posted November 9, 2009 Posted November 9, 2009 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 My community profile | Template system for osCommerce - New: Responsive | Feedback channel
Recommended Posts
Archived
This topic is now archived and is closed to further replies.