From: Anton Khorev Date: Mon, 16 Dec 2024 16:12:37 +0000 (+0300) Subject: Change scope of offline flash messages X-Git-Tag: live~155^2~3 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/33eaeb800ef4dbe388abf317782217934f3dab2b?ds=inline Change scope of offline flash messages --- 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}"