Skip to content

Commit

Permalink
pkp/pkp-lib#8880 Localize round info in submissions table
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr authored and Vitaliy-1 committed Aug 10, 2023
1 parent ae211bf commit 69ff537
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions public/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ window.pkp = {
'common.filter': 'Filters',
'common.filterAdd': 'Add filter: {$filterTitle}',
'common.filterRemove': 'Clear filter: {$filterTitle}',
'common.inParenthesis': '({$text})',
'common.insertContent': 'Insert Content',
'common.loaded': 'Loaded',
'common.loading': 'Loading',
Expand Down
3 changes: 1 addition & 2 deletions src/components/Container/SubmissionsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ export default {
count: 30,
currentViewId: '',
filtersForm: {},
i18nListUpdated: '',
i18nLoadingPage: '',
i18nReviewRound: '',
i18nShowingXofX: '',
isLoadingPage: false,
isLoadingSubmissions: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,16 @@
submission.reviewRounds.length
"
>
(Round
{{
submission.reviewRounds[submission.reviewRounds.length - 1]
.round
}})
__('common.inParenthesis', {
text: i18nReviewRound.replace(
'{$round}',
submission.reviewRounds[
submission.reviewRounds.length - 1
].round
),
})
}}
</template>
</stage-bubble>
</table-cell>
Expand Down Expand Up @@ -219,6 +224,7 @@ export default {
...form,
action: 'emit',
},
i18nReviewRound: 'Round {$round}',
i18nShowingXofX: 'Showing {$start} to {$finish} of {$total}',
submissions: {...submissions},
submissionsMax: 120,
Expand Down

0 comments on commit 69ff537

Please sign in to comment.