Shop-Script multiply languages plugin.
By default plugin uses language detection by aliases. Example 1:
/ - default language
/en/ - 'en' language
/fr/ - 'fr' language
You can use any number of settlements with one alias. Example 2:
/en/shop1/*
/en/shop2/*
each of them will be translated to 'en' language.
To change list of languages please see config.php
Get current language
{shopLangPlugin::currentLang()}
Get language alias
{shopLangPlugin::waUrl()}
for example returns /en/ if current page /en/somesettlement/category/subcategory/product
Super secret link to edit features translate ?plugin=lang&module=feature&action=settings Тупо лень было доделать
At the beginning of product.html
{shopLangPlugin::frontendProduct($product, $features, $features_selectable)}
{foreach $products as $p}
{shopLangPlugin::frontendProductList($p, $products)}
{* your code goes here *}
{/foreach}
At the beginning of category.html template
{shopLangPlugin::frontendCategory($category)}
some list
{$categories = $wa->shop->categories(0)}
{foreach $categories as $c}
{shopLangPlugin::frontendCategoryList($c, $categories)}
{* your code goes here *}
{/foreach}
$product.categories
{foreach $product.categories as $c}
{shopLangPlugin::frontendCategoryList($c, $product.categories)}
{* your code goes here *}
{/foreach}
in filters
{shopLangPlugin::frontendFeatureList($filters)}
At product page features are translated by
{shopLangPlugin::frontendProduct($product, $features, $features_selectable)}