Skip to content

Commit

Permalink
Added extra instructions for CSV in English and Norwegian. Also added…
Browse files Browse the repository at this point in the history
… support for Northern and Southern Sámi.
  • Loading branch information
janlindso authored Nov 13, 2023
1 parent 8073fca commit 1e1dbbd
Show file tree
Hide file tree
Showing 11 changed files with 104 additions and 22 deletions.
30 changes: 17 additions & 13 deletions language/.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,35 @@
"label": "Source language",
"description": "Choose the language of the source words.",
"options": [
{ "label": "English" },
{ "label": "French" },
{ "label": "German" },
{ "label": "Norwegian bokmål" },
{ "label": "Norwegian nynorsk" },
{ "label": "Spanish" }
{ "value": "en", "label": "English" },
{ "value": "fr", "label": "French" },
{ "value": "de", "label": "German" },
{ "value": "sme", "label": "Northern Sámi" },
{ "value": "nb", "label": "Norwegian bokmål" },
{ "value": "nn", "label": "Norwegian nynorsk" },
{ "value": "sma", "label": "Southern Sámi" },
{ "value": "es", "label": "Spanish" }
]
},
{
"label": "Target language",
"description": "Choose the language of the target words.",
"options": [
{ "label": "English" },
{ "label": "French" },
{ "label": "German" },
{ "label": "Norwegian bokmål" },
{ "label": "Norwegian nynorsk" },
{ "label": "Spanish" }
{ "value": "en", "label": "English" },
{ "value": "fr", "label": "French" },
{ "value": "de", "label": "German" },
{ "value": "sme", "label": "Northern Sámi" },
{ "value": "nb", "label": "Norwegian bokmål" },
{ "value": "nn", "label": "Norwegian nynorsk" },
{ "value": "sma", "label": "Southern Sámi" },
{ "value": "es", "label": "Spanish" }
]
},
{
"label": "Words",
"description": "Add words by uploading a CSV-file or write them in the text field.",
"important": {
"description": "<ul><li>Source and target words are separated with a comma (,).</li><li>Alternative answers are separated with a forward slash (/).</li><li>You may add a textual tip, using a colon (:) in front of the tip.</li></ul>",
"description": "<ul><li>Source and target words are separated with a comma (,).</li><li>Alternative answers are separated with a forward slash (/).</li><li>You may add a textual tip, using a colon (:) in front of the tip.</li><li>In CSV you can either have source word and target word, or source word, source hint, target word, and target hint.</li></ul>",
"example": "water/sea:w___r,vann/hav:v__n"
}
},
Expand Down
12 changes: 12 additions & 0 deletions language/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@
{
"label": "Deutsch"
},
{
"label": "Northern Sámi"
},
{
"label": "Norwegisch (Bokmål)"
},
{
"label": "Norwegisch (Nynorsk)"
},
{
"label": "Southern Sámi"
},
{
"label": "Spanisch"
}
Expand All @@ -39,12 +45,18 @@
{
"label": "Deutsch"
},
{
"label": "Northern Sámi"
},
{
"label": "Norwegisch (Bokmål)"
},
{
"label": "Norwegisch (Nynorsk)"
},
{
"label": "Southern Sámi"
},
{
"label": "Spanisch"
}
Expand Down
6 changes: 6 additions & 0 deletions language/es-mx.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@
{
"label": "Alemán"
},
{
"label": "Northern Sámi"
},
{
"label": "Bokmål Noruego"
},
{
"label": "Nynorsk noruego"
},
{
"label": "Southern Sámi"
},
{
"label": "Español"
}
Expand Down
16 changes: 14 additions & 2 deletions language/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@
{
"label": "Alemán"
},
{
"label": "Northern Sámi"
},
{
"label": "Noruego (bokmål)"
},
{
"label": "Noruego (nynorsk)"
},
{
"label": "Southern Sámi"
},
{
"label": "Español"
}
Expand All @@ -42,10 +48,16 @@
"label": "Alemán"
},
{
"label": "Bokmål Noruego"
"label": "Northern Sámi"
},
{
"label": "Noruego (bokmål)"
},
{
"label": "Noruego (nynorsk)"
},
{
"label": "Nynorsk noruego"
"label": "Southern Sámi"
},
{
"label": "Español"
Expand Down
12 changes: 12 additions & 0 deletions language/eu.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@
{
"label": "Alemana"
},
{
"label": "Northern Sámi"
},
{
"label": "Norvegiako bokmål"
},
{
"label": "Norvegiako nynorsk"
},
{
"label": "Southern Sámi"
},
{
"label": "Gaztelania"
}
Expand All @@ -41,12 +47,18 @@
{
"label": "Alemana"
},
{
"label": "Northern Sámi"
},
{
"label": "Norvegiako bokmål"
},
{
"label": "Norvegiako nynorsk"
},
{
"label": "Southern Sámi"
},
{
"label": "Gaztelania"
}
Expand Down
12 changes: 12 additions & 0 deletions language/gl.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@
{
"label": "Alemán"
},
{
"label": "Northern Sámi"
},
{
"label": "Bokmål noruegués"
},
{
"label": "Nynorsk noruegués"
},
{
"label": "Southern Sámi"
},
{
"label": "Español"
}
Expand All @@ -41,12 +47,18 @@
{
"label": "Alemán"
},
{
"label": "Northern Sámi"
},
{
"label": "Bokmål noruegués"
},
{
"label": "Nynorsk noruegués"
},
{
"label": "Southern Sámi"
},
{
"label": "Español"
}
Expand Down
14 changes: 13 additions & 1 deletion language/lt.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@
{
"label": "Vokiečių"
},
{
"label": "Northern Sámi"
},
{
"label": "Norvegų"
},
{
"label": "Norwegian nynorsk"
},
{
"label": "Southern Sámi"
},
{
"label": "Ispanų"
}
Expand All @@ -40,11 +46,17 @@
"label": "Vokiečių"
},
{
"label": "Norwegian bokmål"
"label": "Northern Sámi"
},
{
"label": "Norvegų"
},
{
"label": "Norwegian nynorsk"
},
{
"label": "Southern Sámi"
},
{
"label": "Ispanų"
}
Expand Down
6 changes: 5 additions & 1 deletion language/nb.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
{ "label": "Engelsk" },
{ "label": "Fransk" },
{ "label": "Tysk" },
{ "label": "Nordsamisk" },
{ "label": "Norsk (bokmål)" },
{ "label": "Norsk (nynorsk)" },
{ "label": "Sørsamisk" },
{ "label": "Spansk" }
]
},
Expand All @@ -23,16 +25,18 @@
{ "label": "Engelsk" },
{ "label": "Fransk" },
{ "label": "Tysk" },
{ "label": "Nordsamisk" },
{ "label": "Norsk (bokmål)" },
{ "label": "Norsk (nynorsk)" },
{ "label": "Sørsamisk" },
{ "label": "Spansk" }
]
},
{
"label": "Ord",
"description": "Legg til ord ved å laste opp ei CSV-fil, eller skriv orda inn i tekstfeltet.",
"important": {
"description": "<ul><li>Kilde- og målord er atskilt med komma (,).</li><li>Alternative svar er atskilt med en framoverlent skråstrek (/).</li><li>Du kan legge til et teksttips ved å bruke kolon (:) foran tipset.</li></ul>",
"description": "<ul><li>Kilde- og målord er atskilt med komma (,).</li><li>Alternative svar er atskilt med en framoverlent skråstrek (/).</li><li>Du kan legge til et teksttips ved å bruke kolon (:) foran tipset.</li><li>I CSV-fila kan det enten være kun kilde- og målord eller kildeord, hint, målord, og hint.</li></ul>",
"example": "water/sea:w___r,vann/hav:v__n"
}
},
Expand Down
10 changes: 7 additions & 3 deletions language/nn.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
{ "label": "Engelsk" },
{ "label": "Fransk" },
{ "label": "Tysk" },
{ "label": "Nordsamisk" },
{ "label": "Norsk (bokmål)" },
{ "label": "Norsk (nynorsk)" },
{ "label": "Spansk" }
{ "label": "Spansk" },
{ "label": "Sørsamisk" }
]
},
{
Expand All @@ -23,16 +25,18 @@
{ "label": "Engelsk" },
{ "label": "Fransk" },
{ "label": "Tysk" },
{ "label": "Nordsamisk" },
{ "label": "Norsk (bokmål)" },
{ "label": "Norsk (nynorsk)" },
{ "label": "Spansk" }
{ "label": "Spansk" },
{ "label": "Sørsamisk" }
]
},
{
"label": "Ord",
"description": "Legg til ord ved å laste opp ei CSV-fil, eller skriv orda inn i tekstfeltet.",
"important": {
"description": "<ul><li>Kjelde- og målord er åtskilde med komma (,).</li><li>Alternative svar er åtskilde med skråstrek (/).</li><li>Du kan legge til eit teksttips ved å bruke kolon (:) framfor tipset.</li></ul>",
"description": "<ul><li>Kjelde- og målord er åtskilde med komma (,).</li><li>Alternative svar er åtskilde med skråstrek (/).</li><li>Du kan legge til eit teksttips ved å bruke kolon (:) framfor tipset.</li><li>I CSV-fila kan det anten vere kun kilde- og målord eller kildeord, hint, målord, og hint.</li></ul>",
"example": "water/sea:w___r,vatn/hav:v__n"
}
},
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"machineName": "H5P.VocabularyDrill",
"majorVersion": 1,
"minorVersion": 0,
"patchVersion": 26,
"patchVersion": 27,
"runnable": 1,
"license": "MIT",
"author": "NDLA",
Expand Down
6 changes: 5 additions & 1 deletion semantics.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
{ "value": "en", "label": "English" },
{ "value": "fr", "label": "French" },
{ "value": "de", "label": "German" },
{ "value": "sme", "label": "Northern Sámi" },
{ "value": "nb", "label": "Norwegian bokmål" },
{ "value": "nn", "label": "Norwegian nynorsk" },
{ "value": "sma", "label": "Southern Sámi" },
{ "value": "es", "label": "Spanish" }
],
"default": "en"
Expand All @@ -30,8 +32,10 @@
{ "value": "en", "label": "English" },
{ "value": "fr", "label": "French" },
{ "value": "de", "label": "German" },
{ "value": "sme", "label": "Northern Sámi" },
{ "value": "nb", "label": "Norwegian bokmål" },
{ "value": "nn", "label": "Norwegian nynorsk" },
{ "value": "sma", "label": "Southern Sámi" },
{ "value": "es", "label": "Spanish" }
],
"default": "nb"
Expand All @@ -44,7 +48,7 @@
"widget": "csv-to-text",
"description": "Add words by uploading a CSV-file or write them in the text field.",
"important": {
"description": "<ul><li>Source and target words are separated with a comma (,).</li><li>Alternative answers are separated with a forward slash (/).</li><li>You may add a textual tip, using a colon (:) in front of the tip.</li></ul>",
"description": "<ul><li>Source and target words are separated with a comma (,).</li><li>Alternative answers are separated with a forward slash (/).</li><li>You may add a textual tip, using a colon (:) in front of the tip.</li><li>In CSV you can either have source word and target word, or source word, source hint, target word, and target hint.</li></ul>",
"example": "water/sea:w___r,vann/hav:v__n"
}
},
Expand Down

0 comments on commit 1e1dbbd

Please sign in to comment.