English Translation Added To All Locale

This commit is contained in:
devansh bawari 2021-09-14 12:20:38 +05:30
parent a397ea9c90
commit 188efeb4ee
13 changed files with 65 additions and 17 deletions

View File

@ -634,6 +634,9 @@ return [
'use_in_flat' => "إنشاء في جدول المنتجات المسطحة", 'use_in_flat' => "إنشاء في جدول المنتجات المسطحة",
'is_comparable' => "السمة قابلة للمقارنة", 'is_comparable' => "السمة قابلة للمقارنة",
'default_null_option' => 'إنشاء خيار فارغ افتراضي', 'default_null_option' => 'إنشاء خيار فارغ افتراضي',
'validations' => [
'max-size' => 'The image size must be less than 600 KB'
],
], ],
'families' => [ 'families' => [
'title' => 'الأسر', 'title' => 'الأسر',

View File

@ -624,6 +624,9 @@ return [
'use_in_flat' => 'In Produkt Flat Tabelle erstellen', 'use_in_flat' => 'In Produkt Flat Tabelle erstellen',
'is_comparable' => 'Attribut ist vergleichbar', 'is_comparable' => 'Attribut ist vergleichbar',
'default_null_option' => 'Erstellen Sie eine leere Standardoption', 'default_null_option' => 'Erstellen Sie eine leere Standardoption',
'validations' => [
'max-size' => 'The image size must be less than 600 KB'
],
], ],
'families' => 'families' =>
[ [

View File

@ -645,6 +645,9 @@ return [
'use_in_flat' => "Create in Product Flat Table", 'use_in_flat' => "Create in Product Flat Table",
'is_comparable' => "Attribute is comparable", 'is_comparable' => "Attribute is comparable",
'default_null_option' => 'Create default empty option', 'default_null_option' => 'Create default empty option',
'validations' => [
'max-size' => 'The image size must be less than 600 KB'
]
], ],
'families' => [ 'families' => [
'title' => 'Families', 'title' => 'Families',

View File

@ -645,6 +645,9 @@ return [
'use_in_flat' => "Crear en tabla plana de productos", 'use_in_flat' => "Crear en tabla plana de productos",
'is_comparable' => "El atributo es comparable", 'is_comparable' => "El atributo es comparable",
'default_null_option' => 'Crear opción vacía por defecto', 'default_null_option' => 'Crear opción vacía por defecto',
'validations' => [
'max-size' => 'The image size must be less than 600 KB'
],
], ],
'families' => [ 'families' => [
'title' => 'Familias', 'title' => 'Familias',

View File

@ -634,6 +634,9 @@ return [
'use_in_flat' => 'اضافه به جدول flat (product_flat)', 'use_in_flat' => 'اضافه به جدول flat (product_flat)',
'is_comparable' => "ویژگی قابل مقایسه است", 'is_comparable' => "ویژگی قابل مقایسه است",
'default_null_option' => 'گزینه پیش فرض خالی ایجاد کنید', 'default_null_option' => 'گزینه پیش فرض خالی ایجاد کنید',
'validations' => [
'max-size' => 'The image size must be less than 600 KB'
],
], ],
'families' => [ 'families' => [
'title' => 'ویژگی ها', 'title' => 'ویژگی ها',

View File

@ -644,6 +644,9 @@ return [
'use_in_flat' => 'Créer dans la table plate du produit', 'use_in_flat' => 'Créer dans la table plate du produit',
'is_comparable' => 'L\'attribut est comparable', 'is_comparable' => 'L\'attribut est comparable',
'default_null_option' => 'Créer une option vide par défaut', 'default_null_option' => 'Créer une option vide par défaut',
'validations' => [
'max-size' => 'The image size must be less than 600 KB'
],
], ],
'families' => [ 'families' => [

View File

@ -634,6 +634,9 @@ return [
'use_in_flat' => "Crea in tabella Product flat", 'use_in_flat' => "Crea in tabella Product flat",
'is_comparable' => "L'attributo è comparabile", 'is_comparable' => "L'attributo è comparabile",
'default_null_option' => 'Crea opzione predefinita vuota', 'default_null_option' => 'Crea opzione predefinita vuota',
'validations' => [
'max-size' => 'The image size must be less than 600 KB'
],
], ],
'families' => [ 'families' => [
'title' => 'Famiglie', 'title' => 'Famiglie',

View File

@ -631,6 +631,9 @@ return [
'use_in_flat' => "Create in Product Flat Table", 'use_in_flat' => "Create in Product Flat Table",
'is_comparable' => "Attribuut is vergelijkbaar ", 'is_comparable' => "Attribuut is vergelijkbaar ",
'default_null_option' => 'Create default empty option', 'default_null_option' => 'Create default empty option',
'validations' => [
'max-size' => 'The image size must be less than 600 KB'
],
], ],
'families' => [ 'families' => [
'title' => 'Families', 'title' => 'Families',

View File

@ -633,6 +633,9 @@ return [
'use_in_flat' => "Utwórz w płaskiej tabeli produktu", 'use_in_flat' => "Utwórz w płaskiej tabeli produktu",
'is_comparable' => "Atrybut jest porównywalny", 'is_comparable' => "Atrybut jest porównywalny",
'default_null_option' => 'Utwórz domyślną pustą opcję', 'default_null_option' => 'Utwórz domyślną pustą opcję',
'validations' => [
'max-size' => 'The image size must be less than 600 KB'
],
], ],
'families' => [ 'families' => [
'title' => 'Rodziny atrybutów', 'title' => 'Rodziny atrybutów',

View File

@ -632,6 +632,9 @@ return [
'use_in_flat' => "Criar na tabela plana do produto", 'use_in_flat' => "Criar na tabela plana do produto",
'is_comparable' => "O atributo é comparável", 'is_comparable' => "O atributo é comparável",
'default_null_option' => 'Criar opção vazia padrão', 'default_null_option' => 'Criar opção vazia padrão',
'validations' => [
'max-size' => 'The image size must be less than 600 KB'
],
], ],
'families' => [ 'families' => [
'title' => 'Famílias', 'title' => 'Famílias',

View File

@ -627,6 +627,9 @@ return [
'use_in_flat' => "Ürün Tablosu Oluştur", 'use_in_flat' => "Ürün Tablosu Oluştur",
'is_comparable' => "Nitelik kıyaslanabilir", 'is_comparable' => "Nitelik kıyaslanabilir",
'default_null_option' => 'Varsayılan boş seçenek oluştur', 'default_null_option' => 'Varsayılan boş seçenek oluştur',
'validations' => [
'max-size' => 'The image size must be less than 600 KB'
],
], ],
'families' => [ 'families' => [
'title' => 'Küme', 'title' => 'Küme',

View File

@ -364,7 +364,7 @@
<div class="control-group" :class="[errors.has('options[' + row.id + '][swatch_value]') ? 'has-error' : '']"> <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"/> <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]'"/> <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> </div>
</td> </td>

View File

@ -2,16 +2,16 @@
namespace Webkul\Attribute\Repositories; 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\Container\Container as App;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Webkul\Attribute\Repositories\AttributeOptionRepository;
use Webkul\Core\Eloquent\Repository;
class AttributeRepository extends Repository class AttributeRepository extends Repository
{ {
/** /**
* AttributeOptionRepository object * Attribute option repository instance.
* *
* @var \Webkul\Attribute\Repositories\AttributeOptionRepository * @var \Webkul\Attribute\Repositories\AttributeOptionRepository
*/ */
@ -26,24 +26,25 @@ class AttributeRepository extends Repository
public function __construct( public function __construct(
AttributeOptionRepository $attributeOptionRepository, AttributeOptionRepository $attributeOptionRepository,
App $app App $app
) ) {
{
$this->attributeOptionRepository = $attributeOptionRepository; $this->attributeOptionRepository = $attributeOptionRepository;
parent::__construct($app); parent::__construct($app);
} }
/** /**
* Specify Model class name * Specify model class name.
* *
* @return mixed * @return mixed
*/ */
function model() public function model()
{ {
return 'Webkul\Attribute\Contracts\Attribute'; return 'Webkul\Attribute\Contracts\Attribute';
} }
/** /**
* Create attribute.
*
* @param array $data * @param array $data
* @return \Webkul\Attribute\Contracts\Attribute * @return \Webkul\Attribute\Contracts\Attribute
*/ */
@ -73,6 +74,8 @@ class AttributeRepository extends Repository
} }
/** /**
* Update attribute.
*
* @param array $data * @param array $data
* @param int $id * @param int $id
* @param string $attribute * @param string $attribute
@ -114,6 +117,8 @@ class AttributeRepository extends Repository
} }
/** /**
* Delete attribute.
*
* @param int $id * @param int $id
* @return void * @return void
*/ */
@ -127,6 +132,8 @@ class AttributeRepository extends Repository
} }
/** /**
* Validate user input.
*
* @param array $data * @param array $data
* @return array * @return array
*/ */
@ -148,6 +155,8 @@ class AttributeRepository extends Repository
} }
/** /**
* Get filter attributes.
*
* @return array * @return array
*/ */
public function getFilterAttributes() public function getFilterAttributes()
@ -156,6 +165,7 @@ class AttributeRepository extends Repository
} }
/** /**
* Get product default attributes.
* *
* @param array $codes * @param array $codes
* @return array * @return array
@ -185,6 +195,8 @@ class AttributeRepository extends Repository
} }
/** /**
* Get attribute by code.
*
* @param string $code * @param string $code
* @return \Webkul\Attribute\Contracts\Attribute * @return \Webkul\Attribute\Contracts\Attribute
*/ */
@ -200,6 +212,8 @@ class AttributeRepository extends Repository
} }
/** /**
* Get family attributes.
*
* @param \Webkul\Attribute\Contracts\AttributeFamily $attributeFamily * @param \Webkul\Attribute\Contracts\AttributeFamily $attributeFamily
* @return \Webkul\Attribute\Contracts\Attribute * @return \Webkul\Attribute\Contracts\Attribute
*/ */
@ -215,6 +229,8 @@ class AttributeRepository extends Repository
} }
/** /**
* Get partials.
*
* @return array * @return array
*/ */
public function getPartial() public function getPartial()
@ -223,13 +239,13 @@ class AttributeRepository extends Repository
$trimmed = []; $trimmed = [];
foreach($attributes as $key => $attribute) { foreach ($attributes as $key => $attribute) {
if ($attribute->code != 'tax_category_id' if (
&& ( $attribute->code != 'tax_category_id'
$attribute->type == 'select' && ($attribute->type == 'select'
|| $attribute->type == 'multiselect' || $attribute->type == 'multiselect'
|| $attribute->code == 'sku' || $attribute->code == 'sku')
)) { ) {
if ($attribute->options()->exists()) { if ($attribute->options()->exists()) {
array_push($trimmed, [ array_push($trimmed, [
'id' => $attribute->id, 'id' => $attribute->id,
@ -249,7 +265,6 @@ class AttributeRepository extends Repository
'options' => null, 'options' => null,
]); ]);
} }
} }
} }