Klas Posted July 21, 2004 Posted July 21, 2004 Hallo ! I get the fololowing errror message when I try to run Swedish languish as default: Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in c:\inetpub\wwwroot\catalog\includes\languages\swedish.php on line 22 Warning: main(includes/languages/swedish/index.php): failed to open stream: No such file or directory in c:\inetpub\wwwroot\catalog\index.php on line 33 Fatal error: main(): Failed opening required 'includes/languages/swedish/index.php' (include_path='.;c:\php4\pear') in c:\inetpub\wwwroot\catalog\index.php on line 33 ------------------------------------------------------------------- The "Swedish.php" (in the map languages) looks like this on line 22: // look in your $PATH_LOCALE/locale directory for available locales.. // on RedHat try 'en_US' // on FreeBSD try 'en_US.ISO_8859-1' // on Windows try 'en', or 'English' setlocale('LC_TIME', 'sv_SE.ISO_8859-1'); define('DATE_FORMAT_SHORT', '%Y-%m-%d'); // this is used for strftime() define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime() define('DATE_FORMAT', 'Y-m-d'); // this is used for date() define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S'); ----------------------------------------------------------------------- I am a bit new to php so I dont now how to fix it. My platform is Windows, IIS and languagish is Swedish. Everything else function good. Its a bit in a hurry becourse I am doing this shop for a friends bookstore. Greatfull for any help. ----------------------------------------------------------- Even a surfer needs a bridge.
Klas Posted July 23, 2004 Author Posted July 23, 2004 I have solved this problem. This line: setlocale('LC_TIME', 'sv_SE.ISO_8859-1'); should bee: setlocale(LC_TIME, 'sv_SE.ISO_8859-1'); The LC_TIME without the ' surounded it! By the way there is ather problems with the dateformat for swedish, see an ather topic posted by me. Even a surfer needs a bridge.
PiRo Posted June 13, 2005 Posted June 13, 2005 I have solved this problem. This line: setlocale('LC_TIME', 'sv_SE.ISO_8859-1'); should bee: setlocale(LC_TIME, 'sv_SE.ISO_8859-1'); The LC_TIME without the ' surounded it! By the way there is ather problems with the dateformat for swedish, see an ather topic posted by me. <{POST_SNAPBACK}> It did not help me. I have still two error messages Warning: main(includes/languages/swedish/index.php): failed to open stream: No such file or directory in /home/ronnefal/public_html/webbshop/index.php on line 33 Fatal error: main(): Failed opening required 'includes/languages/swedish/index.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ronnefal/public_html/webbshop/index.php on line 33 /Pierre
Jumping Rabbit Posted June 13, 2005 Posted June 13, 2005 It did not help me.I have still two error messages Warning: main(includes/languages/swedish/index.php): failed to open stream: No such file or directory in /home/ronnefal/public_html/webbshop/index.php on line 33 Fatal error: main(): Failed opening required 'includes/languages/swedish/index.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ronnefal/public_html/webbshop/index.php on line 33 /Pierre <{POST_SNAPBACK}> It does indicate that the file index.php is missing inside the languages/swedish/ folder Faster Checkout - osCommerce Knowledge Base - Anyone meet offline?, Has anyone of you cyberkids meet offline? For newbees do atleast read this 4 points: Basic info - Search tips and help - Posting tips and help - Basics for Design
Klas Posted June 13, 2005 Author Posted June 13, 2005 He, this topic is quite old know, thanks anyway! (think I solved the proplem a long time ago, by "trial and error") :blush: Even a surfer needs a bridge.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.