From 33eaeb800ef4dbe388abf317782217934f3dab2b Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Mon, 16 Dec 2024 19:12:37 +0300 Subject: [PATCH] Change scope of offline flash messages --- app/views/layouts/_offline_flash.erb | 4 ++-- config/locales/en.yml | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/layouts/_offline_flash.erb b/app/views/layouts/_offline_flash.erb index 4203e3dff..bda5accf6 100644 --- a/app/views/layouts/_offline_flash.erb +++ b/app/views/layouts/_offline_flash.erb @@ -1,5 +1,5 @@ <% if %w[database_offline api_offline].include? Settings.status %> - <%= t("layouts.osm_offline") %> + <%= t(".osm_offline") %> <% elsif %w[database_readonly api_readonly].include? Settings.status %> - <%= t("layouts.osm_read_only") %> + <%= t(".osm_read_only") %> <% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 53b4217a1..b71f6fefd 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1598,8 +1598,6 @@ en: partners_corpmembers: "OSMF corporate members" partners_partners: "partners" tou: "Terms of Use" - osm_offline: "The OpenStreetMap database is currently offline while essential database maintenance work is carried out." - osm_read_only: "The OpenStreetMap database is currently in read-only mode while essential database maintenance work is carried out." nothing_to_preview: "Nothing to preview." help: Help about: About @@ -1607,6 +1605,9 @@ en: communities: Communities learn_more: "Learn More" more: More + offline_flash: + osm_offline: "The OpenStreetMap database is currently offline while essential database maintenance work is carried out." + osm_read_only: "The OpenStreetMap database is currently in read-only mode while essential database maintenance work is carried out." user_mailer: diary_comment_notification: description: "OpenStreetMap Diary Entry #%{id}" -- 2.39.5