diff --git a/app/helpers/follows_helper.rb b/app/helpers/follows_helper.rb index 49767d3e2..63f50f7be 100644 --- a/app/helpers/follows_helper.rb +++ b/app/helpers/follows_helper.rb @@ -13,6 +13,11 @@ module FollowsHelper t('shared.follow_entity', entity: t("activerecord.models.#{entity}.one").downcase) end + def follow_entity_title(followable) + entity = followable.class.name.gsub('::', '/').downcase + t('shared.follow_entity_title', entity: t("activerecord.models.#{entity}.one").downcase) + end + def unfollow_entity_text(followable) entity = followable.class.name.gsub('::', '/').downcase t('shared.unfollow_entity', entity: t("activerecord.models.#{entity}.one").downcase) diff --git a/config/locales/en/general.yml b/config/locales/en/general.yml index 12d191be4..fd5a128b8 100644 --- a/config/locales/en/general.yml +++ b/config/locales/en/general.yml @@ -504,6 +504,7 @@ en: flag: Flag as inappropriate follow: "Follow" follow_entity: "Follow %{entity}" + follow_entity_title: "Follow %{entity}: You can participate and receive notifications of any related events." hide: Hide print: print_button: Print this info diff --git a/config/locales/es/general.yml b/config/locales/es/general.yml index a398c4d1f..941a03813 100644 --- a/config/locales/es/general.yml +++ b/config/locales/es/general.yml @@ -503,7 +503,8 @@ es: collective: Colectivo flag: Denunciar como inapropiado follow: "Seguir" - follow_entity: "Seguir %{entity}: Podrás participar y recibir notificaciones de cualquier suceso relacionado." + follow_entity: "Seguir %{entity}" + follow_entity_title: "Seguir %{entity}: Podrás participar y recibir notificaciones de cualquier suceso relacionado." hide: Ocultar print: print_button: Imprimir esta información