Skip to content

Commit

Permalink
Merge pull request #12323 from rtibbles/jump_to_question
Browse files Browse the repository at this point in the history
Move jump to question string into enhanced quiz management strings.
  • Loading branch information
marcellamaki authored Jun 20, 2024
2 parents 8b9738e + cbc62d7 commit 4a89b68
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
>
</span>

<div :aria-label="$tr('jumpToQuestion')" role="navigation">
<div :aria-label="jumpToQuestion$()" role="navigation">
<ul class="history-list">
<li
v-for="(question, qIndex) in section.questions"
Expand Down Expand Up @@ -97,7 +97,10 @@

<script>
import { displaySectionTitle } from 'kolibri-common/strings/enhancedQuizManagementStrings';
import {
enhancedQuizManagementStrings,
displaySectionTitle,
} from 'kolibri-common/strings/enhancedQuizManagementStrings';
import AccordionItem from 'kolibri-common/components/AccordionItem';
import AccordionContainer from 'kolibri-common/components/AccordionContainer';
import isEqual from 'lodash/isEqual';
Expand All @@ -120,12 +123,15 @@
const { collapse, expand, isExpanded, toggle } = useAccordion(sections);
const { jumpToQuestion$ } = enhancedQuizManagementStrings;
return {
displaySectionTitle,
collapse,
expand,
isExpanded,
toggle,
jumpToQuestion$,
};
},
props: {
Expand Down Expand Up @@ -270,11 +276,6 @@
context:
"In the report section, the 'Answer history' shows the learner if they have answered questions correctly or incorrectly.\n\nOnly translate 'Question'.",
},
jumpToQuestion: {
message: 'Jump to question',
context:
'A label for the section of the page that contains all questions as clickable links',
},
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ export const enhancedQuizManagementStrings = createTranslator('EnhancedQuizManag
message: 'Questions',
context: 'Label for dropdown list of questions',
},
jumpToQuestion: {
message: 'Jump to question',
context: 'A label for the section of the page that contains all questions as clickable links',
},
saveAndClose: {
message: 'Save and close',
},
Expand Down

0 comments on commit 4a89b68

Please sign in to comment.