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

different labels for time log modals

ulferts682fe83c2d23
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index bdfae720c4b..c660aaa49d6 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -511,8 +511,7 @@ en:
duration: 'Duration'
spent_on: 'Date'
hours: 'Hours'
- edit: 'Edit time entry'
- create: 'Create time entry'
+ label: 'Time entry'
two_factor_authentication:
label_two_factor_authentication: 'Two-factor authentication'
diff --git a/frontend/src/app/modules/time_entries/create/create.modal.ts b/frontend/src/app/modules/time_entries/create/create.modal.ts
index b33a8262198..364477038ab 100644
--- a/frontend/src/app/modules/time_entries/create/create.modal.ts
+++ b/frontend/src/app/modules/time_entries/create/create.modal.ts
@@ -21,7 +21,7 @@ export class TimeEntryCreateModal extends OpModalComponent {
@ViewChild('editForm', { static: true }) editForm:TimeEntryFormComponent;
text = {
- title: this.i18n.t('js.time_entry.create'),
+ title: this.i18n.t('js.button_log_time'),
create: this.i18n.t('js.label_create'),
close: this.i18n.t('js.button_close'),
cancel: this.i18n.t('js.button_cancel')
diff --git a/frontend/src/app/modules/time_entries/edit/edit.modal.ts b/frontend/src/app/modules/time_entries/edit/edit.modal.ts
index 23f14e2154d..98db0eb45d1 100644
--- a/frontend/src/app/modules/time_entries/edit/edit.modal.ts
+++ b/frontend/src/app/modules/time_entries/edit/edit.modal.ts
@@ -6,7 +6,6 @@ import {I18nService} from "core-app/modules/common/i18n/i18n.service";
import {HalResourceEditingService} from "core-app/modules/fields/edit/services/hal-resource-editing.service";
import {TimeEntryResource} from "core-app/modules/hal/resources/time-entry-resource";
import {HalResource} from "core-app/modules/hal/resources/hal-resource";
-import {SchemaResource} from "core-app/modules/hal/resources/schema-resource";
@Component({
templateUrl: './edit.modal.html',
@@ -19,7 +18,7 @@ import {SchemaResource} from "core-app/modules/hal/resources/schema-resource";
export class TimeEntryEditModal extends OpModalComponent {
text = {
- title: this.i18n.t('js.time_entry.edit'),
+ title: this.i18n.t('js.time_entry.label'),
close: this.i18n.t('js.button_close'),
delete: this.i18n.t('js.button_delete')
};