Subida del módulo y tema de PrestaShop

This commit is contained in:
Kaloyan
2026-04-09 18:31:51 +02:00
parent 12c253296f
commit 16b3ff9424
39262 changed files with 7418797 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class AttributeGroupLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Shop.Demo.Catalog';
protected $keys = ['id_attribute_group'];
protected $fieldsToUpdate = ['name', 'public_name'];
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class AttributeLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Shop.Demo.Catalog';
protected $keys = ['id_attribute'];
protected $fieldsToUpdate = ['name'];
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class CarrierLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Admin.Shipping.Feature';
protected $keys = ['id_carrier', 'id_shop'];
protected $fieldsToUpdate = ['delay'];
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class CartRuleTypeLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Admin.Catalog.Feature';
protected $keys = ['id_cart_rule_type'];
protected $fieldsToUpdate = ['name', 'description'];
}

View File

@@ -0,0 +1,33 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class CategoryLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Admin.Catalog.Feature';
protected $keys = ['id_category', 'id_shop'];
protected $fieldsToUpdate = ['name', 'link_rewrite'];
public function getFieldValue($field, $value)
{
if ($field == 'link_rewrite') {
$replacements = [
'home' => 'Home',
'root' => 'Root',
];
$value = str_replace(array_keys($replacements), array_values($replacements), $value);
}
$value = parent::getFieldValue($field, $value);
if ($field == 'link_rewrite') {
$value = $this->slugify($value);
}
return $value;
}
}

View File

@@ -0,0 +1,32 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class CmsCategoryLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Admin.Catalog.Feature';
protected $keys = ['id_cms_category', 'id_shop'];
protected $fieldsToUpdate = ['name', 'link_rewrite'];
public function getFieldValue($field, $value)
{
if ($field == 'link_rewrite') {
$replacements = [
'home' => 'Home',
];
$value = str_replace(array_keys($replacements), array_values($replacements), $value);
}
$value = parent::getFieldValue($field, $value);
if ($field == 'link_rewrite') {
$value = $this->slugify($value);
}
return $value;
}
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class ConfigurationLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Admin.Shopparameters.Feature';
protected $keys = ['id_configuration'];
protected $fieldsToUpdate = ['value'];
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class ContactLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Admin.Shopparameters.Feature';
protected $keys = ['id_contact'];
protected $fieldsToUpdate = ['name', 'description'];
}

123
classes/lang/DataLang.php Normal file
View File

@@ -0,0 +1,123 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
use PrestaShop\PrestaShop\Adapter\SymfonyContainer;
use PrestaShop\PrestaShop\Core\Util\Inflector;
use PrestaShopBundle\Translation\TranslatorInterface;
/**
* DataLang classes are used by Language
* to update existing entities in the database whenever a new language is installed.
* Each *Lang subclass corresponds to a database table.
*
* @see Language::updateMultilangFromClass()
*/
class DataLangCore
{
/** @var TranslatorInterface */
protected $translator;
/** @var string Locale to translate to */
protected $locale;
/** @var string[] Table primary key */
protected $keys;
/** @var string[] Database fields to translate */
protected $fieldsToUpdate;
/** @var string Default translation domain */
protected $domain;
/**
* @param string $locale
* @param TranslatorInterface|null $translator If defined, use this translator
*/
public function __construct($locale, ?TranslatorInterface $translator = null)
{
$this->locale = $locale;
$this->translator = $translator instanceof TranslatorInterface
? $translator
: SymfonyContainer::getInstance()->get(TranslatorInterface::class);
$isAdminContext = defined('_PS_ADMIN_DIR_');
if (!$this->translator->isLanguageLoaded($this->locale)) {
SymfonyContainer::getInstance()->get('prestashop.translation.translator_language_loader')
->setIsAdminContext($isAdminContext)
->loadLanguage($this->translator, $this->locale);
$this->translator->getCatalogue($this->locale);
}
}
/**
* Translates a value to the current locale
*
* @param string $field Name of the database field to translate
* @param string $value Value to translate
*
* @return string Translated value
*/
public function getFieldValue($field, $value)
{
return $this->translator->trans($value, [], $this->domain, $this->locale);
}
/**
* Returns the table primary key
*
* @return string[]
*/
public function getKeys()
{
return $this->keys;
}
/**
* Returns the list of database fields to update
*
* @return string[]
*/
public function getFieldsToUpdate()
{
return $this->fieldsToUpdate;
}
/**
* Creates a slug from the provided string
*
* @param string $string
*
* @return string
*/
public function slugify($string)
{
return strtolower(str_replace(' ', '-', Tools::replaceAccentedChars($string)));
}
/**
* Returns the default translation domain
*
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* Returns the table name where the translations are to be performed
*
* @return string
*/
public function getTableName(): string
{
$shortClassName = substr(strrchr('\\' . get_class($this), '\\'), 1);
return Inflector::getInflector()->tableize($shortClassName);
}
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class FeatureLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Shop.Demo.Catalog';
protected $keys = ['id_feature'];
protected $fieldsToUpdate = ['name'];
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class FeatureValueLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Shop.Demo.Catalog';
protected $keys = ['id_feature_value'];
protected $fieldsToUpdate = ['value'];
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class GenderLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Admin.Shopparameters.Feature';
protected $keys = ['id_gender'];
protected $fieldsToUpdate = ['name'];
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class GroupLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Admin.Shopparameters.Feature';
protected $keys = ['id_group'];
protected $fieldsToUpdate = ['name'];
}

View File

@@ -0,0 +1,9 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// Make sure these module actions are translatable because they won't be discoverable
trans('Update', 'Admin.Modules.Actions');
trans('Configure', 'Admin.Modules.Actions');

View File

@@ -0,0 +1,10 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/fixtures/fashion/langs/en/data/attribute_group.xml
trans('Size', 'Shop.Demo.Catalog');
trans('Color', 'Shop.Demo.Catalog');
trans('Dimension', 'Shop.Demo.Catalog');
trans('Paper Type', 'Shop.Demo.Catalog');

View File

@@ -0,0 +1,31 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/fixtures/fashion/langs/en/data/attribute.xml
trans('S', 'Shop.Demo.Catalog');
trans('M', 'Shop.Demo.Catalog');
trans('L', 'Shop.Demo.Catalog');
trans('XL', 'Shop.Demo.Catalog');
trans('Grey', 'Shop.Demo.Catalog');
trans('Taupe', 'Shop.Demo.Catalog');
trans('Beige', 'Shop.Demo.Catalog');
trans('White', 'Shop.Demo.Catalog');
trans('Off White', 'Shop.Demo.Catalog');
trans('Red', 'Shop.Demo.Catalog');
trans('Black', 'Shop.Demo.Catalog');
trans('Camel', 'Shop.Demo.Catalog');
trans('Orange', 'Shop.Demo.Catalog');
trans('Blue', 'Shop.Demo.Catalog');
trans('Green', 'Shop.Demo.Catalog');
trans('Yellow', 'Shop.Demo.Catalog');
trans('Brown', 'Shop.Demo.Catalog');
trans('Pink', 'Shop.Demo.Catalog');
trans('40x60cm', 'Shop.Demo.Catalog');
trans('60x90cm', 'Shop.Demo.Catalog');
trans('80x120cm', 'Shop.Demo.Catalog');
trans('Ruled', 'Shop.Demo.Catalog');
trans('Plain', 'Shop.Demo.Catalog');
trans('Squared', 'Shop.Demo.Catalog');
trans('Doted', 'Shop.Demo.Catalog');

View File

@@ -0,0 +1,11 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/langs/en/data/carrier.xml
trans('Pick up in-store', 'Admin.Shipping.Feature');
// install-dev/fixtures/fashion/langs/en/data/carrier.xml
trans('Delivery next day!', 'Admin.Shipping.Feature');
trans('Buy more to pay less!', 'Admin.Shipping.Feature');
trans('The lighter the cheaper!', 'Admin.Shipping.Feature');

View File

@@ -0,0 +1,17 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/langs/en/data/cart_rule_type.xml
trans('On free shipping', 'Admin.Catalog.Feature');
trans('Discount that provides free shipping to the order', 'Admin.Catalog.Feature');
trans('On cart amount', 'Admin.Catalog.Feature');
trans('Discount applied to cart', 'Admin.Catalog.Feature');
trans('On total order', 'Admin.Catalog.Feature');
trans('Discount applied to the order', 'Admin.Catalog.Feature');
trans('On catalog products', 'Admin.Catalog.Feature');
trans('Discount applied to specific products', 'Admin.Catalog.Feature');
trans('On free gift', 'Admin.Catalog.Feature');
trans('Discount that provides a free gift product', 'Admin.Catalog.Feature');
// install-dev/fixtures/fashion/langs/en/data/cart_rule_type.xml

View File

@@ -0,0 +1,25 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/langs/en/data/category.xml
trans('Root', 'Admin.Catalog.Feature');
trans('root', 'Admin.Catalog.Feature');
trans('Home', 'Admin.Catalog.Feature');
trans('home', 'Admin.Catalog.Feature');
// install-dev/fixtures/fashion/langs/en/data/category.xml
trans('Clothes', 'Admin.Catalog.Feature');
trans('clothes', 'Admin.Catalog.Feature');
trans('Men', 'Admin.Catalog.Feature');
trans('men', 'Admin.Catalog.Feature');
trans('Women', 'Admin.Catalog.Feature');
trans('women', 'Admin.Catalog.Feature');
trans('Accessories', 'Admin.Catalog.Feature');
trans('accessories', 'Admin.Catalog.Feature');
trans('Stationery', 'Admin.Catalog.Feature');
trans('stationery', 'Admin.Catalog.Feature');
trans('Home Accessories', 'Admin.Catalog.Feature');
trans('home-accessories', 'Admin.Catalog.Feature');
trans('Art', 'Admin.Catalog.Feature');
trans('art', 'Admin.Catalog.Feature');

View File

@@ -0,0 +1,8 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/langs/en/data/cms_category.xml
trans('Home', 'Admin.Catalog.Feature');
trans('home', 'Admin.Catalog.Feature');

View File

@@ -0,0 +1,13 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/langs/en/data/configuration.xml
trans('#IN', 'Admin.Shopparameters.Feature');
trans('#DE', 'Admin.Shopparameters.Feature');
trans('#RE', 'Admin.Shopparameters.Feature');
trans('a|about|above|after|again|against|all|am|an|and|any|are|aren|as|at|be|because|been|before|being|below|between|both|but|by|can|cannot|could|couldn|did|didn|do|does|doesn|doing|don|down|during|each|few|for|from|further|had|hadn|has|hasn|have|haven|having|he|ll|her|here|hers|herself|him|himself|his|how|ve|if|in|into|is|isn|it|its|itself|let|me|more|most|mustn|my|myself|no|nor|not|of|off|on|once|only|or|other|ought|our|ours|ourselves|out|over|own|same|shan|she|should|shouldn|so|some|such|than|that|the|their|theirs|them|themselves|then|there|these|they|re|this|those|through|to|too|under|until|up|very|was|wasn|we|were|weren|what|when|where|which|while|who|whom|why|with|won|would|wouldn|you|your|yours|yourself|yourselves', 'Admin.Shopparameters.Feature');
trans('Dear Customer,\n\nRegards,\nCustomer service', 'Admin.Shopparameters.Feature');
trans('We are currently updating our shop and will be back really soon.\nThanks for your patience.', 'Admin.Shopparameters.Feature');
trans('Out-of-Stock', 'Admin.Shopparameters.Feature');

View File

@@ -0,0 +1,10 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/langs/en/data/contact.xml
trans('Webmaster', 'Admin.Shopparameters.Feature');
trans('If a technical problem occurs on this website', 'Admin.Shopparameters.Feature');
trans('Customer service', 'Admin.Shopparameters.Feature');
trans('For any question about a product, an order', 'Admin.Shopparameters.Feature');

View File

@@ -0,0 +1,66 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// Admin API - Multistore feature flag
trans('Admin API - Multistore', 'Admin.Advparameters.Feature');
trans('Enable or disable the Admin API when multistore is enabled.', 'Admin.Advparameters.Help');
// Admin Api - Enable experimental endpoints
trans('Admin API - Enable experimental endpoints', 'Admin.Advparameters.Feature');
trans('Experimental API endpoints are disabled by default in prod environment, this configuration allows to forcefully enable them.', 'Admin.Advparameters.Help');
// Catalog price rules feature flag
trans('Catalog price rules', 'Admin.Advparameters.Feature');
trans('Enable or disable the migrated catalog price rules page.', 'Admin.Advparameters.Help');
// Countries feature flag
trans('Countries', 'Admin.Advparameters.Feature');
trans('Enable or disable the migrated countries page.', 'Admin.Advparameters.Help');
// States feature flag
trans('States', 'Admin.Advparameters.Feature');
trans('Enable or disable the migrated states page.', 'Admin.Advparameters.Help');
// Carriers feature flag
trans('Carriers', 'Admin.Advparameters.Feature');
trans('Enable or disable the migrated carriers page.', 'Admin.Advparameters.Help');
// Permissions feature flag
trans('Permissions', 'Admin.Advparameters.Feature');
trans('Enable or disable the migrated permissions page.', 'Admin.Advparameters.Help');
// Tax rule groups feature flag
trans('Tax rule groups', 'Admin.Advparameters.Feature');
trans('Enable or disable the migrated tax rules page.', 'Admin.Advparameters.Help');
// Customer threads feature flag
trans('Customer threads', 'Admin.Advparameters.Feature');
trans('Enable or disable the migrated customer threads page.', 'Admin.Advparameters.Help');
// Order states feature flag
trans('Order states', 'Admin.Advparameters.Feature');
trans('Enable or disable the migrated order states page.', 'Admin.Advparameters.Help');
trans('New front container', 'Admin.Advparameters.Feature');
trans('Enable / Disable the new front container.', 'Admin.Advparameters.Help');
trans('Customer group', 'Admin.Advparameters.Feature');
trans('Enable / Disable the customer group page.', 'Admin.Advparameters.Help');
trans('Store', 'Admin.Advparameters.Feature');
trans('Enable / Disable the store page.', 'Admin.Advparameters.Help');
trans('Merchandise return', 'Admin.Advparameters.Feature');
trans('Enable / Disable the merchandise return page.', 'Admin.Advparameters.Help');
trans('Improved shipment', 'Admin.Advparameters.Feature');
trans('Enable / Disable the newly improved shipment system.', 'Admin.Advparameters.Help');
trans('Discount', 'Admin.Advparameters.Feature');
trans('Enable / Disable the new discount system.', 'Admin.Advparameters.Help');
trans('Tag', 'Admin.Advparameters.Feature');
trans('Enable / Disable the tag page.', 'Admin.Advparameters.Help');

View File

@@ -0,0 +1,8 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/fixtures/fashion/langs/en/data/feature.xml
trans('Composition', 'Shop.Demo.Catalog');
trans('Property', 'Shop.Demo.Catalog');

View File

@@ -0,0 +1,25 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/fixtures/fashion/langs/en/data/feature_value.xml
trans('Polyester', 'Shop.Demo.Catalog');
trans('Wool', 'Shop.Demo.Catalog');
trans('Ceramic', 'Shop.Demo.Catalog');
trans('Cotton', 'Shop.Demo.Catalog');
trans('Recycled cardboard', 'Shop.Demo.Catalog');
trans('Matt paper', 'Shop.Demo.Catalog');
trans('Long sleeves', 'Shop.Demo.Catalog');
trans('Short sleeves', 'Shop.Demo.Catalog');
trans('Removable cover', 'Shop.Demo.Catalog');
trans('120 pages', 'Shop.Demo.Catalog');
trans('White', 'Shop.Demo.Catalog');
trans('Black', 'Shop.Demo.Catalog');
trans('S', 'Shop.Demo.Catalog');
trans('M', 'Shop.Demo.Catalog');
trans('L', 'Shop.Demo.Catalog');
trans('XL', 'Shop.Demo.Catalog');
trans('40x60cm', 'Shop.Demo.Catalog');
trans('60x90cm', 'Shop.Demo.Catalog');
trans('80x120cm', 'Shop.Demo.Catalog');

View File

@@ -0,0 +1,8 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/langs/en/data/gender.xml
trans('Mr.', 'Admin.Shopparameters.Feature');
trans('Mrs.', 'Admin.Shopparameters.Feature');

View File

@@ -0,0 +1,9 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/langs/en/data/group.xml
trans('Visitor', 'Admin.Shopparameters.Feature');
trans('Guest', 'Admin.Shopparameters.Feature');
trans('Customer', 'Admin.Shopparameters.Feature');

View File

@@ -0,0 +1,65 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/langs/en/data/meta.xml
trans('404 error', 'Shop.Navigation');
trans('This page cannot be found', 'Shop.Navigation');
trans('page-not-found', 'Shop.Navigation');
trans('Best sellers', 'Shop.Navigation');
trans('Our best sales', 'Shop.Navigation');
trans('best-sellers', 'Shop.Navigation');
trans('Contact us', 'Shop.Navigation');
trans('Use our form to contact us', 'Shop.Navigation');
trans('contact-us', 'Shop.Navigation');
trans('Brands', 'Shop.Navigation');
trans('Brands list', 'Shop.Navigation');
trans('brands', 'Shop.Navigation');
trans('New products', 'Shop.Navigation');
trans('Our new products', 'Shop.Navigation');
trans('new-products', 'Shop.Navigation');
trans('Forgot your password', 'Shop.Navigation');
trans('Enter the e-mail address you use to sign in to receive an e-mail with a new password', 'Shop.Navigation');
trans('password-recovery', 'Shop.Navigation');
trans('Prices drop', 'Shop.Navigation');
trans('Our special products', 'Shop.Navigation');
trans('prices-drop', 'Shop.Navigation');
trans('Sitemap', 'Shop.Navigation');
trans('Lost ? Find what your are looking for', 'Shop.Navigation');
trans('sitemap', 'Shop.Navigation');
trans('Suppliers', 'Shop.Navigation');
trans('Suppliers list', 'Shop.Navigation');
trans('suppliers', 'Shop.Navigation');
trans('Address', 'Shop.Navigation');
trans('address', 'Shop.Navigation');
trans('Addresses', 'Shop.Navigation');
trans('addresses', 'Shop.Navigation');
trans('Login', 'Shop.Navigation');
trans('login', 'Shop.Navigation');
trans('Registration', 'Shop.Navigation');
trans('registration', 'Shop.Navigation');
trans('Cart', 'Shop.Navigation');
trans('cart', 'Shop.Navigation');
trans('Discount', 'Shop.Navigation');
trans('discount', 'Shop.Navigation');
trans('Order history', 'Shop.Navigation');
trans('order-history', 'Shop.Navigation');
trans('Identity', 'Shop.Navigation');
trans('identity', 'Shop.Navigation');
trans('My account', 'Shop.Navigation');
trans('my-account', 'Shop.Navigation');
trans('Order follow', 'Shop.Navigation');
trans('order-follow', 'Shop.Navigation');
trans('Credit slip', 'Shop.Navigation');
trans('credit-slip', 'Shop.Navigation');
trans('Order', 'Shop.Navigation');
trans('order', 'Shop.Navigation');
trans('Search', 'Shop.Navigation');
trans('search', 'Shop.Navigation');
trans('Stores', 'Shop.Navigation');
trans('stores', 'Shop.Navigation');
trans('Guest tracking', 'Shop.Navigation');
trans('guest-tracking', 'Shop.Navigation');
trans('Order confirmation', 'Shop.Navigation');
trans('order-confirmation', 'Shop.Navigation');

View File

@@ -0,0 +1,8 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/fixtures/fashion/langs/en/data/order_message.xml
trans('Delay', 'Admin.Orderscustomers.Feature');
trans('Hi,\n\nUnfortunately, an item on your order is currently out of stock. This may cause a slight delay in delivery.\nPlease accept our apologies and rest assured that we are working hard to rectify this.\n\nBest regards,', 'Admin.Orderscustomers.Feature');

View File

@@ -0,0 +1,11 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/langs/en/data/order_return_state.xml
trans('Waiting for confirmation', 'Admin.Orderscustomers.Feature');
trans('Waiting for package', 'Admin.Orderscustomers.Feature');
trans('Package received', 'Admin.Orderscustomers.Feature');
trans('Return denied', 'Admin.Orderscustomers.Feature');
trans('Return completed', 'Admin.Orderscustomers.Feature');

View File

@@ -0,0 +1,19 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/langs/en/data/order_state.xml
trans('Awaiting check payment', 'Admin.Orderscustomers.Feature');
trans('Payment accepted', 'Admin.Orderscustomers.Feature');
trans('Processing in progress', 'Admin.Orderscustomers.Feature');
trans('Shipped', 'Admin.Orderscustomers.Feature');
trans('Delivered', 'Admin.Orderscustomers.Feature');
trans('Canceled', 'Admin.Orderscustomers.Feature');
trans('Refunded', 'Admin.Orderscustomers.Feature');
trans('Payment error', 'Admin.Orderscustomers.Feature');
trans('On backorder (paid)', 'Admin.Orderscustomers.Feature');
trans('On backorder (not paid)', 'Admin.Orderscustomers.Feature');
trans('Awaiting bank wire payment', 'Admin.Orderscustomers.Feature');
trans('Remote payment accepted', 'Admin.Orderscustomers.Feature');
trans('Awaiting Cash On Delivery validation', 'Admin.Orderscustomers.Feature');

View File

@@ -0,0 +1,11 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/langs/en/data/profile.xml
trans('SuperAdmin', 'Admin.Advparameters.Feature');
// install-dev/fixtures/fashion/langs/en/data/profile.xml
trans('Logistician', 'Admin.Advparameters.Feature');
trans('Translator', 'Admin.Advparameters.Feature');
trans('Salesman', 'Admin.Advparameters.Feature');

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/langs/en/data/quick_access.xml
trans('Home', 'Admin.Navigation.Header');
trans('My Shop', 'Admin.Navigation.Header');
trans('New category', 'Admin.Navigation.Header');
trans('New product', 'Admin.Navigation.Header');
trans('New voucher', 'Admin.Navigation.Header');
trans('Orders', 'Admin.Navigation.Header');
trans('Installed modules', 'Admin.Navigation.Header');
trans('Catalog evaluation', 'Admin.Navigation.Header');

View File

@@ -0,0 +1,10 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/langs/en/data/risk.xml
trans('None', 'Admin.Orderscustomers.Feature');
trans('Low', 'Admin.Orderscustomers.Feature');
trans('Medium', 'Admin.Orderscustomers.Feature');
trans('High', 'Admin.Orderscustomers.Feature');

View File

@@ -0,0 +1,9 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/langs/en/data/stock_mvt_reason.xml
trans('Customer Order', 'Admin.Catalog.Feature');
trans('Product Return', 'Admin.Catalog.Feature');
trans('Employee Edition', 'Admin.Catalog.Feature');

View File

@@ -0,0 +1,16 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
trans('1 - Creation in progress', 'Admin.Orderscustomers.Feature');
trans('2 - Order validated', 'Admin.Orderscustomers.Feature');
trans('3 - Pending receipt', 'Admin.Orderscustomers.Feature');
trans('4 - Order received in part', 'Admin.Orderscustomers.Feature');
trans('5 - Order received completely', 'Admin.Orderscustomers.Feature');
trans('6 - Order canceled', 'Admin.Orderscustomers.Feature');

View File

@@ -0,0 +1,125 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
// install-dev/langs/en/data/tab.xml
trans('Sell', 'Admin.Navigation.Menu');
trans('Improve', 'Admin.Navigation.Menu');
trans('Configure', 'Admin.Navigation.Menu');
trans('More', 'Admin.Navigation.Menu');
trans('Addresses', 'Admin.Navigation.Menu');
trans('Administration', 'Admin.Navigation.Menu');
trans('Aliases', 'Admin.Navigation.Menu');
trans('Module Catalog', 'Admin.Navigation.Menu');
trans('Module Manager', 'Admin.Navigation.Menu');
trans('Modules', 'Admin.Navigation.Menu');
trans('Alerts', 'Admin.Navigation.Menu');
trans('Updates', 'Admin.Navigation.Menu');
trans('Advanced Parameters', 'Admin.Navigation.Menu');
trans('Files', 'Admin.Navigation.Menu');
trans('Attributes & Features', 'Admin.Navigation.Menu');
trans('Attributes', 'Admin.Navigation.Menu');
trans('Carriers', 'Admin.Navigation.Menu');
trans('Carrier', 'Admin.Navigation.Menu');
trans('Cart Rules', 'Admin.Navigation.Menu');
trans('Catalog Price Rules', 'Admin.Navigation.Menu');
trans('Catalog', 'Admin.Navigation.Menu');
trans('Categories', 'Admin.Navigation.Menu');
trans('Page Categories', 'Admin.Navigation.Menu');
trans('Pages', 'Admin.Navigation.Menu');
trans('Combinations Generator', 'Admin.Navigation.Menu');
trans('Configuration', 'Admin.Navigation.Menu');
trans('Contact', 'Admin.Navigation.Menu');
trans('Contacts', 'Admin.Navigation.Menu');
trans('Countries', 'Admin.Navigation.Menu');
trans('Credit Slips', 'Admin.Navigation.Menu');
trans('Import', 'Admin.Navigation.Menu');
trans('Currencies', 'Admin.Navigation.Menu');
trans('Customer Service', 'Admin.Navigation.Menu');
trans('Customer Settings', 'Admin.Navigation.Menu');
trans('Customers', 'Admin.Navigation.Menu');
trans('Dashboard', 'Admin.Navigation.Menu');
trans('Database', 'Admin.Navigation.Menu');
trans('DB Backup', 'Admin.Navigation.Menu');
trans('Delivery Slips', 'Admin.Navigation.Menu');
trans('E-mail', 'Admin.Navigation.Menu');
trans('Employees', 'Admin.Navigation.Menu');
trans('Team', 'Admin.Navigation.Menu');
trans('Features', 'Admin.Navigation.Menu');
trans('General', 'Admin.Navigation.Menu');
trans('Geolocation', 'Admin.Navigation.Menu');
trans('Groups', 'Admin.Navigation.Menu');
trans('Image Settings', 'Admin.Navigation.Menu');
trans('Images', 'Admin.Navigation.Menu');
trans('Information', 'Admin.Navigation.Menu');
trans('Instant Stock Status', 'Admin.Navigation.Menu');
trans('International', 'Admin.Navigation.Menu');
trans('Invoices', 'Admin.Navigation.Menu');
trans('Languages', 'Admin.Navigation.Menu');
trans('Localization', 'Admin.Navigation.Menu');
trans('Locations', 'Admin.Navigation.Menu');
trans('Login', 'Admin.Navigation.Menu');
trans('Logs', 'Admin.Navigation.Menu');
trans('Design', 'Admin.Navigation.Menu');
trans('Email Theme', 'Admin.Navigation.Menu');
trans('Maintenance', 'Admin.Navigation.Menu');
trans('Brands & Suppliers', 'Admin.Navigation.Menu');
trans('Brands', 'Admin.Navigation.Menu');
trans('Marketing', 'Admin.Navigation.Menu');
trans('Menus', 'Admin.Navigation.Menu');
trans('Merchandise Returns', 'Admin.Navigation.Menu');
trans('Monitoring', 'Admin.Navigation.Menu');
trans('Multistore', 'Admin.Navigation.Menu');
trans('Order Messages', 'Admin.Navigation.Menu');
trans('Order Settings', 'Admin.Navigation.Menu');
trans('Orders', 'Admin.Navigation.Menu');
trans('Outstanding', 'Admin.Navigation.Menu');
trans('Payment Methods', 'Admin.Navigation.Menu');
trans('Preferences', 'Admin.Navigation.Menu');
trans('Payment', 'Admin.Navigation.Menu');
trans('Performance', 'Admin.Navigation.Menu');
trans('Security', 'Admin.Navigation.Menu');
trans('Permissions', 'Admin.Navigation.Menu');
trans('Positions', 'Admin.Navigation.Menu');
trans('Discounts', 'Admin.Navigation.Menu');
trans('Product Settings', 'Admin.Navigation.Menu');
trans('Products', 'Admin.Navigation.Menu');
trans('Products (experimental)', 'Admin.Navigation.Menu');
trans('Roles', 'Admin.Navigation.Menu');
trans('Quick Access', 'Admin.Navigation.Menu');
trans('Referrers', 'Admin.Navigation.Menu');
trans('Search', 'Admin.Navigation.Menu');
trans('Search Engines', 'Admin.Navigation.Menu');
trans('SEO & URLs', 'Admin.Navigation.Menu');
trans('Shipping', 'Admin.Navigation.Menu');
trans('Shop Parameters', 'Admin.Navigation.Menu');
trans('Shop URLs', 'Admin.Navigation.Menu');
trans('Shopping Carts', 'Admin.Navigation.Menu');
trans('Shops', 'Admin.Navigation.Menu');
trans('SQL Manager', 'Admin.Navigation.Menu');
trans('States', 'Admin.Navigation.Menu');
trans('Stats', 'Admin.Navigation.Menu');
trans('Statuses', 'Admin.Navigation.Menu');
trans('Stock Coverage', 'Admin.Navigation.Menu');
trans('Stock Management', 'Admin.Navigation.Menu');
trans('Stock Movement', 'Admin.Navigation.Menu');
trans('Stocks', 'Admin.Navigation.Menu');
trans('Stores', 'Admin.Navigation.Menu');
trans('Suppliers', 'Admin.Navigation.Menu');
trans('Supply orders', 'Admin.Navigation.Menu');
trans('Tags', 'Admin.Navigation.Menu');
trans('Taxes', 'Admin.Navigation.Menu');
trans('Tax Rules', 'Admin.Navigation.Menu');
trans('Theme Catalog', 'Admin.Navigation.Menu');
trans('Theme & Logo', 'Admin.Navigation.Menu');
trans('Titles', 'Admin.Navigation.Menu');
trans('Traffic & SEO', 'Admin.Navigation.Menu');
trans('Translations', 'Admin.Navigation.Menu');
trans('Webservice', 'Admin.Navigation.Menu');
trans('Admin API', 'Admin.Navigation.Menu');
trans('Zones', 'Admin.Navigation.Menu');
trans('Module Selections', 'Admin.Navigation.Menu');
trans('New & Experimental Features', 'Admin.Navigation.Menu');
trans('Employee Sessions', 'Admin.Navigation.Menu');
trans('Customer Sessions', 'Admin.Navigation.Menu');

View File

@@ -0,0 +1,17 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
trans('Full width', 'Admin.Design.Feature');
trans('Three columns', 'Admin.Design.Feature');
trans('Two columns, small left column', 'Admin.Design.Feature');
trans('Two columns, small right column', 'Admin.Design.Feature');
trans('No side columns, ideal for distraction-free pages such as product pages.', 'Admin.Design.Feature');
trans('One large central column and 2 side columns.', 'Admin.Design.Feature');
trans('Two columns with a small left column.', 'Admin.Design.Feature');
trans('Two columns with a small right column.', 'Admin.Design.Feature');

14
classes/lang/MetaLang.php Normal file
View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class MetaLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Shop.Navigation';
protected $keys = ['id_meta', 'id_shop'];
protected $fieldsToUpdate = ['title', 'description', 'url_rewrite'];
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class OrderMessageLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Admin.Orderscustomers.Feature';
protected $keys = ['id_order_message'];
protected $fieldsToUpdate = ['name', 'message'];
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class OrderReturnStateLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Admin.Orderscustomers.Feature';
protected $keys = ['id_order_return_state'];
protected $fieldsToUpdate = ['name'];
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class OrderStateLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Admin.Orderscustomers.Feature';
protected $keys = ['id_order_state'];
protected $fieldsToUpdate = ['name'];
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class ProfileLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Admin.Advparameters.Feature';
protected $keys = ['id_profile'];
protected $fieldsToUpdate = ['name'];
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class QuickAccessLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Admin.Navigation.Header';
protected $keys = ['id_quick_access'];
protected $fieldsToUpdate = ['name'];
}

14
classes/lang/RiskLang.php Normal file
View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class RiskLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Admin.Orderscustomers.Feature';
protected $keys = ['id_risk'];
protected $fieldsToUpdate = ['name'];
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class StockMvtReasonLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Admin.Catalog.Feature';
protected $keys = ['id_stock_mvt_reason'];
protected $fieldsToUpdate = ['name'];
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class SupplyOrderStateLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Admin.Orderscustomers.Feature';
protected $keys = ['id_supply_order_state'];
protected $fieldsToUpdate = ['name'];
}

40
classes/lang/TabLang.php Normal file
View File

@@ -0,0 +1,40 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
/**
* Translates content from the tab entity
*/
class TabLangCore extends DataLangCore
{
protected $domain = 'Admin.Navigation.Menu';
protected $keys = ['id_tab'];
protected $fieldsToUpdate = ['name'];
/**
* @param string $field
* @param string|array $value
*
* @return string
*/
public function getFieldValue($field, $value)
{
$domain = '';
if (is_array($value)) {
list($message, $domain) = $value;
} else {
$message = $value;
}
return $this->translator->trans(
$message,
[],
(!empty($domain)) ? $domain : $this->domain,
$this->locale
);
}
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
class ThemeLangCore extends DataLangCore
{
// Don't replace domain in init() with $this->domain for translation parsing
protected $domain = 'Admin.Design.Feature';
protected $keys = [];
protected $fieldsToUpdate = ['name', 'description'];
}