Post by mondy » Wed Nov 12, 2008 7:33 pm

b"h

I had an error by changing language.

I had to switch the opencart078\library\language\language.php, line 51:

insted of this:
    $file = $directory . $this->languages[$this->code]['directory'] . '/' . $filename;

i changed to this one:
    $file = $directory . $this->languages[$this->code]['directory'] . '\\' . $filename;

('/' changed to '\\')


I'm working on my comuter, with windows XP.

Mondy.

New member

Posts

Joined
Tue Nov 11, 2008 8:01 am

Post by Qphoria » Wed Nov 12, 2008 10:20 pm

Usually Windows will accept the forward slash, as it is in use in a lot of places. Not sure why just that spot is affecting you.

All the slashes will be converted to a pre-defined constant in v0.8 so if using windows it will automatically change to \\ for all places that / is found.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by hm2k » Thu Nov 13, 2008 12:21 am

Use DIRECTORY_SEPARATOR

ie:

Code: Select all

$file = $directory . $this->languages[$this->code]['directory'] . DIRECTORY_SEPARATOR . $filename;
But as Q said, we're fixing all the dirs in 0.8, we don't want to break them in 0.7.9 which will be out soon.

Really you should report this in the bugs section or on the tracker.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK
Who is online

Users browsing this forum: No registered users and 6 guests