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

use translations for modal content

Jonas Jabari960e8267e2c1
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index 58d3b6f6a92..8c614feb4e9 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -351,6 +351,14 @@ en:
<li>List up to 3 people in a notification card when multiple people were involved in the changes.</li>
</ul>
+ ical_sharing_modal:
+ title: "Share iCalendar"
+ description_1: "You can use the"
+ description_2: "to import or subscribe to this calendar in an external client and view up-to-date work package information from there."
+ warning: "You can also share this URL with external users. However, anyone with this link will be able to view work package details without an account or password."
+ copy_url_label: "Copy URL"
+ copy_url_success_text: "URL copied to clipboard"
+
label_activate: "Activate"
label_assignee: 'Assignee'
label_add_column_after: "Add column after"
diff --git a/frontend/src/app/shared/components/modals/get-ical-url-modal/query-get-ical-url.modal.ts b/frontend/src/app/shared/components/modals/get-ical-url-modal/query-get-ical-url.modal.ts
index dacaa157317..76573738e7e 100644
--- a/frontend/src/app/shared/components/modals/get-ical-url-modal/query-get-ical-url.modal.ts
+++ b/frontend/src/app/shared/components/modals/get-ical-url-modal/query-get-ical-url.modal.ts
@@ -54,12 +54,12 @@ export class QueryGetIcalUrlModalComponent extends OpModalComponent implements O
public icalUrl: string;
public text = {
- label_ical_sharing: 'Share iCalendar', // TODO: translate
- description_ical_sharing_1: 'You can use the', // TODO: translate
- description_ical_sharing_2: 'to import or subscribe to this calendar in an external client and view up-to-date work package information from there.', // TODO: translate
- ical_sharing_warning: 'You can also share this URL with external users. However, anyone with this link will be able to view work package details without an account or password.', // TODO: translate
- button_copy: 'Copy URL', // TODO: translate
- copy_success_text: 'URL copied to clipboard', // TODO: translate
+ label_ical_sharing: this.I18n.t('js.ical_sharing_modal.title'),
+ description_ical_sharing_1: this.I18n.t('js.ical_sharing_modal.description_1'),
+ description_ical_sharing_2: this.I18n.t('js.ical_sharing_modal.description_2'),
+ ical_sharing_warning: this.I18n.t('js.ical_sharing_modal.warning'),
+ button_copy: this.I18n.t('js.ical_sharing_modal.copy_url_label'),
+ copy_success_text: this.I18n.t('js.ical_sharing_modal.copy_url_success_text'),
button_cancel: this.I18n.t('js.button_cancel'),
close_popup: this.I18n.t('js.close_popup_title')
};