From 5a4d7bef2ed4124271eee6c0d5fdd0b053be9609 Mon Sep 17 00:00:00 2001 From: futa-ikeda Date: Thu, 16 Jan 2025 12:03:44 -0500 Subject: [PATCH 1/4] Update withdraw modal language --- app/preprints/-components/withdrawal-preprint/template.hbs | 7 ++++++- translations/en-us.yml | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/preprints/-components/withdrawal-preprint/template.hbs b/app/preprints/-components/withdrawal-preprint/template.hbs index ad2f16feeb..70587e33c2 100644 --- a/app/preprints/-components/withdrawal-preprint/template.hbs +++ b/app/preprints/-components/withdrawal-preprint/template.hbs @@ -18,7 +18,12 @@ data-test-dialog-body >
- {{this.modalExplanation}} +

+ {{t 'preprints.submit.action-flow.withdrawal-explanation' singularPreprintWord=@provider.documentType.singular}} +

+

+ {{this.modalExplanation}} +

{pluralCapitalizedPreprintWord} are a permanent part of the scholarly record. Withdrawal requests are subject to this service’s policy on {singularPreprintWord} removal and at the discretion of the moderators.
This request will be submitted to {supportEmail} for review and removal. If the request is approved, this {singularPreprintWord} will be replaced by a tombstone page with metadata and the reason for withdrawal. This {singularPreprintWord} will still be searchable by other users after removal.' post-moderation-notice: '{pluralCapitalizedPreprintWord} are a permanent part of the scholarly record. Withdrawal requests are subject to this service’s policy on {singularPreprintWord} removal and at the discretion of the moderators.
This service uses post-moderation. This request will be submitted to service moderators for review. If the request is approved, this {singularPreprintWord} will be replaced by a tombstone page with metadata and the reason for withdrawal. This {singularPreprintWord} will still be searchable by other users after removal.' From 15d15d4e779bafa72843e16aee280eb77de6885c Mon Sep 17 00:00:00 2001 From: futa-ikeda Date: Thu, 16 Jan 2025 12:40:50 -0500 Subject: [PATCH 2/4] Update language --- app/preprints/-components/withdrawal-preprint/component.ts | 2 +- translations/en-us.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/preprints/-components/withdrawal-preprint/component.ts b/app/preprints/-components/withdrawal-preprint/component.ts index 7a664b600d..bb15da72be 100644 --- a/app/preprints/-components/withdrawal-preprint/component.ts +++ b/app/preprints/-components/withdrawal-preprint/component.ts @@ -89,7 +89,7 @@ export default class WithdrawalComponent extends Component ) { return this.intl.t('preprints.submit.action-flow.pre-moderation-notice-pending', { - singularPreprintWord: this.args.provider.documentType.singularCapitalized, + singularPreprintWord: this.args.provider.documentType.singular, htmlSafe: true, }) as SafeString; } else if (this.args.provider.reviewsWorkflow === PreprintProviderReviewsWorkFlow.PRE_MODERATION diff --git a/translations/en-us.yml b/translations/en-us.yml index 957458fb91..f4103e0760 100644 --- a/translations/en-us.yml +++ b/translations/en-us.yml @@ -1403,7 +1403,7 @@ preprints: {supportEmail} for review and removal. If the request is approved, this {singularPreprintWord} will be replaced by a tombstone page with metadata and the reason for withdrawal. This {singularPreprintWord} will still be searchable by other users after removal.' post-moderation-notice: '{pluralCapitalizedPreprintWord} are a permanent part of the scholarly record. Withdrawal requests are subject to this service’s policy on {singularPreprintWord} removal and at the discretion of the moderators.
This service uses post-moderation. This request will be submitted to service moderators for review. If the request is approved, this {singularPreprintWord} will be replaced by a tombstone page with metadata and the reason for withdrawal. This {singularPreprintWord} will still be searchable by other users after removal.' pre-moderation-notice-accepted: '{pluralCapitalizedPreprintWord} are a permanent part of the scholarly record. Withdrawal requests are subject to this service’s policy on {singularPreprintWord} removal and at the discretion of the moderators.
This service uses pre-moderation. This request will be submitted to service moderators for review. If the request is approved, this {singularPreprintWord} will be replaced by a tombstone page with metadata and the reason for withdrawal. This {singularPreprintWord} will still be searchable by other users after removal.' - pre-moderation-notice-pending: 'Your {singularPreprintWord} is still pending approval and thus private, but can be withdrawn immediately. If you wish to provide a reason for withdrawal, it will be displayed only to service moderators. Once withdrawn, your preprint will never be made public.' + pre-moderation-notice-pending: 'Since this version is still pending approval and private, it can be withdrawn immediately. The reason of withdrawal will be visible to service moderators. Once withdrawn, the {singularPreprintWord} will remain private and never be made public.' save-before-exit: 'Unsaved changes present. Are you sure you want to leave this page?' success: '{singularPreprintWord} saved.' success-withdrawal: 'Your {singularCapitalizedPreprintWord} has been successfully withdrawn.' From d9d964b38dffa09516a0908abbacd3162aaaa919 Mon Sep 17 00:00:00 2001 From: futa-ikeda Date: Thu, 16 Jan 2025 15:03:03 -0500 Subject: [PATCH 3/4] Update more language --- translations/en-us.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/translations/en-us.yml b/translations/en-us.yml index f4103e0760..65d8d30fbd 100644 --- a/translations/en-us.yml +++ b/translations/en-us.yml @@ -1399,10 +1399,9 @@ preprints: next: 'Next' next-disabled-tooltip: 'Fill in "Required *" fields to continue' withdrawal-explanation: 'You are about to withdraw this version of your {singularPreprintWord}. Withdrawing a version will remove it from public view but will not affect other versions of this {singularPreprintWord}, if available.' - no-moderation-notice: '{pluralCapitalizedPreprintWord} are a permanent part of the scholarly record. Withdrawal requests are subject to this service’s policy on {singularPreprintWord} removal and at the discretion of the moderators.
This request will be submitted to - {supportEmail} for review and removal. If the request is approved, this {singularPreprintWord} will be replaced by a tombstone page with metadata and the reason for withdrawal. This {singularPreprintWord} will still be searchable by other users after removal.' - post-moderation-notice: '{pluralCapitalizedPreprintWord} are a permanent part of the scholarly record. Withdrawal requests are subject to this service’s policy on {singularPreprintWord} removal and at the discretion of the moderators.
This service uses post-moderation. This request will be submitted to service moderators for review. If the request is approved, this {singularPreprintWord} will be replaced by a tombstone page with metadata and the reason for withdrawal. This {singularPreprintWord} will still be searchable by other users after removal.' - pre-moderation-notice-accepted: '{pluralCapitalizedPreprintWord} are a permanent part of the scholarly record. Withdrawal requests are subject to this service’s policy on {singularPreprintWord} removal and at the discretion of the moderators.
This service uses pre-moderation. This request will be submitted to service moderators for review. If the request is approved, this {singularPreprintWord} will be replaced by a tombstone page with metadata and the reason for withdrawal. This {singularPreprintWord} will still be searchable by other users after removal.' + no-moderation-notice: '{pluralCapitalizedPreprintWord} are a permanent part of the scholarly record. Withdrawal requests are subject to this service’s policy on {singularPreprintWord} version removal and at the discretion of the moderators.
This request will be submitted to {supportEmail} for review and removal. If the request is approved, this {singularPreprintWord} version will be replaced by a tombstone page with metadata and the reason for withdrawal. This {singularPreprintWord} version will still be searchable by other users after removal.' + post-moderation-notice: '{pluralCapitalizedPreprintWord} are a permanent part of the scholarly record. Withdrawal requests are subject to this service’s policy on {singularPreprintWord} version removal and at the discretion of the moderators.
This service uses post-moderation. This request will be submitted to service moderators for review. If the request is approved, this {singularPreprintWord} version will be replaced by a tombstone page with metadata and the reason for withdrawal. This {singularPreprintWord} version will still be searchable by other users after removal.' + pre-moderation-notice-accepted: '{pluralCapitalizedPreprintWord} are a permanent part of the scholarly record. Withdrawal requests are subject to this service’s policy on {singularPreprintWord} version removal and at the discretion of the moderators.
This service uses pre-moderation. This request will be submitted to service moderators for review. If the request is approved, this {singularPreprintWord} version will be replaced by a tombstone page with metadata and the reason for withdrawal. This {singularPreprintWord} version will still be searchable by other users after removal.' pre-moderation-notice-pending: 'Since this version is still pending approval and private, it can be withdrawn immediately. The reason of withdrawal will be visible to service moderators. Once withdrawn, the {singularPreprintWord} will remain private and never be made public.' save-before-exit: 'Unsaved changes present. Are you sure you want to leave this page?' success: '{singularPreprintWord} saved.' From 478ec46d46ee37dafeff4d0a191436e9e8228ed6 Mon Sep 17 00:00:00 2001 From: futa-ikeda Date: Thu, 16 Jan 2025 15:26:45 -0500 Subject: [PATCH 4/4] More language updates --- app/preprints/-components/withdrawal-preprint/component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/preprints/-components/withdrawal-preprint/component.ts b/app/preprints/-components/withdrawal-preprint/component.ts index bb15da72be..74a9b3ba8d 100644 --- a/app/preprints/-components/withdrawal-preprint/component.ts +++ b/app/preprints/-components/withdrawal-preprint/component.ts @@ -96,21 +96,21 @@ export default class WithdrawalComponent extends Component ) { return this.intl.t('preprints.submit.action-flow.pre-moderation-notice-accepted', { - singularPreprintWord: this.args.provider.documentType.singularCapitalized, + singularPreprintWord: this.args.provider.documentType.singular, pluralCapitalizedPreprintWord: this.args.provider.documentType.pluralCapitalized, htmlSafe: true, }) as SafeString; } else if (this.args.provider.reviewsWorkflow === PreprintProviderReviewsWorkFlow.POST_MODERATION) { return this.intl.t('preprints.submit.action-flow.post-moderation-notice', { - singularPreprintWord: this.args.provider.documentType.singularCapitalized, + singularPreprintWord: this.args.provider.documentType.singular, pluralCapitalizedPreprintWord: this.args.provider.documentType.pluralCapitalized, htmlSafe: true, }) as SafeString; } else { return this.intl.t('preprints.submit.action-flow.no-moderation-notice', { - singularPreprintWord: this.args.provider.documentType.singularCapitalized, + singularPreprintWord: this.args.provider.documentType.singular, pluralCapitalizedPreprintWord: this.args.provider.documentType.pluralCapitalized, supportEmail, htmlSafe: true,