japan Posted March 18, 2004 Share Posted March 18, 2004 HI, I installed japanese language contribution which needs a lot of correction as it was made for MS2.2 M1. English was fine until I started to modify index.php and...don`t know why but it shows error only on first page. Please help me to sort it out. I do not know how should I count lines, so if there is an error in line 19 I have no idea where is this line and what`s the problem Here it is what I get in english page: Parse error: parse error in /var/www/html/catalog/includes/languages/english/index.php on line 19 Where is the problem?? <?php/* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'This is <b>........</b> .............................<br><br>We will be back.<br><b> Impol.....</b> ............</br>'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let・s See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 \''); define('TEXT_NOW', '\' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> This is in Japanese language: Parse error: parse error in /var/www/html/catalog/includes/languages/japanese/index.php on line 36 Here it is index.php <?php/* $Id: default.php,v 1.7 2003/05/06 12:10:02 hawk Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', '、ウ、ホ・レ。シ・ク、マ。「・ェ・鬣、・キ・逾テ・ラ、ホ・ヌ・筵ケ・ネ・・シ・キ・逾ヌ、ケ。」<b>、エケリニ、ヒ、ハ、テ、ソセヲノハ、マ。「ヌロチ簑チオ皃筅オ、・゙、サ、」</b>セヲノハ、ス、ホツセ、ヒ、ト、、、ニ、ホセマチエ、ニイヘカホ、筅ホ、ヌ、ケ。」<br><br>、筅キ。「、「、ハ、ソ、ャ、ウ、ホ・ェ・鬣、・キ・逾テ・ラ。ヲ・ヌ・筅タ・ヲ・悅シ・ノ、キ、ニサネ、テ、ニ、゚、ソ、、、ネサラ、テ、ソ、遙「、ウ、ホ・ラ・愠ク・ァ・ッ・ネ、ヒケラク・、キ、隍ヲ、ネサラ、テ、ソ、ハ、鬘「、シ、メ<a href="http://oscommerce.com"><u> ・オ・ン。シ・ネ・オ・、・ネ </u></a>、ャ、・ニ、ッ、タ、オ、、。」、ウ、ホ・ェ・鬣、・キ・逾テ・ラ、マ。「<font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>、ヌケステロ、オ、・ニ、、、゙、ケ。」<br><br>コ」ノスシィ、オ、・ニ、、、・ハニノ、ヌ、、、・ヒ・ニ・ュ・ケ・ネ、マ。「シ。、ホ・ユ・。・、・・ヒオュスメ、オ、・ニ、、、゙、ケ。」ホ・[catalog・ヌ・」・・ッ・ネ・鷯/includes/languages/[japanese]/default.php.<br><br>、ウ、・マ。「エノヘ・皈ヒ・蝪シキミヘウ。「ウニシ・ト。シ・・クタク・・チ->[language]->Define・ェ・ラ・キ・逾「、゙、ソ、マウニシ・ト。シ・・>・ユ・。・、・・ノヘオ。ヌス、ネ、ヲ、ウ、ネ、ヒ、隍テ、ニシ・ー、ヌハヤスク、ケ、・ウ、ネ、ャ、ヌ、ュ、゙、ケ。」'); define('TABLE_HEADING_NEW_PRODUCTS', '%s 、ホソキテ蠕ヲノハ'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'ニイルヘスト熙ホセヲノハ'); define('TABLE_HEADING_DATE_EXPECTED', 'ニイルヘスト・・); if ( ($category_depth == 'products') || ($HTTP_GET_VARS['manufacturers_id']) ) { define('HEADING_TITLE', 'シ隹キ、、セヲノハ'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'キソネヨ'); define('TABLE_HEADING_PRODUCTS', 'セヲノハフセ'); define('TABLE_HEADING_MANUFACTURER', '・癸シ・ォ。シ'); define('TABLE_HEADING_QUANTITY', 'ソフ'); define('TABLE_HEADING_PRICE', 'イチウハ'); define('TABLE_HEADING_WEIGHT', 'スナホフ'); define('TABLE_HEADING_BUY_NOW', 'コ」、ケ、ーケリニ'); define('TEXT_NO_PRODUCTS', '、ウ、ホ・ォ・ニ・エ・遙シ、ホセヲノハ、マ、「、熙゙、サ、・..'); define('TEXT_NO_PRODUCTS2', '、ウ、ホ・癸シ・ォ。シ、ホセヲノハ、マ、「、熙゙、サ、・..'); define('TEXT_NUMBER_OF_PRODUCTS', 'コ゚クヒソ・ '); define('TEXT_SHOW', '<b>ケハケ、゚:</b> '); define('TEXT_BUY', 'コ」、ケ、ー '); define('TEXT_NOW', ' 、リニ、ケ、・); define('TEXT_ALL', 'チエ、ニ'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What's New!'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', '・ォ・ニ・エ・遙シ'); } ?> To see what I mean please check my site, which still need a lot of job. I also don`t understand why green color in boxes doesn`t cover all, only partly. Why is that? Impol Japan Do not take this site too serious. I put staff there for a while to check how it works. It was almost perfect till today:-( Thank you all of you for help. Appreciate it. Adam Link to comment Share on other sites More sharing options...
Colin Posted March 18, 2004 Share Posted March 18, 2004 double posting will not make people help you faster.. in both files you have to fix the line that reads: define('HEADING_TITLE', 'What's New!'); It must read: define('HEADING_TITLE', 'What\'s New!'); Not the backslash. That should fix your problem. Anytime you have an apostrophe you must use a backslash. take care, Colin Link to comment Share on other sites More sharing options...
japan Posted March 18, 2004 Author Share Posted March 18, 2004 Thank you :) Will try and let you know. By the way you`re right about double posts :D Take Care Adam P.S. Do you know what`s wrong with green colors in boxes (hover(?) It doesn`t fill in all. It makes me crazy as I tried my best to figure out but no success so far. Will appreciate your help. Adam Link to comment Share on other sites More sharing options...
japan Posted March 18, 2004 Author Share Posted March 18, 2004 Collin, I tried to open languages/english/index.php but couldn`t do this as before so needed to download. I opened the file in word pad, have changed and it didn`t memorize it even though is asking to keep changes. The same is with language/japanese/index.php It doesn`t want to remember. Next problem is slash. I cannot find slash which would be to the left, but have only to the right ( / ) My website Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.