Skip to content

Commit

Permalink
update localizations
Browse files Browse the repository at this point in the history
  • Loading branch information
hj940709 committed Oct 7, 2024
1 parent 9c2d144 commit da7db02
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 22 deletions.
19 changes: 16 additions & 3 deletions client/components/LibraryView/StoryListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,19 +205,32 @@ const StoryActions = ({
</Link>
)}

{!isTeacher && (<Popup
{!isTeacher && story.flashcard_count > 0 && (<Popup
content={<FormattedMessage id="flashcard-btn-explanation" />}
trigger={
<Link to={`/flashcards/fillin/story/${story._id}/`}>
<Button
variant='primary'
disabled={enableOnlyPractice}
>
<FormattedMessage id="Flashcards" />
</Button>
</Link>
}
position="top center"
/>)}
{!isTeacher && story.flashcard_count === 0 && (<Popup
content={<FormattedMessage id="disabled-flashcard-btn-explanation" />}
trigger={
<Link to={`/flashcards/fillin/story/${story._id}/`}>
<Button
variant='primary'
disabled={enableOnlyPractice || story.flashcard_count === 0}
disabled={true}
>
<FormattedMessage id="Flashcards" />
</Button>
</Link>
}
disabled={story.flashcard_count > 0}
position="top center"
/>)}
{ !story.flashcardsOnly && (<>
Expand Down
9 changes: 5 additions & 4 deletions client/util/translations/revita/en/LC_MESSAGES/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@
"token-copied": "Group key copied to clipboard",
"server-issues": "Communication with the main server is blocked due to a network problem.\nIt should be functioning shortly.",
"learning-settings-saved": "Learning settings saved",
"validating-url": "Validating URL address...",
"validating-url": "Validating text...",
"processing-story": "Processing your story...",
"done": "done",
"failed-to-share-the-story": "Failed to share the story",
Expand Down Expand Up @@ -1560,7 +1560,7 @@
"not-useful-at-all": "Not useful",
"very-useful": "Very useful",
"paradigm table": "See the inflection table →",
"experimental-elicitation-question": "This task has several challenging points. Choose one. If you feel that the tips are not helpful, don't worry! You can choose different advice next time. <b>Which of these would you like to get more help with?</b>",
"experimental-elicitation-question": "This task has several challenging points. Choose one. If you feel that the tips are not helpful, don't worry! You can choose different advice next time.\n<br/>\n<b>Which of these would you like to get more help with?</b>",
"elicitation-construct-specific-details": "I can’t find the right place in the text",
"elicitation-construct-deducing-vocabulary": "I don’t understand the meaning of some words",
"move-to-next-set-of-reading-items": "Now we move to the next set of tasks.",
Expand Down Expand Up @@ -1639,7 +1639,7 @@
"TOS-question-1-2": "this is my second year",
"TOS-question-1-3": "this is my third year",
"TOS-question-1-4": "this is my fourth (or more) year",
"TOS-question-2a": "",
"TOS-question-2a": "Which obligatory English courses have you taken? Mark all that you have taken (including the one that you may be taking at the moment);",
"TOS-question-2b": "Which optional English courses have you taken? Mark all that you have taken (including the one that you may be taking at the moment)",
"TOS-question-3": "What is your latest course grade in English?",
"correct-first-attempts": "Number of correct answers on first attempt (no hints)",
Expand Down Expand Up @@ -1672,5 +1672,6 @@
"explain-library-search": "Here you can search for text contained in the story",
"lesson-performance-info-tooltip": "This is your current level of performance on this topic: percent of correct answers in exercises",
"copy-key": "Copy key",
"flashcard-upload-instructions": "Please select a text file containing flashcards:<ul><li>Select a file with extension .TXT or .DOCX (other extensions not supported)</li><li>The first line must contain the <b>title</b> of the flashcard pack</li></ul>"
"flashcard-upload-instructions": "Please select a text file containing flashcards:<ul><li>Select a file with extension .TXT or .DOCX (other extensions not supported)</li><li>The first line must contain the <b>title</b> of the flashcard pack</li></ul>",
"flashcard-btn-explanation": "Click to practice flashcards of this story!"
}
7 changes: 4 additions & 3 deletions client/util/translations/revita/fi/LC_MESSAGES/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@
"token-copied": "Koodi kopioitu leikepöydälle",
"server-issues": "Palvelinvirhe. Yritä hetken päästä uudelleen.",
"learning-settings-saved": "Opiskeluasetukset tallennettu",
"validating-url": "Validoidaan URL-osoitetta...",
"validating-url": "Validoidaan teksti...",
"processing-story": "Prosessoidaan tarinaa...",
"done": "prosessoitu",
"failed-to-share-the-story": "Tarinan jakaminen epäonnistui",
Expand Down Expand Up @@ -1558,7 +1558,7 @@
"not-useful-at-all": "Ei hyödyllistä",
"very-useful": "Erittäin hyödyllistä",
"paradigm table": "Katso taivutustaulukko →",
"experimental-elicitation-question": "Tässä tehtävässä on useita haasteita. Valitse yksi. Jos tuntuu siltä, että vinkit eivät auta, ei huolta! Voit valita eri vinkit seuraavalla kerralla. <b>Mihin seuraavista haasteista haluaisit apua?</b>",
"experimental-elicitation-question": "Tässä tehtävässä on useita haasteita. Valitse yksi. Jos tuntuu siltä, että vinkit eivät auta, ei huolta! Voit valita eri vinkit seuraavalla kerralla.\n<br/>\n<b>Mihin seuraavista haasteista haluaisit apua?</b>",
"elicitation-construct-specific-details": "En löydä tekstistä oikeaa kohtaa",
"elicitation-construct-deducing-vocabulary": "Joidenkin sanojen merkitystä en ymmärrä",
"move-to-next-set-of-reading-items": "Nyt siirrytään seuraavaan tehtäväryhmään.",
Expand Down Expand Up @@ -1671,5 +1671,6 @@
"explain-library-search": "Hae tarinoita sanan tai lauseen perusteella.",
"lesson-performance-info-tooltip": "Nykyinen suoritustasosi tästä aiheesta: prosenttiosuus oikeista vastauksista harjoituksissa",
"copy-key": "Kopioi avain",
"flashcard-upload-instructions": "Valitse tiedosto, jonka sisällöllä haluat harjoitella<ul><li>Sallitut tiedostomuodot ovat .TXT ja .DOCX (.DOC ei ole tuettu)</li><li>Ensimmäisellä rivillä on oltava tarinan <b>otsikko</b></li></ul>"
"flashcard-upload-instructions": "Valitse tiedosto, jonka sisällöllä haluat harjoitella<ul><li>Sallitut tiedostomuodot ovat .TXT ja .DOCX (.DOC ei ole tuettu)</li><li>Ensimmäisellä rivillä on oltava tarinan <b>otsikko</b></li></ul>",
"flashcard-btn-explanation": "Click to practice flashcards of this story!"
}
9 changes: 5 additions & 4 deletions client/util/translations/revita/it/LC_MESSAGES/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@
"register-to-save-your-progress": "Registrati per salvare i tuoi progressi",
"server-issues": "Il server sta avendo dei problemi. Riprova più tardi!",
"learning-settings-saved": "Impostazioni di Apprendimento salvate",
"validating-url": "Sto verificando l'indirizzo URL...",
"validating-url": "Sto verificando il testo...",
"processing-story": "Sto processando la tua storia...",
"done": "completato",
"failed-to-share-the-story": "Condivisione della storia fallita",
Expand Down Expand Up @@ -1557,7 +1557,7 @@
"not-useful-at-all": "Inutile",
"very-useful": "Molto utile",
"paradigm table": "Vedi la tabella delle flessioni →",
"experimental-elicitation-question": "This task has several challenging points. Choose one. If you feel that the tips are not helpful, don't worry! You can choose different advice next time. <b>Which of these would you like to get more help with?</b>",
"experimental-elicitation-question": "This task has several challenging points. Choose one. If you feel that the tips are not helpful, don't worry! You can choose different advice next time.\n<br/>\n<b>Which of these would you like to get more help with?</b>",
"elicitation-construct-specific-details": "Non trovо il posto giusto nel testo",
"elicitation-construct-deducing-vocabulary": "Non capisco il senso di alcune parole",
"move-to-next-set-of-reading-items": "Now we move to the next set of tasks.",
Expand Down Expand Up @@ -1637,7 +1637,7 @@
"TOS-question-1-2": "this is my second year",
"TOS-question-1-3": "this is my third year",
"TOS-question-1-4": "this is my fourth (or more) year",
"TOS-question-2a": "",
"TOS-question-2a": "Which obligatory English courses have you taken? Mark all that you have taken (including the one that you may be taking at the moment);",
"TOS-question-2b": "Which optional English courses have you taken? Mark all that you have taken (including the one that you may be taking at the moment)",
"TOS-question-3": "What is your latest course grade in English?",
"correct-first-attempts": "Number of correct answers on first attempt (no hints)",
Expand Down Expand Up @@ -1670,5 +1670,6 @@
"explain-library-search": "Qui puoi cercare una parola o una frase contenuta nel testo",
"lesson-performance-info-tooltip": "Tuo livello attuale di prestazione su questo argomento: percentuale di risposte corrette negli esercizi",
"copy-key": "Copia chiave",
"flashcard-upload-instructions": "Seleziona un file di testo contenente la storia:<ul><li>Seleziona un file con estensione .TXT o .DOCX (altre estensioni non supportate).</li><li>La prima riga deve contenere il <b>titolo</b> della storia.</li></ul>"
"flashcard-upload-instructions": "Seleziona un file di testo contenente la storia:<ul><li>Seleziona un file con estensione .TXT o .DOCX (altre estensioni non supportate).</li><li>La prima riga deve contenere il <b>titolo</b> della storia.</li></ul>",
"flashcard-btn-explanation": "Click to practice flashcards of this story!"
}
9 changes: 5 additions & 4 deletions client/util/translations/revita/ru/LC_MESSAGES/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1560,7 +1560,7 @@
"not-useful-at-all": "Бесполезно",
"very-useful": "Очень полезно",
"paradigm table": "См. таблицу словоизменений →",
"experimental-elicitation-question": "This task has several challenging points. Choose one. If you feel that the tips are not helpful, don't worry! You can choose different advice next time. <b>Which of these would you like to get more help with?</b>",
"experimental-elicitation-question": "This task has several challenging points. Choose one. If you feel that the tips are not helpful, don't worry! You can choose different advice next time.\n<br/>\n<b>Which of these would you like to get more help with?</b>",
"elicitation-construct-specific-details": "Не могу найти нужное место в тексте",
"elicitation-construct-deducing-vocabulary": "Не понимаю значения некоторых слов",
"move-to-next-set-of-reading-items": "Now we move to the next set of tasks.",
Expand Down Expand Up @@ -1616,7 +1616,7 @@
"group-test-summary": "Итог по тестам",
"select-lesson-themes-and-vocabulary": "Выбери темы и сложность лексики для урока",
"Recommended vocabulary difficulty": "Рекомендуемая словарная сложность",
"submit-chat-message": "Послать",
"submit-chat-message": "Отправить",
"click-here-to-configure-lesson": "Настроить урок →",
"restart-reading-test": "Restart Test",
"disabled-flashcard-btn-explanation": "В этом тексте еще нет карточек — нажми на незнакомые слова в тексте, чтобы создать карточки!",
Expand All @@ -1640,7 +1640,7 @@
"TOS-question-1-2": "this is my second year",
"TOS-question-1-3": "this is my third year",
"TOS-question-1-4": "this is my fourth (or more) year",
"TOS-question-2a": "",
"TOS-question-2a": "Which obligatory English courses have you taken? Mark all that you have taken (including the one that you may be taking at the moment);",
"TOS-question-2b": "Which optional English courses have you taken? Mark all that you have taken (including the one that you may be taking at the moment)",
"TOS-question-3": "What is your latest course grade in English?",
"correct-first-attempts": "Number of correct answers on first attempt (no hints)",
Expand Down Expand Up @@ -1673,5 +1673,6 @@
"explain-library-search": "Поиск по словам в тексте",
"lesson-performance-info-tooltip": "Твой уровень успеваемости по этой теме на данный момент: процент правильных ответов на упражнения",
"copy-key": "Скопировать ключ",
"flashcard-upload-instructions": "Пожалуйста, выбери файл, в котором содержится текст:<ul><li>У файла должно быть расширение .TXT или .DOCX</li><li>На первой строке обязательно должен быть только <b>заголовок</b> — название текста</li></ul>"
"flashcard-upload-instructions": "Пожалуйста, выбери файл, в котором содержится текст:<ul><li>У файла должно быть расширение .TXT или .DOCX</li><li>На первой строке обязательно должен быть только <b>заголовок</b> — название текста</li></ul>",
"flashcard-btn-explanation": "Click to practice flashcards of this story!"
}
9 changes: 5 additions & 4 deletions client/util/translations/revita/zh/LC_MESSAGES/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@
"paste-a-text": "粘贴文章",
"processing-story": "文章分析中",
"this-text-is-too-long-maximum-50000-characters": "文章过长。最多50000个字符。",
"validating-url": "正在验证URL地址...",
"validating-url": "正在验证...",
"warning-for-anonymous-users": "只有注册用户可以保存故事以便下次使用。",
"paste-text-upload-instructions": "请粘贴故事。文章标题<b>至少3个字符</>。文章本体<b>最少50个字符</>。",
"file-upload-instructions": "请选择包含该故事的文件:<ul><li>文件扩展名应为.TXT 或 .DOCX (不支持其他扩展名)</li><li> Revita 将使用第一行作为故事的标题 </li></ul>",
Expand Down Expand Up @@ -929,7 +929,7 @@
"not-useful-at-all": "没用",
"very-useful": "很有用",
"paradigm table": "See the inflection table →",
"experimental-elicitation-question": "This task has several challenging points. Choose one. If you feel that the tips are not helpful, don't worry! You can choose different advice next time. <b>Which of these would you like to get more help with?</b>",
"experimental-elicitation-question": "This task has several challenging points. Choose one. If you feel that the tips are not helpful, don't worry! You can choose different advice next time.\n<br/>\n<b>Which of these would you like to get more help with?</b>",
"elicitation-construct-specific-details": "I can’t find the right place in the text",
"elicitation-construct-deducing-vocabulary": "I don’t understand the meaning of some words",
"move-to-next-set-of-reading-items": "Now we move to the next set of tasks.",
Expand Down Expand Up @@ -1012,7 +1012,7 @@
"TOS-question-1-2": "this is my second year",
"TOS-question-1-3": "this is my third year",
"TOS-question-1-4": "this is my fourth (or more) year",
"TOS-question-2a": "",
"TOS-question-2a": "Which obligatory English courses have you taken? Mark all that you have taken (including the one that you may be taking at the moment);",
"TOS-question-2b": "Which optional English courses have you taken? Mark all that you have taken (including the one that you may be taking at the moment)",
"TOS-question-3": "What is your latest course grade in English?",
"correct-first-attempts": "Number of correct answers on first attempt (no hints)",
Expand Down Expand Up @@ -1045,5 +1045,6 @@
"explain-library-search": "您可在此处按文中词句搜索",
"lesson-performance-info-tooltip": "This is your current level of performance on this topic: percent of correct answers in exercises",
"copy-key": "复制代码",
"flashcard-upload-instructions": "请选择包含单词卡的文件:<ul><li>文件扩展名应为.TXT 或 .DOCX (不支持其他扩展名)</li><li> Revita 将使用第一行作为卡组的标题 </li></ul>"
"flashcard-upload-instructions": "请选择包含单词卡的文件:<ul><li>文件扩展名应为.TXT 或 .DOCX (不支持其他扩展名)</li><li> Revita 将使用第一行作为卡组的标题 </li></ul>",
"flashcard-btn-explanation": "Click to practice flashcards of this story!"
}

0 comments on commit da7db02

Please sign in to comment.