Skip to content

Commit

Permalink
Added messages and translations.
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmajchrak committed Dec 27, 2023
1 parent f8984c7 commit 2d56a1a
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@
</span>
<span class="pl-1">|</span>
<div class="pl-1" [ngTemplateOutlet]="checksum"></div>

</div>
</div>
</ng-template>

<ng-template #checksum>
<div class="hover-container" (mouseenter)="showText = true" (mouseleave)="showText = false" *ngVar="(checkSum$ | async) as bitstreamChecksum">
<div class="hover-container"
(mouseenter)="showText = true"
(mouseleave)="showText = false"
*ngVar="(checkSum$ | async) as bitstreamChecksum">
<i [class]="checksumsAreEqual(bitstreamChecksum) ? 'fas fa-check' : 'fas fa-times'"></i>
<i class="pl-2 fas fa-info-circle"
triggers="mouseenter:mouseleave"
Expand All @@ -73,19 +75,37 @@
<ng-template #checksumPopover>
<div *ngVar="(checkSum$ | async) as bitstreamChecksum">
<div>
<div class="font-weight-bold text-decoration-underline">DB</div>
<div>Algorithm: {{bitstreamChecksum.databaseChecksum.checkSumAlgorithm}}</div>
<div>Value: {{ bitstreamChecksum.databaseChecksum.value }}</div>
<div class="font-weight-bold text-decoration-underline">
{{'item.edit.bitstreams.checksum.database' | translate}}
</div>
<div>
{{'item.edit.bitstreams.checksum.algorithm' | translate}} {{bitstreamChecksum.databaseChecksum.checkSumAlgorithm}}
</div>
<div>
{{'item.edit.bitstreams.checksum.value' | translate}} {{ bitstreamChecksum.databaseChecksum.value }}
</div>
</div>
<div>
<div class="font-weight-bold text-decoration-underline">Active store</div>
<div>Algorithm: {{bitstreamChecksum.activeStore.checkSumAlgorithm}}</div>
<div>Value: {{ bitstreamChecksum.activeStore.value }}</div>
<div class="font-weight-bold text-decoration-underline">
{{'item.edit.bitstreams.checksum.active-store' | translate}}
</div>
<div>
{{'item.edit.bitstreams.checksum.algorithm' | translate}} {{bitstreamChecksum.activeStore.checkSumAlgorithm}}
</div>
<div>
{{'item.edit.bitstreams.checksum.value' | translate}} {{ bitstreamChecksum.activeStore.value }}
</div>
</div>
<div *ngIf="isBitstreamSynchronized()">
<div class="font-weight-bold text-decoration-underline">Sync store</div>
<div>Algorithm: {{bitstreamChecksum.synchronizedStore.checkSumAlgorithm}}</div>
<div>Value: {{ bitstreamChecksum.synchronizedStore.value }}</div>
<div class="font-weight-bold text-decoration-underline">
{{'item.edit.bitstreams.checksum.sync-store' | translate}}
</div>
<div>
{{'item.edit.bitstreams.checksum.algorithm' | translate}} {{bitstreamChecksum.synchronizedStore.checkSumAlgorithm}}
</div>
<div>
{{'item.edit.bitstreams.checksum.value' | translate}} {{ bitstreamChecksum.synchronizedStore.value }}
</div>
</div>
</div>
</ng-template>
12 changes: 12 additions & 0 deletions src/assets/i18n/cs.json5
Original file line number Diff line number Diff line change
Expand Up @@ -3270,6 +3270,18 @@
"item.edit.bitstreams.upload-button" : "Nahrát",


// "item.edit.bitstreams.checksum.algorithm": "Algorithm: ",
"item.edit.bitstreams.checksum.algorithm": "Algoritmus: ",

"item.edit.bitstreams.checksum.value": "Hodnota: ",

"item.edit.bitstreams.checksum.database": "DB",

"item.edit.bitstreams.checksum.active-store": "Aktívne úložisko",

"item.edit.bitstreams.checksum.sync-store": "Sync úložisko",



// "item.edit.delete.cancel": "Cancel",
"item.edit.delete.cancel" : "Zrušit",
Expand Down
10 changes: 10 additions & 0 deletions src/assets/i18n/en.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2216,6 +2216,16 @@

"item.edit.bitstreams.upload-button": "Upload",

"item.edit.bitstreams.checksum.algorithm": "Algorithm: ",

"item.edit.bitstreams.checksum.value": "Value: ",

"item.edit.bitstreams.checksum.database": "DB",

"item.edit.bitstreams.checksum.active-store": "Active store",

"item.edit.bitstreams.checksum.sync-store": "Sync store",



"item.edit.delete.cancel": "Cancel",
Expand Down

0 comments on commit 2d56a1a

Please sign in to comment.