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

Update modal texts

Klaus Zanders91d2d6e58042
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index a79646e4035..80515c85d17 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -392,15 +392,16 @@ en:
</ul>
ical_sharing_modal:
- title: "Subscribe to iCalendar"
+ title: "Subscribe to calendar"
inital_setup_error_message: "An error occured while fetching data."
- description: "You can use the iCalendar URL to import or subscribe to this calendar in an external client and view up-to-date work package information from there."
- warning: "Please don't share this URL with external users. Anyone with this link will be able to view work package details without an account or password."
- token_name_label: "Token name"
- token_name_placeholder: "Type a name for this token, e.g. \"My calendar application\""
- token_name_description_text: "This name will be used to distinguish it form other tokens in the <a href=\"my/access_token\", target=\"_blank\">access tokens list</a>. It can only be used once per calendar."
+ description: "You can use the URL (iCalendar) to subscribe to this calendar in an external client and view up-to-date work package information from there."
+ warning: "Please don't share this URL with other users. Anyone with this link will be able to view work package details without an account or password."
+ token_name_label: "Where will you be using this?"
+ token_name_placeholder: "Type a name, e.g. \"Phone\""
+ token_name_description_text: "If you subscribe to this calendar from multiple devices, this name will help you to distinguish between them in your <a href=\"my/access_token\", target=\"_blank\">access tokens</a> list."
copy_url_label: "Copy URL"
- ical_generation_error_text: "An error occured while generating the iCal URL."
+ ical_generation_error_text: "An error occured while generating the calendar URL."
+ success_message: "The URL \"%{name}\" was successfull copied to your clipboard. Paste it in your calendar client to complete the subscription."
label_activate: "Activate"
label_assignee: 'Assignee'
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 00f12875875..2eefdd7d5f6 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
@@ -123,7 +123,7 @@ export class QueryGetIcalUrlModalComponent extends OpModalComponent implements O
return;
}
- let icalUrl = '';
+ const icalUrl = '';
const tokenName = (this.tokenNameForm.value as TokenNameFormValue)?.name;
@@ -136,7 +136,7 @@ export class QueryGetIcalUrlModalComponent extends OpModalComponent implements O
void promise
.then((response:{ icalUrl:{ href:string } }) => {
- this.copyToClipboardService.copy(String(response.icalUrl.href));
+ this.copyToClipboardService.copy(String(response.icalUrl.href), this.I18n.t('js.ical_sharing_modal.success_message', { name: tokenName }));
this.closeMe();
})
.catch((error:{ message:string }) => {