MOBILE-4081 core: Translate hard-coded string

Co-authored-by: saman222 <samansamani2@yahoo.com>
main
Noel De Martin 2022-11-28 16:34:38 +01:00
parent 6ff5868e9d
commit 79bbde8276
3 changed files with 6 additions and 2 deletions

View File

@ -1783,6 +1783,7 @@
"core.grades.manualitem": "grades",
"core.grades.nogradesreturned": "grades",
"core.grades.nooutcome": "grades",
"core.grades.notgraded": "assign",
"core.grades.outcome": "grades",
"core.grades.pass": "grades",
"core.grades.percentage": "grades",

View File

@ -77,10 +77,12 @@
</core-format-text>
</p>
<p class="item-heading" *ngIf="grade.itemmodule">
{{ 'core.grades.grade' | translate}}
{{ 'core.grades.grade' | translate }}
</p>
<p *ngIf="grade.grade && grade.grade != '-'" [innerHTML]="grade.grade"></p>
<ion-badge *ngIf="!grade.grade || grade.grade == '-'" color="light">Not graded</ion-badge>
<ion-badge *ngIf="!grade.grade || grade.grade == '-'" color="light">
{{ 'core.grades.notgraded' | translate }}
</ion-badge>
</ion-label>
<ion-icon *ngIf="grade.icon" name="{{grade.icon}}" slot="end" [attr.aria-label]="grade.iconAlt">
</ion-icon>

View File

@ -17,6 +17,7 @@
"manualitem": "Manual item",
"nogradesreturned": "No grades returned",
"nooutcome": "No outcome",
"notgraded": "Not graded",
"outcome": "Outcome",
"pass": "Pass",
"percentage": "Percentage",