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
Localize digest mailer strings
Dombi Attilac6e4c70c6b68
diff --git a/app/helpers/mail_digest_helper.rb b/app/helpers/mail_digest_helper.rbindex 71709435d93..8a60ed13766 100644--- a/app/helpers/mail_digest_helper.rb+++ b/app/helpers/mail_digest_helper.rb@@ -74,11 +74,11 @@ module MailDigestHelperdef build_alert_text(days_diff, is_overdue, date_is_past)days_text = I18n.t('js.units.day', count: days_diff)- return 'is today' if days_diff == 0- return "since #{days_text}" if is_overdue- return "was #{days_text} ago" if date_is_past+ return I18n.t('js.notifications.date_alerts.property_today') if days_diff == 0+ return I18n.t('js.notifications.date_alerts.overdue_since', difference_in_days: days_text) if is_overdue+ return I18n.t('js.notifications.date_alerts.property_was', difference_in_days: days_text) if date_is_past- "is in #{days_text}"+ I18n.t('js.notifications.date_alerts.property_is', difference_in_days: days_text)enddef property_text_helper(notification)