Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding locale text #530

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified course_grader/locale/en/LC_MESSAGES/djangojs.mo
Binary file not shown.
21 changes: 15 additions & 6 deletions course_grader/locale/en/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ msgstr "Confirm"
msgid "import_grades_btn"
msgstr "Import Grades"

msgid "import_grades_btn_sr"
msgstr "to GradePage"
msgid "import_grades_btn_title"
msgstr "Import grades to GradePage"

msgid "import_grades_dd"
msgstr "Import from..."
Expand Down Expand Up @@ -460,6 +460,9 @@ msgstr "The Office of the Registrar requires submitted grades to follow official
msgid "import_conversion_required_select"
msgstr "Please select a format to use:"

msgid "import_select_different_file"
msgstr "To select a different file, click <strong>Cancel</strong>."

msgid "import_grade_found"
msgstr "One grade found for <strong>%(section_name)s</strong> in <strong>%(source_name)s</strong>."

Expand Down Expand Up @@ -487,15 +490,15 @@ msgstr "Unposted grades <strong>ARE NOT</strong> represented in the imported fin
msgid "import_unposted_grade_title"
msgstr "Learn more about importing Canvas grades on IT Connect"

msgid "import_save_continue"
msgstr "To continue, click <strong>Import grades</strong>."

msgid "import_save_note"
msgstr "You will have a chance to enter, adjust, and review grades on the next screen."

msgid "import_save_grades"
msgid "import_save_grades_btn"
msgstr "Import grades"

msgid "import_confirm_note"
msgstr "Grades can be adjusted on next page."

msgid "convert_grades"
msgstr "Convert grades for"

Expand All @@ -514,6 +517,12 @@ msgstr "Use one of your previous conversion scales"
msgid "no_classes_to_grade"
msgstr "You do not have any classes to grade for <strong>%(quarter)s %(year)s</strong>. If you believe this to be incorrect, please contact your department's Time Schedule Coordinator."

msgid "import_canvas_btn"
msgstr "Canvas Gradebook"

msgid "import_csv_btn"
msgstr "CSV File"

msgid "import_canvas_title"
msgstr "Import Canvas Gradebook"

Expand Down
2 changes: 1 addition & 1 deletion course_grader_vue/components/grade/input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
class="dropdown-item small"
type="button"
:value="opt"
v-text="opt"
@click="gradeChanged(opt)"
>
{{ opt }}
</button>
</li>
</ul>
Expand Down
4 changes: 2 additions & 2 deletions course_grader_vue/components/import/canvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
<BLink
target="_blank"
:title="gettext('import_override_grades_title')"
v-text="gettext('learn_more')"
href="https://itconnect.uw.edu/learn/tools/canvas/canvas-help-for-instructors/assignments-grading/new-gradebook/final-grade-override/">
{{ gettext("learn_more") }}
</BLink>.
</p>
</div>
Expand All @@ -38,8 +38,8 @@
<BLink
target="_blank"
:title="gettext('import_unposted_grade_title')"
v-text="gettext('learn_more')"
href="https://itconnect.uw.edu/learn/tools/canvas/canvas-help-for-instructors/assignments-grading/correctly-import-grades/">
{{ gettext("learn_more") }}
</BLink>.
</div>

Expand Down
18 changes: 11 additions & 7 deletions course_grader_vue/components/import/convert-options.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,27 @@
{{ errorResponse }}
</div>
<div v-else-if="appState.gradeImport.has_valid_percentages" class="d-grid gap-2">
<p>{{ gettext("import_conversion_required") }}</p>
<p>{{ gettext("import_conversion_required_select") }}</p>
<p v-html="gettext('import_conversion_required')"></p>
<p v-html="gettext('import_conversion_required_select')"></p>

<BButton v-for="scale in calculatorStore.availableScales"
variant="outline-secondary"
v-text="gettext('conversion_scale_' + scale)"
@click="convertGrades(scale)">
{{ gettext("conversion_scale_" + scale) }}
</BButton>
</div>
<div v-else>
<p>
To continue, click <strong>{{ gettext("import_save_grades") }}</strong>.
<span v-html="gettext('import_save_continue')"></span>
<br /><small><em>{{ gettext("import_save_note") }}</em></small>
</p>
<p>To select a different file, click <strong>Cancel</strong>.</p>
<p v-html="gettext('import_select_different_file')"></p>
<div>
<BButton variant="primary" @click="saveGrades">
{{ gettext("import_save_grades") }}
<BButton
variant="primary"
v-text="gettext('import_save_grades_btn')"
@click="saveGrades"
>
</BButton>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions course_grader_vue/components/import/source-options.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
>
<BDropdownItemButton v-b-modal.modalImportCanvasGrades
><i class="bi bi-journal-check me-2 text-body-tertiary"></i>
Canvas Gradebook
{{ gettext("import_canvas_btn") }}
</BDropdownItemButton>
<BDropdownItemButton v-b-modal.modalImportCsvGrades
><i class="bi bi-filetype-csv me-2 text-body-tertiary"></i>
CSV File
{{ gettext("import_csv_btn") }}
</BDropdownItemButton>
<BDropdownDivider />
<BDropdownItem
Expand Down
3 changes: 2 additions & 1 deletion course_grader_vue/components/import/upload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@
:disabled="uploadDisabled"
variant="primary"
@click="uploadFile"
>{{ gettext("verify_file_btn") }}
v-text="gettext('verify_file_btn')"
>
</BButton>
</div>
</div>
Expand Down
10 changes: 6 additions & 4 deletions course_grader_vue/components/workflow/confirm-grades.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
<div>
<BLink
class="btn btn-info btn-sm rounded-3 text-nowrap"
v-text="gettext('return_classes_to_grade')"
:href="section.term_url"
>{{ gettext("return_classes_to_grade") }}
>
</BLink>
</div>
</BAlert>
Expand Down Expand Up @@ -63,7 +64,8 @@
href="https://registrar.washington.edu/staffandfaculty/grading-resources/#faqs"
target="_blank"
class="d-print-none"
>{{ gettext("more_info") }}
v-text="gettext('more_info')"
>
</BLink>
</div>
</template>
Expand Down Expand Up @@ -178,9 +180,9 @@
{{ gettext("conversion_scale_msg") }}
<BLink
:title="gettext('conversion_scale_view_title')"
v-text="gettext('conversion_scale_view')"
@click.prevent="showImportConversion()"
>
{{ gettext("conversion_scale_view") }}
</BLink>
</div>

Expand All @@ -200,9 +202,9 @@
</ol>
<BLink
:title="gettext('conversion_scale_hide_title')"
v-text="gettext('conversion_scale_hide')"
@click.prevent="hideImportConversion()"
>
{{ gettext("conversion_scale_hide") }}
</BLink>
</div>
</template>
Expand Down
3 changes: 2 additions & 1 deletion course_grader_vue/components/workflow/convert-import.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@
<template #footer>
<BLink
:title="gettext('cancel_title')"
v-text="gettext('cancel')"
@click="cancelConversion"
>{{ gettext("cancel") }}
>
</BLink>
<BButton
variant="primary"
Expand Down
3 changes: 2 additions & 1 deletion course_grader_vue/components/workflow/edit-grades.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@
<BButton
:disabled="reviewDisabled"
variant="primary"
v-text="gettext('btn_review_submit')"
@click="reviewGrades"
>{{ gettext("btn_review_submit") }}
>
</BButton>
</div>
</template>
Expand Down
21 changes: 12 additions & 9 deletions course_grader_vue/components/workflow/review-conversion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,18 @@
<template v-if="!isLoading && !errorResponse" #footer>
<div class="d-flex">
<div class="text-nowrap">
<BButton variant="outline-primary" @click="editConversion">
{{ gettext("conversion_back_calc") }}
</BButton>
<BButton variant="primary" @click="saveGrades" class="ms-2">
{{ gettext("import_grades_btn") }}
<span class="visually-hidden">
{{ gettext("import_grades_btn_sr") }}
</span>
</BButton>
<BButton
variant="outline-primary"
v-text="gettext('conversion_back_calc')"
@click="editConversion"
></BButton>
<BButton
variant="primary"
:title="gettext('import_grades_btn_title')"
v-text="gettext('import_grades_btn')"
@click="saveGrades"
class="ms-2"
></BButton>
</div>
</div>
</template>
Expand Down
8 changes: 4 additions & 4 deletions course_grader_vue/components/workflow/review-grades.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@
<BButton
:title="interpolate(gettext('btn_review_back_title'), section, true)"
variant="outline-primary"
v-text="gettext('btn_review_back')"
@click="editGrades"
>{{ gettext("btn_review_back") }}
</BButton>
></BButton>
<BButton
variant="primary"
v-text="gettext('btn_submit_grades')"
@click="submitGrades"
class="ms-2"
>{{ gettext("btn_submit_grades") }}
</BButton>
></BButton>
</div>
</div>
</template>
Expand Down