diff --git a/config/locales/views/en.yml b/config/locales/views/en.yml index 032fc3c0525..1024efb1b7a 100644 --- a/config/locales/views/en.yml +++ b/config/locales/views/en.yml @@ -753,7 +753,7 @@ en: fandom_relationship_tags: Relationship tags in this fandom filter_bookmarks: filter bookmarks filter_works: filter works - list_fandom_tags_html: You can also access a list of %{fandom_relationship_tags_link}. + list_fandom_tags_html: You can also access a list of %{fandom_relationship_tags_link}. time: formats: date_short_html: %a %d %b %Y diff --git a/rubocop/cop/i18n/deprecated_helper.rb b/rubocop/cop/i18n/deprecated_helper.rb index 8f23b57b01d..87539049ea8 100644 --- a/rubocop/cop/i18n/deprecated_helper.rb +++ b/rubocop/cop/i18n/deprecated_helper.rb @@ -18,7 +18,7 @@ module I18n # t(".relative.path.to.translation") # t(".greeting", name: "world") class DeprecatedHelper < RuboCop::Cop::Base - MSG = "Prefer Rails built-in `t` helper over `ts`: the latter is not actually translatable. For more information, refer to https://github.com/otwcode/otwarchive/wiki/Internationalization-(i18n)-Standards." + MSG = "Prefer Rails built-in `t` helper over `ts`: the latter is not actually translatable. For more information, refer to https://github.com/otwcode/otwarchive/wiki/Internationalization-(i18n)-Standards" RESTRICT_ON_SEND = %i[ts].freeze diff --git a/spec/rubocop/cop/i18n/deprecated_helper_spec.rb b/spec/rubocop/cop/i18n/deprecated_helper_spec.rb index c8741f5807b..7fbdb12fd9a 100644 --- a/spec/rubocop/cop/i18n/deprecated_helper_spec.rb +++ b/spec/rubocop/cop/i18n/deprecated_helper_spec.rb @@ -7,14 +7,14 @@ it "registers an offense when `ts` is used" do expect_offense(<<~INVALID) ts("Some String") - ^^^^^^^^^^^^^^^^^ Prefer Rails built-in `t` helper over `ts`: the latter is not actually translatable. For more information, refer to https://github.com/otwcode/otwarchive/wiki/Internationalization-(i18n)-Standards. + ^^^^^^^^^^^^^^^^^ Prefer Rails built-in `t` helper over `ts`: the latter is not actually translatable. For more information, refer to https://github.com/otwcode/otwarchive/wiki/Internationalization-(i18n)-Standards INVALID end it "registers an offense when `ts` is used without parentheses" do expect_offense(<<~INVALID) ts "Another string" - ^^^^^^^^^^^^^^^^^^^ Prefer Rails built-in `t` helper over `ts`: the latter is not actually translatable. For more information, refer to https://github.com/otwcode/otwarchive/wiki/Internationalization-(i18n)-Standards. + ^^^^^^^^^^^^^^^^^^^ Prefer Rails built-in `t` helper over `ts`: the latter is not actually translatable. For more information, refer to https://github.com/otwcode/otwarchive/wiki/Internationalization-(i18n)-Standards INVALID end