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

Revert prev commit and update only labels

Mir Bhatia4c4f96b39c9e
diff --git a/app/views/admin/settings/date_format_settings/show.html.erb b/app/views/admin/settings/date_format_settings/show.html.erb
index 1b522fb8fe5..faa22a94fb5 100644
--- a/app/views/admin/settings/date_format_settings/show.html.erb
+++ b/app/views/admin/settings/date_format_settings/show.html.erb
@@ -38,15 +38,15 @@ See COPYRIGHT and LICENSE files for more details.
<section class="form--section">
<div class="form--field">
- <%= setting_select :date,
- Settings::Definition[:date].allowed.collect {|f| [Date.today.strftime(f), f]},
+ <%= setting_select :date_format,
+ Settings::Definition[:date_format].allowed.collect {|f| [Date.today.strftime(f), f]},
blank: :label_language_based,
container_class: '-wide' %>
</div>
<div class="form--field">
- <%= setting_select :time,
- Settings::Definition[:time].allowed.collect {|f| [Time.now.strftime(f), f]},
+ <%= setting_select :time_format,
+ Settings::Definition[:time_format].allowed.collect {|f| [Time.now.strftime(f), f]},
blank: :label_language_based,
container_class: '-wide' %>
</div>
diff --git a/config/constants/settings/definition.rb b/config/constants/settings/definition.rb
index 1b8e8bd0880..0357b137781 100644
--- a/config/constants/settings/definition.rb
+++ b/config/constants/settings/definition.rb
@@ -285,7 +285,7 @@ module Settings
default: nil,
writable: false
},
- date: {
+ date_format: {
format: :string,
default: nil,
allowed: [
@@ -949,7 +949,7 @@ module Settings
default: nil,
format: :string
},
- time: {
+ time_format: {
format: :string,
default: nil,
allowed: [
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 3a204dda28d..3fa84babe6e 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -2669,7 +2669,7 @@ en:
setting_consent_decline_mail: "Consent contact mail address"
setting_cross_project_work_package_relations: "Allow cross-project work package relations"
setting_first_week_of_year: "First week in year contains"
- setting_date: "Date"
+ setting_date_format: "Date"
setting_default_language: "Default language"
setting_default_projects_modules: "Default enabled modules for new projects"
setting_default_projects_public: "New projects are public by default"
@@ -2731,7 +2731,7 @@ en:
setting_start_of_week: "Week starts on"
setting_sys_api_enabled: "Enable repository management web service"
setting_sys_api_description: "The repository management web service provides integration and user authorization for accessing repositories."
- setting_time: "Time"
+ setting_time_format: "Time"
setting_accessibility_mode_for_anonymous: "Enable accessibility mode for anonymous users"
setting_user_format: "Users name format"
setting_user_default_timezone: "Users default time zone"