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

Rework `timelines` root key to `gantt_chart` in `js-en.yml`

Aaron Contreras65035e041263
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index 8c8e30108b1..b1caa8a7f91 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -325,6 +325,38 @@ en:
one: "First sorting criteria"
two: "Second sorting criteria"
three: "Third sorting criteria"
+
+ gantt_chart:
+ label: 'Gantt chart'
+ quarter_label: 'Q%{quarter_number}'
+ labels:
+ title: 'Label configuration'
+ bar: 'Bar labels'
+ left: 'Left'
+ right: 'Right'
+ farRight: 'Far right'
+ description: >
+ Select the attributes you want to be shown in the respective positions of the Gantt chart at all times.
+ Note that when hovering over an element, its date labels will be shown instead of these attributes.
+
+ button_activate: 'Show Gantt chart'
+ button_deactivate: 'Hide Gantt chart'
+ filter:
+ noneSelection: "(none)"
+ selection_mode:
+ notification: 'Click on any highlighted work package to create the relation. Press escape to cancel.'
+ zoom:
+ in: "Zoom in"
+ out: "Zoom out"
+ auto: "Auto zoom"
+ days: "Days"
+ weeks: "Weeks"
+ months: "Months"
+ quarters: "Quarters"
+ years: "Years"
+ description: >
+ Select the initial zoom level that should be shown when autozoom is not available.
+
general_text_no: "no"
general_text_yes: "yes"
general_text_No: "No"
@@ -893,36 +925,6 @@ en:
text_work_packages_destroy_confirmation: "Are you sure you want to delete the selected work package(s)?"
text_query_destroy_confirmation: "Are you sure you want to delete the selected view?"
- timelines:
- quarter_label: 'Q%{quarter_number}'
- gantt_chart: 'Gantt chart'
- labels:
- title: 'Label configuration'
- bar: 'Bar labels'
- left: 'Left'
- right: 'Right'
- farRight: 'Far right'
- description: >
- Select the attributes you want to be shown in the respective positions of the Gantt chart at all times.
- Note that when hovering over an element, its date labels will be shown instead of these attributes.
-
- button_activate: 'Show Gantt chart'
- button_deactivate: 'Hide Gantt chart'
- filter:
- noneSelection: "(none)"
- selection_mode:
- notification: 'Click on any highlighted work package to create the relation. Press escape to cancel.'
- zoom:
- in: "Zoom in"
- out: "Zoom out"
- auto: "Auto zoom"
- days: "Days"
- weeks: "Weeks"
- months: "Months"
- quarters: "Quarters"
- years: "Years"
- description: >
- Select the initial zoom level that should be shown when autozoom is not available.
tl_toolbar:
zooms: "Zoom level"
outlines: "Hierarchy level"
diff --git a/frontend/src/app/features/work-packages/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.component.ts b/frontend/src/app/features/work-packages/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.component.ts
index f6b93ef30d1..ea104707196 100644
--- a/frontend/src/app/features/work-packages/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.component.ts
@@ -72,12 +72,12 @@ export class WorkPackageTimelineButtonComponent extends AbstractWorkPackageButto
public wpTableTimeline:WorkPackageViewTimelineService) {
super(I18n);
- this.activateLabel = I18n.t('js.timelines.button_activate');
- this.deactivateLabel = I18n.t('js.timelines.button_deactivate');
+ this.activateLabel = I18n.t('js.gantt_chart.button_activate');
+ this.deactivateLabel = I18n.t('js.gantt_chart.button_deactivate');
- this.text.zoomIn = I18n.t('js.timelines.zoom.in');
- this.text.zoomOut = I18n.t('js.timelines.zoom.out');
- this.text.zoomAuto = I18n.t('js.timelines.zoom.auto');
+ this.text.zoomIn = I18n.t('js.gantt_chart.zoom.in');
+ this.text.zoomOut = I18n.t('js.gantt_chart.zoom.out');
+ this.text.zoomAuto = I18n.t('js.gantt_chart.zoom.auto');
}
ngOnInit():void {
diff --git a/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/timelines-tab.component.ts b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/timelines-tab.component.ts
index 3c534b39e76..546fb17f78f 100644
--- a/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/timelines-tab.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/timelines-tab.component.ts
@@ -26,27 +26,27 @@ export class WpTableConfigurationTimelinesTabComponent implements TabComponent {
public availableZoomLevels:TimelineZoomLevel[] = ['auto', ...zoomLevelOrder];
public text = {
- title: this.I18n.t('js.timelines.gantt_chart'),
- display_timelines: this.I18n.t('js.timelines.button_activate'),
+ title: this.I18n.t('js.gantt_chart.label'),
+ display_timelines: this.I18n.t('js.gantt_chart.button_activate'),
display_timelines_hint: this.I18n.t('js.work_packages.table_configuration.show_timeline_hint'),
zoom: {
level: this.I18n.t('js.tl_toolbar.zooms'),
- description: this.I18n.t('js.timelines.zoom.description'),
- days: this.I18n.t('js.timelines.zoom.days'),
- weeks: this.I18n.t('js.timelines.zoom.weeks'),
- months: this.I18n.t('js.timelines.zoom.months'),
- quarters: this.I18n.t('js.timelines.zoom.quarters'),
- years: this.I18n.t('js.timelines.zoom.years'),
- auto: this.I18n.t('js.timelines.zoom.auto'),
+ description: this.I18n.t('js.gantt_chart.zoom.description'),
+ days: this.I18n.t('js.gantt_chart.zoom.days'),
+ weeks: this.I18n.t('js.gantt_chart.zoom.weeks'),
+ months: this.I18n.t('js.gantt_chart.zoom.months'),
+ quarters: this.I18n.t('js.gantt_chart.zoom.quarters'),
+ years: this.I18n.t('js.gantt_chart.zoom.years'),
+ auto: this.I18n.t('js.gantt_chart.zoom.auto'),
},
labels: {
- title: this.I18n.t('js.timelines.labels.title'),
- description: this.I18n.t('js.timelines.labels.description'),
- bar: this.I18n.t('js.timelines.labels.bar'),
- none: this.I18n.t('js.timelines.filter.noneSelection'),
- left: this.I18n.t('js.timelines.labels.left'),
- right: this.I18n.t('js.timelines.labels.right'),
- farRight: this.I18n.t('js.timelines.labels.farRight'),
+ title: this.I18n.t('js.gantt_chart.labels.title'),
+ description: this.I18n.t('js.gantt_chart.labels.description'),
+ bar: this.I18n.t('js.gantt_chart.labels.bar'),
+ none: this.I18n.t('js.gantt_chart.filter.noneSelection'),
+ left: this.I18n.t('js.gantt_chart.labels.left'),
+ right: this.I18n.t('js.gantt_chart.labels.right'),
+ farRight: this.I18n.t('js.gantt_chart.labels.farRight'),
},
};
diff --git a/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.service.ts b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.service.ts
index b1a09d0b05f..8f8be966f24 100644
--- a/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.service.ts
@@ -44,7 +44,7 @@ export class WpTableConfigurationService {
},
{
id: 'timelines',
- name: this.I18n.t('js.timelines.gantt_chart'),
+ name: this.I18n.t('js.gantt_chart.label'),
componentClass: WpTableConfigurationTimelinesTabComponent,
},
];
diff --git a/frontend/src/app/features/work-packages/components/wp-table/timeline/container/wp-timeline-container.directive.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/container/wp-timeline-container.directive.ts
index aa71b626207..ad8f28696bc 100644
--- a/frontend/src/app/features/work-packages/components/wp-table/timeline/container/wp-timeline-container.directive.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/container/wp-timeline-container.directive.ts
@@ -175,7 +175,7 @@ export class WorkPackageTimelineTableController extends UntilDestroyedMixin impl
}
this.text = {
- selectionMode: this.I18n.t('js.timelines.selection_mode.notification'),
+ selectionMode: this.I18n.t('js.gantt_chart.selection_mode.notification'),
};
// Get the outer container for width computation
diff --git a/frontend/src/app/features/work-packages/components/wp-table/timeline/header/wp-timeline-header.directive.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/header/wp-timeline-header.directive.ts
index f30daae3d88..97e3cbe6ae6 100644
--- a/frontend/src/app/features/work-packages/components/wp-table/timeline/header/wp-timeline-header.directive.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/header/wp-timeline-header.directive.ts
@@ -164,7 +164,7 @@ export class WorkPackageTimelineHeaderController implements OnInit {
});
this.renderTimeSlices(vp, 'quarter', 15, vp.dateDisplayStart, vp.dateDisplayEnd, (start, cell) => {
- cell.innerHTML = this.I18n.t('js.timelines.quarter_label',
+ cell.innerHTML = this.I18n.t('js.gantt_chart.quarter_label',
{ quarter_number: start.format('Q') });
cell.classList.add('-top-border');
cell.style.height = '30px';
@@ -183,7 +183,7 @@ export class WorkPackageTimelineHeaderController implements OnInit {
});
this.renderTimeSlices(vp, 'quarter', 15, vp.dateDisplayStart, vp.dateDisplayEnd, (start, cell) => {
- cell.innerHTML = this.I18n.t('js.timelines.quarter_label',
+ cell.innerHTML = this.I18n.t('js.gantt_chart.quarter_label',
{ quarter_number: start.format('Q') });
cell.classList.add('-top-border');
cell.style.height = '30px';
diff --git a/frontend/src/app/shared/components/op-view-select/op-static-queries.service.ts b/frontend/src/app/shared/components/op-view-select/op-static-queries.service.ts
index c853930f4f2..023aa1893f7 100644
--- a/frontend/src/app/shared/components/op-view-select/op-static-queries.service.ts
+++ b/frontend/src/app/shared/components/op-view-select/op-static-queries.service.ts
@@ -59,7 +59,7 @@ export class StaticQueriesService {
updated_at: this.I18n.t('js.work_packages.properties.updatedAt'),
status: this.I18n.t('js.work_packages.properties.status'),
work_packages: this.I18n.t('js.label_work_package_plural'),
- gantt: this.I18n.t('js.timelines.gantt_chart'),
+ gantt: this.I18n.t('js.gantt_chart.label'),
latest_activity: this.I18n.t('js.work_packages.default_queries.latest_activity'),
created_by_me: this.I18n.t('js.work_packages.default_queries.created_by_me'),
assigned_to_me: this.I18n.t('js.work_packages.default_queries.assigned_to_me'),