mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
Refactor unit price i18n keys
- Now got two keys: `js.admin.unit_price_tooltip` and `js.shopfront.unit_price_tooltip`
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
"question-mark-with-tooltip-append-to-body" => "true",
|
||||
"question-mark-with-tooltip-placement" => "top",
|
||||
"question-mark-with-tooltip-animation" => true,
|
||||
key: "'js.shopfront.unit_price_tooltip.shopfront'"}
|
||||
key: "'js.shopfront.unit_price_tooltip'"}
|
||||
{{ variant.unit_price_price | localizeCurrency }} / {{ variant.unit_price_unit }}
|
||||
|
||||
.medium-2.large-2.columns.total-price
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
"question-mark-with-tooltip-append-to-body" => "true",
|
||||
"question-mark-with-tooltip-placement" => "top",
|
||||
"question-mark-with-tooltip-animation" => true,
|
||||
key: "'js.shopfront.unit_price_tooltip'",
|
||||
context: "'cart-sidebar'"}
|
||||
.options-text
|
||||
{{ line_item.variant.unit_price_price | localizeCurrency }} / {{ line_item.variant.unit_price_unit }}
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"question-mark-with-tooltip-append-to-body" => "true",
|
||||
"question-mark-with-tooltip-placement" => "top",
|
||||
"question-mark-with-tooltip-animation" => true,
|
||||
key: "'js.shopfront.unit_price_tooltip.admin'"}
|
||||
key: "'js.admin.unit_price_tooltip'"}
|
||||
%br/
|
||||
= f.text_field :price, {"class" => 'fullwidth', "disabled" => true, "ng-model" => "unit_price"}
|
||||
%div{style: "color: black"}
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
"question-mark-with-tooltip-append-to-body" => "true",
|
||||
"question-mark-with-tooltip-placement" => "top",
|
||||
"question-mark-with-tooltip-animation" => true,
|
||||
key: "'js.shopfront.unit_price_tooltip.admin'"}
|
||||
key: "'js.admin.unit_price_tooltip'"}
|
||||
%br/
|
||||
= f.text_field :price, {"class" => 'fullwidth', "disabled" => true, "ng-model" => "unit_price"}
|
||||
%div{style: "color: black"}
|
||||
|
||||
@@ -2551,6 +2551,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using
|
||||
There was a problem adding this product to the cart.
|
||||
Perhaps it has become unavailable or the shop is closing.
|
||||
admin:
|
||||
unit_price_tooltip: "The unit price increases transparency by allowing your customers to easily compare prices between different products and packaging sizes. Note, that the final unit price displayed in the shopfront might differ as it is includes taxes & fees."
|
||||
enterprise_limit_reached: "You have reached the standard limit of enterprises per account. Write to %{contact_email} if you need to increase it."
|
||||
modals:
|
||||
got_it: "Got it"
|
||||
@@ -2789,9 +2790,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using
|
||||
min_quantity: "Min quantity"
|
||||
max_quantity: "Max quantity"
|
||||
price_breakdown: "Price breakdown"
|
||||
unit_price_tooltip:
|
||||
shopfront: "This is the unit price of this product. It allows you to compare the price of products independent of packaging sizes & weights."
|
||||
admin: "The unit price increases transparency by allowing your customers to easily compare prices between different products and packaging sizes. Note, that the final unit price displayed in the shopfront might differ as it is includes taxes & fees."
|
||||
unit_price_tooltip: "This is the unit price of this product. It allows you to compare the price of products independent of packaging sizes & weights."
|
||||
variants:
|
||||
on_demand:
|
||||
"yes": "On demand"
|
||||
@@ -3258,6 +3257,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using
|
||||
header:
|
||||
store: Store
|
||||
admin:
|
||||
unit_price_tooltip: "The unit price increases transparency by allowing your customers to easily compare prices between different products and packaging sizes. Note, that the final unit price displayed in the shopfront might differ as it is includes taxes & fees."
|
||||
tab:
|
||||
dashboard: "Dashboard"
|
||||
orders: "Orders"
|
||||
|
||||
Reference in New Issue
Block a user