English Translation Added To All Locale
This commit is contained in:
parent
a397ea9c90
commit
188efeb4ee
|
|
@ -634,6 +634,9 @@ return [
|
|||
'use_in_flat' => "إنشاء في جدول المنتجات المسطحة",
|
||||
'is_comparable' => "السمة قابلة للمقارنة",
|
||||
'default_null_option' => 'إنشاء خيار فارغ افتراضي',
|
||||
'validations' => [
|
||||
'max-size' => 'The image size must be less than 600 KB'
|
||||
],
|
||||
],
|
||||
'families' => [
|
||||
'title' => 'الأسر',
|
||||
|
|
|
|||
|
|
@ -624,6 +624,9 @@ return [
|
|||
'use_in_flat' => 'In Produkt Flat Tabelle erstellen',
|
||||
'is_comparable' => 'Attribut ist vergleichbar',
|
||||
'default_null_option' => 'Erstellen Sie eine leere Standardoption',
|
||||
'validations' => [
|
||||
'max-size' => 'The image size must be less than 600 KB'
|
||||
],
|
||||
],
|
||||
'families' =>
|
||||
[
|
||||
|
|
|
|||
|
|
@ -645,6 +645,9 @@ return [
|
|||
'use_in_flat' => "Create in Product Flat Table",
|
||||
'is_comparable' => "Attribute is comparable",
|
||||
'default_null_option' => 'Create default empty option',
|
||||
'validations' => [
|
||||
'max-size' => 'The image size must be less than 600 KB'
|
||||
]
|
||||
],
|
||||
'families' => [
|
||||
'title' => 'Families',
|
||||
|
|
|
|||
|
|
@ -645,6 +645,9 @@ return [
|
|||
'use_in_flat' => "Crear en tabla plana de productos",
|
||||
'is_comparable' => "El atributo es comparable",
|
||||
'default_null_option' => 'Crear opción vacía por defecto',
|
||||
'validations' => [
|
||||
'max-size' => 'The image size must be less than 600 KB'
|
||||
],
|
||||
],
|
||||
'families' => [
|
||||
'title' => 'Familias',
|
||||
|
|
|
|||
|
|
@ -634,6 +634,9 @@ return [
|
|||
'use_in_flat' => 'اضافه به جدول flat (product_flat)',
|
||||
'is_comparable' => "ویژگی قابل مقایسه است",
|
||||
'default_null_option' => 'گزینه پیش فرض خالی ایجاد کنید',
|
||||
'validations' => [
|
||||
'max-size' => 'The image size must be less than 600 KB'
|
||||
],
|
||||
],
|
||||
'families' => [
|
||||
'title' => 'ویژگی ها',
|
||||
|
|
|
|||
|
|
@ -644,6 +644,9 @@ return [
|
|||
'use_in_flat' => 'Créer dans la table plate du produit',
|
||||
'is_comparable' => 'L\'attribut est comparable',
|
||||
'default_null_option' => 'Créer une option vide par défaut',
|
||||
'validations' => [
|
||||
'max-size' => 'The image size must be less than 600 KB'
|
||||
],
|
||||
],
|
||||
|
||||
'families' => [
|
||||
|
|
|
|||
|
|
@ -634,6 +634,9 @@ return [
|
|||
'use_in_flat' => "Crea in tabella Product flat",
|
||||
'is_comparable' => "L'attributo è comparabile",
|
||||
'default_null_option' => 'Crea opzione predefinita vuota',
|
||||
'validations' => [
|
||||
'max-size' => 'The image size must be less than 600 KB'
|
||||
],
|
||||
],
|
||||
'families' => [
|
||||
'title' => 'Famiglie',
|
||||
|
|
|
|||
|
|
@ -631,6 +631,9 @@ return [
|
|||
'use_in_flat' => "Create in Product Flat Table",
|
||||
'is_comparable' => "Attribuut is vergelijkbaar ",
|
||||
'default_null_option' => 'Create default empty option',
|
||||
'validations' => [
|
||||
'max-size' => 'The image size must be less than 600 KB'
|
||||
],
|
||||
],
|
||||
'families' => [
|
||||
'title' => 'Families',
|
||||
|
|
|
|||
|
|
@ -633,6 +633,9 @@ return [
|
|||
'use_in_flat' => "Utwórz w płaskiej tabeli produktu",
|
||||
'is_comparable' => "Atrybut jest porównywalny",
|
||||
'default_null_option' => 'Utwórz domyślną pustą opcję',
|
||||
'validations' => [
|
||||
'max-size' => 'The image size must be less than 600 KB'
|
||||
],
|
||||
],
|
||||
'families' => [
|
||||
'title' => 'Rodziny atrybutów',
|
||||
|
|
|
|||
|
|
@ -632,6 +632,9 @@ return [
|
|||
'use_in_flat' => "Criar na tabela plana do produto",
|
||||
'is_comparable' => "O atributo é comparável",
|
||||
'default_null_option' => 'Criar opção vazia padrão',
|
||||
'validations' => [
|
||||
'max-size' => 'The image size must be less than 600 KB'
|
||||
],
|
||||
],
|
||||
'families' => [
|
||||
'title' => 'Famílias',
|
||||
|
|
|
|||
|
|
@ -627,6 +627,9 @@ return [
|
|||
'use_in_flat' => "Ürün Tablosu Oluştur",
|
||||
'is_comparable' => "Nitelik kıyaslanabilir",
|
||||
'default_null_option' => 'Varsayılan boş seçenek oluştur',
|
||||
'validations' => [
|
||||
'max-size' => 'The image size must be less than 600 KB'
|
||||
],
|
||||
],
|
||||
'families' => [
|
||||
'title' => 'Küme',
|
||||
|
|
|
|||
|
|
@ -364,7 +364,7 @@
|
|||
<div class="control-group" :class="[errors.has('options[' + row.id + '][swatch_value]') ? 'has-error' : '']">
|
||||
<img style="width: 36px;height: 36px;vertical-align: middle;background: #F2F2F2;border-radius: 2px;margin-right: 10px;" v-if="row.swatch_value_url" :src="row.swatch_value_url"/>
|
||||
<input type="file" v-validate="'size:600'" accept="image/*" :name="'options[' + row.id + '][swatch_value]'"/>
|
||||
<span class="control-error" v-if="errors.has('options[' + row.id + '][swatch_value]')" v-text="'The image size must be less than 600 KB'"></span>
|
||||
<span class="control-error" v-if="errors.has('options[' + row.id + '][swatch_value]')" v-text="'{{ __('admin::app.catalog.attributes.validations.max-size') }}'"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
|
|
|||
|
|
@ -2,16 +2,16 @@
|
|||
|
||||
namespace Webkul\Attribute\Repositories;
|
||||
|
||||
use Webkul\Core\Eloquent\Repository;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
use Webkul\Attribute\Repositories\AttributeOptionRepository;
|
||||
use Illuminate\Container\Container as App;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
use Illuminate\Support\Str;
|
||||
use Webkul\Attribute\Repositories\AttributeOptionRepository;
|
||||
use Webkul\Core\Eloquent\Repository;
|
||||
|
||||
class AttributeRepository extends Repository
|
||||
{
|
||||
/**
|
||||
* AttributeOptionRepository object
|
||||
* Attribute option repository instance.
|
||||
*
|
||||
* @var \Webkul\Attribute\Repositories\AttributeOptionRepository
|
||||
*/
|
||||
|
|
@ -26,24 +26,25 @@ class AttributeRepository extends Repository
|
|||
public function __construct(
|
||||
AttributeOptionRepository $attributeOptionRepository,
|
||||
App $app
|
||||
)
|
||||
{
|
||||
) {
|
||||
$this->attributeOptionRepository = $attributeOptionRepository;
|
||||
|
||||
parent::__construct($app);
|
||||
}
|
||||
|
||||
/**
|
||||
* Specify Model class name
|
||||
* Specify model class name.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
function model()
|
||||
public function model()
|
||||
{
|
||||
return 'Webkul\Attribute\Contracts\Attribute';
|
||||
}
|
||||
|
||||
/**
|
||||
* Create attribute.
|
||||
*
|
||||
* @param array $data
|
||||
* @return \Webkul\Attribute\Contracts\Attribute
|
||||
*/
|
||||
|
|
@ -73,6 +74,8 @@ class AttributeRepository extends Repository
|
|||
}
|
||||
|
||||
/**
|
||||
* Update attribute.
|
||||
*
|
||||
* @param array $data
|
||||
* @param int $id
|
||||
* @param string $attribute
|
||||
|
|
@ -114,6 +117,8 @@ class AttributeRepository extends Repository
|
|||
}
|
||||
|
||||
/**
|
||||
* Delete attribute.
|
||||
*
|
||||
* @param int $id
|
||||
* @return void
|
||||
*/
|
||||
|
|
@ -127,6 +132,8 @@ class AttributeRepository extends Repository
|
|||
}
|
||||
|
||||
/**
|
||||
* Validate user input.
|
||||
*
|
||||
* @param array $data
|
||||
* @return array
|
||||
*/
|
||||
|
|
@ -148,6 +155,8 @@ class AttributeRepository extends Repository
|
|||
}
|
||||
|
||||
/**
|
||||
* Get filter attributes.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getFilterAttributes()
|
||||
|
|
@ -156,6 +165,7 @@ class AttributeRepository extends Repository
|
|||
}
|
||||
|
||||
/**
|
||||
* Get product default attributes.
|
||||
*
|
||||
* @param array $codes
|
||||
* @return array
|
||||
|
|
@ -185,6 +195,8 @@ class AttributeRepository extends Repository
|
|||
}
|
||||
|
||||
/**
|
||||
* Get attribute by code.
|
||||
*
|
||||
* @param string $code
|
||||
* @return \Webkul\Attribute\Contracts\Attribute
|
||||
*/
|
||||
|
|
@ -200,6 +212,8 @@ class AttributeRepository extends Repository
|
|||
}
|
||||
|
||||
/**
|
||||
* Get family attributes.
|
||||
*
|
||||
* @param \Webkul\Attribute\Contracts\AttributeFamily $attributeFamily
|
||||
* @return \Webkul\Attribute\Contracts\Attribute
|
||||
*/
|
||||
|
|
@ -215,6 +229,8 @@ class AttributeRepository extends Repository
|
|||
}
|
||||
|
||||
/**
|
||||
* Get partials.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getPartial()
|
||||
|
|
@ -223,13 +239,13 @@ class AttributeRepository extends Repository
|
|||
|
||||
$trimmed = [];
|
||||
|
||||
foreach($attributes as $key => $attribute) {
|
||||
if ($attribute->code != 'tax_category_id'
|
||||
&& (
|
||||
$attribute->type == 'select'
|
||||
foreach ($attributes as $key => $attribute) {
|
||||
if (
|
||||
$attribute->code != 'tax_category_id'
|
||||
&& ($attribute->type == 'select'
|
||||
|| $attribute->type == 'multiselect'
|
||||
|| $attribute->code == 'sku'
|
||||
)) {
|
||||
|| $attribute->code == 'sku')
|
||||
) {
|
||||
if ($attribute->options()->exists()) {
|
||||
array_push($trimmed, [
|
||||
'id' => $attribute->id,
|
||||
|
|
@ -249,7 +265,6 @@ class AttributeRepository extends Repository
|
|||
'options' => null,
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue