Skip to content

Commit

Permalink
clean up unused strings
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellamaki committed Jun 20, 2024
1 parent fb7b65c commit 8966326
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,6 @@
numberOfReplacementsAvailable$,
sectionDeletedNotification$,
deleteConfirmation$,
updateResources$,
changesSavedSuccessfully$,
questionsDeletedNotification$,
expandAll$,
Expand Down Expand Up @@ -462,7 +461,6 @@
addSection,
removeSection,
updateQuiz,
updateResources$,
displaySectionTitle,
displayQuestionTitle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

<div v-if="!isTopicIdSet && bookmarks.length && !showBookmarks">

<p>{{ selectFromBookmarks$() }}</p>
<p>{{ coreString('selectFromBookmarks') }}</p>

<div>
<KRouterLink
Expand Down Expand Up @@ -251,7 +251,6 @@
const {
sectionSettings$,
selectFromBookmarks$,
numberOfSelectedBookmarks$,
selectResourcesDescription$,
questionsFromResources$,
Expand All @@ -267,8 +266,6 @@
selectQuiz$,
selectPracticeQuizLabel$,
numberOfQuestionsLabel$,
maxNumberOfQuestions$,
maxNumberOfQuestionsPerSection$,
addNumberOfQuestions$,
} = enhancedQuizManagementStrings;
Expand Down Expand Up @@ -645,7 +642,6 @@
sectionSettings$,
numberOfQuestionsSelected$,
tooManyQuestions$,
selectFromBookmarks$,
numberOfSelectedBookmarks$,
questionsUnusedInSection$,
selectResourcesDescription$,
Expand All @@ -666,8 +662,6 @@
numberOfQuestionsToAdd$,
selectPracticeQuizLabel$,
numberOfQuestionsLabel$,
maxNumberOfQuestions$,
maxNumberOfQuestionsPerSection$,
addNumberOfQuestions$,
};
},
Expand Down
51 changes: 0 additions & 51 deletions packages/kolibri-common/strings/enhancedQuizManagementStrings.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,10 @@ export const enhancedQuizManagementStrings = createTranslator('EnhancedQuizManag
sectionLabel: {
message: 'Section { sectionNumber, number }',
},
createNewQuiz: {
message: 'Create new quiz',
},
quizSectionsLabel: {
message: 'Quiz sections',
context: 'Used as an aria-label for screen readers to describe the purpose of the list of tabs',
},
quizTitle: {
message: 'Quiz title',
},
addSectionLabel: {
message: 'Add section',
},
Expand Down Expand Up @@ -60,9 +54,6 @@ export const enhancedQuizManagementStrings = createTranslator('EnhancedQuizManag
optionalDescriptionLabel: {
message: 'Description (optional)',
},
selectResources: {
message: 'Select exercises',
},
sectionOrder: {
message: 'Section order',
},
Expand All @@ -72,9 +63,6 @@ export const enhancedQuizManagementStrings = createTranslator('EnhancedQuizManag
applySettings: {
message: 'Apply settings',
},
addQuestions: {
message: 'Add questions',
},
addNumberOfQuestions: {
message: 'Add { count, number } { count, plural, one { question } other { questions }}',
},
Expand All @@ -87,22 +75,9 @@ export const enhancedQuizManagementStrings = createTranslator('EnhancedQuizManag
numberOfSelectedQuestions: {
message: '{count, number} {count, plural, one {question selected} other {questions selected}}',
},
maxNumberOfQuestions: {
message: 'Max number of questions is { count, number }'
},
maxNumberOfQuestionsPerSection: {
message:
'Each section may only contain up to { count, number } { count, plural, one { question} other { questions}}, this section has { current, number }',
},
replaceQuestions: {
message: 'Replace questions in { sectionTitle }',
},
changeResources: {
message: 'Change exercises',
},
addAnswer: {
message: 'Add answer',
},
collapseAll: {
message: 'Collapse all',
},
Expand All @@ -121,13 +96,6 @@ export const enhancedQuizManagementStrings = createTranslator('EnhancedQuizManag
noUndoWarning: {
message: "You can't undo or cancel this.",
},
resourceMismatchWarning: {
message: 'The resource you chose does not match the number of questions you want to replace.',
},
resourceMismatchDirection: {
message:
'Please choose a different resource or decrease the number of questions to be replaced.',
},
sectionOrderLabel: {
message: 'Section order',
context: 'A label for the place where the section order option is shown.',
Expand All @@ -138,9 +106,6 @@ export const enhancedQuizManagementStrings = createTranslator('EnhancedQuizManag
randomizedLabel: {
message: 'Randomized',
},
selectFromBookmarks: {
message: 'Select from bookmarks',
},
randomizedOptionDescription: {
message: 'Each learner sees a different question order',
},
Expand All @@ -156,12 +121,6 @@ export const enhancedQuizManagementStrings = createTranslator('EnhancedQuizManag
fixedSectionOptionDescription: {
message: 'Each learner sees the same section order',
},
questionEditedSuccessfully: {
message: 'Question edited successfully',
},
reviewSelectedResources: {
message: 'Review selected exercises',
},
deleteConfirmation: {
message: "Are you sure you want to delete '{section_title}'?",
context:
Expand Down Expand Up @@ -226,15 +185,9 @@ export const enhancedQuizManagementStrings = createTranslator('EnhancedQuizManag
message: '{ count, number } { count, plural, one { question } other { questions }} deleted',
context: 'A snackbar message that appears when the user deletes questions',
},
updateResources: {
message: 'Update exercises',
},
allSectionsEmptyWarning: {
message: "You don't have any questions in the quiz",
},
goBackAction: {
message: 'Go back',
},
questionsUnusedInSection: {
message: '{ count, number } { count, plural, one { question } other { questions }} unused',
},
Expand All @@ -249,10 +202,6 @@ export const enhancedQuizManagementStrings = createTranslator('EnhancedQuizManag
saveAndClose: {
message: 'Save and close',
},
questionDeletionConfirmation: {
message:
'Are you sure you want to remove { count, number } { count, plural, one { question } other { questions }} from this section?',
},
});

const { sectionLabel$ } = enhancedQuizManagementStrings;
Expand Down

0 comments on commit 8966326

Please sign in to comment.