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
Add start_of_week helper to redmine
Oliver Günther557969aa3875
diff --git a/lib_static/redmine/i18n.rb b/lib_static/redmine/i18n.rbindex c5099fd75d1..68a150f5871 100644--- a/lib_static/redmine/i18n.rb+++ b/lib_static/redmine/i18n.rb@@ -45,6 +45,19 @@ module Redmine.sortend+ def self.start_of_week+ case Setting.start_of_week.to_i+ when 1+ :monday+ when 7+ :sunday+ when 6+ :saturday+ else+ Date.beginning_of_week+ end+ end+def self.valid_languagesall_languages & (Setting.available_languages + [Setting.default_language])end