Mam problem s instalaciu slovenciny.. S cestinou je ale vsetko ok!! Omg skopirovat dve zlozky, pridat jazyk v administracii a malo by byt hotovo.. Pouzivam rovnaky postup na SK aj na CS a slovencina hadze stale error "Notice: Error: Could not load language slovak ! in /www/sites/8/site19758/public_html/system/library/language.php on line 3" je si to mozne pozriet na http://kukiak.php5.sk/
Skusal som menit chmody - nepomohlo, nechal som defaultne meno pre admina cize "admin" aj tak nic.
Uz som zufaly a fakt neviem, co mozem robit zle, kedze princip je pri SK a CS rovnaky.. a vyskusal som to asi 15x preinstalovat, tak isto s inou starsiou Opencartu a aj uplne inou verziou slovenciny a stale ten isty error..
Modre zneba znesiem ak niekto pomoze
tu je ten language.php
Kód: Vybrať všetko
<?php
class Language {
private $default = 'english';
private $directory;
private $data = array();
public function __construct($directory) {
$this->directory = $directory;
}
public function get($key) {
return (isset($this->data[$key]) ? $this->data[$key] : $key);
}
public function load($filename) {
$file = DIR_LANGUAGE . $this->directory . '/' . $filename . '.php';
if (file_exists($file)) {
$_ = array();
require($file);
$this->data = array_merge($this->data, $_);
return $this->data;
}
$file = DIR_LANGUAGE . $this->default . '/' . $filename . '.php';
if (file_exists($file)) {
$_ = array();
require($file);
$this->data = array_merge($this->data, $_);
return $this->data;
} else {
trigger_error('Error: Could not load language ' . $filename . '!');
// exit();
}
}
}
?>