Skip to content

Commit 41483c1

Browse files
committed
Merge pull request #486 from crazyserver/MOBILE-1547
MOBILE-1547 cbe: Solve problem with translation strings
2 parents 9f51098 + 50787b8 commit 41483c1

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

www/addons/competency/controllers/competency.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ angular.module('mm.addons.competency')
5858

5959
// Get the user profile image from the returned object.
6060
$scope.user = competency.usercompetencysummary.user;
61-
console.log($scope.user);
6261
}
6362

6463
angular.forEach(competency.usercompetencysummary.evidence, function(evidence) {

www/addons/competency/lang/en.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"errornocompetenciesfound": "No competencies found",
1111
"evidence": "Evidence",
1212
"evidence_competencyrule": "The rule of the competency was met.",
13-
"evidence_coursecompleted": "The course {{a}} was completed.",
14-
"evidence_coursemodulecompleted": "The activity {{a}} was completed.",
15-
"evidence_courserestored": "The rating was restored along with the course {{a}}.",
16-
"evidence_evidenceofpriorlearninglinked": "The evidence of prior learning {{a}} was linked.",
17-
"evidence_evidenceofpriorlearningunlinked": "The evidence of prior learning {{a}} was unlinked.",
13+
"evidence_coursecompleted": "The course '{{$a}}' was completed.",
14+
"evidence_coursemodulecompleted": "The activity '{{$a}}' was completed.",
15+
"evidence_courserestored": "The rating was restored along with the course '{{$a}}'.",
16+
"evidence_evidenceofpriorlearninglinked": "The evidence of prior learning '{{$a}}' was linked.",
17+
"evidence_evidenceofpriorlearningunlinked": "The evidence of prior learning '{{$a}}' was unlinked.",
1818
"evidence_manualoverride": "The competency rating was manually set.",
19-
"evidence_manualoverrideincourse": "The competency rating was manually set in the course {{a}}.",
20-
"evidence_manualoverrideinplan": "The competency rating was manually set in the learning plan {{a}}.",
19+
"evidence_manualoverrideincourse": "The competency rating was manually set in the course '{{$a}}'.",
20+
"evidence_manualoverrideinplan": "The competency rating was manually set in the learning plan '{{$a}}'.",
2121
"learningplancompetencies": "Learning plan competencies",
2222
"learningplans": "Learning plans",
2323
"noactivities": "No activities",
@@ -42,6 +42,6 @@
4242
"usercompetencystatus_inreview": "In review",
4343
"usercompetencystatus_waitingforreview": "Waiting for review",
4444
"userplans": "Learning plans",
45-
"xcompetenciesproficientoutofy": "{{x}} out of {{y}} competencies are proficient",
46-
"xcompetenciesproficientoutofyincourse": "You are proficient in {{x}} out of {{y}} competencies in this course."
45+
"xcompetenciesproficientoutofy": "{{$a.x}} out of {{$a.y}} competencies are proficient",
46+
"xcompetenciesproficientoutofyincourse": "You are proficient in {{$a.x}} out of {{$a.y}} competencies in this course."
4747
}

www/addons/competency/templates/coursecompetencies.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</li>
1717
<li class="item item-text-wrap">
1818
<strong>{{ 'mma.competency.progress' | translate }}</strong>:
19-
{{ 'mma.competency.xcompetenciesproficientoutofyincourse' | translate:{x: competencies.statistics.proficientcompetencycount, y: competencies.statistics.competencycount} }} ({{ competencies.statistics.proficientcompetencypercentageformatted }}%)
19+
{{ 'mma.competency.xcompetenciesproficientoutofyincourse' | translate:{$a: {x: competencies.statistics.proficientcompetencycount, y: competencies.statistics.competencycount} } }} ({{ competencies.statistics.proficientcompetencypercentageformatted }}%)
2020
<progress max="100" value="{{ competencies.statistics.proficientcompetencypercentage }}"></progress>
2121
</li>
2222
<li class="item item-text-wrap" ng-if="competencies.statistics.leastproficientcount > 0">

www/addons/competency/templates/plan.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</li>
3131
<li class="item item-text-wrap">
3232
<strong>{{ 'mma.competency.progress' | translate }}</strong>:
33-
{{ 'mma.competency.xcompetenciesproficientoutofy' | translate:{x: plan.proficientcompetencycount, y: plan.competencycount} }} ({{ plan.proficientcompetencypercentageformatted }}%)
33+
{{ 'mma.competency.xcompetenciesproficientoutofy' | translate: {$a: {x: plan.proficientcompetencycount, y: plan.competencycount} } }} ({{ plan.proficientcompetencypercentageformatted }}%)
3434
<progress max="100" value="{{ plan.proficientcompetencypercentage }}"></progress>
3535
</li>
3636
</ul>

0 commit comments

Comments
 (0)