diff --git a/language/ca.json b/language/ca.json index 12bcdd1..19bb8e9 100644 --- a/language/ca.json +++ b/language/ca.json @@ -3,119 +3,119 @@ { "widgets": [ { - "label": "Default" + "label": "Opció predeterminada" } ], - "label": "Cards", - "entity": "card", + "label": "Cartes", + "entity": "carta", "field": { - "label": "Card", + "label": "Carta", "fields": [ { - "label": "Image" + "label": "Imatge" }, { - "label": "Alternative text for Image", - "description": "Describe what can be seen in the photo. The text is read by text-to-speech tools needed by visually impaired users." + "label": "Text alternatiu per a la imatge", + "description": "Descriu el que es pot veure a la foto. El text és llegit per les eines de text a veu que necessiten els usuaris amb deficiència visual." }, { - "label": "Audio Track", - "description": "An optional sound that plays when the card is turned." + "label": "Pista d’àudio", + "description": "So opcional que es reprodueix en girar una carta." }, { - "label": "Matching Image", - "description": "An optional image to match against instead of using two cards with the same image." + "label": "Imatge coincident", + "description": "Imatge opcional per emparellar en lloc d’utilitzar dues cartes amb la mateixa imatge." }, { - "label": "Alternative text for Matching Image", - "description": "Describe what can be seen in the photo. The text is read by text-to-speech tools needed by visually impaired users." + "label": "Text alternatiu per a la imatge", + "description": "Descriu el que es pot veure a la foto. El text és llegit per les eines de text a veu que necessiten els usuaris amb deficiència visual." }, { - "label": "Matching Audio Track", - "description": "An optional sound that plays when the second card is turned." + "label": "Pista d’àudio per a una coincidència", + "description": "So opcional que es reprodueix quan es gira la segona carta." }, { - "label": "Description", - "description": "An optional short text that will pop up once the two matching cards are found." + "label": "Descripció", + "description": "Text breu opcional que es mostrarà quan es trobin les dues cartes coincidents." } ] } }, { - "label": "Behavioural settings", - "description": "These options will let you control how the game behaves.", + "label": "Opcions de comportament", + "description": "Aquestes opcions us permeten controlar com es comporta el joc.", "fields": [ { - "label": "Position the cards in a square", - "description": "Will try to match the number of columns and rows when laying out the cards. Afterward, the cards will be scaled to fit the container." + "label": "Distribueix les cartes formant un quadrat", + "description": "Es provarà de fer coincidir el nombre de files i de columnes en disposar les cartes. Després, les cartes s’ajustaran al contenidor." }, { - "label": "Number of cards to use", - "description": "Setting this to a number greater than 2 will make the game pick random cards from the list of cards." + "label": "Nombre de targetes a utilitzar", + "description": "Si configureu aquest valor amb un número més gran que 2, el joc seleccionarà les cartes aleatòriament de la llista de cartes." }, { - "label": "Add button for retrying when the game is over" + "label": "Afegeix el botó per tornar-ho a provar quan el joc finalitzi" } ] }, { - "label": "Look and feel", - "description": "Control the visuals of the game.", + "label": "Aspecte visual", + "description": "Controleu els elements visuals del joc.", "fields": [ { - "label": "Theme Color", - "description": "Choose a color to create a theme for your card game." + "label": "Color del tema", + "description": "Trieu un color per crear un tema per al joc de cartes." }, { - "label": "Card Back", - "description": "Use a custom back for your cards." + "label": "Revers de la carta", + "description": "Utilitzeu un revers personalitzat per a les cartes." } ] }, { - "label": "Localization", + "label": "Localització", "fields": [ { - "label": "Card turns text", - "default": "Card turns" + "label": "Text dels girs de cartes", + "default": "Girs de cartes" }, { - "label": "Time spent text", - "default": "Time spent" + "label": "Text de temps transcorregut", + "default": "Temps dedicat" }, { - "label": "Feedback text", - "default": "Good work!" + "label": "Text del suggeriment", + "default": "Correcte!" }, { - "label": "Try again button text", - "default": "Try again?" + "label": "Text del botó \"Torna-ho a provar\"", + "default": "Voleu tornar-ho a provar?" }, { - "label": "Close button label", - "default": "Close" + "label": "Etiqueta del botó de tancar", + "default": "Tanca" }, { - "label": "Game label", - "default": "Memory Game. Find the matching cards." + "label": "Etiqueta del joc", + "default": "Joc de memòria. Cerca les targetes coincidents." }, { - "label": "Game finished label", - "default": "All of the cards have been found." + "label": "Etiqueta \"El joc ha finalitzat\"", + "default": "S’han emparellat totes les cartes." }, { - "label": "Card indexing label", - "default": "Card %num:" + "label": "Etiqueta d’indexació de les cartes", + "default": "Carta %num:" }, { - "label": "Card unturned label", - "default": "Unturned." + "label": "Etiqueta per a les cartes no girades", + "default": "Sense girar." }, { - "label": "Card matched label", - "default": "Match found." + "label": "Etiqueta per a les cartes coincidents", + "default": "S’ha trobat una coincidència." } ] } ] -} \ No newline at end of file +} diff --git a/language/he.json b/language/he.json index 624c614..7277a1b 100644 --- a/language/he.json +++ b/language/he.json @@ -3,40 +3,40 @@ { "widgets": [ { - "label": "Default" + "label": "ברירת מחדל" } ], - "label": "Cards", - "entity": "card", + "label": "קלפים", + "entity": "קלף", "field": { - "label": "Card", + "label": "קלף", "fields": [ { - "label": "Image" + "label": "תמונה" }, { - "label": "Alternative text for Image", - "description": "Describe what can be seen in the photo. The text is read by text-to-speech tools needed by visually impaired users." + "label": "תוכן חלופי לתמונה", + "description": "תאר מה אפשר לראות בתמונה. הטקסט נקרא על ידי כלי טקסט-לדיבור הנחוצים למשתמשים בעלי לקויות ראייה." }, { - "label": "Audio Track", - "description": "An optional sound that plays when the card is turned." + "label": "ערוץ שמע", + "description": "צליל אופציונלי שמתנגן כאשר הופכים את הקלף." }, { - "label": "Matching Image", - "description": "An optional image to match against instead of using two cards with the same image." + "label": "תמונה תואמת", + "description": "תמונה אופציונלית להתאמה במקום להשתמש בשני קלפים עם אותה התמונה." }, { - "label": "Alternative text for Matching Image", - "description": "Describe what can be seen in the photo. The text is read by text-to-speech tools needed by visually impaired users." + "label": "טקסט חליפי לתמונה תואמת", + "description": "תאר מה אפשר לראות בתמונה. הטקסט נקרא על ידי כלי טקסט-לדיבור שנחוצים למשתמשים בעלי לקויות ראייה." }, { - "label": "Matching Audio Track", - "description": "An optional sound that plays when the second card is turned." + "label": "ערוץ שמע תואם", + "description": "צליל אופציונלי שמתנן כאשר הופכים את הקלף השני." }, { - "label": "Description", - "description": "An optional short text that will pop up once the two matching cards are found." + "label": "תיאור", + "description": "טקסט קצר אופציונלי יקפוץ ברגע ששני הקלפים התואמים יימצאו." } ] } @@ -46,74 +46,74 @@ "description": "These options will let you control how the game behaves.", "fields": [ { - "label": "Position the cards in a square", - "description": "Will try to match the number of columns and rows when laying out the cards. Afterward, the cards will be scaled to fit the container." + "label": "סדרו את הכרטיסים בריבוע", + "description": "ניסיון להתאים בין מספר הטורים והשורות בעת סידור הכרטיסים. לאחר מכן, גודל הכרטיסים יותאם למכל." }, { - "label": "Number of cards to use", - "description": "Setting this to a number greater than 2 will make the game pick random cards from the list of cards." + "label": "מספר קלפים לשימוש", + "description": "להגדיר את זה למספר גדול מ-2 יגרום למשחק לבחור כרטיסים אקראיים מרשימת הכרטיסים." }, { - "label": "Add button for retrying when the game is over" + "label": "הוסף כפתור כדי לנסות שוב כאשר המשחק נגמר" } ] }, { - "label": "Look and feel", - "description": "Control the visuals of the game.", + "label": "הבט וחוש", + "description": "שליטה בהגדרות החזותיות של המשחק.", "fields": [ { - "label": "Theme Color", - "description": "Choose a color to create a theme for your card game." + "label": "צבע נושא", + "description": "בחרו צבע ליצירת נושא למשחק הכרטיסים." }, { - "label": "Card Back", - "description": "Use a custom back for your cards." + "label": "גב הכרטיס", + "description": "השתמש בגב מותאם אישית עבור הקלפים שלך." } ] }, { - "label": "Localization", + "label": "תרגום מקומי", "fields": [ { - "label": "Card turns text", - "default": "Card turns" + "label": "תוכן הפיכת כרטיס", + "default": "הפיכת כרטיס" }, { - "label": "Time spent text", - "default": "Time spent" + "label": "טקסט זמן שהושקע", + "default": "זמן שהושקע" }, { "label": "משוב", - "default": "Good work!" + "default": "עבודה טובה!" }, { - "label": "Try again button text", - "default": "Try again?" + "label": "תוכן של כפתור ניסיון חוזר", + "default": "נסה שוב?" }, { - "label": "Close button label", - "default": "Close" + "label": "תווית כפתור סגור", + "default": "סגור" }, { - "label": "Game label", - "default": "Memory Game. Find the matching cards." + "label": "תווית משחק", + "default": "משחק זיכרון. מצאו את הכרטיסים המתאימים." }, { - "label": "Game finished label", - "default": "All of the cards have been found." + "label": "תווית המשחק נגמר", + "default": "נמצאו כל הכרטיסים." }, { - "label": "Card indexing label", - "default": "Card %num:" + "label": "תווית מפתוח כרטיס", + "default": "כרטיס %num:" }, { - "label": "Card unturned label", - "default": "Unturned." + "label": "תווית כרטיס לא הפוך", + "default": "לא הפוך." }, { - "label": "Card matched label", - "default": "Match found." + "label": "תווית כרטיס מותאם", + "default": "נמצאה התאמה." } ] } diff --git a/language/km.json b/language/km.json new file mode 100644 index 0000000..41b8ecf --- /dev/null +++ b/language/km.json @@ -0,0 +1,121 @@ +{ + "semantics": [ + { + "widgets": [ + { + "label": "Default" + } + ], + "label": "Cards", + "entity": "card", + "field": { + "label": "Card", + "fields": [ + { + "label": "Image" + }, + { + "label": "Alternative text for Image", + "description": "Describe what can be seen in the photo. The text is read by text-to-speech tools needed by visually impaired users." + }, + { + "label": "Audio Track", + "description": "An optional sound that plays when the card is turned." + }, + { + "label": "Matching Image", + "description": "An optional image to match against instead of using two cards with the same image." + }, + { + "label": "Alternative text for Matching Image", + "description": "Describe what can be seen in the photo. The text is read by text-to-speech tools needed by visually impaired users." + }, + { + "label": "Matching Audio Track", + "description": "An optional sound that plays when the second card is turned." + }, + { + "label": "Description", + "description": "An optional short text that will pop up once the two matching cards are found." + } + ] + } + }, + { + "label": "Behavioural settings", + "description": "These options will let you control how the game behaves.", + "fields": [ + { + "label": "Position the cards in a square", + "description": "Will try to match the number of columns and rows when laying out the cards. Afterward, the cards will be scaled to fit the container." + }, + { + "label": "Number of cards to use", + "description": "Setting this to a number greater than 2 will make the game pick random cards from the list of cards." + }, + { + "label": "Add button for retrying when the game is over" + } + ] + }, + { + "label": "Look and feel", + "description": "Control the visuals of the game.", + "fields": [ + { + "label": "Theme Color", + "description": "Choose a color to create a theme for your card game." + }, + { + "label": "Card Back", + "description": "Use a custom back for your cards." + } + ] + }, + { + "label": "Localization", + "fields": [ + { + "label": "Card turns text", + "default": "កាតបង្វិល" + }, + { + "label": "Time spent text", + "default": "ពេលចំណាយ" + }, + { + "label": "Feedback text", + "default": "ល្អណាស់!" + }, + { + "label": "Try again button text", + "default": "សាកម្តងទៀត?" + }, + { + "label": "Close button label", + "default": "បិទ" + }, + { + "label": "Game label", + "default": "ល្បែងចងចាំ! រកកាតដែលផ្គូផ្គង" + }, + { + "label": "Game finished label", + "default": "អ្នកបានរកឃើញកាតទាំងអស់ហើយ!" + }, + { + "label": "Card indexing label", + "default": "កាត %num:" + }, + { + "label": "Card unturned label", + "default": "មិនបានបង្វិល។" + }, + { + "label": "Card matched label", + "default": "រកឃើញកាតផ្គូផ្គង។" + } + ] + } + ] +} diff --git a/language/ko.json b/language/ko.json index 12bcdd1..6d2778f 100644 --- a/language/ko.json +++ b/language/ko.json @@ -3,119 +3,120 @@ { "widgets": [ { - "label": "Default" + "label": "기본값" } ], - "label": "Cards", - "entity": "card", + "label": "카드", + "entity": "카드", "field": { - "label": "Card", + "label": "카드", "fields": [ { - "label": "Image" + "label": "이미지" }, { - "label": "Alternative text for Image", - "description": "Describe what can be seen in the photo. The text is read by text-to-speech tools needed by visually impaired users." + "label": "이미지의 대체 텍스트", + "description": "사진에서 볼 수 있는 것을 묘사하세요. 이 텍스트는 시각 장애 사용자가 필요로 하는 텍스트 음성 변환 도구로 읽힌다." }, { - "label": "Audio Track", - "description": "An optional sound that plays when the card is turned." + "label": "오디오 트랙", + "description": "카드를 돌렸을 때 재생되는 선택적 사운드." }, { - "label": "Matching Image", - "description": "An optional image to match against instead of using two cards with the same image." + "label": "매칭 이미지", + "description": "(선택사항) 같은 이미지의 두 카드를 사용하는 대신에 매칭할 수 있는 선택적 이미지." }, { - "label": "Alternative text for Matching Image", - "description": "Describe what can be seen in the photo. The text is read by text-to-speech tools needed by visually impaired users." + "label": "매칭 이미지에 대한 대체 텍스트", + "description": "사진에서 볼 수 있는 것을 묘사하세요. 이 텍스트는 시각 장애 사용자가 필요로 하는 텍스트 음성 변환 도구로 읽힌다.." }, { - "label": "Matching Audio Track", - "description": "An optional sound that plays when the second card is turned." + "label": "매칭 오디오 트랙", + "description": "(선택사항)두 번째 카드를 돌릴 때 재생되는 사운드" }, { - "label": "Description", - "description": "An optional short text that will pop up once the two matching cards are found." + "label": "설명", + "description": "(선택사항) 일치되는 두 장의 카드가 발견되면 팝업될 짧은 텍스트." } ] } }, { - "label": "Behavioural settings", - "description": "These options will let you control how the game behaves.", + "label": "과제가 수행되는 방법 설정.", + "description": "이 옵션은 과제가 어떻게 수행될 지 환경을 설정합니다.", "fields": [ { - "label": "Position the cards in a square", - "description": "Will try to match the number of columns and rows when laying out the cards. Afterward, the cards will be scaled to fit the container." + "label": "카드를 정사각형으로 배열하기", + "description": "카드를 놓을 때 열과 행의 개수를 맞추려고 할 것이다. 이후, 카드는 용기에 맞게 크기가 조정될 것이다." }, { - "label": "Number of cards to use", - "description": "Setting this to a number greater than 2 will make the game pick random cards from the list of cards." + "label": "사용할 카드 수", + "description": "이것을 2보다 큰 숫자로 설정하면 게임이 카드 목록에서 무작위 카드를 선택하게 될 것이다." }, { - "label": "Add button for retrying when the game is over" + "label": "게임 종료 시 재시도하기 위한 버튼 추가" } ] }, { - "label": "Look and feel", - "description": "Control the visuals of the game.", + "label": "외관과 느낌", + "description": "게임의 비주얼 관리", "fields": [ { - "label": "Theme Color", - "description": "Choose a color to create a theme for your card game." + "label": "테마 색깔", + "description": "카드 게임의 테마를 만들 색을 선택하십시오." }, { - "label": "Card Back", - "description": "Use a custom back for your cards." + "label": "카드 뒷면", + "description": "카드의 뒷면을 맞춤형으로 사용하십시오." + } ] }, { - "label": "Localization", + "label": "맞춤형 설정", "fields": [ { - "label": "Card turns text", - "default": "Card turns" + "label": "카드가 돌려질 때 텍스트", + "default": "카드가 돌려집니다." }, { - "label": "Time spent text", - "default": "Time spent" + "label": "걸린 시간 텍스트", + "default": "걸린 시간" }, { - "label": "Feedback text", - "default": "Good work!" + "label": "피드백 텍스트", + "default": "잘 했습니다.!" }, { - "label": "Try again button text", - "default": "Try again?" + "label": "재시도 버튼 텍스트", + "default": "다시 시도하시겠습니까?" }, { - "label": "Close button label", - "default": "Close" + "label": "닫기 버튼 텍스트", + "default": "닫기" }, { - "label": "Game label", - "default": "Memory Game. Find the matching cards." + "label": "게임 라벨", + "default": "메모리 게임. 매칭되는 카드를 찾으세요." }, { - "label": "Game finished label", - "default": "All of the cards have been found." + "label": "게임 완료 텍스트", + "default": "모든 카드가 발견되었습니다." }, { - "label": "Card indexing label", - "default": "Card %num:" + "label": "카드 색인 라벨", + "default": "카드 %num:" }, { - "label": "Card unturned label", - "default": "Unturned." + "label": "돌려지지 않은 카드 라벨", + "default": "돌려지지 않음." }, { - "label": "Card matched label", - "default": "Match found." + "label": "매칭된 카드 라벨", + "default": "매칭되었습니다." } ] } ] -} \ No newline at end of file +} diff --git a/language/nl.json b/language/nl.json index 2312c78..20caf5a 100644 --- a/language/nl.json +++ b/language/nl.json @@ -20,7 +20,7 @@ }, { "label": "Audio Track", - "description": "An optional sound that plays when the card is turned." + "description": "Een optioneel geluid dat afspeelt wanneer de kaart wordt omgedraaid." }, { "label": "Omschrijving", @@ -32,7 +32,7 @@ }, { "label": "Matching Audio Track", - "description": "An optional sound that plays when the second card is turned." + "description": "Een optioneel geluid dat afspeelt wanneer de tweede kaart wordt omgedraaid." }, { "label": "Omschrijving", @@ -118,4 +118,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language/nn.json b/language/nn.json index 12bcdd1..48664d7 100644 --- a/language/nn.json +++ b/language/nn.json @@ -77,45 +77,45 @@ "fields": [ { "label": "Card turns text", - "default": "Card turns" + "default": "Kort snur" }, { "label": "Time spent text", - "default": "Time spent" + "default": "Tid brukt" }, { "label": "Feedback text", - "default": "Good work!" + "default": "Bra jobba!" }, { "label": "Try again button text", - "default": "Try again?" + "default": "prøv igjen?" }, { "label": "Close button label", - "default": "Close" + "default": "Lukk" }, { "label": "Game label", - "default": "Memory Game. Find the matching cards." + "default": "Memory-spel. Finn dei matchande korta." }, { "label": "Game finished label", - "default": "All of the cards have been found." + "default": "Alle korta har blitt funne." }, { "label": "Card indexing label", - "default": "Card %num:" + "default": "Kort %num:" }, { "label": "Card unturned label", - "default": "Unturned." + "default": "Ikkje snudd." }, { "label": "Card matched label", - "default": "Match found." + "default": "Match funne." } ] } ] -} \ No newline at end of file +} diff --git a/language/sv.json b/language/sv.json index 12bcdd1..35946f0 100644 --- a/language/sv.json +++ b/language/sv.json @@ -42,7 +42,7 @@ } }, { - "label": "Behavioural settings", + "label": "Beteende-inställningar", "description": "These options will let you control how the game behaves.", "fields": [ { @@ -84,7 +84,7 @@ "default": "Time spent" }, { - "label": "Feedback text", + "label": "Feedbacktext", "default": "Good work!" }, { @@ -118,4 +118,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/memory-game.js b/memory-game.js index 4b63def..d2d102d 100644 --- a/memory-game.js +++ b/memory-game.js @@ -436,9 +436,10 @@ H5P.MemoryGame = (function (EventDispatcher, $) { for (var i = 0; i < cards.length; i++) { cards[i].appendTo($list); } - cards[0].makeTabbable(); if ($list.children().length) { + cards[0].makeTabbable(); + $('
', { id: 'h5p-intro-' + numInstances, 'class': 'h5p-memory-hidden-read', @@ -476,6 +477,13 @@ H5P.MemoryGame = (function (EventDispatcher, $) { popup.close(); }); } + else { + const $foo = $('
') + .text('No card was added to the memory game!') + .appendTo($list); + + $list.appendTo($container); + } }; /**