From 5912b00d4349c779e5362c07f9bcf16dd5b50e2e Mon Sep 17 00:00:00 2001 From: phyusin Date: Fri, 27 Oct 2017 18:15:34 +0630 Subject: [PATCH] add localization text for other modules --- app/views/crm/customers/index.html.erb | 16 +++--- app/views/home/dashboard.html.erb | 8 +-- .../inventory/_inventory_list.html.erb | 10 ++-- app/views/inventory/inventory/index.html.erb | 23 +++++---- .../inventory_definitions/_form.html.erb | 24 ++++----- .../inventory_definitions/edit.html.erb | 6 +-- .../inventory_definitions/new.html.erb | 6 +-- .../inventory/stock_checks/index.html.erb | 33 ++++++++---- app/views/oqs/home/index.html.erb | 4 +- app/views/origami/cash_ins/new.html.erb | 24 ++++----- app/views/origami/cash_outs/new.html.erb | 12 ++--- app/views/origami/home/index.html.erb | 16 +++--- app/views/origami/shifts/show.html.erb | 12 ++--- app/views/print_settings/show.html.erb | 2 +- app/views/settings/accounts/show.html.erb | 2 +- .../settings/cashier_terminals/show.html.erb | 2 +- .../settings/commissioners/show.html.erb | 2 +- app/views/settings/commissions/show.html.erb | 2 +- app/views/settings/employees/show.html.erb | 2 +- app/views/settings/item_sets/show.html.erb | 2 +- .../settings/menu_categories/show.html.erb | 2 +- .../menu_item_attributes/show.html.erb | 2 +- .../menu_item_instances/show.html.erb | 2 +- .../settings/menu_item_options/show.html.erb | 2 +- app/views/settings/menus/show.html.erb | 2 +- .../order_queue_stations/show.html.erb | 2 +- .../payment_method_settings/show.html.erb | 2 +- app/views/settings/products/show.html.erb | 2 +- app/views/settings/promotions/show.html.erb | 2 +- .../settings/simple_menu_items/show.html.erb | 2 +- app/views/settings/tax_profiles/show.html.erb | 2 +- app/views/settings/zones/show.html.erb | 2 +- config/locales/en.yml | 50 +++++++++++++++++-- 33 files changed, 170 insertions(+), 112 deletions(-) diff --git a/app/views/crm/customers/index.html.erb b/app/views/crm/customers/index.html.erb index c14ec832..df9c0950 100755 --- a/app/views/crm/customers/index.html.erb +++ b/app/views/crm/customers/index.html.erb @@ -1,8 +1,8 @@
-
SALE COUNT
+
<%= t :sale_count %>
@@ -22,7 +22,7 @@ attach_money
-
TOTAL SALE
+
<%= t :total_sale %>
@@ -34,7 +34,7 @@ person_add
-
TOTAL CREDIT
+
<%= t :total_credit %>
@@ -45,7 +45,7 @@ credit_card
-
TOTAL CARD
+
<%= t :total_card %>
diff --git a/app/views/inventory/inventory/_inventory_list.html.erb b/app/views/inventory/inventory/_inventory_list.html.erb index bd5f5c38..ff6ccd5d 100755 --- a/app/views/inventory/inventory/_inventory_list.html.erb +++ b/app/views/inventory/inventory/_inventory_list.html.erb @@ -2,11 +2,11 @@ - - - - - + + + + + <% count = 0 diff --git a/app/views/inventory/inventory/index.html.erb b/app/views/inventory/inventory/index.html.erb index ab6b3855..ee62697c 100755 --- a/app/views/inventory/inventory/index.html.erb +++ b/app/views/inventory/inventory/index.html.erb @@ -1,7 +1,7 @@
#ProductMin OrderMax StockCreated byCreated Time<%= t("views.right_panel.detail.product") %><%= t("views.right_panel.detail.min_order") %><%= t("views.right_panel.detail.max_stock") %><%= t("views.right_panel.detail.created_by") %><%= t("views.right_panel.detail.created_time") %>
- - - + + + <%= link_to 'Back', dashboard_path %> diff --git a/app/views/origami/cash_ins/new.html.erb b/app/views/origami/cash_ins/new.html.erb index 405286d3..2d63d8ae 100755 --- a/app/views/origami/cash_ins/new.html.erb +++ b/app/views/origami/cash_ins/new.html.erb @@ -1,42 +1,42 @@
-

Cash In

+

<%= t :cash_in %>


ProductBalance<%= t("views.right_panel.detail.product") %><%= t("views.right_panel.detail.balance") %>
- - - - -
Payment Reference + <%= t :payment_reference %>
Remark + <%= t("views.right_panel.detail.remark") %>
Payment Method + <%= t :payment_method %> - - - - + + + +
Reference Number + <%= t :reference_number %>
Amount + <%= t("views.right_panel.detail.amount") %> @@ -46,8 +46,8 @@
- - + +
diff --git a/app/views/origami/cash_outs/new.html.erb b/app/views/origami/cash_outs/new.html.erb index c503f4dc..e90337bf 100755 --- a/app/views/origami/cash_outs/new.html.erb +++ b/app/views/origami/cash_outs/new.html.erb @@ -1,26 +1,26 @@
-

Cash Out

+

<%= t :cash_out %>

- + - + - +
Payment Reference <%= t :payment_reference %>
Remark <%= t("views.right_panel.detail.remark") %>
Amount <%= t("views.right_panel.detail.amount") %>


- - + +
diff --git a/app/views/origami/home/index.html.erb b/app/views/origami/home/index.html.erb index 5e565f6b..b6a83f30 100755 --- a/app/views/origami/home/index.html.erb +++ b/app/views/origami/home/index.html.erb @@ -6,16 +6,16 @@ @@ -106,14 +106,14 @@
- - + + - + <%if current_login_employee.role == "administrator" || current_login_employee.role == "manager" %> - <%end%> diff --git a/app/views/origami/shifts/show.html.erb b/app/views/origami/shifts/show.html.erb index be924d4c..c805ff48 100755 --- a/app/views/origami/shifts/show.html.erb +++ b/app/views/origami/shifts/show.html.erb @@ -1,15 +1,15 @@
-

Close Cashier

+

<%= t :close_cashier %>


- + - + @@ -17,7 +17,7 @@
- Closing Balance + <%= t :closing_balance %>
@@ -25,8 +25,8 @@
- - + +
diff --git a/app/views/print_settings/show.html.erb b/app/views/print_settings/show.html.erb index c1cf0ac3..a7fc38e2 100755 --- a/app/views/print_settings/show.html.erb +++ b/app/views/print_settings/show.html.erb @@ -2,7 +2,7 @@
Shift Started At<%= t :shift_started_at %> <%= @shift.shift_started_at.utc.getlocal.strftime("%d/%m/%Y - %I:%M %p") rescue '-' %>
Cashier Name<%= t :cashier_name %> <%= @shift.employee.name rescue ''%>