eCommerce construction > Configuration

Russian language

(1/1)

DJCyxapuk:
Установка проходит успешно, отключаю другие языки и ставлю русский по умолчанию. Ничего не меняется. Версия 1.1.1   устанавливал 1.0.1 тоже не помогло решить проблему

Installation is successful, disconnect other languages ​​and put the Russian default. Nothing changes. Version 1.1.1 installed 1.0.1 did not help solve the problem of a successful installation, turn off other languages, and put Russian default. Nothing changes. Version 1.1.1 installed 1.0.1 does not solve the problem, what to do?

abantecart:
I just discovered small bug in case if only 1 non English language is available. It was fixed in next version 1.1.2

For version 1.1.1 you can fix it in file public_html/core/lib/language.php

Open file and locate line #181. It reads:

--- Code: --- foreach ( $this->available_languages as $lng ) {
$languages[ $lng['code'] ] = $lng;
}

--- End code ---
Replace with:

--- Code: --- foreach ( $this->getActiveLanguages() as $lng ) {
$languages[ $lng['code'] ] = $lng;
}

--- End code ---

also replace method getActiveLanguages()

by this


--- Code: ---public function getActiveLanguages() {
        $active_languages = array();
        foreach ($this->available_languages as $result) {
            if ($result['status'] == 1) {
                $active_languages[] =  array(
                    'language_id'   => $result['language_id'],
                    'name'  => $result['name'],
                    'filename'  => $result['filename'],
                    'code'  => $result['code'],
                    'image' => $result['image']
                );
            }
        }
        return $active_languages;
    }
--- End code ---

Navigation

[0] Message Index

Go to full version
Powered by SMFPacks Social Login Mod