Skip to content

Commit b80d466

Browse files
committed
PD-0000 print tranlsations issues fix
1 parent 35c13c2 commit b80d466

6 files changed

Lines changed: 11 additions & 64 deletions

File tree

src/assets/print-view/fetch-orcid.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ function renderActivityGroupFromJson(section, title, items, renderItem) {
481481
const block = document.createElement('div')
482482
block.className = 'activity-group'
483483
const heading = document.createElement('h3')
484-
heading.textContent = $localize`:@@printView.activityGroupHeading:${title}:TITLE: (${entries.length}:COUNT:)`
484+
heading.textContent = `${title} (${entries.length})`
485485
block.appendChild(heading)
486486
const list = document.createElement('ul')
487487
entries.forEach((entry) => {
@@ -849,7 +849,7 @@ function renderPeerReviews(activities, section) {
849849
const block = document.createElement('div')
850850
block.className = 'activity-group'
851851
const heading = document.createElement('h3')
852-
heading.textContent = $localize`:@@printView.peerReviewHeading:Peer review (${reviews}:REVIEW_COUNT: reviews for ${sortedPublications.size}:PUBLICATION_COUNT: publications/grants)`
852+
heading.textContent = `Peer review (${reviews} reviews for ${sortedPublications.size} publications/grants)`
853853
block.appendChild(heading)
854854
const list = document.createElement('ul')
855855
for (publication of sortedPublications || []) {
@@ -928,7 +928,7 @@ async function fetchOrcidRecord(orcidId) {
928928
}
929929
if (!response.ok) {
930930
throw new Error(
931-
$localize`:@@printView.fetchFailed:Failed to fetch ORCID record (${response.status}:STATUS:).`
931+
`Failed to fetch ORCID record (${response.status}).`
932932
)
933933
}
934934

@@ -957,7 +957,7 @@ async function loadRecord(orcidId) {
957957
message.textContent = error.message
958958
cvRoot.appendChild(message)
959959
showStatus(
960-
$localize`:@@printView.couldNotLoad:Could not load ${orcidId}:ORCID_ID:.`,
960+
`Could not load ${orcidId}.`,
961961
'error'
962962
)
963963
cvRoot.setAttribute('aria-busy', 'false')

src/locale/messages.fr.xlf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21196,6 +21196,7 @@
2119621196
<trans-unit id="printView.redirectingToPrimary" datatype="html" resname="printView.redirectingToPrimary">
2119721197
<source>Redirecting to primary ORCID record…</source>
2119821198
</trans-unit>
21199+
<<<<<<< Updated upstream
2119921200
<trans-unit id="printView.orcidPrintView" datatype="html" resname="printView.orcidPrintView">
2120021201
<source>ORCID Print view</source>
2120121202
</trans-unit>
@@ -21222,6 +21223,8 @@
2122221223
<target>Financé par</target>
2122321224
</trans-unit>
2122421225

21226+
=======
21227+
>>>>>>> Stashed changes
2122521228
</body>
2122621229
</file>
2122721230
</xliff>

src/locale/messages.lr.xlf

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21176,22 +21176,7 @@
2117621176
<source>Funded by</source>
2117721177
<target>LR</target>
2117821178
</trans-unit>
21179-
<trans-unit id="printView.activityGroupHeading" datatype="html" resname="printView.activityGroupHeading">
21180-
<source>{$TITLE} ({$COUNT})</source>
21181-
<target>LR</target>
21182-
</trans-unit>
21183-
<trans-unit id="printView.peerReviewHeading" datatype="html" resname="printView.peerReviewHeading">
21184-
<source>Peer review ({$REVIEW_COUNT} reviews for {$PUBLICATION_COUNT} publications/grants)</source>
21185-
<target>LR</target>
21186-
</trans-unit>
21187-
<trans-unit id="printView.fetchFailed" datatype="html" resname="printView.fetchFailed">
21188-
<source>Failed to fetch ORCID record ({$STATUS}).</source>
21189-
<target>LR</target>
21190-
</trans-unit>
21191-
<trans-unit id="printView.couldNotLoad" datatype="html" resname="printView.couldNotLoad">
21192-
<source>Could not load {$ORCID_ID}.</source>
21193-
<target>LR</target>
21194-
</trans-unit>
21179+
2119521180
</body>
2119621181
</file>
2119721182
</xliff>

src/locale/messages.rl.xlf

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21176,22 +21176,7 @@
2117621176
<source>Funded by</source>
2117721177
<target>RL</target>
2117821178
</trans-unit>
21179-
<trans-unit id="printView.activityGroupHeading" datatype="html" resname="printView.activityGroupHeading">
21180-
<source>{$TITLE} ({$COUNT})</source>
21181-
<target>RL</target>
21182-
</trans-unit>
21183-
<trans-unit id="printView.peerReviewHeading" datatype="html" resname="printView.peerReviewHeading">
21184-
<source>Peer review ({$REVIEW_COUNT} reviews for {$PUBLICATION_COUNT} publications/grants)</source>
21185-
<target>RL</target>
21186-
</trans-unit>
21187-
<trans-unit id="printView.fetchFailed" datatype="html" resname="printView.fetchFailed">
21188-
<source>Failed to fetch ORCID record ({$STATUS}).</source>
21189-
<target>RL</target>
21190-
</trans-unit>
21191-
<trans-unit id="printView.couldNotLoad" datatype="html" resname="printView.couldNotLoad">
21192-
<source>Could not load {$ORCID_ID}.</source>
21193-
<target>RL</target>
21194-
</trans-unit>
21179+
2119521180
</body>
2119621181
</file>
2119721182
</xliff>

src/locale/messages.xlf

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18910,18 +18910,7 @@
1891018910
<trans-unit id="printView.relFundedBy" datatype="html" resname="printView.relFundedBy">
1891118911
<source>Funded by</source>
1891218912
</trans-unit>
18913-
<trans-unit id="printView.activityGroupHeading" datatype="html" resname="printView.activityGroupHeading">
18914-
<source>{$TITLE} ({$COUNT})</source>
18915-
</trans-unit>
18916-
<trans-unit id="printView.peerReviewHeading" datatype="html" resname="printView.peerReviewHeading">
18917-
<source>Peer review ({$REVIEW_COUNT} reviews for {$PUBLICATION_COUNT} publications/grants)</source>
18918-
</trans-unit>
18919-
<trans-unit id="printView.fetchFailed" datatype="html" resname="printView.fetchFailed">
18920-
<source>Failed to fetch ORCID record ({$STATUS}).</source>
18921-
</trans-unit>
18922-
<trans-unit id="printView.couldNotLoad" datatype="html" resname="printView.couldNotLoad">
18923-
<source>Could not load {$ORCID_ID}.</source>
18924-
</trans-unit>
18913+
1892518914
</body>
1892618915
</file>
1892718916
</xliff>

src/locale/messages.xx.xlf

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21176,22 +21176,7 @@
2117621176
<source>Funded by</source>
2117721177
<target>X</target>
2117821178
</trans-unit>
21179-
<trans-unit id="printView.activityGroupHeading" datatype="html" resname="printView.activityGroupHeading">
21180-
<source>{$TITLE} ({$COUNT})</source>
21181-
<target>X</target>
21182-
</trans-unit>
21183-
<trans-unit id="printView.peerReviewHeading" datatype="html" resname="printView.peerReviewHeading">
21184-
<source>Peer review ({$REVIEW_COUNT} reviews for {$PUBLICATION_COUNT} publications/grants)</source>
21185-
<target>X</target>
21186-
</trans-unit>
21187-
<trans-unit id="printView.fetchFailed" datatype="html" resname="printView.fetchFailed">
21188-
<source>Failed to fetch ORCID record ({$STATUS}).</source>
21189-
<target>X</target>
21190-
</trans-unit>
21191-
<trans-unit id="printView.couldNotLoad" datatype="html" resname="printView.couldNotLoad">
21192-
<source>Could not load {$ORCID_ID}.</source>
21193-
<target>X</target>
21194-
</trans-unit>
21179+
2119521180
</body>
2119621181
</file>
2119721182
</xliff>

0 commit comments

Comments
 (0)