From f221a081dd770594909d547fa45736e43299bc63 Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Fri, 7 Aug 2020 01:03:00 +0200 Subject: [PATCH] Rename config tab roles to security --- app/controllers/admin/configs_controller.rb | 2 +- .../{_tab_roles.html.haml => _tab_security.html.haml} | 4 ++-- config/locales/de.yml | 8 ++++---- config/locales/en.yml | 8 ++++---- config/locales/nl.yml | 8 ++++---- 5 files changed, 15 insertions(+), 15 deletions(-) rename app/views/admin/configs/{_tab_roles.html.haml => _tab_security.html.haml} (85%) diff --git a/app/controllers/admin/configs_controller.rb b/app/controllers/admin/configs_controller.rb index 751b3720..813a50e2 100644 --- a/app/controllers/admin/configs_controller.rb +++ b/app/controllers/admin/configs_controller.rb @@ -30,7 +30,7 @@ class Admin::ConfigsController < Admin::BaseController # Set configuration tab names as `@tabs` def get_tabs - @tabs = %w(foodcoop payment tasks messages layout language roles others) + @tabs = %w(foodcoop payment tasks messages layout language security others) # allow engines to modify this list engines = Rails::Engine.subclasses.map(&:instance).select { |e| e.respond_to?(:configuration) } engines.each { |e| e.configuration(@tabs, self) } diff --git a/app/views/admin/configs/_tab_roles.html.haml b/app/views/admin/configs/_tab_security.html.haml similarity index 85% rename from app/views/admin/configs/_tab_roles.html.haml rename to app/views/admin/configs/_tab_security.html.haml index 48ffa084..78c1a978 100644 --- a/app/views/admin/configs/_tab_roles.html.haml +++ b/app/views/admin/configs/_tab_security.html.haml @@ -1,5 +1,5 @@ -%h4= t '.access_to_title' -= t '.access_to_paragraph' +%h4= t '.default_role_title' += t '.default_role_paragraph' = config_input form, :default_role_suppliers, as: :boolean = config_input form, :default_role_article_meta, as: :boolean = config_input form, :default_role_orders, as: :boolean diff --git a/config/locales/de.yml b/config/locales/de.yml index ab5012cf..c07ce477 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -280,9 +280,9 @@ de: emails_title: E-Mails versenden tab_payment: schedule_title: Bestellschema - tab_roles: - access_to_title: Zugriff auf - access_to_paragraph: Jedes Mitglied der Foodcoop hat automatisch Zugriff auf folgende Bereiche. + tab_security: + default_roles_title: Zugriff auf + default_roles_paragraph: Jedes Mitglied der Foodcoop hat automatisch Zugriff auf folgende Bereiche. tab_tasks: periodic_title: Wiederkehrende Aufgaben tabs: @@ -641,7 +641,7 @@ de: messages: Nachrichten others: Sonstiges payment: Finanzen - roles: Rollen + security: Sicherheit tasks: Aufgaben deliveries: add_stock_change: diff --git a/config/locales/en.yml b/config/locales/en.yml index 743f6289..d6814b27 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -295,9 +295,9 @@ en: emails_title: Sending email tab_payment: schedule_title: Ordering schedule - tab_roles: - access_to_title: Access to - access_to_paragraph: By default every member of the foodcoop has access to the following areas. + tab_security: + default_roles_title: Access to + default_roles_paragraph: By default every member of the foodcoop has access to the following areas. tab_tasks: periodic_title: Periodic tasks tabs: @@ -664,7 +664,7 @@ en: messages: Messages others: Other payment: Finances - roles: Roles + security: Security tasks: Tasks deliveries: add_stock_change: diff --git a/config/locales/nl.yml b/config/locales/nl.yml index 5ed255df..426cc6de 100644 --- a/config/locales/nl.yml +++ b/config/locales/nl.yml @@ -287,9 +287,9 @@ nl: emails_title: Emailinstellingen tab_payment: schedule_title: Bestelrooster - tab_roles: - access_to_title: Toegang tot - access_to_paragraph: Ieder lid van de foodcoop heeft standaard toegang tot de volgende onderdelen. + tab_security: + default_roles_title: Toegang tot + default_roles_paragraph: Ieder lid van de foodcoop heeft standaard toegang tot de volgende onderdelen. tab_tasks: periodic_title: Periodieke taken tabs: @@ -653,7 +653,7 @@ nl: messages: Berichten others: Overig payment: Financiƫn - roles: Rollen + security: Beveiliging tasks: Taken deliveries: add_stock_change: