OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
chore[Op#40437]: humanize reaction instead
Kabiru Mwenja88047f1d7f15
diff --git a/app/components/work_packages/activities_tab/journals/item_component/add_reactions.html.erb b/app/components/work_packages/activities_tab/journals/item_component/add_reactions.html.erbindex 2a062625fc6..c19ccd4bb1a 100644--- a/app/components/work_packages/activities_tab/journals/item_component/add_reactions.html.erb+++ b/app/components/work_packages/activities_tab/journals/item_component/add_reactions.html.erb@@ -25,7 +25,7 @@tag: :a,href: toggle_reaction_work_package_activity_path(journal.journable.id, id: journal.id, reaction:),data: { "turbo-stream": true, "turbo-method": :put },- "aria-label": I18n.t("reactions.react_with", reaction: reaction.tr("_", ""))+ "aria-label": I18n.t("reactions.react_with", reaction: reaction.to_s.humanize(capitalize: false)))) doemojienddiff --git a/app/components/work_packages/activities_tab/journals/item_component/reactions.rb b/app/components/work_packages/activities_tab/journals/item_component/reactions.rbindex 6c651f7e8f9..584fd23afe9 100644--- a/app/components/work_packages/activities_tab/journals/item_component/reactions.rb+++ b/app/components/work_packages/activities_tab/journals/item_component/reactions.rb@@ -62,7 +62,8 @@ module WorkPackages# ARIA-label, show names and emoji type: "{Name of reaction} by {user A}, {user B} and {user C}".def aria_label_text(reaction, users)- "#{I18n.t('reactions.reaction_by', reaction: reaction.to_s.tr('_', ' '))} #{number_of_user_reactions_text(users)}"+ "#{I18n.t('reactions.reaction_by',+ reaction: reaction.to_s.humanize(capitalize: false))} #{number_of_user_reactions_text(users)}"end# Visually, show just names: "{user A}, {user B} and {user C}"