Merge pull request #3482 from NoelDeMartin/MOBILE-4081

MOBILE-4081 core: Translate hard-coded string
main
Dani Palou 2022-11-29 12:23:45 +01:00 committed by GitHub
commit 746a014c71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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",