Skip to content

Commit

Permalink
refactor text
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaney committed Oct 28, 2024
1 parent fbd4d43 commit e8dcaaa
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions course_grader_vue/components/import/upload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@
</div>
</div>
<div v-else>
<p>
{{ interpolate(ngettext(
"One grade expected", "%(count)s grades expected",
expectedGradeCount), {"count": expectedGradeCount}, true) }}
</p>
<p>{{ expectedGradeCountText }}</p>
<p>The CSV is required to contain at least two columns:</p>
<ul>
<li>a column for student identifier (<strong>SIS User ID</strong> or <strong>StudentNo)</strong> AND</li>
Expand Down Expand Up @@ -223,6 +219,12 @@ export default {
this.errorResponse &&
this.errorResponse.response.indexOf("Request Entity Too Large") !== -1);
},
expectedGradeCountText() {
return interpolate(ngettext(
"One grade expected",
"%(count)s grades expected",
this.expectedGradeCount), {"count": this.expectedGradeCount}, true);
},
},
methods: {
fileSelected(files) {
Expand Down

0 comments on commit e8dcaaa

Please sign in to comment.