Skip to content

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

[#59925] use designated label for different use case

Tobias Dillmannbf9df371169c
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 50e94f05785..c2af4cfee9e 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -189,13 +189,10 @@ module ApplicationHelper
I18n.t(label, author: link_to_user(author), age: time_tag(created)).html_safe
end
- def authoring_at(created, author)
+ def authoring_at(creation_date, author)
return if author.nil?
- I18n.t(:"js.label_added_time_by",
- author: html_escape(author.name),
- age: created,
- authorLink: user_path(author)).html_safe
+ I18n.t(:label_added_by_on, author: link_to_user(author), date: creation_date).html_safe
end
def time_tag(time)
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 8ef0a5eb935..c224ecc1cfb 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -2310,6 +2310,7 @@ en:
label_add_subtask: "Add subtask"
label_added: "added"
label_added_by: "Added by %{author}"
+ label_added_by_on: "Added by %{author} on %{date}"
label_added_time_by: "Added by %{author} %{age} ago"
label_additional_workflow_transitions_for_assignee: "Additional transitions allowed when the user is the assignee"
label_additional_workflow_transitions_for_author: "Additional transitions allowed when the user is the author"