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
Don't pluralize, but localize day count
Oliver Günther74999233029a
diff --git a/lib_static/plugins/acts_as_journalized/lib/journal_formatter/day_count.rb b/lib_static/plugins/acts_as_journalized/lib/journal_formatter/day_count.rbindex 892b7332966..cf730a4de89 100644--- a/lib_static/plugins/acts_as_journalized/lib/journal_formatter/day_count.rb+++ b/lib_static/plugins/acts_as_journalized/lib/journal_formatter/day_count.rb@@ -29,7 +29,7 @@module JournalFormatterclass DayCount < Attributedef format_values(values)- values.map { |v| "#{v.to_i} #{'day'.pluralize(v.to_i)}" unless v.nil? }+ values.map { |v| I18n.t('datetime.distance_in_words.x_days', count: v.to_i) unless v.nil? }endendend