Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion packages/reaction-i18n/private/data/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@
"createTag": "Create Tag"
},
"productDetailEdit": {
"editOption": "Edit option",
"productSettings": "Product Settings",
"product": "Product",
"size": "Size",
Expand All @@ -234,6 +235,9 @@
"duplicateVariant": "Duplicate",
"addVariantOption": "Add Option",
"removeVariant": "Remove",
"removeVariantConfirm": "Are you sure you want to delete {{title}}",
"thisVariant": "this variant",
"thisOption": "this option",
"duplicateProduct": "Duplicate Product",
"pinProduct": "Pin Product",
"toggleSize": "Toggle Size",
Expand All @@ -256,8 +260,11 @@
"weight": "Weight",
"taxable": "Taxable",
"inventoryManagement": "Inventory tracking",
"inventoryManagementLabel": "Register product in inventory system and track its status",
"inventoryPolicy": "Deny when out of stock",
"lowInventoryWarningThreshold": "Warn @"
"inventoryPolicyLabel": "Do not sell the product variant when it is not in stock",
"lowInventoryWarningThreshold": "Warn @",
"lowInventoryWarningThresholdLabel": "Warn customers that the product will be close to sold out when the quantity reaches the next threshold"
},
"variantList": {
"moreOptions": "There are more options available for this selection.",
Expand Down
19 changes: 13 additions & 6 deletions packages/reaction-i18n/private/data/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
"hideBarcodes": "Скрыть штрих-коды",
"options": "Варианты",
"addToCart": "Добавить в корзину",
"chooseOptions": "Пожалуйста выберите вариант прежде чем добавить товар в корзину",
"chooseOptions": "Пожалуйста, выберите вариант прежде чем добавить товар в корзину",
"outOfStock": "Извините, этого товара нет в наличии",
"productDeleteError": "Произошла ошибка во время удаления {{product}}.",
"deleteErrorTheProduct": "товара",
Expand Down Expand Up @@ -213,23 +213,27 @@
"createTag": "Create Tag"
},
"productDetailEdit": {
"editOption": "Редактировать вариант",
"productSettings": "Настройки товара",
"product": "Товар",
"size": "Размер",
"title": "Название товара",
"pageTitle": "Название страницы товара",
"vendor": "Производитель",
"vendor": "Изготовитель",
"description": "Добавьте описание товара",
"facebookMsg": "Сообщение Facebook",
"twitterMsg": "Сообщение Twitter",
"pinterestMsg": "Сообщение Pinterest",
"googleplusMsg": "Сообщение Google+",
"duplicateVariant": "Скопировать",
"addVariantOption": "Добавить опцию",
"removeVariant": "Удалить опцию",
"removeVariant": "Удалить",
"removeVariantConfirm": "Вы уверены, что хотите удалить {{title}}?",
"thisVariant": "этот вариант",
"thisOption": "эту опцию",
"duplicateProduct": "Скопировать товар",
"pinProduct": "Закрепить товар",
"toggleSize": "Переключить размер",
"toggleSize": "Поменять размер",
"deleteProduct": "Удалить товар",
"deleteThisProduct": "Удалить этот товар?",
"deleteSelectedProducts": "Удалить выбранные товары?",
Expand All @@ -249,11 +253,14 @@
"weight": "Вес",
"taxable": "Налогооблагаемый",
"inventoryManagement": "Следить за кол-вом",
"inventoryManagementLabel": "Сделать товар складским и отслеживать его состояние",
"inventoryPolicy": "Откл. при нуле",
"lowInventoryWarningThreshold": "Сообщить если меньше "
"inventoryPolicyLabel": "Не продавать вариант товара, когда его нет в наличие",
"lowInventoryWarningThreshold": "Предупреждать при",
"lowInventoryWarningThresholdLabel": "Предупреждать покупателей о том, что продукт заканчивается, когда количество достигло следующего порога"
},
"variantList": {
"moreOptions": "Есть еще варианты доступные для этого выбора.",
"moreOptions": "Для этого варианта доступны следующие опции:",
"createVariant": "Создать вариант"
},
"gridPackage": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</div>

{{#if hasPermission "createProduct"}}
<div class="variant-edit hidden-xs">
<div class="variant-edit hidden-xs" title="{{i18n 'productDetailEdit.editOption' 'Edit Option'}}">
<i class="fa fa-pencil fa-lg" data-id="{{_id}}"></i>
</div>
{{/if}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ Template.childVariantForm.events({
"click #remove-child-variant": function (event) {
event.stopPropagation();
event.preventDefault();
let optionTitle = this.optionTitle || "this option";
if (confirm("Are you sure you want to delete " + optionTitle)) {
let id = this._id;
return Meteor.call("products/deleteVariant", id, function (error,
result) {
const title = this.optionTitle || i18next.t("productDetailEdit.thisOption");
if (confirm(i18next.t("productDetailEdit.removeVariantConfirm", { title }))) {
const id = this._id;
return Meteor.call("products/deleteVariant", id, function (error, result) {
// TODO why we have this on option remove?
if (result && ReactionProduct.selectedVariantId() === id) {
return ReactionProduct.setCurrentVariant(null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ Template.variantForm.events({
Meteor.call("products/createVariant", template.data._id);
},
"click .btn-remove-variant": function () {
let title = this.title || "this variant";
if (confirm("Are you sure you want to delete " + title)) {
let id = this._id;
const title = this.title || i18next.t("productDetailEdit.thisVariant");
if (confirm(i18next.t("productDetailEdit.removeVariantConfirm", { title }))) {
const id = this._id;
Meteor.call("products/deleteVariant", id, function (error, result) {
if (result && ReactionProduct.selectedVariantId() === id) {
return ReactionProduct.setCurrentVariant(null);
Expand Down