Guest Posted June 26, 2003 Posted June 26, 2003 :idea: :idea: I downloaded the Swedish (svenska) language and I put it in /includes/languages. And the swedish-stuff in the adminsfolder (in the zip-file), under /admin/include/languages. When is revisit my osCommerce webshop there are many errors on the page. On the top of the page I get this error: Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/palace/public_html/catalog/includes/languages/svenska.php on line 12 On other places on the page I get things like this: BOX_REVIEWS_NO_REVIEWS TEXT_GREETING_GUEST BOX_HEADING_INFORMATION BOX_INFORMATION_SHIPPING BOX_INFORMATION_PRIVACY BOX_INFORMATION_CONDITIONS BOX_INFORMATION_CONTACT and at the bottom: FOOTER_TEXT_BODY Why is this? What is wrong? Did I do something wrong? Can I fix it?
Daemonj Posted June 26, 2003 Posted June 26, 2003 :idea: :idea: I downloaded the Swedish (svenska) language and I put it in /includes/languages. And the swedish-stuff in the adminsfolder (in the zip-file), under /admin/include/languages. When is revisit my osCommerce webshop there are many errors on the page. On the top of the page I get this error: Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/palace/public_html/catalog/includes/languages/svenska.php on line 12 On other places on the page I get things like this: BOX_REVIEWS_NO_REVIEWS TEXT_GREETING_GUEST BOX_HEADING_INFORMATION BOX_INFORMATION_SHIPPING BOX_INFORMATION_PRIVACY BOX_INFORMATION_CONDITIONS BOX_INFORMATION_CONTACT and at the bottom: FOOTER_TEXT_BODY Why is this? What is wrong? Did I do something wrong? Can I fix it? What does line 12 of your catalog/includes/languages/svenska.php file say? In regards to all of the constants (i.e. BOX_INFORMATION_PRIVACY, etc - anything that is all caps), verify that there are define entries in the file for those items. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
Guest Posted June 27, 2003 Posted June 27, 2003 Line 12 says: setlocale(LC_TIME, 'sv_SE.ISO_8859-1'); I hade to remove ' ' on LC_TIME not to get a bug at the top of the screen. I'll try to fix the other caps-problems! Thanks;)
Guest Posted June 27, 2003 Posted June 27, 2003 I wrote define('TEXT_GREETING_GUEST') below define('HEADER_TITLE_LOGIN', 'Logga In'); define('HEADER_TITLE_LOGIN_EXPRESS', 'Snabbkassa'); Then I got this error at the top of the shop: Parse error: parse error, unexpected T_STRING in /home/palace/public_html/catalog/includes/languages/svenska.php on line 39
Guest Posted June 27, 2003 Posted June 27, 2003 But the define('HEADER_TITLE_MY_ACCOUNT', 'Mitt Konto'); is stored in svenska.php. But still I get this text where it should say "Mitt konto" (my account): HEADER_TITLE_MY_ACCOUNT Why?
Daemonj Posted June 27, 2003 Posted June 27, 2003 Did you remove the setlocale line? Are you receiving any other error messages? "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
Guest Posted June 27, 2003 Posted June 27, 2003 I didn't remove it. I have a @ infront of it, what does that mean? Regarding all the stuff in capital letters, I've fixed it. Now I have another problem. My shop is now swedish, but all products have the price 0 (zero). How can I fix it? As soon as I change back to english, the price is available again. How can I fix this?
Daemonj Posted June 27, 2003 Posted June 27, 2003 I didn't remove it. I have a @ infront of it, what does that mean?Regarding all the stuff in capital letters, I've fixed it. Now I have another problem. My shop is now swedish, but all products have the price 0 (zero). How can I fix it? As soon as I change back to english, the price is available again. How can I fix this? The @ means to not display errors if the command fails. To resolve the price issue, you will need to go into Admin ~ Localization ~ Currencies and add the Swedish form of currency. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
Guest Posted June 27, 2003 Posted June 27, 2003 Hmm, ok. Then I have chosen not to show the error! But the error I got, is it "Dangerous" ? Or can I still have the @ in front, and still don't care about the actual problem?
Daemonj Posted June 27, 2003 Posted June 27, 2003 Keep the @ sign there. ;) "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
Guest Posted June 27, 2003 Posted June 27, 2003 Could you please take a look at my other problems? ;) http://www.oscommerce.com/forums/viewtopic.php?t=49280
Recommended Posts
Archived
This topic is now archived and is closed to further replies.