Skip to content

Commit

Permalink
[Quick order list] Change 'plural' string to 'singular' when removing…
Browse files Browse the repository at this point in the history
… '1 item' on 'Remove all' confirmation (#3203)

* Change the message when removing only one item from the QOL

* Update 20 translation files

* Update 6 translation files

* Update 4 translation files

---------

Co-authored-by: translation-platform[bot] <34770790+translation-platform[bot]@users.noreply.github.com>
  • Loading branch information
eugenekasimov and translation-platform[bot] authored Jan 23, 2024
1 parent f6dae5f commit b82d852
Show file tree
Hide file tree
Showing 32 changed files with 66 additions and 31 deletions.
3 changes: 2 additions & 1 deletion locales/bg-BG.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@
"total_items": "Общо артикули",
"remove_all_items_confirmation": "Премахване на всички {{ quantity }} артикула от количката?",
"remove_all": "Премахване на всички",
"cancel": "Отказ"
"cancel": "Отказ",
"remove_all_single_item_confirmation": "Премахване на 1 артикул от количката?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@
"total_items": "Celkový počet položek",
"remove_all_items_confirmation": "Chcete z košíku odebrat všechny položky ({{ quantity }})?",
"remove_all": "Odebrat vše",
"cancel": "Zrušit"
"cancel": "Zrušit",
"remove_all_single_item_confirmation": "Chcete odebrat 1 položku z košíku?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@
"total_items": "Varer i alt",
"remove_all_items_confirmation": "Vil du fjerne alle {{ quantity }} varer fra din indkøbskurv?",
"remove_all": "Fjern alle",
"cancel": "Annuller"
"cancel": "Annuller",
"remove_all_single_item_confirmation": "Vil du fjerne 1 vare fra din indkøbskurv?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@
"total_items": "Artikel gesamt",
"remove_all_items_confirmation": "Alle {{ quantity }} Artikel aus deinem Warenkorb entfernen?",
"remove_all": "Alle entfernen",
"cancel": "Abbrechen"
"cancel": "Abbrechen",
"remove_all_single_item_confirmation": "1 Artikel aus dem Warenkorb entfernen?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@
"total_items": "Σύνολο προϊόντων",
"remove_all_items_confirmation": "Να καταργηθούν και τα {{ quantity }} προϊόντα από το καλάθι σας;",
"remove_all": "Κατάργηση όλων",
"cancel": "Ακύρωση"
"cancel": "Ακύρωση",
"remove_all_single_item_confirmation": "Να καταργηθεί 1 προϊόν από το καλάθι σας;"
}
},
"localization": {
Expand Down
1 change: 1 addition & 0 deletions locales/en.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@
},
"product_variants": "Product variants",
"total_items": "Total items",
"remove_all_single_item_confirmation": "Remove 1 item from your cart?",
"remove_all_items_confirmation": "Remove all {{ quantity }} items from your cart?",
"remove_all": "Remove all",
"cancel": "Cancel"
Expand Down
3 changes: 2 additions & 1 deletion locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@
"total_items": "Total de artículos",
"remove_all_items_confirmation": "¿Eliminar los {{ quantity }} artículos del carrito?",
"remove_all": "Eliminar todos",
"cancel": "Cancelar"
"cancel": "Cancelar",
"remove_all_single_item_confirmation": "¿Eliminar 1 artículo de tu carrito?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@
"total_items": "Tuotteita yhteensä",
"remove_all_items_confirmation": "Poistetaanko kaikki {{ quantity }} tuotetta ostoskorista?",
"remove_all": "Poista kaikki",
"cancel": "Peruuta"
"cancel": "Peruuta",
"remove_all_single_item_confirmation": "Poistetaanko 1 tuote ostoskorista?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@
"total_items": "Total des articles",
"remove_all_items_confirmation": "Retirer les {{ quantity }} articles de votre panier ?",
"remove_all": "Tout retirer",
"cancel": "Annuler"
"cancel": "Annuler",
"remove_all_single_item_confirmation": "Supprimer 1 article de votre panier ?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/hr-HR.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@
"total_items": "Ukupni broj artikala",
"remove_all_items_confirmation": "Želite li ukloniti sve artikle ({{ quantity }}) iz svoje košarice?",
"remove_all": "Ukloni sve",
"cancel": "Odustani"
"cancel": "Odustani",
"remove_all_single_item_confirmation": "Želite li ukloniti 1 artikl iz košarice?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@
"total_items": "Összes termék",
"remove_all_items_confirmation": "Eltávolítod mind a(z) {{ quantity }} terméket a kosárból?",
"remove_all": "Az összes eltávolítása",
"cancel": "Mégse"
"cancel": "Mégse",
"remove_all_single_item_confirmation": "Eltávolítod ezt a(z) 1 terméket a kosárból?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@
"total_items": "Total item",
"remove_all_items_confirmation": "Hapus semua item yang berjumlah {{ quantity }} dari keranjang Anda?",
"remove_all": "Hapus semuanya",
"cancel": "Batalkan"
"cancel": "Batalkan",
"remove_all_single_item_confirmation": "Hapus 1 item dari keranjang Anda?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@
"total_items": "Articoli totali",
"remove_all_items_confirmation": "Rimuovere tutti i {{ quantity }} articoli dal tuo carrello?",
"remove_all": "Rimuovi tutto",
"cancel": "Annulla"
"cancel": "Annulla",
"remove_all_single_item_confirmation": "Rimuovere un articolo dal carrello?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@
"total_items": "アイテムの総数",
"remove_all_items_confirmation": "カートから{{ quantity }}個のアイテムすべてを削除しますか?",
"remove_all": "すべてを削除",
"cancel": "キャンセル"
"cancel": "キャンセル",
"remove_all_single_item_confirmation": "カートからアイテムを1個削除しますか?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@
"total_items": "총 품목 수",
"remove_all_items_confirmation": "카트에서 {{ quantity }}개 품목을 모두 제거하시겠습니까?",
"remove_all": "모두 제거",
"cancel": "취소"
"cancel": "취소",
"remove_all_single_item_confirmation": "카트에서 1개의 품목을 제거하시겠습니까?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/lt-LT.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@
"total_items": "Prekių iš viso",
"remove_all_items_confirmation": "Pašalinti visas {{ quantity }} prekes (-ių) iš krepšelio?",
"remove_all": "Pašalinti viską",
"cancel": "Atšaukti"
"cancel": "Atšaukti",
"remove_all_single_item_confirmation": "Pašalinti 1 prekę iš krepšelio?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/nb.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@
"total_items": "Totalt antall varer",
"remove_all_items_confirmation": "Vil du fjerne alle {{ quantity }} varer fra handlekurven?",
"remove_all": "Fjern alle",
"cancel": "Avbryt"
"cancel": "Avbryt",
"remove_all_single_item_confirmation": "Vil du fjerne én vare fra handlekurven?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@
"total_items": "Totaal aantal artikelen",
"remove_all_items_confirmation": "Alle {{ quantity }} artikelen uit je winkelwagen verwijderen?",
"remove_all": "Alles verwijderen",
"cancel": "Annuleren"
"cancel": "Annuleren",
"remove_all_single_item_confirmation": "1 artikel uit je winkelwagen verwijderen?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@
"total_items": "Pozycje łącznie",
"remove_all_items_confirmation": "Usunąć wszystkie {{ quantity }} pozycje(-i) z koszyka?",
"remove_all": "Usuń wszystko",
"cancel": "Anuluj"
"cancel": "Anuluj",
"remove_all_single_item_confirmation": "Czy usunąć 1 pozycję z Twojego koszyka?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@
"total_items": "Total de itens",
"remove_all_items_confirmation": "Remover todos os {{ quantity }} itens do carrinho?",
"remove_all": "Remover tudo",
"cancel": "Cancelar"
"cancel": "Cancelar",
"remove_all_single_item_confirmation": "Remover 1 item do carrinho?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/pt-PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@
"total_items": "Total de itens",
"remove_all_items_confirmation": "Remover todos os {{ quantity }} itens do seu carrinho?",
"remove_all": "Remover tudo",
"cancel": "Cancelar"
"cancel": "Cancelar",
"remove_all_single_item_confirmation": "Remover 1 item do seu carrinho?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/ro-RO.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@
"total_items": "Total articole",
"remove_all_items_confirmation": "Elimini toate cele {{ quantity }} articole din coș?",
"remove_all": "Elimină tot",
"cancel": "Anulează"
"cancel": "Anulează",
"remove_all_single_item_confirmation": "Elimini 1 articol din coș?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@
"total_items": "Общее количество товаров",
"remove_all_items_confirmation": "Удалить все товары ({{ quantity }}) из корзины?",
"remove_all": "Удалить все",
"cancel": "Отменить"
"cancel": "Отменить",
"remove_all_single_item_confirmation": "Удалить 1 товар из корзины?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/sk-SK.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@
"total_items": "Celkový počet položiek",
"remove_all_items_confirmation": "Chcete z košíka odobrať všetky položky ({{ quantity }})?",
"remove_all": "Odobrať všetky",
"cancel": "Zrušiť"
"cancel": "Zrušiť",
"remove_all_single_item_confirmation": "Chcete z košíka odobrať 1 položku?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/sl-SI.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@
"total_items": "Skupno število izdelkov",
"remove_all_items_confirmation": "Ali želite iz košarice odstraniti vse izdelke ({{ quantity }})?",
"remove_all": "Odstrani vse",
"cancel": "Prekliči"
"cancel": "Prekliči",
"remove_all_single_item_confirmation": "Ali želite iz košarice odstraniti 1 izdelek?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@
"total_items": "Totalt antal artiklar",
"remove_all_items_confirmation": "Ta bort alla {{ quantity }} artiklar från din varukorg?",
"remove_all": "Ta bort alla",
"cancel": "Avbryt"
"cancel": "Avbryt",
"remove_all_single_item_confirmation": "Vill du ta bort 1 artikel från varukorgen?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/th.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@
"total_items": "รายการสินค้าทั้งหมด",
"remove_all_items_confirmation": "ต้องการลบสินค้าทั้งหมด {{ quantity }} รายการออกจากตะกร้าสินค้าหรือไม่",
"remove_all": "ลบออกทั้งหมด",
"cancel": "ยกเลิก"
"cancel": "ยกเลิก",
"remove_all_single_item_confirmation": "ต้องการลบ 1 รายการออกจากตะกร้าสินค้าหรือไม่"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@
"total_items": "Toplam ürün sayısı",
"remove_all_items_confirmation": "{{ quantity }} ürünün tamamı sepetten kaldırılsın mı?",
"remove_all": "Tümünü kaldır",
"cancel": "İptal"
"cancel": "İptal",
"remove_all_single_item_confirmation": "1 ürün sepetten kaldırılsın mı?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@
"total_items": "Tổng số mặt hàng",
"remove_all_items_confirmation": "Xóa tất cả {{ quantity }} mặt hàng khỏi giỏ hàng của bạn?",
"remove_all": "Xóa tất cả",
"cancel": "Hủy"
"cancel": "Hủy",
"remove_all_single_item_confirmation": "Xóa 1 mặt hàng khỏi giỏ hàng?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@
"total_items": "商品总数",
"remove_all_items_confirmation": "删除您购物车中的全部 {{ quantity }} 件商品?",
"remove_all": "全部删除",
"cancel": "取消"
"cancel": "取消",
"remove_all_single_item_confirmation": "从购物车中删除 1 件商品?"
}
},
"localization": {
Expand Down
3 changes: 2 additions & 1 deletion locales/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@
"total_items": "品項總數",
"remove_all_items_confirmation": "是否要從購物車移除全部 {{ quantity }} 個品項?",
"remove_all": "全部移除",
"cancel": "取消"
"cancel": "取消",
"remove_all_single_item_confirmation": "是否要從您的購物車移除 1 個品項?"
}
},
"localization": {
Expand Down
6 changes: 5 additions & 1 deletion sections/quick-order-list.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,11 @@
</div>
<div class="quick-order-list-total__confirmation hidden">
<span class="text-body">
{{ 'sections.quick_order_list.remove_all_items_confirmation' | t: quantity: items_in_cart }}
{%- if items_in_cart == 1 -%}
{{ 'sections.quick_order_list.remove_all_single_item_confirmation' | t }}
{%- else -%}
{{ 'sections.quick_order_list.remove_all_items_confirmation' | t: quantity: items_in_cart }}
{%- endif -%}
</span>
<quick-order-list-remove-all-button
data-action="remove"
Expand Down

0 comments on commit b82d852

Please sign in to comment.