- Per il tuo browser non è supportata la stampa automatica del PDF con i
- risultati.
-
-
- Puoi provare ad utilizzare la funzione "Sala come PDF" del tuo browser
- che potrebbe essere nel menu di condivisione oppure nel menu principale
- del browser.
-
+
{t('results.saveTitle')}
+
{t('results.saveFallbackP1')}
+
{t('results.saveFallbackP2')}
- Ti invitiamo a segnalare il tuo browser{' '}
-
- qui
- {' '}
- in modo da poter risolvere il problema{' '}
+
+ )
+ }}
+ >
+ results.saveFallbackP3
+
)
diff --git a/src/locales/en.json b/src/locales/en.json
index 01b59e7..7ef28a9 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -48,8 +48,16 @@
"homeBtn": "Go back to home",
"saveBtn": "Save test results",
"pdfTitle": "Simulation of {{- date}} at {{- time}}",
- "pdfInfo1": "Do you have any doubts about the questions and their resolution? Ask on the ",
- "tgGroup": "PoliNetwork's TOL Prepration Group",
- "pdfInfo2": "On the following pages you will find, divided by section, the questions that have been proposed to you with the related outcome."
+ "pdfInfo1": "Do you have any doubts about the questions and their resolution? Ask on the PoliNetwork's TOL Preparation Group!",
+ "pdfInfo2": "On the following pages you will find, divided by section, the questions that have been proposed to you with the related outcome.",
+ "saveTitle": "Save your results",
+ "saveFirefoxP1": "Your browser (Firefox Android) does not support automatic printing of the PDF with the results.",
+ "saveFirefoxP2": "Follow these instructions to save your results:",
+ "saveFirefoxLi1": "Open the Firefox menu",
+ "saveFirefoxLi2": "Click on the share button",
+ "saveFirefoxLi3": "In the menu that opens, press on \"Save as PDF\"",
+ "saveFallbackP1": "Your browser does not support automatic printing of the PDF with the results.",
+ "saveFallbackP2": "You can try using your browser's \"Save as PDF\" feature, which may be in the sharing menu or in the main browser menu.",
+ "saveFallbackP3": "Please report your browser here so we can fix the problem."
}
}
diff --git a/src/locales/it.json b/src/locales/it.json
index 46c62aa..bb1a78e 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -48,8 +48,16 @@
"homeBtn": "Torna alla home",
"saveBtn": "Salva risultati della simulazione",
"pdfTitle": "Simulazione del {{- date}} alle {{- time}}",
- "pdfInfo1": "Hai delle domande sui quesiti e la loro risoluzione? Falle sul ",
- "tgGroup": "Gruppo Preprazione TOL di PoliNetwork",
- "pdfInfo2": "Nelle pagine successive troverai, suddivisi per sezione, i quesiti che ti sono stati proposti con il relativo esito."
+ "pdfInfo1": "Hai delle domande sui quesiti e la loro risoluzione? Falle sul Gruppo Preprazione TOL di PoliNetwork!",
+ "pdfInfo2": "Nelle pagine successive troverai, suddivisi per sezione, i quesiti che ti sono stati proposti con il relativo esito.",
+ "saveTitle": "Salva i tuoi risultati",
+ "saveFirefoxP1": "Il tuo browser (Firefox Android) non supporta la stampa automatica.",
+ "saveFirefoxP2": "Per salvare i risultati segui questi passaggi:",
+ "saveFirefoxLi1": "Apri il menu di Firefox",
+ "saveFirefoxLi2": "Premi il tasto per condividere",
+ "saveFirefoxLi3": "Nel menu che si apre, premi su \"Salva come PDF\"",
+ "saveFallbackP1": "Per il tuo browser non è supportata la stampa automatica del PDF con i risultati.",
+ "saveFallbackP2": "Puoi provare ad utilizzare la funzione \"Salva come PDF\" del tuo browser che potrebbe essere nel menu di condivisione oppure nel menu principale del browser.",
+ "saveFallbackP3": "Ti invitiamo a segnalare il tuo browser qui in modo da poter risolvere il problema."
}
}
From 076ec1965eb46c380ccd4869177685820d23e5df Mon Sep 17 00:00:00 2001
From: Lorenzo Corallo
Date: Wed, 26 Apr 2023 17:21:24 +0200
Subject: [PATCH 2/3] feat(i18n): add screenshots in English for Firefox
instructions
---
.../ExtendCorrection/ExtendedCorrection.tsx | 23 ++++++++++++++----
src/static/firefox_1.png | Bin
src/static/firefox_2.png | Bin
src/static/firefox_2_en.png | Bin 0 -> 24262 bytes
src/static/firefox_3.png | Bin
src/static/firefox_3_en.png | Bin 0 -> 15151 bytes
6 files changed, 18 insertions(+), 5 deletions(-)
mode change 100755 => 100644 src/static/firefox_1.png
mode change 100755 => 100644 src/static/firefox_2.png
create mode 100644 src/static/firefox_2_en.png
mode change 100755 => 100644 src/static/firefox_3.png
create mode 100644 src/static/firefox_3_en.png
diff --git a/src/components/ExtendCorrection/ExtendedCorrection.tsx b/src/components/ExtendCorrection/ExtendedCorrection.tsx
index caeda86..8393472 100644
--- a/src/components/ExtendCorrection/ExtendedCorrection.tsx
+++ b/src/components/ExtendCorrection/ExtendedCorrection.tsx
@@ -14,9 +14,12 @@ import DocumentHeader from './DocumentHeader'
import firefoxImg1 from '../../static/firefox_1.png'
import firefoxImg2 from '../../static/firefox_2.png'
import firefoxImg3 from '../../static/firefox_3.png'
+import firefoxImg2En from '../../static/firefox_2_en.png'
+import firefoxImg3En from '../../static/firefox_3_en.png'
import Question from '../Util/Question'
import { Trans, useTranslation } from 'react-i18next'
+const IMG_WIDTH = 320
const styles = StyleSheet.create({
collapsible: {
display: 'flex',
@@ -45,12 +48,16 @@ const styles = StyleSheet.create({
listStyleType: 'none'
},
ol: {
- paddingLeft: 20
+ paddingLeft: 20,
+ maxWidth: IMG_WIDTH,
+ margin: '0 auto',
+ textAlign: 'left',
+ gap: 10
},
img: {
marginTop: 5,
marginBottom: 10,
- maxWidth: 320,
+ maxWidth: IMG_WIDTH,
width: '100%',
height: 'auto',
objectFit: 'cover'
@@ -198,7 +205,7 @@ const PrintDocument = forwardRef(
PrintDocument.displayName = 'Document'
function FirefoxInstructions() {
- const { t } = useTranslation()
+ const { t, i18n } = useTranslation()
return (
{t('results.saveTitle')}
@@ -209,10 +216,16 @@ function FirefoxInstructions() {
{t('results.saveFirefoxLi2')}
-
+
{t('results.saveFirefoxLi3')}
-
+
)
diff --git a/src/static/firefox_1.png b/src/static/firefox_1.png
old mode 100755
new mode 100644
diff --git a/src/static/firefox_2.png b/src/static/firefox_2.png
old mode 100755
new mode 100644
diff --git a/src/static/firefox_2_en.png b/src/static/firefox_2_en.png
new file mode 100644
index 0000000000000000000000000000000000000000..8025ddccfd2b42f6b1fdca26345b6bf476a8b8e5
GIT binary patch
literal 24262
zcmb@u^Lu2?6Yw2pVr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YQ#)xQG`?
diff --git a/src/locales/en.json b/src/locales/en.json
index 7ef28a9..52e6f97 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -20,44 +20,74 @@
"main": "The TOL Project by PoliNetwork is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License Permissions beyond the scope of this license may be available here."
},
"privacy": {
- "localStorage": "This website uses the browser to save user preferences, for example the test mode (regular or DSA) or the website language. These settings are never sent to any server, instead they are handled locally by the browser. Moreover, preferences are deleted after 6 months from the last change."
+ "localStorage": "This website uses the browser to save user preferences, for example the test mode (regular or SLD) or the website language. These settings are never sent to any server, instead they are handled locally by the browser. Moreover, preferences are deleted after 6 months from the last change."
},
"results": {
"exitWarn": "You did not save your results. Are you sure you want to exit?",
- "testPassed": "passed",
- "testFailed": "failed",
- "testPoints": "Score",
- "tableHeader1": "Section score",
- "tableHeader2": "Num. of questions",
- "tableHeader3": "Correct",
- "tableHeader4": "Wrong",
- "tableHeader5": "Not given",
- "pointsCalcTitle": "How the score is calculated",
- "pointsCalcBody1": "The maximum achievable scoreis {{v1}} and is expressed to the second decimal place. The attribution of OFA TEST (Obblighi Formativi Aggiunti) occurs when the test score, rounded to the nearest integer, is less than {{v2}}. The attribution of OFA TENG occurs when, considering only the {{v3}} section, the number of correct answers is less than {{v4}}. ",
- "pointsCalcUl1": "The test score is calculated by assigning:",
- "pointsCalcItem1_one": "{{v}} point for each correct answer",
- "pointsCalcItem2_one": "{{v}} point for each wrong answer",
- "pointsCalcItem3_one": "{{v}} point for each answer not given",
- "pointsCalcItem1_other": "{{v}} points for each correct answer",
- "pointsCalcItem2_other": "{{v}} points for each wrong answer",
- "pointsCalcItem3_other": "{{v}} points for each answer not given",
- "pointsCalcUl2": "and assigning a weight of",
- "pointsCalcItem4": " for each question of {{sec}}",
- "pointsCalcBody2": "The total score gets rounded to the nearest integer (e.g., 59,49 gets rounded to 59, while 59,50 to 60)",
+ "test": {
+ "passed": "passed",
+ "failed": "failed",
+ "points": "Score"
+ },
+ "table": {
+ "header": {
+ "score": "Section score",
+ "numQ": "Num. of questions",
+ "correct": "Correct",
+ "wrong": "Wrong",
+ "notGiven": "Not given"
+ }
+ },
+ "pointsCalc": {
+ "title": "How the score is calculated",
+ "body": {
+ "1": "The maximum achievable scoreis {{v1}} and is expressed to the second decimal place. The attribution of OFA TEST (Obblighi Formativi Aggiunti) occurs when the test score, rounded to the nearest integer, is less than {{v2}}. The attribution of OFA TENG occurs when, considering only the {{v3}} section, the number of correct answers is less than {{v4}}. ",
+ "2": "The total score gets rounded to the nearest integer (e.g., 59,49 gets rounded to 59, while 59,50 to 60)"
+ },
+ "ul":{
+ "1": "The test score is calculated by assigning:",
+ "2": "and assigning a weight of",
+ "item": {
+ "1_one": "{{v}} point for each correct answer",
+ "1_other": "{{v}} points for each correct answer",
+ "2_one": "{{v}} point for each wrong answer",
+ "2_other": "{{v}} points for each wrong answer",
+ "3_one": "{{v}} point for each answer not given",
+ "3_other": "{{v}} points for each answer not given",
+ "4": " for each question of {{sec}}"
+ }
+ }
+ },
"saveReminder": "Remember to save your results before starting a new test, or they will be lost!",
- "homeBtn": "Go back to home",
- "saveBtn": "Save test results",
- "pdfTitle": "Simulation of {{- date}} at {{- time}}",
- "pdfInfo1": "Do you have any doubts about the questions and their resolution? Ask on the PoliNetwork's TOL Preparation Group!",
- "pdfInfo2": "On the following pages you will find, divided by section, the questions that have been proposed to you with the related outcome.",
- "saveTitle": "Save your results",
- "saveFirefoxP1": "Your browser (Firefox Android) does not support automatic printing of the PDF with the results.",
- "saveFirefoxP2": "Follow these instructions to save your results:",
- "saveFirefoxLi1": "Open the Firefox menu",
- "saveFirefoxLi2": "Click on the share button",
- "saveFirefoxLi3": "In the menu that opens, press on \"Save as PDF\"",
- "saveFallbackP1": "Your browser does not support automatic printing of the PDF with the results.",
- "saveFallbackP2": "You can try using your browser's \"Save as PDF\" feature, which may be in the sharing menu or in the main browser menu.",
- "saveFallbackP3": "Please report your browser here so we can fix the problem."
+ "btn": {
+ "home": "Go back to home",
+ "save": "Save test results"
+ },
+ "pdf": {
+ "title": "Simulation of {{- date}} at {{- time}}",
+ "info": {
+ "1": "Do you have any doubts about the questions and their resolution? Ask on the PoliNetwork's Gruppo Preparazione TOL!",
+ "2": "On the following pages you will find, divided by section, the questions that have been proposed to you with the related outcome."
+ }
+ },
+ "save": {
+ "title": "Save your results",
+ "firefox": {
+ "body": {
+ "1": "Your browser (Firefox Android) does not support automatic printing of the PDF with the results.",
+ "2": "Follow these instructions to save your results:"
+ },
+ "li": {
+ "1": "Open the Firefox menu",
+ "2": "Click on the share button",
+ "3": "In the menu that opens, press on \"Save as PDF\""
+ }
+ },
+ "fallback": {
+ "1": "Your browser does not support automatic printing of the PDF with the results.",
+ "2": "You can try using your browser's \"Save as PDF\" feature, which may be in the sharing menu or in the main browser menu.",
+ "3": "Please report your browser here so we can fix the problem."
+ }
+ }
}
}
diff --git a/src/locales/it.json b/src/locales/it.json
index bb1a78e..a796e66 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -24,40 +24,70 @@
},
"results": {
"exitWarn": "Non hai salvato i tuoi risultati. Sicuro di voler uscire?",
- "testPassed": "passato",
- "testFailed": "non passato",
- "testPoints": "Punteggio",
- "tableHeader1": "Punteggio sezione",
- "tableHeader2": "N° quesiti",
- "tableHeader3": "Esatti",
- "tableHeader4": "Errati",
- "tableHeader5": "Senza risposta",
- "pointsCalcTitle": "Come viene calcolato il punteggio",
- "pointsCalcBody1": "Il punteggio massimo conseguibile è di {{v1}} e viene espresso fino alla seconda cifra decimale. L'attribuzione di OFA TEST (Obblighi Formativi Aggiunti) avviene quando il punteggio test, arrotondato all'intero più vicino, è minore di {{v2}}. L'attribuzione di OFA TENG avviene quando, considerando la sola sezione di {{v3}}, il numero di risposte corrette è inferiore a {{v4}}. ",
- "pointsCalcUl1": "Il punteggio della prova viene calcolato attribuendo:",
- "pointsCalcItem1_one": "{{v}} punto ad ogni risposta esatta",
- "pointsCalcItem2_one": "{{v}} punto ad ogni risposta errata",
- "pointsCalcItem3_one": "{{v}} punto ad ogni risposta non data",
- "pointsCalcItem1_other": "{{v}} punti ad ogni risposta esatta",
- "pointsCalcItem2_other": "{{v}} punti ad ogni risposta errata",
- "pointsCalcItem3_other": "{{v}} punti ad ogni risposta non data",
- "pointsCalcUl2": "e assegnando peso di",
- "pointsCalcItem4": " ad ogni quesito di {{sec}}",
- "pointsCalcBody2": "Il punteggio complessivo viene arrotondato all'intero più vicino (es: il punteggio 59,49 viene arrotondato a 59, il punteggio 59,50 a 60)",
+ "test": {
+ "passed": "superato",
+ "failed": "non superato",
+ "points": "Punteggio"
+ },
+ "table": {
+ "header": {
+ "score": "Punteggio sezione",
+ "numQ": "N° quesiti",
+ "correct": "Esatti",
+ "wrong": "Errati",
+ "notGiven": "Senza risposta"
+ }
+ },
+ "pointsCalc": {
+ "title": "Come viene calcolato il punteggio",
+ "body": {
+ "1": "Il punteggio massimo conseguibile è di {{v1}} e viene espresso fino alla seconda cifra decimale. L'attribuzione di OFA TEST (Obblighi Formativi Aggiunti) avviene quando il punteggio test, arrotondato all'intero più vicino, è minore di {{v2}}. L'attribuzione di OFA TENG avviene quando, considerando la sola sezione di {{v3}}, il numero di risposte corrette è inferiore a {{v4}}. ",
+ "2": "Il punteggio complessivo viene arrotondato all'intero più vicino (es: il punteggio 59,49 viene arrotondato a 59, il punteggio 59,50 a 60)"
+ },
+ "ul": {
+ "1": "Il punteggio della prova viene calcolato attribuendo:",
+ "2": "e assegnando peso di",
+ "item": {
+ "1_one": "{{v}} punto ad ogni risposta esatta",
+ "2_one": "{{v}} punto ad ogni risposta errata",
+ "3_one": "{{v}} punto ad ogni risposta non data",
+ "1_other": "{{v}} punti ad ogni risposta esatta",
+ "2_other": "{{v}} punti ad ogni risposta errata",
+ "3_other": "{{v}} punti ad ogni risposta non data",
+ "4": " ad ogni quesito di {{sec}}"
+ }
+ }
+ },
"saveReminder": "Ricordati di salvare i tuoi risultati prima di iniziare un nuovo test, o andranno persi!",
- "homeBtn": "Torna alla home",
- "saveBtn": "Salva risultati della simulazione",
- "pdfTitle": "Simulazione del {{- date}} alle {{- time}}",
- "pdfInfo1": "Hai delle domande sui quesiti e la loro risoluzione? Falle sul Gruppo Preprazione TOL di PoliNetwork!",
- "pdfInfo2": "Nelle pagine successive troverai, suddivisi per sezione, i quesiti che ti sono stati proposti con il relativo esito.",
- "saveTitle": "Salva i tuoi risultati",
- "saveFirefoxP1": "Il tuo browser (Firefox Android) non supporta la stampa automatica.",
- "saveFirefoxP2": "Per salvare i risultati segui questi passaggi:",
- "saveFirefoxLi1": "Apri il menu di Firefox",
- "saveFirefoxLi2": "Premi il tasto per condividere",
- "saveFirefoxLi3": "Nel menu che si apre, premi su \"Salva come PDF\"",
- "saveFallbackP1": "Per il tuo browser non è supportata la stampa automatica del PDF con i risultati.",
- "saveFallbackP2": "Puoi provare ad utilizzare la funzione \"Salva come PDF\" del tuo browser che potrebbe essere nel menu di condivisione oppure nel menu principale del browser.",
- "saveFallbackP3": "Ti invitiamo a segnalare il tuo browser qui in modo da poter risolvere il problema."
+ "btn": {
+ "home": "Torna alla home",
+ "save": "Salva risultati della simulazione"
+ },
+ "pdf": {
+ "title": "Simulazione del {{- date}} alle {{- time}}",
+ "info": {
+ "1": "Hai delle domande sui quesiti e la loro risoluzione? Falle sul $t(tg.help) di PoliNetwork!",
+ "2": "Nelle pagine successive troverai, suddivisi per sezione, i quesiti che ti sono stati proposti con il relativo esito."
+ }
+ },
+ "save": {
+ "title": "Salva i tuoi risultati",
+ "firefox": {
+ "body": {
+ "1": "Il tuo browser (Firefox Android) non supporta la stampa automatica.",
+ "2": "Per salvare i risultati segui questi passaggi:"
+ },
+ "li": {
+ "1": "Apri il menu di Firefox",
+ "2": "Premi il tasto per condividere",
+ "3": "Nel menu che si apre, premi su \"Salva come PDF\""
+ }
+ },
+ "fallback": {
+ "1": "Per il tuo browser non è supportata la stampa automatica del PDF con i risultati.",
+ "2": "Puoi provare ad utilizzare la funzione \"Salva come PDF\" del tuo browser che potrebbe essere nel menu di condivisione oppure nel menu principale del browser.",
+ "3": "Ti invitiamo a segnalare il tuo browser qui in modo da poter risolvere il problema."
+ }
+ }
}
}