From 3a61cf05ad1ec027102b1f62c8b0466c7039f895 Mon Sep 17 00:00:00 2001 From: David Cook Date: Tue, 20 Sep 2022 14:48:41 +1000 Subject: [PATCH 1/6] Remove unused locale message I can't find any reference to this in the code. The wiki says maybe it's looked up with a variable, but I don't see how it could be used unless this string is defined in code somewhere (we wouldn't translate data from the database, would we?). Maybe it's used in a gem? In that case, hopefully CI will pick up the error. --- config/locales/en.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index 63e4d3f830..823bceec43 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2840,7 +2840,6 @@ See the %{link} to find out more about %{sitename}'s features and to start using contact: "Contact" web: "Web" primary_details: "Primary Details" - adrdress: "Address" contact: "Contact" social: "Social" business_details: "Business Details" From 2e2ff25ef731e4d53ce7285323046a46ce9f4c0a Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 28 Sep 2022 16:46:23 +1000 Subject: [PATCH 2/6] DRY up code Slightly. If we upgrade to Ruby 3.1 with hash value omission, this would be neater. If we could set a scope in the controller (https://stackoverflow.com/questions/6137960/rails-i18n-default-scope) it would be even neater. --- .../admin/enterprises/_new_form.html.haml | 32 +++++++++---------- app/views/admin/enterprises/new.html.haml | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/app/views/admin/enterprises/_new_form.html.haml b/app/views/admin/enterprises/_new_form.html.haml index f3526fd1f7..47746fa6ea 100644 --- a/app/views/admin/enterprises/_new_form.html.haml +++ b/app/views/admin/enterprises/_new_form.html.haml @@ -1,9 +1,9 @@ .row .three.columns.alpha - = f.label :name, t('admin.enterprises.form.primary_details.name') + = f.label :name, t('primary_details.name', scope: scope) %span.required * .nine.columns.omega - = f.text_field :name, { placeholder: t('admin.enterprises.form.primary_details.name_placeholder'), class: "fullwidth" } + = f.text_field :name, { placeholder: t('primary_details.name_placeholder', scope: scope), class: "fullwidth" } - if spree_current_user.admin? .row @@ -17,8 +17,8 @@ = f.hidden_field :owner_id, class: "select2 fullwidth", 'user-select' => 'Enterprise.owner' .row .three.columns.alpha - %label= t('admin.enterprises.form.primary_details.primary_producer') - %div{'ofn-with-tip' => t('admin.enterprises.form.primary_details.primary_producer_tip')} + %label= t('primary_details.primary_producer', scope: scope) + %div{'ofn-with-tip' => t('primary_details.primary_producer_tip', scope: scope)} %a= t('admin.whats_this') .five.columns.omega = f.check_box :is_primary_producer, 'ng-model' => 'Enterprise.is_primary_producer' @@ -28,42 +28,42 @@ .row .alpha.eleven.columns .three.columns.alpha - = f.label :sells, t('admin.enterprises.form.primary_details.sells') - %div{'ofn-with-tip' => t('admin.enterprises.form.primary_details.sells_tip')} + = f.label :sells, t('primary_details.sells', scope: scope) + %div{'ofn-with-tip' => t('primary_details.sells_tip', scope: scope)} %a What's this? .two.columns = f.radio_button :sells, "none", 'ng-model' => 'Enterprise.sells'   - = f.label :sells, t('admin.enterprises.form.primary_details.none'), value: "none" + = f.label :sells, t('primary_details.none', scope: scope), value: "none" .two.columns = f.radio_button :sells, "own", 'ng-model' => 'Enterprise.sells'   - = f.label :sells, t('admin.enterprises.form.primary_details.own'), value: "own" + = f.label :sells, t('primary_details.own', scope: scope), value: "own" .four.columns.omega = f.radio_button :sells, "any", 'ng-model' => 'Enterprise.sells'   - = f.label :sells, t('admin.enterprises.form.primary_details.any'), value: "any" + = f.label :sells, t('primary_details.any', scope: scope), value: "any" .row .alpha.three.columns = f.label :contact_name, t('.contact_name') .omega.nine.columns - = f.text_field :contact_name, { placeholder: t('admin.enterprises.form.contact.name_placeholder')} + = f.text_field :contact_name, { placeholder: t('contact.name_placeholder', scope: scope)} .row .alpha.three.columns - = f.label :email_address, t('admin.enterprises.form.contact.email_address') + = f.label :email_address, t('contact.email_address', scope: scope) .omega.nine.columns - = f.text_field :email_address, { placeholder: t('admin.enterprises.form.contact.email_address_placeholder'), "ng-model" => "Enterprise.email_address" } + = f.text_field :email_address, { placeholder: t('contact.email_address_placeholder', scope: scope), "ng-model" => "Enterprise.email_address" } .row .alpha.three.columns - = f.label :phone, t('admin.enterprises.form.contact.phone') + = f.label :phone, t('contact.phone', scope: scope) .omega.nine.columns - = f.text_field :phone, { placeholder: t('admin.enterprises.form.contact.phone_placeholder')} + = f.text_field :phone, { placeholder: t('contact.phone_placeholder', scope: scope)} .row .alpha.three.columns - = f.label :website, t('admin.enterprises.form.contact.website') + = f.label :website, t('contact.website', scope: scope) .omega.nine.columns - = f.text_field :website, { placeholder: t('admin.enterprises.form.contact.website_placeholder')} + = f.text_field :website, { placeholder: t('contact.website_placeholder', scope: scope)} = f.fields_for :address do |af| .row diff --git a/app/views/admin/enterprises/new.html.haml b/app/views/admin/enterprises/new.html.haml index 4cd0297362..26a34ad45f 100644 --- a/app/views/admin/enterprises/new.html.haml +++ b/app/views/admin/enterprises/new.html.haml @@ -17,4 +17,4 @@ = form_for [main_app, :admin, @enterprise], html: { "nav-check" => '', "nav-callback" => '' } do |f| .row .twelve.columns.fullwidth_inputs{ ng: { controller: "NewEnterpriseController" } } - = render 'new_form', f: f + = render 'new_form', f: f, scope: 'admin.enterprises.form' From 7803e5d4ffd4d2b13f8938314f54c150321359ee Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 28 Sep 2022 16:12:38 +1000 Subject: [PATCH 3/6] Scope Enterprise Group form legend translations Using lazy-lookup builtin scopes, instead of sharing the global translations, as per our guidelines. --- .../admin/enterprise_groups/_form_about.html.haml | 2 +- .../admin/enterprise_groups/_form_address.html.haml | 2 +- .../admin/enterprise_groups/_form_images.html.haml | 2 +- .../_form_primary_details.html.haml | 2 +- .../admin/enterprise_groups/_form_users.html.haml | 2 +- .../admin/enterprise_groups/_form_web.html.haml | 2 +- config/locales/en.yml | 12 ++++++++++++ 7 files changed, 18 insertions(+), 6 deletions(-) diff --git a/app/views/admin/enterprise_groups/_form_about.html.haml b/app/views/admin/enterprise_groups/_form_about.html.haml index b2a28c49b1..ce8d03fc37 100644 --- a/app/views/admin/enterprise_groups/_form_about.html.haml +++ b/app/views/admin/enterprise_groups/_form_about.html.haml @@ -1,5 +1,5 @@ %fieldset.alpha.no-border-bottom#about_panel{ data: { "tabs-and-panels-target": "panel" } } - %legend= t('about') + %legend= t('.about') = f.field_container :long_description do %text-angular{'id' => 'enterprise_group_long_description', 'name' => 'enterprise_group[long_description]', 'class' => 'text-angular', "textangular-links-target-blank" => true, 'ta-toolbar' => "[['h1','h2','h3','h4','p'],['bold','italics','underline','clear'],['insertLink']]"} diff --git a/app/views/admin/enterprise_groups/_form_address.html.haml b/app/views/admin/enterprise_groups/_form_address.html.haml index cf1876f908..b495151686 100644 --- a/app/views/admin/enterprise_groups/_form_address.html.haml +++ b/app/views/admin/enterprise_groups/_form_address.html.haml @@ -1,6 +1,6 @@ = f.fields_for :address do |af| %fieldset.alpha.no-border-bottom#contact_panel{ data: { "tabs-and-panels-target": "panel" } } - %legend= t('admin_enterprise_groups_contact') + %legend= t('.contact') .row .alpha.three.columns = af.label :phone diff --git a/app/views/admin/enterprise_groups/_form_images.html.haml b/app/views/admin/enterprise_groups/_form_images.html.haml index b2edd68b47..14f9a371d2 100644 --- a/app/views/admin/enterprise_groups/_form_images.html.haml +++ b/app/views/admin/enterprise_groups/_form_images.html.haml @@ -1,5 +1,5 @@ %fieldset.alpha.no-border-bottom#images_panel{ data: { "tabs-and-panels-target": "panel" } } - %legend= t('images') + %legend= t('.images') .row .alpha.three.columns = f.label :logo, 'ofn-with-tip' => t('admin_enterprise_groups_data_powertip_logo') diff --git a/app/views/admin/enterprise_groups/_form_primary_details.html.haml b/app/views/admin/enterprise_groups/_form_primary_details.html.haml index 5455039306..4ab3aae1b5 100644 --- a/app/views/admin/enterprise_groups/_form_primary_details.html.haml +++ b/app/views/admin/enterprise_groups/_form_primary_details.html.haml @@ -1,5 +1,5 @@ %fieldset.alpha.no-border-bottom#primary_details_panel{ data: { "tabs-and-panels-target": "panel default" } } - %legend= t('primary_details') + %legend= t('.primary_details') = f.field_container :name do = f.label :name %br/ diff --git a/app/views/admin/enterprise_groups/_form_users.html.haml b/app/views/admin/enterprise_groups/_form_users.html.haml index 75e51e0e3c..27ac13f5c1 100644 --- a/app/views/admin/enterprise_groups/_form_users.html.haml +++ b/app/views/admin/enterprise_groups/_form_users.html.haml @@ -1,5 +1,5 @@ %fieldset.alpha.no-border-bottom#users_panel{ data: { "tabs-and-panels-target": "panel" } } - %legend= t('users') + %legend= t('.users') .row .three.columns.alpha =f.label :owner_id, t(:admin_enterprise_groups_owner) diff --git a/app/views/admin/enterprise_groups/_form_web.html.haml b/app/views/admin/enterprise_groups/_form_web.html.haml index 186165a060..200c708669 100644 --- a/app/views/admin/enterprise_groups/_form_web.html.haml +++ b/app/views/admin/enterprise_groups/_form_web.html.haml @@ -1,5 +1,5 @@ %fieldset.alpha.no-border-bottom#web_panel{ data: { "tabs-and-panels-target": "panel" } } - %legend= t('admin_enterprise_groups_web') + %legend= t('.web') .row .alpha.three.columns = f.label :website diff --git a/config/locales/en.yml b/config/locales/en.yml index 823bceec43..950f052d81 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -637,6 +637,18 @@ en: enterprise_groups: index: new_button: New Enterprise Group + form_primary_details: + primary_details: "Primary Details" + form_users: + users: "Users" + form_about: + about: "About" + form_images: + images: "Images" + form_address: + contact: "Contact" + form_web: + web: "Web Resources" enterprise_roles: form: From 13d95ecf1dc0e079806d46ab49f0c3be2535e26e Mon Sep 17 00:00:00 2001 From: David Cook Date: Tue, 27 Sep 2022 15:55:24 +1000 Subject: [PATCH 4/6] Scope Enterprise Group side menu translations With it's own lazy scope, we no longer need to define labels separately. --- app/helpers/admin/enterprise_groups_helper.rb | 13 ++++++------- app/views/admin/shared/_side_menu.html.haml | 2 +- config/locales/en.yml | 10 ++++++++-- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/app/helpers/admin/enterprise_groups_helper.rb b/app/helpers/admin/enterprise_groups_helper.rb index 11ad3c81ac..cc2d271cf8 100644 --- a/app/helpers/admin/enterprise_groups_helper.rb +++ b/app/helpers/admin/enterprise_groups_helper.rb @@ -4,13 +4,12 @@ module Admin module EnterpriseGroupsHelper def enterprise_group_side_menu_items [ - { name: 'primary_details', label: 'primary_details', icon_class: "icon-user", - selected: "selected" }, - { name: 'users', label: 'users', icon_class: "icon-user" }, - { name: 'about', label: 'about', icon_class: "icon-pencil" }, - { name: 'images', label: 'images', icon_class: "icon-picture" }, - { name: 'contact', label: 'admin_enterprise_groups_contact', icon_class: "icon-phone" }, - { name: 'web', label: 'admin_enterprise_groups_web', icon_class: "icon-globe" }, + { name: 'primary_details', icon_class: "icon-user", selected: "selected" }, + { name: 'users', icon_class: "icon-user" }, + { name: 'about', icon_class: "icon-pencil" }, + { name: 'images', icon_class: "icon-picture" }, + { name: 'contact', icon_class: "icon-phone" }, + { name: 'web', icon_class: "icon-globe" }, ] end end diff --git a/app/views/admin/shared/_side_menu.html.haml b/app/views/admin/shared/_side_menu.html.haml index 3cad9f9bd9..5a0df2ce50 100644 --- a/app/views/admin/shared/_side_menu.html.haml +++ b/app/views/admin/shared/_side_menu.html.haml @@ -9,5 +9,5 @@ - enterprise_group_side_menu_items.each do |item| %a.menu_item{ href: "##{item[:name]}_panel", class: item[:selected], id: item[:name], data: { action: "tabs-and-panels#changeActivePanel tabs-and-panels#changeActiveTab", "tabs-and-panels-target": "tab" } } %i{ class: item[:icon_class] } - %span= t("#{item[:label] }") + %span= t(".enterprise_group.#{item[:name] }") diff --git a/config/locales/en.yml b/config/locales/en.yml index 950f052d81..1550b837ec 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1286,6 +1286,14 @@ en: has_no_payment_methods: "%{enterprise} has no payment methods" has_no_shipping_methods: "%{enterprise} has no shipping methods" has_no_enterprise_fees: "%{enterprise} has no enterprise fees" + side_menu: + enterprise_group: + primary_details: "Primary Details" + users: "Users" + about: "About" + images: "Images" + contact: "Contact" + web: "Web Resources" enterprise_issues: create_new: Create New resend_email: Resend Email @@ -2515,7 +2523,6 @@ See the %{link} to find out more about %{sitename}'s features and to start using admin_enterprise_groups_data_powertip: "The primary user responsible for this group." admin_enterprise_groups_data_powertip_logo: "This is the logo for the group" admin_enterprise_groups_data_powertip_promo_image: "This image is displayed at the top of the Group profile" - admin_enterprise_groups_contact: "Contact" admin_enterprise_groups_contact_phone_placeholder: "eg. 98 7654 3210" admin_enterprise_groups_contact_address1_placeholder: "eg. 123 High Street" admin_enterprise_groups_contact_city: "Suburb" @@ -2524,7 +2531,6 @@ See the %{link} to find out more about %{sitename}'s features and to start using admin_enterprise_groups_contact_zipcode_placeholder: "eg. 3070" admin_enterprise_groups_contact_state_id: "State" admin_enterprise_groups_contact_country_id: "Country" - admin_enterprise_groups_web: "Web Resources" admin_enterprise_groups_web_twitter: "eg. @the_prof" admin_enterprise_groups_web_website_placeholder: "eg. www.truffles.com" admin_order_cycles: "Admin Order Cycles" From 4c3e20d25aa6206b5f5d59fce5290747aa3aef7f Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 28 Sep 2022 15:56:30 +1000 Subject: [PATCH 5/6] Scope Enterprise form legend translations --- app/views/admin/enterprises/_form.html.haml | 8 +++---- .../form/_business_details.html.haml | 4 ++-- config/locales/en.yml | 21 ++++++++++++++++++- 3 files changed, 26 insertions(+), 7 deletions(-) diff --git a/app/views/admin/enterprises/_form.html.haml b/app/views/admin/enterprises/_form.html.haml index a334774410..c6cb8037fe 100644 --- a/app/views/admin/enterprises/_form.html.haml +++ b/app/views/admin/enterprises/_form.html.haml @@ -2,20 +2,20 @@ - case item[:name] - when 'primary_details' %fieldset.alpha.no-border-bottom{ id: "#{item[:name]}_panel", data: { controller: "primary-details", "primary-details-primary-producer-value": @enterprise.is_primary_producer.to_s, "primary-details-enterprise-sells-value": @enterprise.sells, "tabs-and-panels-target": "panel default" }} - %legend= t("#{ item[:name] }") + %legend= t(".#{ item[:name] }.legend") = render "admin/enterprises/form/#{ item[:form_name] || item[:name] }", f: f - when 'address' = f.fields_for :address do |af| %fieldset.alpha.no-border-bottom{ id: "#{item[:name]}_panel", data: { "tabs-and-panels-target": "panel" }} - %legend= t("#{ item[:name] }") + %legend= t(".#{ item[:name] }.legend") = render 'admin/enterprises/form/address', af: af - when 'enterprise_permissions' %fieldset.alpha.no-border-bottom{ id: "#{item[:name]}_panel", data: { "tabs-and-panels-target": "panel" }} - %legend= t("#{ item[:name] }") + %legend= t(".#{ item[:name] }.legend") - else %fieldset.alpha.no-border-bottom{ id: "#{item[:name]}_panel", data: { "tabs-and-panels-target": "panel" }} - %legend= t("#{ item[:name] }") + %legend= t(".#{ item[:form_name] || item[:name] }.legend") = render "admin/enterprises/form/#{ item[:form_name] || item[:name] }", f: f diff --git a/app/views/admin/enterprises/form/_business_details.html.haml b/app/views/admin/enterprises/form/_business_details.html.haml index 15e9a1f4c4..b39773b5ad 100644 --- a/app/views/admin/enterprises/form/_business_details.html.haml +++ b/app/views/admin/enterprises/form/_business_details.html.haml @@ -51,7 +51,7 @@ = f.fields_for :business_address, @enterprise.business_address || @enterprise.build_business_address do |bf| %fieldset.alpha.no-border-bottom - %legend= t('business_address') + %legend= t('.business_address_legend') = render 'admin/enterprises/form/business_address', bf: bf .row{"data-controller": "updateinput"} @@ -60,7 +60,7 @@ .row %fieldset.alpha.no-border-bottom - %legend= t('.Invoice_item_sorting') + %legend= t('.invoice_item_sorting_legend') .three.columns.alpha %label= t('.sort_items_by_supplier?') %div{'ofn-with-tip' => t('.sort_items_by_supplier_tip')} diff --git a/config/locales/en.yml b/config/locales/en.yml index 1550b837ec..dc920b5097 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -869,11 +869,15 @@ en: manage: Manage form: about_us: + legend: "About" desc_short: Short Description desc_short_placeholder: Tell us about your enterprise in one or two sentences desc_long: About Us desc_long_placeholder: Tell customers about yourself. This information appears on your public profile. + address: + legend: "Address" business_details: + legend: "Business Details" abn: ABN abn_placeholder: eg. 99 123 456 789 acn: ACN @@ -884,7 +888,8 @@ en: remove_terms_and_conditions: "Remove File" uploaded_on: "uploaded on" reset_form: "Reset Form" - Invoice_item_sorting: Invoice item sorting + business_address_legend: "Business Address" + invoice_item_sorting_legend: "Invoice item sorting" sort_items_by_supplier?: Sort items by supplier? sort_items_by_supplier_tip: "When enabled, Items will be sorted by supplier name." enabled: Enable @@ -898,6 +903,7 @@ en: legal_phone_number: Legal phone number phone_placeholder: "98 123 4565" contact: + legend: "Contact" name: Name name_placeholder: eg. Gustav Plum email_address: Public Email Address @@ -911,14 +917,17 @@ en: website: Website website_placeholder: eg. www.truffles.com enterprise_fees: + legend: "Enterprise Fees" name: Name fee_type: Fee Type manage_fees: Manage Enterprise Fees no_fees_yet: You don't have any enterprise fees yet. create_button: Create One Now enterprise_permissions: + legend: "Enterprise Permissions" enterprise_relationships: Enterprise Relationships images: + legend: "Images" logo: Logo promo_image_placeholder: 'This image is displayed in "About Us"' promo_image_note1: 'PLEASE NOTE:' @@ -927,6 +936,7 @@ en: remove_logo: "Remove Image" remove_promo_image: "Remove Image" inventory_settings: + legend: "Inventory Settings" text1: You may opt to manage stock levels and prices in via your inventory: inventory text2: > @@ -937,6 +947,7 @@ en: preferred_product_selection_from_inventory_only_yes: New products can be put into my shopfront (recommended) preferred_product_selection_from_inventory_only_no: New products must be added to my inventory before they can be put into my shopfront payment_methods: + legend: "Payment Methods" name: Name applies: Applies? manage: Manage Payment Methods @@ -944,6 +955,7 @@ en: create_button: Create New Payment Method create_one_button: Create One Now primary_details: + legend: "Primary Details" name: Name name_placeholder: eg. Professor Plum's Biodynamic Truffles groups: Groups @@ -962,6 +974,8 @@ en: visible: Public not_visible: Hidden hidden: Hide all references + properties: + legend: "Properties" permalink: permalink: Permalink (no spaces) permalink_tip: "This permalink is used to create the url to your shop: %{link}your-shop-name/shop" @@ -970,6 +984,7 @@ en: ofn_uid: OFN UID ofn_uid_tip: The unique id used to identify the enterprise on Open Food Network. shipping_methods: + legend: "Shipping Methods" name: "Name" applies: "Active?" manage: "Manage Shipping Methods" @@ -977,6 +992,7 @@ en: create_one_button: "Create One Now" no_method_yet: "You don't have any shipping methods yet." shop_preferences: + legend: "Shop Preferences" shopfront_requires_login: "Publicly visible shopfront?" shopfront_requires_login_tip: "Choose whether customers must login to view the shopfront or if it's visible to everybody." shopfront_requires_login_false: "Public" @@ -1022,6 +1038,7 @@ en: enabled: "Enabled" disabled: "Disabled" social: + legend: "Social" twitter_placeholder: "eg. @the_prof" instagram_placeholder: "eg. the_prof" facebook_placeholder: "eg. www.facebook.com/PageNameHere" @@ -1039,6 +1056,7 @@ en: i_agree: I Agree cancel: Cancel tag_rules: + legend: "Tag Rules" default_rules: by_default: By Default no_rules_yet: No default rules apply yet @@ -1049,6 +1067,7 @@ en: add_new_rule: '+ Add A New Rule' add_new_tag: '+ Add A New Tag' users: + legend: "Users" email_confirmation_notice_html: "Email confirmation is pending. We've sent a confirmation email to %{email}." resend: Resend owner: 'Owner' From 0fc8c719fe552927073aea7587695a57c6245c6a Mon Sep 17 00:00:00 2001 From: David Cook Date: Tue, 27 Sep 2022 17:12:26 +1000 Subject: [PATCH 6/6] Scope Enterprise side menu translations And removed some now-unused global translations, yay! I searched for these in the codebase, eg with regex: /\bt[\( ]["':]shop_preferences/ --- app/views/admin/shared/_side_menu.html.haml | 2 +- config/locales/en.yml | 25 ++++++++++++++++----- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/app/views/admin/shared/_side_menu.html.haml b/app/views/admin/shared/_side_menu.html.haml index 5a0df2ce50..18c9e4a04b 100644 --- a/app/views/admin/shared/_side_menu.html.haml +++ b/app/views/admin/shared/_side_menu.html.haml @@ -4,7 +4,7 @@ - next unless item[:show] %a.menu_item{ href: item[:href] || "##{item[:name]}_panel", id: item[:name], data: { action: "tabs-and-panels#changeActivePanel tabs-and-panels#changeActiveTab", "tabs-and-panels-target": "tab" }, class: item[:selected] } %i{ class: item[:icon_class] } - %span= t("#{item[:name] }") + %span= t(".enterprise.#{item[:name] }") - else - enterprise_group_side_menu_items.each do |item| %a.menu_item{ href: "##{item[:name]}_panel", class: item[:selected], id: item[:name], data: { action: "tabs-and-panels#changeActivePanel tabs-and-panels#changeActiveTab", "tabs-and-panels-target": "tab" } } diff --git a/config/locales/en.yml b/config/locales/en.yml index dc920b5097..97d70842c0 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -340,7 +340,6 @@ en: producers_join: Australian producers are now welcome to join the Open Food Network. #FIXME charges_sales_tax: Charges GST? business_address: "Business Address" - enterprise_permissions: "Enterprise Permissions" print_invoice: "Print Invoice" print_ticket: "Print Ticket" select_ticket_printer: "Select printer for tickets" @@ -452,6 +451,8 @@ en: destroy: "Destroy" rename: "Rename" +# Admin +# admin: adjustments: skipped_changing_canceled_order: "You can't change a cancelled order." @@ -858,7 +859,6 @@ en: no_note_present: "No note provided." enterprise: select_outgoing_oc_products_from: Select outgoing OC products from - enterprises: index: title: Enterprises @@ -1306,6 +1306,23 @@ en: has_no_shipping_methods: "%{enterprise} has no shipping methods" has_no_enterprise_fees: "%{enterprise} has no enterprise fees" side_menu: + enterprise: + primary_details: "Primary Details" + address: "Address" + contact: "Contact" + social: "Social" + about: "About" + business_details: "Business Details" + images: "Images" + properties: "Properties" + shipping_methods: "Shipping Methods" + payment_methods: "Payment Methods" + enterprise_fees: "Enterprise Fees" + enterprise_permissions: "Enterprise Permissions" + inventory_settings: "Inventory Settings" + tag_rules: "Tag Rules" + shop_preferences: "Shop Preferences" + users: "Users" enterprise_group: primary_details: "Primary Details" users: "Users" @@ -2879,8 +2896,6 @@ See the %{link} to find out more about %{sitename}'s features and to start using primary_details: "Primary Details" contact: "Contact" social: "Social" - business_details: "Business Details" - properties: "Properties" shipping: "Shipping" shipping_methods: "Shipping Methods" payment_methods: "Payment Methods" @@ -2890,9 +2905,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using payment_updated: "Payment Updated" cannot_perform_operation: "Could not update the payment" action_required: "Action required" - inventory_settings: "Inventory Settings" tag_rules: "Tag Rules" - shop_preferences: "Shop Preferences" enterprise_fee_whole_order: Whole order enterprise_fee_by: "%{type} fee by %{role} %{enterprise_name}" validation_msg_relationship_already_established: "^That relationship is already established."