Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions src/assets/print-view/fetch-orcid.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ function renderActivityGroupFromJson(section, title, items, renderItem) {
const block = document.createElement('div')
block.className = 'activity-group'
const heading = document.createElement('h3')
heading.textContent = $localize`:@@printView.activityGroupHeading:${title}:TITLE: (${entries.length}:COUNT:)`
heading.textContent = `${title} (${entries.length})`
block.appendChild(heading)
const list = document.createElement('ul')
entries.forEach((entry) => {
Expand Down Expand Up @@ -849,7 +849,7 @@ function renderPeerReviews(activities, section) {
const block = document.createElement('div')
block.className = 'activity-group'
const heading = document.createElement('h3')
heading.textContent = $localize`:@@printView.peerReviewHeading:Peer review (${reviews}:REVIEW_COUNT: reviews for ${sortedPublications.size}:PUBLICATION_COUNT: publications/grants)`
heading.textContent = `Peer review (${reviews} reviews for ${sortedPublications.size} publications/grants)`
block.appendChild(heading)
const list = document.createElement('ul')
for (publication of sortedPublications || []) {
Expand Down Expand Up @@ -927,9 +927,7 @@ async function fetchOrcidRecord(orcidId) {
}
}
if (!response.ok) {
throw new Error(
$localize`:@@printView.fetchFailed:Failed to fetch ORCID record (${response.status}:STATUS:).`
)
throw new Error(`Failed to fetch ORCID record (${response.status}).`)
}

const recordJson = await response.json()
Expand All @@ -956,10 +954,7 @@ async function loadRecord(orcidId) {
message.className = 'error'
message.textContent = error.message
cvRoot.appendChild(message)
showStatus(
$localize`:@@printView.couldNotLoad:Could not load ${orcidId}:ORCID_ID:.`,
'error'
)
showStatus(`Could not load ${orcidId}.`, 'error')
cvRoot.setAttribute('aria-busy', 'false')
}
}
Expand Down
420 changes: 277 additions & 143 deletions src/locale/messages.ar.xlf

Large diffs are not rendered by default.

408 changes: 265 additions & 143 deletions src/locale/messages.ca.xlf

Large diffs are not rendered by default.

420 changes: 277 additions & 143 deletions src/locale/messages.cs.xlf

Large diffs are not rendered by default.

420 changes: 277 additions & 143 deletions src/locale/messages.de.xlf

Large diffs are not rendered by default.

420 changes: 277 additions & 143 deletions src/locale/messages.es.xlf

Large diffs are not rendered by default.

336 changes: 157 additions & 179 deletions src/locale/messages.fr.xlf

Large diffs are not rendered by default.

420 changes: 277 additions & 143 deletions src/locale/messages.it.xlf

Large diffs are not rendered by default.

420 changes: 277 additions & 143 deletions src/locale/messages.ja.xlf

Large diffs are not rendered by default.

420 changes: 277 additions & 143 deletions src/locale/messages.ko.xlf

Large diffs are not rendered by default.

17 changes: 1 addition & 16 deletions src/locale/messages.lr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -21176,22 +21176,7 @@
<source>Funded by</source>
<target>LR</target>
</trans-unit>
<trans-unit id="printView.activityGroupHeading" datatype="html" resname="printView.activityGroupHeading">
<source>{$TITLE} ({$COUNT})</source>
<target>LR</target>
</trans-unit>
<trans-unit id="printView.peerReviewHeading" datatype="html" resname="printView.peerReviewHeading">
<source>Peer review ({$REVIEW_COUNT} reviews for {$PUBLICATION_COUNT} publications/grants)</source>
<target>LR</target>
</trans-unit>
<trans-unit id="printView.fetchFailed" datatype="html" resname="printView.fetchFailed">
<source>Failed to fetch ORCID record ({$STATUS}).</source>
<target>LR</target>
</trans-unit>
<trans-unit id="printView.couldNotLoad" datatype="html" resname="printView.couldNotLoad">
<source>Could not load {$ORCID_ID}.</source>
<target>LR</target>
</trans-unit>

</body>
</file>
</xliff>
420 changes: 277 additions & 143 deletions src/locale/messages.pl_PL.xlf

Large diffs are not rendered by default.

420 changes: 277 additions & 143 deletions src/locale/messages.pt.xlf

Large diffs are not rendered by default.

17 changes: 1 addition & 16 deletions src/locale/messages.rl.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -21176,22 +21176,7 @@
<source>Funded by</source>
<target>RL</target>
</trans-unit>
<trans-unit id="printView.activityGroupHeading" datatype="html" resname="printView.activityGroupHeading">
<source>{$TITLE} ({$COUNT})</source>
<target>RL</target>
</trans-unit>
<trans-unit id="printView.peerReviewHeading" datatype="html" resname="printView.peerReviewHeading">
<source>Peer review ({$REVIEW_COUNT} reviews for {$PUBLICATION_COUNT} publications/grants)</source>
<target>RL</target>
</trans-unit>
<trans-unit id="printView.fetchFailed" datatype="html" resname="printView.fetchFailed">
<source>Failed to fetch ORCID record ({$STATUS}).</source>
<target>RL</target>
</trans-unit>
<trans-unit id="printView.couldNotLoad" datatype="html" resname="printView.couldNotLoad">
<source>Could not load {$ORCID_ID}.</source>
<target>RL</target>
</trans-unit>

</body>
</file>
</xliff>
420 changes: 277 additions & 143 deletions src/locale/messages.ru.xlf

Large diffs are not rendered by default.

420 changes: 277 additions & 143 deletions src/locale/messages.tr_TR.xlf

Large diffs are not rendered by default.

408 changes: 265 additions & 143 deletions src/locale/messages.uk.xlf

Large diffs are not rendered by default.

13 changes: 1 addition & 12 deletions src/locale/messages.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -18910,18 +18910,7 @@
<trans-unit id="printView.relFundedBy" datatype="html" resname="printView.relFundedBy">
<source>Funded by</source>
</trans-unit>
<trans-unit id="printView.activityGroupHeading" datatype="html" resname="printView.activityGroupHeading">
<source>{$TITLE} ({$COUNT})</source>
</trans-unit>
<trans-unit id="printView.peerReviewHeading" datatype="html" resname="printView.peerReviewHeading">
<source>Peer review ({$REVIEW_COUNT} reviews for {$PUBLICATION_COUNT} publications/grants)</source>
</trans-unit>
<trans-unit id="printView.fetchFailed" datatype="html" resname="printView.fetchFailed">
<source>Failed to fetch ORCID record ({$STATUS}).</source>
</trans-unit>
<trans-unit id="printView.couldNotLoad" datatype="html" resname="printView.couldNotLoad">
<source>Could not load {$ORCID_ID}.</source>
</trans-unit>

</body>
</file>
</xliff>
17 changes: 1 addition & 16 deletions src/locale/messages.xx.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -21176,22 +21176,7 @@
<source>Funded by</source>
<target>X</target>
</trans-unit>
<trans-unit id="printView.activityGroupHeading" datatype="html" resname="printView.activityGroupHeading">
<source>{$TITLE} ({$COUNT})</source>
<target>X</target>
</trans-unit>
<trans-unit id="printView.peerReviewHeading" datatype="html" resname="printView.peerReviewHeading">
<source>Peer review ({$REVIEW_COUNT} reviews for {$PUBLICATION_COUNT} publications/grants)</source>
<target>X</target>
</trans-unit>
<trans-unit id="printView.fetchFailed" datatype="html" resname="printView.fetchFailed">
<source>Failed to fetch ORCID record ({$STATUS}).</source>
<target>X</target>
</trans-unit>
<trans-unit id="printView.couldNotLoad" datatype="html" resname="printView.couldNotLoad">
<source>Could not load {$ORCID_ID}.</source>
<target>X</target>
</trans-unit>

</body>
</file>
</xliff>
Loading
Loading