Merge pull request #9389 from jibees/9388-handle-plural-in-order-selection-component

Handle plural (and 0) on orders selection component
This commit is contained in:
jibees
2022-07-26 15:57:58 +02:00
committed by GitHub
2 changed files with 5 additions and 3 deletions

View File

@@ -24,8 +24,7 @@
- if Spree::Config[:enable_invoices?]
.ofn-drop-down-with-prepend
.ofn-drop-down-prepend{"ng-class": "selected_orders.length == 0 ? 'disabled' : ''"}
{{ selected_orders.length }}
=t('.selected')
{{ "spree.admin.orders.index.selected" | t:{count: selected_orders.length} }}
.ofn-drop-down{"ng-class": "selected_orders.length == 0 ? 'disabled' : ''"}
%span{ :class => 'icon-reorder' }
="#{t('admin.actions')}".html_safe

View File

@@ -3786,7 +3786,10 @@ See the %{link} to find out more about %{sitename}'s features and to start using
results_found: "%{number} Results found."
viewing: "Viewing %{start} to %{end}."
print_invoices: "Print Invoices"
selected: selected
selected:
zero: "No order selected"
one: "1 order selected"
other: "%{count} orders selected"
sortable_header:
payment_state: "Payment State"
shipment_state: "Shipment State"