Setting up languages

Shop-Script FREE is designed to support multilingual interface.

All available language file(s) included in the package are placed in the includes/language folder.
If you'd like to add a new language to you shopping cart you need to create a new .php-file and place it in this folder (includes/language). Your file should be written like all existing ones (f.e. english.php).

Once you prepared language file(s), you should point Shop-Script to load them (if you've only created a language file, it doesn't mean that it has been loaded!).
A list of available languages is set in the php file cfg/language_list.php. Open it in your text editor.

Here is an example of adding an English language.

$lang_list[0] = new Language();
$lang_list[0]->description = "English";
$lang_list[0]->filename = "./includes/language/english.php";
$lang_list[0]->template_path = "./templates/tmpl1/";

If you decide to add a German and French languages (f.e.), you should add such strings:

$lang_list[1] = new Language();
$lang_list[1]->description = "German";
$lang_list[1]->filename = "./includes/language/german.php";
$lang_list[1]->template_path = "./templates/tmpl1/";

$lang_list[2] = new Language();
$lang_list[2]->description = "French";
$lang_list[2]->filename = "./includes/language/french.php";
$lang_list[2]->template_path = "./templates/tmpl1/";

For each language you should set:

   View next: