summaryrefslogtreecommitdiff
path: root/app/helpers/preferences_helper.rb
diff options
context:
space:
mode:
authorhaghighi_ahmad <haghighi.ahmad@gmail.com>2019-02-24 09:12:22 +0330
committerhaghighi_ahmad <haghighi.ahmad@gmail.com>2019-03-04 07:52:15 +0330
commitcf4bbd4fe18222234e21c9bc4a12ea195a4bd11d (patch)
tree81d5a4a79efc4711d03251f9445b0fcf7b5e32c8 /app/helpers/preferences_helper.rb
parent7f3a103006d941cac14fec37ab6159de7055fde7 (diff)
downloadgitlab-ce-cf4bbd4fe18222234e21c9bc4a12ea195a4bd11d.tar.gz
Add Saturday to first day of the week
fix #58023 docs for adding Saturday for first day of the week add related settings for Saturday as first day of the week firstDayOfWeek: Use enumeration, replace day's numbers with corresponding names make some variables lowercase (follow camelCase) add CHANGELOG entry Author: haghighi_ahmad <haghighi.ahmad@gmail.com> modified: app/assets/javascripts/pages/users/activity_calendar.js modified: app/helpers/preferences_helper.rb new file: changelogs/unreleased/58023-add-Saturday-to-localization-first-day-of-the-week.yml modified: doc/api/settings.md modified: doc/user/profile/preferences.md modified: locale/gitlab.pot modified: spec/helpers/preferences_helper_spec.rb
Diffstat (limited to 'app/helpers/preferences_helper.rb')
-rw-r--r--app/helpers/preferences_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/preferences_helper.rb b/app/helpers/preferences_helper.rb
index eed529f93db..766508b6609 100644
--- a/app/helpers/preferences_helper.rb
+++ b/app/helpers/preferences_helper.rb
@@ -46,7 +46,8 @@ module PreferencesHelper
def first_day_of_week_choices
[
[_('Sunday'), 0],
- [_('Monday'), 1]
+ [_('Monday'), 1],
+ [_('Saturday'), 6]
]
end