Skip to content

Commit

Permalink
Merge pull request #563 from jyhein/f5502
Browse files Browse the repository at this point in the history
Change submission language
  • Loading branch information
bozana authored Sep 25, 2024
2 parents 65b1a45 + 5ad8a3f commit 95ec5be
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 2 deletions.
6 changes: 6 additions & 0 deletions registry/uiLocaleKeysBackend.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[
"admin.jobs.failed.action.redispatch",
"admin.jobs.failed.action.redispatch.all",
"author.users.contributor.principalContact",
"author.users.contributor.setPrincipalContact",
"common.attachFiles",
Expand All @@ -9,6 +11,7 @@
"common.default",
"common.delete",
"common.description",
"common.details",
"common.download",
"common.edit",
"common.editItem",
Expand Down Expand Up @@ -79,6 +82,8 @@
"grid.action.deleteContributor.confirmationMessage",
"grid.action.edit",
"grid.action.saveOrdering",
"grid.action.sort",
"grid.noItems",
"help.help",
"list.collapseAll",
"list.expandAll",
Expand Down Expand Up @@ -204,6 +209,7 @@
"submission.contributors",
"submission.files",
"submission.list.assignEditor",
"submission.list.changeSubmissionLanguage.title",
"submission.list.copyeditsSubmitted",
"submission.list.currentStage",
"submission.list.discussions",
Expand Down
3 changes: 3 additions & 0 deletions templates/authorDashboard/authorDashboard.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
<tab id="publication" label="{translate key="submission.publication"}">
<div class="pkpPublication" ref="publication" aria-live="polite">
<pkp-header class="pkpPublication__header" :is-one-line="false">
<span class="pkpPublication__changeSubmissionLanguage">
<strong>{translate key="submission.list.changeSubmissionLanguage.currentLanguage"}</strong> {{ currentSubmissionLanguageLabel }}
</span>
<span class="pkpPublication__status">
<strong>{{ statusLabel }}</strong>
<span v-if="workingPublication.status === getConstant('STATUS_PUBLISHED')" class="pkpPublication__statusPublished">{translate key="publication.status.published"}</span>
Expand Down
23 changes: 23 additions & 0 deletions templates/workflow/workflow.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@
{rdelim});
</script>

<pkp-header class="pkpPublication__header" :is-one-line="false">
<span class="pkp_submission_workflow__changeSubmissionLanguage">
<strong>{translate key="submission.list.changeSubmissionLanguage.currentLanguage"}</strong> {{ currentSubmissionLanguageLabel }}
</span>
</pkp-header>
<div id="submissionWorkflow" class="pkp_submission_workflow">
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="workflowNotification" requestOptions=$workflowNotificationRequestOptions}
{capture assign=submissionProgressBarUrl}{url op="submissionProgressBar" submissionId=$submission->getId() stageId=$requestedStageId contextId="submission" escape=false}{/capture}
Expand All @@ -90,6 +95,18 @@
<tab id="publication" label="{translate key="submission.publication"}">
<div class="pkpPublication" ref="publication" aria-live="polite">
<pkp-header class="pkpPublication__header" :is-one-line="false">
<span class="pkpPublication__changeSubmissionLanguage">
<span>
<strong>{translate key="submission.list.changeSubmissionLanguage.currentLanguage"}</strong> {{ currentSubmissionLanguageLabel }}
</span>
<pkp-button
v-if="canChangeSubmissionLanguage && publicationList.length < 2 && submission.status !== getConstant('STATUS_PUBLISHED')"
@click="openChangeSubmissionLanguageModal"
:is-link="true"
>
{translate key="submission.list.changeSubmissionLanguage.buttonLabel"}
</pkp-button>
</span>
<span class="pkpPublication__status">
<strong>{{ statusLabel }}</strong>
<span v-if="workingPublication.status === getConstant('STATUS_QUEUED') && workingPublication.id === currentPublication.id" class="pkpPublication__statusUnpublished">{translate key="publication.status.unscheduled"}</span>
Expand Down Expand Up @@ -171,6 +188,12 @@
>
{translate key="publication.editDisabled"}
</div>
<div
v-if="workingPublication.status !== getConstant('STATUS_PUBLISHED') && !submissionSupportedLocales.includes(submission.locale)"
class="pkpSubmission__localeNotSupported"
>
{translate key="submission.localeNotSupported" language="{{ currentSubmissionLanguageLabel }}"}
</div>
<tabs class="pkpPublication__tabs" :is-side-tabs="true" :track-history="true" :label="publicationTabsLabel">
<tab id="titleAbstract" label="{translate key="publication.titleAbstract"}">
<pkp-form v-bind="components.{PKP\components\forms\publication\TitleAbstractForm::FORM_TITLE_ABSTRACT}" @set="set" />
Expand Down

0 comments on commit 95ec5be

Please sign in to comment.