Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

About Swedish languagish pack/module not funtction


Klas

Recommended Posts

Posted

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.

Posted

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.

  • 10 months later...
Posted
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.

 

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

Posted
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

 

It does indicate that the file index.php is missing inside the languages/swedish/ folder

Posted

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.

Archived

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

×
×
  • Create New...