]> git.openstreetmap.org Git - rails.git/commitdiff
Masked off reporting as unused various keys
authorNenad Vujicic <nenadus@gmail.com>
Mon, 30 Sep 2024 15:52:33 +0000 (17:52 +0200)
committerNenad Vujicic <nenadus@gmail.com>
Mon, 30 Sep 2024 15:52:33 +0000 (17:52 +0200)
Added time.formats.{blog, friendly} translation keys under ignore_unused in i18n-tasks.yml since used on numerous places for formatting dates / times, removed site.sidebar.close because started being used at 3a51160 and ended being used at 6adcce4, removed sessions.new.title because started being used at f18baae and has been used only in test/system/issues_test.rb (from which we removed it because tests are always in EN)

config/i18n-tasks.yml
config/locales/en.yml
test/system/issues_test.rb

index 2ed3b2e91d41919de31ccddd9a5a2b132565e2a9..f5fec583269785a528972fa7e82c84e97f803866 100644 (file)
@@ -132,6 +132,8 @@ ignore_unused:
   - 'reports.new.categories.*' # double interpolation in reports_helper
   - 'shared.pagination.*'
   - 'auth.providers.*'
   - 'reports.new.categories.*' # double interpolation in reports_helper
   - 'shared.pagination.*'
   - 'auth.providers.*'
+  - 'time.formats.blog' # used for formatting blog dates
+  - 'time.formats.friendly' # used for formatting dates / times in a friendly way
 # - '{devise,kaminari,will_paginate}.*'
 # - 'simple_form.{yes,no}'
 # - 'simple_form.{placeholders,hints,labels}.*'
 # - '{devise,kaminari,will_paginate}.*'
 # - 'simple_form.{yes,no}'
 # - 'simple_form.{placeholders,hints,labels}.*'
index b042370dccc3f0cef9cf9cb71ae5cfbf5d887881..cde02ad506e8dff3bbb307dbc840e19a66d498c2 100644 (file)
@@ -1844,7 +1844,6 @@ en:
       failure: Couldn't update profile.
   sessions:
     new:
       failure: Couldn't update profile.
   sessions:
     new:
-      title: "Log in"
       tab_title: "Log in"
       login_to_authorize_html: "Log in to OpenStreetMap to access %{client_app_name}."
       email or username: "Email Address or Username"
       tab_title: "Log in"
       login_to_authorize_html: "Log in to OpenStreetMap to access %{client_app_name}."
       email or username: "Email Address or Username"
@@ -2292,7 +2291,6 @@ en:
       welcome_mat_url: https://welcome.openstreetmap.org/
     sidebar:
       search_results: Search Results
       welcome_mat_url: https://welcome.openstreetmap.org/
     sidebar:
       search_results: Search Results
-      close: Close
     search:
       search: Search
       get_directions_title: "Find directions between two points"
     search:
       search: Search
       get_directions_title: "Find directions between two points"
index eae3322ff56c7c308f890f6da2ccab533c0dc016..327b888bc4e980f7076b67b69af7f4e98ce12170 100644 (file)
@@ -5,7 +5,7 @@ class IssuesTest < ApplicationSystemTestCase
 
   def test_view_issues_not_logged_in
     visit issues_path
 
   def test_view_issues_not_logged_in
     visit issues_path
-    assert_content I18n.t("sessions.new.title")
+    assert_content "Log in"
   end
 
   def test_view_issues_normal_user
   end
 
   def test_view_issues_normal_user