Merge pull request #1 from h5p/master

f
pull/47/head
Erkki Virtanen 2019-06-12 13:13:14 +03:00 committed by GitHub
commit e37bdaabe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
42 changed files with 3317 additions and 1306 deletions

236
card.js
View File

@ -7,46 +7,133 @@
* @extends H5P.EventDispatcher
* @param {Object} image
* @param {number} id
* @param {string} alt
* @param {Object} l10n Localization
* @param {string} [description]
* @param {Object} [styles]
*/
MemoryGame.Card = function (image, id, description, styles) {
MemoryGame.Card = function (image, id, alt, l10n, description, styles, audio) {
/** @alias H5P.MemoryGame.Card# */
var self = this;
// Initialize event inheritance
EventDispatcher.call(self);
var path = H5P.getPath(image.path, id);
var width, height, margin, $card;
var path, width, height, $card, $wrapper, removedState, flippedState, audioPlayer;
if (image.width !== undefined && image.height !== undefined) {
if (image.width > image.height) {
width = '100%';
height = 'auto';
alt = alt || 'Missing description'; // Default for old games
if (image && image.path) {
path = H5P.getPath(image.path, id);
if (image.width !== undefined && image.height !== undefined) {
if (image.width > image.height) {
width = '100%';
height = 'auto';
}
else {
height = '100%';
width = 'auto';
}
}
else {
height = '100%';
width = 'auto';
width = height = '100%';
}
}
else {
width = height = '100%';
if (audio) {
// Check if browser supports audio.
audioPlayer = document.createElement('audio');
if (audioPlayer.canPlayType !== undefined) {
// Add supported source files.
for (var i = 0; i < audio.length; i++) {
if (audioPlayer.canPlayType(audio[i].mime)) {
var source = document.createElement('source');
source.src = H5P.getPath(audio[i].path, id);
source.type = audio[i].mime;
audioPlayer.appendChild(source);
}
}
}
if (!audioPlayer.children.length) {
audioPlayer = null; // Not supported
}
else {
audioPlayer.controls = false;
audioPlayer.preload = 'auto';
var handlePlaying = function () {
if ($card) {
$card.addClass('h5p-memory-audio-playing');
self.trigger('audioplay');
}
};
var handleStopping = function () {
if ($card) {
$card.removeClass('h5p-memory-audio-playing');
self.trigger('audiostop');
}
};
audioPlayer.addEventListener('play', handlePlaying);
audioPlayer.addEventListener('ended', handleStopping);
audioPlayer.addEventListener('pause', handleStopping);
}
}
/**
* Update the cards label to make it accessible to users with a readspeaker
*
* @param {boolean} isMatched The card has been matched
* @param {boolean} announce Announce the current state of the card
* @param {boolean} reset Go back to the default label
*/
self.updateLabel = function (isMatched, announce, reset) {
// Determine new label from input params
var label = (reset ? l10n.cardUnturned : alt);
if (isMatched) {
label = l10n.cardMatched + ' ' + label;
}
// Update the card's label
$wrapper.attr('aria-label', l10n.cardPrefix.replace('%num', $wrapper.index() + 1) + ' ' + label);
// Update disabled property
$wrapper.attr('aria-disabled', reset ? null : 'true');
// Announce the label change
if (announce) {
$wrapper.blur().focus(); // Announce card label
}
};
/**
* Flip card.
*/
self.flip = function () {
if (flippedState) {
$wrapper.blur().focus(); // Announce card label again
return;
}
$card.addClass('h5p-flipped');
self.trigger('flip');
flippedState = true;
if (audioPlayer) {
audioPlayer.play();
}
};
/**
* Flip card back.
*/
self.flipBack = function () {
self.stopAudio();
self.updateLabel(null, null, true); // Reset card label
$card.removeClass('h5p-flipped');
flippedState = false;
};
/**
@ -54,12 +141,17 @@
*/
self.remove = function () {
$card.addClass('h5p-matched');
removedState = true;
};
/**
* Reset card to natural state
*/
self.reset = function () {
self.stopAudio();
self.updateLabel(null, null, true); // Reset card label
flippedState = false;
removedState = false;
$card[0].classList.remove('h5p-flipped', 'h5p-matched');
};
@ -87,28 +179,118 @@
* @param {H5P.jQuery} $container
*/
self.appendTo = function ($container) {
// TODO: Translate alt attr
$card = $('<li class="h5p-memory-wrap"><div class="h5p-memory-card" role="button" tabindex="1">' +
$wrapper = $('<li class="h5p-memory-wrap" tabindex="-1" role="button"><div class="h5p-memory-card">' +
'<div class="h5p-front"' + (styles && styles.front ? styles.front : '') + '>' + (styles && styles.backImage ? '' : '<span></span>') + '</div>' +
'<div class="h5p-back"' + (styles && styles.back ? styles.back : '') + '>' +
'<img src="' + path + '" alt="Memory Card" style="width:' + width + ';height:' + height + '"/>' +
(path ? '<img src="' + path + '" alt="' + alt + '" style="width:' + width + ';height:' + height + '"/>' + (audioPlayer ? '<div class="h5p-memory-audio-button"></div>' : '') : '<i class="h5p-memory-audio-instead-of-image">') +
'</div>' +
'</div></li>')
.appendTo($container)
.children('.h5p-memory-card')
.children('.h5p-front')
.click(function () {
.on('keydown', function (event) {
switch (event.which) {
case 13: // Enter
case 32: // Space
self.flip();
})
.end();
event.preventDefault();
return;
case 39: // Right
case 40: // Down
// Move focus forward
self.trigger('next');
event.preventDefault();
return;
case 37: // Left
case 38: // Up
// Move focus back
self.trigger('prev');
event.preventDefault();
return;
case 35:
// Move to last card
self.trigger('last');
event.preventDefault();
return;
case 36:
// Move to first card
self.trigger('first');
event.preventDefault();
return;
}
});
$wrapper.attr('aria-label', l10n.cardPrefix.replace('%num', $wrapper.index() + 1) + ' ' + l10n.cardUnturned);
$card = $wrapper.children('.h5p-memory-card')
.children('.h5p-front')
.click(function () {
self.flip();
})
.end();
if (audioPlayer) {
$card.children('.h5p-back')
.click(function () {
if ($card.hasClass('h5p-memory-audio-playing')) {
self.stopAudio();
}
else {
audioPlayer.play();
}
})
}
};
/**
* Re-append to parent container
* Re-append to parent container.
*/
self.reAppend = function () {
var parent = $card[0].parentElement.parentElement;
parent.appendChild($card[0].parentElement);
var parent = $wrapper[0].parentElement;
parent.appendChild($wrapper[0]);
};
/**
* Make the card accessible when tabbing
*/
self.makeTabbable = function () {
if ($wrapper) {
$wrapper.attr('tabindex', '0');
}
};
/**
* Prevent tabbing to the card
*/
self.makeUntabbable = function () {
if ($wrapper) {
$wrapper.attr('tabindex', '-1');
}
};
/**
* Make card tabbable and move focus to it
*/
self.setFocus = function () {
self.makeTabbable();
if ($wrapper) {
$wrapper.focus();
}
};
/**
* Check if the card has been removed from the game, i.e. if has
* been matched.
*/
self.isRemoved = function () {
return removedState;
};
/**
* Stop any audio track that might be playing.
*/
self.stopAudio = function () {
if (audioPlayer) {
audioPlayer.pause();
audioPlayer.currentTime = 0;
}
};
};
@ -125,8 +307,9 @@
*/
MemoryGame.Card.isValid = function (params) {
return (params !== undefined &&
params.image !== undefined &&
params.image.path !== undefined);
(params.image !== undefined &&
params.image.path !== undefined) ||
params.audio);
};
/**
@ -138,8 +321,9 @@
*/
MemoryGame.Card.hasTwoImages = function (params) {
return (params !== undefined &&
params.match !== undefined &&
params.match.path !== undefined);
(params.match !== undefined &&
params.match.path !== undefined) ||
params.matchAudio);
};
/**

View File

@ -14,10 +14,26 @@
{
"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."
@ -49,8 +65,7 @@
{
"label": "Theme Color",
"description": "Choose a color to create a theme for your card game.",
"default": "#909090",
"spectrum": {}
"default": "#909090"
},
{
"label": "Card Back",
@ -80,6 +95,26 @@
{
"label": "Close button label",
"default": "Close"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Default"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Cards",
"entity": "card",
"field": {
"label": "Card",
"fields": [
{
"label":"Image"
"label": "Image"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same 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":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"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": "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": "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": "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": "Add button for retrying when the game is over"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"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.",
"default":"#909090",
"spectrum":{
}
"label": "Theme Color",
"description": "Choose a color to create a theme for your card game.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Card Back",
"description": "Use a custom back for your cards."
}
]
},
{
"label":"Localization",
"fields":[
"label": "Localization",
"fields": [
{
"label":"Card turns text",
"default":"Card turns"
"label": "Card turns text",
"default": "Card turns"
},
{
"label":"Time spent text",
"default":"Time spent"
"label": "Time spent text",
"default": "Time spent"
},
{
"label":"Feedback text",
"default":"Good work!"
"label": "Feedback text",
"default": "Good work!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Try again button text",
"default": "Try again?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Close button label",
"default": "Close"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Default"
}
],
"label":"البطاقات",
"entity":"بطاقة",
"field":{
"label":"البطاقة",
"fields":[
"label": "البطاقات",
"entity": "بطاقة",
"field": {
"label": "البطاقة",
"fields": [
{
"label":"الصورة"
"label": "الصورة"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same 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":"الوصف",
"description":"نص قصير يتم عرضه مرة واحدة علي اثنين من البطاقات متساوية"
"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": "نص قصير يتم عرضه مرة واحدة علي اثنين من البطاقات متساوية"
}
]
}
},
{
"label":"Behavioural settings",
"description":"These options will let you control how the game behaves.",
"fields":[
"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": "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": "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": "Add button for retrying when the game is over"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"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.",
"default":"#909090",
"spectrum":{
}
"label": "Theme Color",
"description": "Choose a color to create a theme for your card game.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Card Back",
"description": "Use a custom back for your cards."
}
]
},
{
"label":"الأقلمة",
"fields":[
"label": "الأقلمة",
"fields": [
{
"label":"نص تدوير البطاقة",
"default":"Card turns"
"label": "نص تدوير البطاقة",
"default": "Card turns"
},
{
"label":"نص التوقيت الزمني",
"default":"Time spent"
"label": "نص التوقيت الزمني",
"default": "Time spent"
},
{
"label":"نص الملاحظات",
"default":"Good work!"
"label": "نص الملاحظات",
"default": "Good work!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Try again button text",
"default": "Reset"
},
{
"label":"Close button label",
"default":"Close"
"label": "Close button label",
"default": "Close"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Default"
}
],
"label":"Karte",
"entity":"karte",
"field":{
"label":"Karte",
"fields":[
"label": "Karte",
"entity": "karte",
"field": {
"label": "Karte",
"fields": [
{
"label":"Slika"
"label": "Slika"
},
{
"label":"Ista slika",
"description":"Opcionalna slika koja se koristi umjestodvije iste slike."
"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":"Opis",
"description":"Kratak tekst koji će biti prikazan čim se pronađu dvije iste karte."
"label": "Audio Track",
"description": "An optional sound that plays when the card is turned."
},
{
"label": "Ista slika",
"description": "Opcionalna slika koja se koristi umjestodvije iste slike."
},
{
"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": "Opis",
"description": "Kratak tekst koji će biti prikazan čim se pronađu dvije iste karte."
}
]
}
},
{
"label":"Podešavanje ponašanja",
"description":"These options will let you control how the game behaves.",
"fields":[
"label": "Podešavanje ponašanja",
"description": "These options will let you control how the game behaves.",
"fields": [
{
"label":"Poredaj karte u redove ",
"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": "Poredaj karte u redove ",
"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":"Broj karata za upotrebu",
"description":"Setting this to a number greater than 2 will make the game pick random cards from the list of cards."
"label": "Broj karata za upotrebu",
"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": "Add button for retrying when the game is over"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"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.",
"default":"#909090",
"spectrum":{
}
"label": "Theme Color",
"description": "Choose a color to create a theme for your card game.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Card Back",
"description": "Use a custom back for your cards."
}
]
},
{
"label":"Prijevod",
"fields":[
"label": "Prijevod",
"fields": [
{
"label":"Tekst kad se okrene karta ",
"default":"Okrenuta karta"
"label": "Tekst kad se okrene karta ",
"default": "Okrenuta karta"
},
{
"label":"Tekst za provedeno vrijeme",
"default":"Provedeno vrijeme"
"label": "Tekst za provedeno vrijeme",
"default": "Provedeno vrijeme"
},
{
"label":"Feedback tekst",
"default":"BRAVO!"
"label": "Feedback tekst",
"default": "BRAVO!"
},
{
"label":"Tekst na dugmetu pokušaj ponovo",
"default":"Pokušaj ponovo?"
"label": "Tekst na dugmetu pokušaj ponovo",
"default": "Pokušaj ponovo?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Close button label",
"default": "Close"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Default"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Cards",
"entity": "card",
"field": {
"label": "Card",
"fields": [
{
"label":"Image"
"label": "Image"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same 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":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"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": "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": "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": "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": "Add button for retrying when the game is over"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"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.",
"default":"#909090",
"spectrum":{
}
"label": "Theme Color",
"description": "Choose a color to create a theme for your card game.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Card Back",
"description": "Use a custom back for your cards."
}
]
},
{
"label":"Localization",
"fields":[
"label": "Localization",
"fields": [
{
"label":"Card turns text",
"default":"Card turns"
"label": "Card turns text",
"default": "Card turns"
},
{
"label":"Time spent text",
"default":"Time spent"
"label": "Time spent text",
"default": "Time spent"
},
{
"label":"Feedback text",
"default":"Good work!"
"label": "Feedback text",
"default": "Good work!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Try again button text",
"default": "Try again?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Close button label",
"default": "Close"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Default"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Cards",
"entity": "card",
"field": {
"label": "Card",
"fields": [
{
"label":"Image"
"label": "Image"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same 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":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"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": "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": "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": "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": "Add button for retrying when the game is over"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"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.",
"default":"#909090",
"spectrum":{
}
"label": "Theme Color",
"description": "Choose a color to create a theme for your card game.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Card Back",
"description": "Use a custom back for your cards."
}
]
},
{
"label":"Localization",
"fields":[
"label": "Localization",
"fields": [
{
"label":"Card turns text",
"default":"Card turns"
"label": "Card turns text",
"default": "Card turns"
},
{
"label":"Time spent text",
"default":"Time spent"
"label": "Time spent text",
"default": "Time spent"
},
{
"label":"Feedback text",
"default":"Good work!"
"label": "Feedback text",
"default": "Good work!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Try again button text",
"default": "Try again?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Close button label",
"default": "Close"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Standard"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Kort",
"entity": "card",
"field": {
"label": "Kort",
"fields": [
{
"label":"Image"
"label": "Billede"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same 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":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"label": "Audio Track",
"description": "An optional sound that plays when the card is turned."
},
{
"label": "Matchende billede",
"description": "Valgfrit billede som match i stedet for at have to kort med det samme billede."
},
{
"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": "Beskrivelse",
"description": "Valgfri tekst, som popper op, når to matchende billeder er fundet."
}
]
}
},
{
"label":"Behavioural settings",
"description":"These options will let you control how the game behaves.",
"fields":[
"label": "Indstillinger",
"description": "Disse indstillinger giver dig mulighed for at bestemme, hvordan spillet fremstår.",
"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": "Placer kortene kvadratisk",
"description": "Vil forsøge at matche antallet af kolonner og rækker, når kortene placeres. Efterfølgende vil størrelsen på kortene blive tilpasset."
},
{
"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": "Antal kort i opgaven",
"description": "Vælges et større tal end 2, vælges kort tilfældigt fra listen af kort."
},
{
"label":"Add button for retrying when the game is over"
"label": "Tilføj knap for at prøve spillet igen, når spillet er afsluttet."
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"label": "Udseende",
"description": "Indstil spillets udseende.",
"fields": [
{
"label":"Theme Color",
"description":"Choose a color to create a theme for your card game.",
"default":"#909090",
"spectrum":{
}
"label": "Farvetema",
"description": "Vælg en farve til bagsiden af dine kort.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Bagsidebillede",
"description": "Brug et billede som bagside på dine kort."
}
]
},
{
"label":"Localization",
"fields":[
"label": "Oversættelse",
"fields": [
{
"label":"Card turns text",
"default":"Card turns"
"label": "Tekst når kort vendes",
"default": "Kort vendes"
},
{
"label":"Time spent text",
"default":"Time spent"
"label": "Tekst for tidsforbrug",
"default": "Tidsforbrug"
},
{
"label":"Feedback text",
"default":"Good work!"
"label": "Feedback tekst",
"default": "Godt klaret!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Prøv igen knaptekst",
"default": "Prøv igen?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Luk knaptekst",
"default": "Luk"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

View File

@ -1,89 +1,122 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Vorgaben"
"label": "Eingabemaske"
}
],
"label":"Karten",
"entity":"karte",
"field":{
"label":"Karte",
"fields":[
"label": "Karten",
"entity": "Karte",
"field": {
"label": "Karte",
"fields": [
{
"label":"Bild"
"label": "Bild"
},
{
"label":"Passendes Bild",
"description":"Ein optionales anderes Bild als Gegenstück statt zwei Karten mit dem selben Bild zu nutzen"
"label": "Alternativtext für das Bild",
"description": "Beschreibt, was im Bild zu sehen ist. Dieser Text wird von Vorlesewerkzeugen für Sehbehinderte genutzt."
},
{
"label":"Beschreibung",
"description":"Ein kurzer Text, der angezeigt wird, sobald zwei identische Karten gefunden werden."
"label": "Ton",
"description": "Optionaler Ton, der abgespielt wird, wenn die Karte umgedreht wird."
},
{
"label": "Zugehöriges Bild",
"description": "Ein optionales zweites Bild, das mit dem ersten ein Paar bildet, anstatt zweimal das selbe Bild zu verwenden."
},
{
"label": "Alternativtext für das zweite Bild",
"description": "Beschreibt, was im Bild zu sehen ist. Dieser Text wird von Vorlesewerkzeugen für Sehbehinderte genutzt."
},
{
"label": "Ton zum zweiten Bild",
"description": "Optionaler Ton, der abgespielt wird, wenn die zweite Karte umgedreht wird."
},
{
"label": "Beschreibung",
"description": "Ein kurzer optionaler Text, der angezeigt wird, wenn das Kartenpaar gefunden wurde."
}
]
}
},
{
"label":"Interaktionseinstellungen",
"description":"Mit diesen Einstellungen kannst du das Verhalten des Spiels anpassen.",
"fields":[
"label": "Verhaltenseinstellungen",
"description": "Diese Optionen legen fest, wie das Spiel im Detail funktioniert.",
"fields": [
{
"label":"Positioniere die Karten in einem Quadrat.",
"description":"Es wird versucht, die Anzahl der Zeilen und Spalten passend zu den Karten einzustellen. Danach werden die Karten passend skaliert."
"label": "Karten in einem Quadrat anordnen",
"description": "Versucht die Karten in der gleichen Zahl von Reihen und Spalten zu anzuordnen. Danach wird die Kartengröße an den verfügbaren Platz angepasst."
},
{
"label":"Anzahl der zu nutzenden Karten",
"description":"Wird hier eine Zahl größer als 2 eingestellt, werden zufällig Karten aus der Kartenliste gezogen."
"label": "Anzahl der zu verwendenden Karten",
"description": "Wenn die Anzahl größer als 2 ist, werden zufällige Karten aus der Liste ausgewählt."
},
{
"label":"Füge einen Button hinzu, um das Spiel noch einmal neu zu starten zu können, wenn es vorbei ist."
"label": "\"Wiederholen\"-Button anzeigen"
}
]
},
{
"label":"Design-Aspekte",
"description":"Beeinflusse die Optik des Spiels",
"fields":[
"label": "Erscheinungsbild",
"description": "Legt fest, wie das Spiel aussieht.",
"fields": [
{
"label":"Themenfarbe",
"description":"Wähle eine Farbe, um ein Theme für deine Karten zu erstellen.",
"default":"#909090",
"spectrum":{
}
"label": "Themenfarbe",
"description": "Wähle eine Farbe, um das Spiel zu individualisieren.",
"default": "#909090"
},
{
"label":"Kartenrückseite",
"description":"Nutze eine individuelle Rückseite für deine Karten."
"label": "Kartenrückseite",
"description": "Verwende eine benutzerdefinierte Rückseite für die Karten."
}
]
},
{
"label":"Übersetzung",
"fields":[
"label": "Bezeichnungen und Beschriftungen",
"fields": [
{
"label":"Text für die Anzahl der Züge",
"default":"Züge"
"label": "Text mit der Anzahl der Züge",
"default": "Züge"
},
{
"label":"Text für die benötigte Zeit",
"default":"Benötigte Zeit"
"label": "Text mit der bisher benötigten Zeit",
"default": "Benötigte Zeit"
},
{
"label":"Text als Rückmeldung",
"default":"Gute Arbeit!"
"label": "Rückmeldungstext",
"default": "Gut gemacht!"
},
{
"label":"Text des Wiederholen-Buttons",
"default":"Erneut versuchen?"
"label": "Beschriftung des \"Wiederholen\"-Buttons",
"default": "Nochmal spielen"
},
{
"label":"Beschriftung des \"Abbrechen\"-Buttons",
"default":"Schließen"
"label": "Beschriftung des \"Schließen\"-Buttons",
"default": "Schließen"
},
{
"label": "Bezeichnung des Spiels",
"default": "Memory - Finde die Kartenpaare!"
},
{
"label": "Meldung, wenn das Spiel abgeschlossen wurde",
"default": "Du hast alle Kartenpaare gefunden!"
},
{
"label": "Beschriftung der Kartennummer",
"default": "Karte %num:"
},
{
"label": "Text, wenn eine Karte wieder zugedeckt wurde",
"default": "Zugedeckt."
},
{
"label": "Text, wenn ein Paar gefunden wurde",
"default": "Paar gefunden."
}
]
}
]
}
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Default"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Cards",
"entity": "card",
"field": {
"label": "Card",
"fields": [
{
"label":"Image"
"label": "Image"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same 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":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"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": "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": "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": "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": "Add button for retrying when the game is over"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"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.",
"default":"#909090",
"spectrum":{
}
"label": "Theme Color",
"description": "Choose a color to create a theme for your card game.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Card Back",
"description": "Use a custom back for your cards."
}
]
},
{
"label":"Localization",
"fields":[
"label": "Localization",
"fields": [
{
"label":"Card turns text",
"default":"Card turns"
"label": "Card turns text",
"default": "Card turns"
},
{
"label":"Time spent text",
"default":"Time spent"
"label": "Time spent text",
"default": "Time spent"
},
{
"label":"Feedback text",
"default":"Good work!"
"label": "Feedback text",
"default": "Good work!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Try again button text",
"default": "Try again?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Close button label",
"default": "Close"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Predeterminado"
"label": "Predeterminado"
}
],
"label":"Tarjetas",
"entity":"card",
"field":{
"label":"Tarjeta",
"fields":[
"label": "Tarjetas",
"entity": "card",
"field": {
"label": "Tarjeta",
"fields": [
{
"label":"Imagen"
"label": "Imagen"
},
{
"label":"Imagen coincidente",
"description":"Una imagen opcional para emparejar, en vez de usar dos tarjetas con la misma imagen."
"label": "Texto alternativo para la imagen",
"description": "Describe lo que se puede ver en la foto. El texto es leído por una herramienta de conversion de texto a voz, a usuarios con discapacidad visual."
},
{
"label":"Descripción",
"description":"Un breve texto opcional que aparecerá una vez se encuentren las dos cartas coincidentes."
"label": "Audio Track",
"description": "An optional sound that plays when the card is turned."
},
{
"label": "Imagen coincidente",
"description": "Una imagen opcional para emparejar, en vez de usar dos tarjetas con la misma imagen."
},
{
"label": "Texto alternativo para imagenes coincidentes",
"description": "El texto es leído por una herramienta de conversion de texto a voz, a usuarios con discapacidad visual."
},
{
"label": "Matching Audio Track",
"description": "An optional sound that plays when the second card is turned."
},
{
"label": "Descripción",
"description": "Un breve texto opcional que aparecerá una vez se encuentren las dos cartas coincidentes."
}
]
}
},
{
"label":"Ajustes de comportamiento",
"description":"Estas opciones le permitirán controlar cómo se comporta el juego.",
"fields":[
"label": "Ajustes de comportamiento",
"description": "Estas opciones le permitirán controlar cómo se comporta el juego.",
"fields": [
{
"label":"Coloca las tarjetas en un cuadrado",
"description":"Intentará igualar el número de columnas y filas al distribuir las tarjetas. Después, las tarjetas se escalarán para que se ajusten al contenedor."
"label": "Coloca las tarjetas en un cuadrado",
"description": "Intentará igualar el número de columnas y filas al distribuir las tarjetas. Después, las tarjetas se escalarán para que se ajusten al contenedor."
},
{
"label":"Número de tarjetas a utilizar",
"description":"Establecer esto a un número mayor que 2 hará que el juego seleccione tarjetas aleatorias de la lista de tarjetas."
"label": "Número de tarjetas a utilizar",
"description": "Establecer esto a un número mayor que 2 hará que el juego seleccione tarjetas aleatorias de la lista de tarjetas."
},
{
"label":"Añadir botón para volver a intentarlo cuando el juego ha terminado"
"label": "Añadir botón para volver a intentarlo cuando el juego ha terminado"
}
]
},
{
"label":"Aspecto y comportamiento",
"description":"Controla los efectos visuales del juego.",
"fields":[
"label": "Aspecto y comportamiento",
"description": "Controla los efectos visuales del juego.",
"fields": [
{
"label":"Color del tema",
"description":"Elegir un color para crear un tema para su juego de cartas.",
"default":"#909090",
"spectrum":{
}
"label": "Color del tema",
"description": "Elegir un color para crear un tema para su juego de cartas.",
"default": "#909090"
},
{
"label":"Parte posterior de la tarjeta",
"description":"Utilice una parte posterior personalizada para sus tarjetas."
"label": "Parte posterior de la tarjeta",
"description": "Utilice una parte posterior personalizada para sus tarjetas."
}
]
},
{
"label":"Localización",
"fields":[
"label": "Localización",
"fields": [
{
"label":"Texto para los giros de tarjetas",
"default":"Giros de tarjeta"
"label": "Texto para los giros de tarjetas",
"default": "Giros de tarjeta"
},
{
"label":"Texto de tiempo usado",
"default":"Tiempo usado"
"label": "Texto de tiempo usado",
"default": "Tiempo usado"
},
{
"label":"Texto de comentarios",
"default":"¡Buen trabajo!"
"label": "Texto de comentarios",
"default": "¡Buen trabajo!"
},
{
"label":"Intente del botón Intente de nuevo",
"default":"¿Volver a intentarlo?"
"label": "Texto del botón Intente de nuevo",
"default": "¿Volver a intentarlo?"
},
{
"label":"Etiqueta del botón Cerrar",
"default":"Cerrar"
"label": "Texto del botón Cerrar",
"default": "Cerrar"
},
{
"label": "Texto del juego",
"default": "Juego de memoria. Encuentra las cartas que hacen juego."
},
{
"label": "Texto del juego terminado",
"default": "Todas las cartas han sido encontradas."
},
{
"label": "Texto de indexación de la tarjeta",
"default": "Tarjeta %num:"
},
{
"label": "Texto de tarjetas sin voltear",
"default": "Sin voltear."
},
{
"label": "Texto de la tarjeta coincidente",
"default": "Coincidencia encontrada."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Vaikimisi"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Kaardid",
"entity": "kaart",
"field": {
"label": "Kaart",
"fields": [
{
"label":"Image"
"label": "Pilt"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same image."
"label": "Pildi alternatiivtekst",
"description": "Kirjelda, mis pildil näha on. Tekst on mõeldud vaegnägijaile tekstilugeriga kuulamiseks."
},
{
"label":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"label": "Heliriba",
"description": "Valikheli, mida mängitakse kaardi pööramisel."
},
{
"label": "Sobituv pilt",
"description": "Valikuline pilt võrdlemiseks, selmet kasutada kahte kaarti sama pildiga."
},
{
"label": "Sobituva pildi alternatiivtekst",
"description": "Kirjelda, mis pildil näha on. Tekst on mõeldud vaegnägijaile tekstilugeriga kuulamiseks."
},
{
"label": "Sobituv heliriba",
"description": "Valikheli, mida mängitakse teise kaardi pööramisel."
},
{
"label": "Kirjeldus",
"description": "Valikuline lühitekst, mida näidatakse hüpikaknas peale kahe sobituva kaardi leidmist."
}
]
}
},
{
"label":"Behavioural settings",
"description":"These options will let you control how the game behaves.",
"fields":[
"label": "Käitumisseaded",
"description": "Need valikud võimaldavad sul kontrollida mängu käitumist.",
"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": "Aseta kaardid väljakule",
"description": "Proovib sobitada ridade ja veergude arvu kaartide asetamisel. Peale seda muudetakse kaartide suurust, et täita neid hoidev raam."
},
{
"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": "Kasutatav kaartide arv",
"description": "Määrates selle arvu kahest suuremaks valib mäng kaartide loetelust juhuslikud kaardid."
},
{
"label":"Add button for retrying when the game is over"
"label": "Lisa Proovi uuesti nupp lõppenud mängule"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"label": "Välimus",
"description": "Säti mängu visuaali.",
"fields": [
{
"label":"Theme Color",
"description":"Choose a color to create a theme for your card game.",
"default":"#909090",
"spectrum":{
}
"label": "Teemavärv",
"description": "Vali oma mängu teemavärv.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Kaardi taust",
"description": "Kasuta kohandatud kaarditausta."
}
]
},
{
"label":"Localization",
"fields":[
"label": "Kohandamine",
"fields": [
{
"label":"Card turns text",
"default":"Card turns"
"label": "Kaardi pööramise tekst",
"default": "Kaart pöörab"
},
{
"label":"Time spent text",
"default":"Time spent"
"label": "Aega kulunud tekst",
"default": "Aega kulunud"
},
{
"label":"Feedback text",
"default":"Good work!"
"label": "Tagasiside tekst",
"default": "Hea töö!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Proovi uuesti nupu tekst",
"default": "Proovida uuesti?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Sulge nupu tekst",
"default": "Sulge"
},
{
"label": "Mängu pealkiri",
"default": "Mälumäng. Leida sobituvad kaardid."
},
{
"label": "Mäng on lõppenud silt",
"default": "Kõik kaardid on leitud."
},
{
"label": "Kaardi indeksi silt",
"default": "Kaart %num:"
},
{
"label": "Kaart pööramata silt",
"default": "Pööramata."
},
{
"label": "Kaart sobitub silt",
"default": "Vaste leitud."
}
]
}

122
language/eu.json Normal file
View File

@ -0,0 +1,122 @@
{
"semantics": [
{
"widgets": [
{
"label": "Lehenetsia"
}
],
"label": "Txartelak",
"entity": "karta",
"field": {
"label": "Karta",
"fields": [
{
"label": "Irudia"
},
{
"label": "Irudiaren ordezko testua",
"description": "Deskribatu irudian ikusi daitekeena. Testua irakurketa tresna automatikoek irakurriko dute ikusmen urritasunak dituztenentzat."
},
{
"label": "Audio Pista",
"description": "Karta itzultzen denean erreproduzitzeko aukerazko soinua."
},
{
"label": "Pareko irudia",
"description": "Irudi bera duten bi karta ez erabiltzeko parekatzeko aukeran eskainiko den irudia."
},
{
"label": "Pareko irudiaren ordezko irudia",
"description": "Deskribatu argazkian ikusi daitekeena. Testua irakurketa tresna automatikoek irakurriko dute ikusmen urritasunak dituztenentzat."
},
{
"label": "Pareko Audio Pista",
"description": "Bigarren karta itzultzen denean erreproduzitzeko aukerazko soinua."
},
{
"label": "Deskribapena",
"description": "Bi karta parekatzen direnean bat-batean agertu den aukerako testu laburra."
}
]
}
},
{
"label": "Portaera-ezarpenak",
"description": "Aukera hauen bidez kontrolatu ahal izango duzu zereginaren portaera.",
"fields": [
{
"label": "Kokatu karta karratuan",
"description": "Txartelak banatzean lerro eta zutabe kopurua betetzen saiatuko da. Gero, kartak eskalatuko dira."
},
{
"label": "Erabiliko den karta kopurua",
"description": "2 baino altuagoa den zenbaki bat ezarriz gero jokoak hausazko karta hartuko du karta-zerrendatik."
},
{
"label": "Saiakera berria egiteko botoia txertatu jokoa amaitzerakoan"
}
]
},
{
"label": "Itxura",
"description": "Jokoaren itxura kontrolatu",
"fields": [
{
"label": "Estiloaren kolorea",
"description": "Aukeratu kolorea zure karta jokoarentzat estiloa sortzeko.",
"default": "#909090"
},
{
"label": "Kartaren atzeko aldea",
"description": "Erabili karta-atzeko alde pertsonalizatua."
}
]
},
{
"label": "Lokalizazioa",
"fields": [
{
"label": "Txartelak buelta ematen du testua",
"default": "Txartelak buelta ematen du"
},
{
"label": "Igarotako denboraren testua",
"default": "Igarotako denbora"
},
{
"label": "Feedback testua",
"default": "Lan bikaina!"
},
{
"label": "Saiatu berriro botoiaren",
"default": "Saiatu berriro?"
},
{
"label": "Itxi botoiaren etiketa",
"default": "Itxi"
},
{
"label": "Jokoaren etiketa",
"default": "Memoria jokoa. Aurkitu pareko kartak."
},
{
"label": "Amaitutako jokoaren etiketa",
"default": "Karta guztiak aurkitu dira."
},
{
"label": "Txartela zenbakiaren etiketa",
"default": "%num. txartela:"
},
{
"label": "buelta eman gabeko txartela",
"default": "Itzuli gabe"
},
{
"label": "Parekatutako txartelaren etiketa",
"default": "Parekoa topatuta."
}
]
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Oletus"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Kortit",
"entity": "kortti",
"field": {
"label": "Kortti",
"fields": [
{
"label":"Image"
"label": "Kuva"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same 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":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"label": "Audio Track",
"description": "An optional sound that plays when the card is turned."
},
{
"label": "Vastattava kuva",
"description": "Valinnainen kuva johon verrata korttia sen sijaan, että kortille etsitään toista samaa kuvaa pariksi."
},
{
"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": "Selite",
"description": "Valinnainen lyhyt teksti, joka näytetään kun oikea pari on löydetty."
}
]
}
},
{
"label":"Behavioural settings",
"description":"These options will let you control how the game behaves.",
"fields":[
"label": "Yleisasetukset",
"description": "Näillä valinnoilla voit muokata pelin asetuksia.",
"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": "Aseta kortit säännöllisesti",
"description": "Yrittää sovittaa kortit ruudukkomuotoon rivien sijaan."
},
{
"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": "Korttien lukumäärä",
"description": "Kun lukumäärä on suurempi kuin kaksi, annettu määrä kortteja arvotaan kaikista korteista pelattavaksi."
},
{
"label":"Add button for retrying when the game is over"
"label": "Salli Yritä uudelleen -painike pelin päätyttyä"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"label": "Ulkoasu",
"description": "Hallinnoi pelin ulkoasua.",
"fields": [
{
"label":"Theme Color",
"description":"Choose a color to create a theme for your card game.",
"default":"#909090",
"spectrum":{
}
"label": "Väriteema",
"description": "Valitse väri luodaksesi teeman pelille.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Kortin kääntöpuoli",
"description": "Mukauta korttien kääntöpuoli."
}
]
},
{
"label":"Localization",
"fields":[
"label": "Tekstit",
"fields": [
{
"label":"Card turns text",
"default":"Card turns"
"label": "Kortteja käännetty",
"default": "Kortteja käännetty"
},
{
"label":"Time spent text",
"default":"Time spent"
"label": "Aikaa kulunut",
"default": "Aikaa kulunut"
},
{
"label":"Feedback text",
"default":"Good work!"
"label": "Palaute",
"default": "Hyvää työtä!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Painikkeen Yritä uudelleen teksti",
"default": "Yritä uudelleen?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Painikkeen Sulje teksti",
"default": "Sulje"
},
{
"label": "Pelin kuvaus",
"default": "Muistipeli. Löydä parit."
},
{
"label": "Peli päättynyt",
"default": "Kaikki parit löydetty."
},
{
"label": "Kortin yksilöllinen järjestysnumero",
"default": "Kortti %num:"
},
{
"label": "Kääntämätön",
"default": "Kääntämätön."
},
{
"label": "Pari löytynyt",
"default": "Pari löydetty."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Par défaut"
}
],
"label":"Cartes",
"entity":"carte",
"field":{
"label":"Carte",
"fields":[
"label": "Cartes",
"entity": "carte",
"field": {
"label": "Carte",
"fields": [
{
"label":"Image"
"label": "Image"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same image."
"label": "Texte alternatif pour l'image",
"description": "Décrivez ce que représente l'image. Le texte est lu par la synthèse vocale."
},
{
"label":"Description",
"description":"Petit texte affiché quand deux cartes identiques sont trouvées."
"label": "Audio Track",
"description": "An optional sound that plays when the card is turned."
},
{
"label": "Image correspondante",
"description": "Une image facultative à comparer au lieu d'utiliser deux cartes avec la même image."
},
{
"label": "Texte alternatif pour l'image correspondante",
"description": "Décrivez ce que représente l'image correspondante. Le texte est lu par la synthèse vocale."
},
{
"label": "Matching Audio Track",
"description": "An optional sound that plays when the second card is turned."
},
{
"label": "Description",
"description": "Un texte court optionnel qui apparaîtra une fois que les deux cartes correspondantes auront été trouvées."
}
]
}
},
{
"label":"Behavioural settings",
"description":"These options will let you control how the game behaves.",
"fields":[
"label": "Paramètres comportementaux",
"description": "Ces options vous permettent de définir le \"comportement\" du jeu de mémoire.",
"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": "Positionnez les cartes en carré",
"description": "Essaiera de faire correspondre le nombre de colonnes et de rangées lors de la disposition des cartes. Ensuite, les cartes seront mises à l'échelle pour s'adapter au conteneur."
},
{
"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 cartes à utiliser",
"description": "Régler ce nombre sur un nombre supérieur à 2 fera que le jeu choisira des cartes aléatoires dans la liste des cartes."
},
{
"label":"Add button for retrying when the game is over"
"label": "Ajoutez un bouton pour essayer à nouveau quand le jeu est terminé"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"label": "Apparence",
"description": "Définissez l'apparence visuelle des éléments dans le jeu.",
"fields": [
{
"label":"Theme Color",
"description":"Choose a color to create a theme for your card game.",
"default":"#909090",
"spectrum":{
}
"label": "Couleur du thème",
"description": "Choisissez une couleur pour créer un thème pour votre jeu de cartes.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Dos des cartes",
"description": "Utilisez un dos personnalisé pour vos cartes."
}
]
},
{
"label":"Interface",
"fields":[
"label": "Interface",
"fields": [
{
"label":"Texte pour le nombre de cartes retournées",
"default":"Cartes retournées :"
"label": "Texte pour le nombre de cartes retournées",
"default": "Cartes retournées :"
},
{
"label":"Texte pour le temps passé",
"default":"Temps écoulé :"
"label": "Texte pour le temps passé",
"default": "Temps écoulé :"
},
{
"label":"Texte de l'appréciation finale",
"default":"Bien joué !"
"label": "Texte de l'appréciation finale",
"default": "Bien joué !"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Texte pour le bouton Réessayez",
"default": "Réessayer"
},
{
"label":"Close button label",
"default":"Close"
"label": "Texte du bouton Fermer",
"default": "Fermer"
},
{
"label": "Le nom du jeu",
"default": "Jeu de mémoire. Trouver les cartes qui se correspondent."
},
{
"label": "Texte pour Le jeu est terminé",
"default": "Toutes les cartes ont été trouvées."
},
{
"label": "Texte de numérotation des cartes",
"default": "Carte %num:"
},
{
"label": "Texte pour les cartes non retournées",
"default": "Non retournées."
},
{
"label": "Texte quand les cartes correspondent",
"default": "Correspondance trouvée."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Default"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Cards",
"entity": "card",
"field": {
"label": "Card",
"fields": [
{
"label":"Image"
"label": "Image"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same 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":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"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": "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": "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": "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": "Add button for retrying when the game is over"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"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.",
"default":"#909090",
"spectrum":{
}
"label": "Theme Color",
"description": "Choose a color to create a theme for your card game.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Card Back",
"description": "Use a custom back for your cards."
}
]
},
{
"label":"Localization",
"fields":[
"label": "Localization",
"fields": [
{
"label":"Card turns text",
"default":"Card turns"
"label": "Card turns text",
"default": "Card turns"
},
{
"label":"Time spent text",
"default":"Time spent"
"label": "Time spent text",
"default": "Time spent"
},
{
"label":"Feedback text",
"default":"Good work!"
"label": "Feedback text",
"default": "Good work!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Try again button text",
"default": "Try again?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Close button label",
"default": "Close"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Default"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Cards",
"entity": "card",
"field": {
"label": "Card",
"fields": [
{
"label":"Image"
"label": "Image"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same 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":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"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": "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": "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": "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": "Add button for retrying when the game is over"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"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.",
"default":"#909090",
"spectrum":{
}
"label": "Theme Color",
"description": "Choose a color to create a theme for your card game.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Card Back",
"description": "Use a custom back for your cards."
}
]
},
{
"label":"Localization",
"fields":[
"label": "Localization",
"fields": [
{
"label":"Card turns text",
"default":"Card turns"
"label": "Card turns text",
"default": "Card turns"
},
{
"label":"Time spent text",
"default":"Time spent"
"label": "Time spent text",
"default": "Time spent"
},
{
"label":"Feedback text",
"default":"Good work!"
"label": "Feedback text",
"default": "Good work!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Try again button text",
"default": "Try again?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Close button label",
"default": "Close"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Default"
}
],
"label":"Carte",
"entity":"carta",
"field":{
"label":"Carta",
"fields":[
"label": "Carte",
"entity": "carta",
"field": {
"label": "Carta",
"fields": [
{
"label":"Immagine"
"label": "Immagine"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same 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":"Descrizione",
"description":"Breve testo visualizzato quando due carte uguali vengono trovate."
"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": "Descrizione",
"description": "Breve testo visualizzato quando due carte uguali vengono trovate."
}
]
}
},
{
"label":"Behavioural settings",
"description":"These options will let you control how the game behaves.",
"fields":[
"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": "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": "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": "Add button for retrying when the game is over"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"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.",
"default":"#909090",
"spectrum":{
}
"label": "Theme Color",
"description": "Choose a color to create a theme for your card game.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Card Back",
"description": "Use a custom back for your cards."
}
]
},
{
"label":"Localizzazione",
"fields":[
"label": "Localizzazione",
"fields": [
{
"label":"Testo Gira carta",
"default":"Card turns"
"label": "Testo Gira carta",
"default": "Card turns"
},
{
"label":"Testo Tempo trascorso",
"default":"Time spent"
"label": "Testo Tempo trascorso",
"default": "Time spent"
},
{
"label":"Testo Feedback",
"default":"Good work!"
"label": "Testo Feedback",
"default": "Good work!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Try again button text",
"default": "Reset"
},
{
"label":"Close button label",
"default":"Close"
"label": "Close button label",
"default": "Close"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"デフォルト"
"label": "デフォルト"
}
],
"label":"カード",
"entity":"card",
"field":{
"label":"カード",
"fields":[
"label": "カード",
"entity": "card",
"field": {
"label": "カード",
"fields": [
{
"label":"画像"
"label": "画像"
},
{
"label":"一致させる画像",
"description":"同じ画像の2枚のカードを使用する代わりに、別に一致させるためのオプション画像"
"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":"一致する2つのカードが見つかるとポップアップするオプションの短文テキスト。"
"label": "Audio Track",
"description": "An optional sound that plays when the card is turned."
},
{
"label": "一致させる画像",
"description": "同じ画像の2枚のカードを使用する代わりに、別に一致させるためのオプション画像"
},
{
"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": "一致する2つのカードが見つかるとポップアップするオプションの短文テキスト。"
}
]
}
},
{
"label":"動作設定",
"description":"これらのオプションを使用して、ゲームの動作を制御できます。",
"fields":[
"label": "動作設定",
"description": "これらのオプションを使用して、ゲームの動作を制御できます。",
"fields": [
{
"label":"カードを正方形に配置",
"description":"カードをレイアウトするときに、列と行の数を一致させてみてください。そうすると、カードは、コンテナに合わせてスケーリングされます。"
"label": "カードを正方形に配置",
"description": "カードをレイアウトするときに、列と行の数を一致させてみてください。そうすると、カードは、コンテナに合わせてスケーリングされます。"
},
{
"label":"使用するカードの数",
"description":"これを2よりも大きい数値に設定すると、カードのリストからランダムなカードが選ばれるようになります。"
"label": "使用するカードの数",
"description": "これを2よりも大きい数値に設定すると、カードのリストからランダムなカードが選ばれるようになります。"
},
{
"label":"ゲームが終了したときに、リトライのためのボタンを追加"
"label": "ゲームが終了したときに、リトライのためのボタンを追加"
}
]
},
{
"label":"ルック&フィール",
"description":"ゲームの外観を制御します。",
"fields":[
"label": "ルック&フィール",
"description": "ゲームの外観を制御します。",
"fields": [
{
"label":"テーマ色",
"description":"カードゲームのテーマとなる色を選択してください。",
"default":"#909090",
"spectrum":{
}
"label": "テーマ色",
"description": "カードゲームのテーマとなる色を選択してください。",
"default": "#909090"
},
{
"label":"カード裏",
"description":"カードに独自の裏を使います。"
"label": "カード裏",
"description": "カードに独自の裏を使います。"
}
]
},
{
"label":"ローカリゼーション",
"fields":[
"label": "ローカリゼーション",
"fields": [
{
"label":"カードターン のテキスト",
"default":"カードターン"
"label": "カードターン のテキスト",
"default": "カードターン"
},
{
"label":"経過時間のテキスト",
"default":"経過時間"
"label": "経過時間のテキスト",
"default": "経過時間"
},
{
"label":"フィードバックテキスト",
"default":"よくできました!"
"label": "フィードバックテキスト",
"default": "よくできました!"
},
{
"label":"リトライボタンのテキスト",
"default":"もう一度トライしますか ?"
"label": "リトライボタンのテキスト",
"default": "もう一度トライしますか ?"
},
{
"label":"閉じるボタンのテキスト",
"default":"閉じる"
"label": "閉じるボタンのテキスト",
"default": "閉じる"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Default"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Cards",
"entity": "card",
"field": {
"label": "Card",
"fields": [
{
"label":"Image"
"label": "Image"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same 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":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"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": "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": "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": "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": "Add button for retrying when the game is over"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"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.",
"default":"#909090",
"spectrum":{
}
"label": "Theme Color",
"description": "Choose a color to create a theme for your card game.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Card Back",
"description": "Use a custom back for your cards."
}
]
},
{
"label":"Localization",
"fields":[
"label": "Localization",
"fields": [
{
"label":"Card turns text",
"default":"Card turns"
"label": "Card turns text",
"default": "Card turns"
},
{
"label":"Time spent text",
"default":"Time spent"
"label": "Time spent text",
"default": "Time spent"
},
{
"label":"Feedback text",
"default":"Good work!"
"label": "Feedback text",
"default": "Good work!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Try again button text",
"default": "Try again?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Close button label",
"default": "Close"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Default"
}
],
"label":"Kort",
"entity":"kort",
"field":{
"label":"Kort",
"fields":[
"label": "Kort",
"entity": "kort",
"field": {
"label": "Kort",
"fields": [
{
"label":"Bilde"
"label": "Bilde"
},
{
"label":"Tilhørende bilde",
"description":"Et valgfritt bilde som brukes av kort nummer to istedenfor å bruke to kort med samme bilde."
"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":"Beskrivelse",
"description":"En valgfri kort tekst som spretter opp når kort-paret er funnet."
"label": "Audio Track",
"description": "An optional sound that plays when the card is turned."
},
{
"label": "Tilhørende bilde",
"description": "Et valgfritt bilde som brukes av kort nummer to istedenfor å bruke to kort med samme bilde."
},
{
"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": "Beskrivelse",
"description": "En valgfri kort tekst som spretter opp når kort-paret er funnet."
}
]
}
},
{
"label":"Innstillinger for oppførsel",
"description":"Disse instillingene lar deg bestemme hvordan spillet skal oppføre seg.",
"fields":[
"label": "Innstillinger for oppførsel",
"description": "Disse instillingene lar deg bestemme hvordan spillet skal oppføre seg.",
"fields": [
{
"label":"Plasser kortene i en firkant",
"description":"Vil forsøk å samsvare antall kolonner og rader når kortene legges ut. Etterpå vil kortene bli skalert til å passe beholderen."
"label": "Plasser kortene i en firkant",
"description": "Vil forsøk å samsvare antall kolonner og rader når kortene legges ut. Etterpå vil kortene bli skalert til å passe beholderen."
},
{
"label":"Antall kort som skal brukes",
"description":"Ved å sette antallet høyere enn 2 vil spillet plukke tilfeldige kort fra listen over kort."
"label": "Antall kort som skal brukes",
"description": "Ved å sette antallet høyere enn 2 vil spillet plukke tilfeldige kort fra listen over kort."
},
{
"label":"Legg til knapp for å prøve på nytt når spillet er over"
"label": "Legg til knapp for å prøve på nytt når spillet er over"
}
]
},
{
"label":"Tilpass utseende",
"description":"Kontroller de visuelle aspektene ved spillet.",
"fields":[
"label": "Tilpass utseende",
"description": "Kontroller de visuelle aspektene ved spillet.",
"fields": [
{
"label":"Temafarge",
"description":"Velg en farge for å skape et tema over kortspillet ditt.",
"default":"#909090",
"spectrum":{
}
"label": "Temafarge",
"description": "Velg en farge for å skape et tema over kortspillet ditt.",
"default": "#909090"
},
{
"label":"Kortbaksiden",
"description":"Bruk en tilpasset kortbakside for kortene dine."
"label": "Kortbaksiden",
"description": "Bruk en tilpasset kortbakside for kortene dine."
}
]
},
{
"label":"Oversettelser",
"fields":[
"label": "Oversettelser",
"fields": [
{
"label":"Etikett for antall vendte kort",
"default":"Kort vendt"
"label": "Etikett for antall vendte kort",
"default": "Kort vendt"
},
{
"label":"Etikett for tid brukt",
"default":"Tid brukt"
"label": "Etikett for tid brukt",
"default": "Tid brukt"
},
{
"label":"Tilbakemeldingstekst",
"default":"Godt jobbet!"
"label": "Tilbakemeldingstekst",
"default": "Godt jobbet!"
},
{
"label":"Prøv på nytt-tekst",
"default":"Prøv på nytt?"
"label": "Prøv på nytt-tekst",
"default": "Prøv på nytt?"
},
{
"label":"Lukk knapp-merkelapp",
"default":"Lukk"
"label": "Lukk knapp-merkelapp",
"default": "Lukk"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Standaard"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Kaarten",
"entity": "kaart",
"field": {
"label": "Kaart",
"fields": [
{
"label":"Image"
"label": "Afbeelding"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same image."
"label": "Bijpassende afbeelding",
"description": "Een optionele afbeelding die past in plaats van 2 kaarten met dezelfde afbeelding."
},
{
"label":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"label": "Audio Track",
"description": "An optional sound that plays when the card is turned."
},
{
"label": "Omschrijving",
"description": "Een optionele korte tekst die zal verschijnen zodra de 2 overeenkomende kaarten zijn gevonden."
},
{
"label": "De alternatieve tekst voor de bijpassende afbeelding",
"description": "Omschrijf wat de afbeelding voorstelt. De tekst zal worden gelezen door tekst-naar-spraak tools voor slechtzienden."
},
{
"label": "Matching Audio Track",
"description": "An optional sound that plays when the second card is turned."
},
{
"label": "Omschrijving",
"description": "Een optionele korte tekst die zal verschijnen zodra de 2 overeenkomende kaarten zijn gevonden."
}
]
}
},
{
"label":"Behavioural settings",
"description":"These options will let you control how the game behaves.",
"fields":[
"label": "Gedragsinstellingen",
"description": "Met deze opties kun je bepalen hoe het spel zich gedraagt.",
"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": "Plaats de kaarten in een vierkant",
"description": "Bij het leggen van de kaarten zullen het aantal kolommen en rijen op elkaar worden afgestemd. Daarna zal de omvang van de kaarten worden aangepast om in de beschikbare omgeving te passen."
},
{
"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": "Het aantal te gebruiken kaarten",
"description": "Als je dit getal instelt op een aantal groter dan 2, dan zal het spel willekeurig kaarten kiezen uit de complete lijst met kaarten."
},
{
"label":"Add button for retrying when the game is over"
"label": "Voeg de knop 'Opnieuw proberen? toe als het spel is afgelopen"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"label": "De vormgeving",
"description": "Stel de beelden van het spel in.",
"fields": [
{
"label":"Theme Color",
"description":"Choose a color to create a theme for your card game.",
"default":"#909090",
"spectrum":{
}
"label": "Themakleur",
"description": "Kies een themakleur voor kaarten van je geheugenspel.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Achterkant kaart",
"description": "Gebruik een aangepaste achterkant voor je kaarten."
}
]
},
{
"label":"Localization",
"fields":[
"label": "Localiseer",
"fields": [
{
"label":"Card turns text",
"default":"Card turns"
"label": "Label gedraaide kaarten",
"default": "Gedraaide kaarten"
},
{
"label":"Time spent text",
"default":"Time spent"
"label": "Label verstreken tijd",
"default": "Verstreken tijd"
},
{
"label":"Feedback text",
"default":"Good work!"
"label": "Label feedback",
"default": "Goed gedaan!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Label opnieuw proberen knop",
"default": "Opnieuw proberen?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Label sluiten knop",
"default": "Sluiten"
},
{
"label": "Label spel",
"default": "Geheugenspel. Vind de overeenkomende kaarten."
},
{
"label": ":Label einde spel",
"default": "Alle kaarten zijn gevonden."
},
{
"label": "Label kaartenindex",
"default": "Kaart %num:"
},
{
"label": "Label niet gedraaide kaarten",
"default": "Niet gedraaid."
},
{
"label": "Label overeenkomende kaarten",
"default": "Paar gevonden."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Default"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Cards",
"entity": "card",
"field": {
"label": "Card",
"fields": [
{
"label":"Image"
"label": "Image"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same 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":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"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": "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": "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": "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": "Add button for retrying when the game is over"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"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.",
"default":"#909090",
"spectrum":{
}
"label": "Theme Color",
"description": "Choose a color to create a theme for your card game.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Card Back",
"description": "Use a custom back for your cards."
}
]
},
{
"label":"Localization",
"fields":[
"label": "Localization",
"fields": [
{
"label":"Card turns text",
"default":"Card turns"
"label": "Card turns text",
"default": "Card turns"
},
{
"label":"Time spent text",
"default":"Time spent"
"label": "Time spent text",
"default": "Time spent"
},
{
"label":"Feedback text",
"default":"Good work!"
"label": "Feedback text",
"default": "Good work!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Try again button text",
"default": "Try again?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Close button label",
"default": "Close"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Default"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Cards",
"entity": "card",
"field": {
"label": "Card",
"fields": [
{
"label":"Image"
"label": "Image"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same 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":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"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": "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": "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": "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": "Add button for retrying when the game is over"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"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.",
"default":"#909090",
"spectrum":{
}
"label": "Theme Color",
"description": "Choose a color to create a theme for your card game.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Card Back",
"description": "Use a custom back for your cards."
}
]
},
{
"label":"Localization",
"fields":[
"label": "Localization",
"fields": [
{
"label":"Card turns text",
"default":"Card turns"
"label": "Card turns text",
"default": "Card turns"
},
{
"label":"Time spent text",
"default":"Time spent"
"label": "Time spent text",
"default": "Time spent"
},
{
"label":"Feedback text",
"default":"Good work!"
"label": "Feedback text",
"default": "Good work!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Try again button text",
"default": "Try again?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Close button label",
"default": "Close"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

122
language/pt-br.json Normal file
View File

@ -0,0 +1,122 @@
{
"semantics": [
{
"widgets": [
{
"label": "Padrão"
}
],
"label": "Cartões",
"entity": "card",
"field": {
"label": "Cartão",
"fields": [
{
"label": "Imagem"
},
{
"label": "Texto alternativo para a imagem",
"description": "Descreva o que pode ser visto na foto. O texto será lido para os usuários que necessitam utilizar leitores de tela."
},
{
"label": "Audio Track",
"description": "An optional sound that plays when the card is turned."
},
{
"label": "Imagem-par",
"description": "Uma imagem opcional para ser combinada ao invés de utilizar dois cartões com a mesma imagem."
},
{
"label": "Texto alternativo para a Imagem-par",
"description": "Descreva o que pode ser visto na foto. O texto será lido para os usuários que necessitam utilizar leitores de tela."
},
{
"label": "Matching Audio Track",
"description": "An optional sound that plays when the second card is turned."
},
{
"label": "Descrição",
"description": "Um texto curto opcional que aparecerá quando duas cartas forem combinadas corretamente."
}
]
}
},
{
"label": "Configurações comportamentais",
"description": "Estas opções permitirão que você controle como o jogo funciona.",
"fields": [
{
"label": "Posicionar os cartões em um quadrado",
"description": "Tentará coincidir o número de linhas e colunas quando distribuir os cartões. Após, os cartões serão dimensionados para preencher o espaço."
},
{
"label": "Número de cartas para serem usadas",
"description": "Colocando um número maior que 2 fara com que o jogo escolha cartões aleatórios da lista de cartões."
},
{
"label": "Adicionar botão para tentar novamente quando o jogo acabar"
}
]
},
{
"label": "Aparência e percepção",
"description": "Controla o visual do jogo.",
"fields": [
{
"label": "Cor tema",
"description": "Escolha uma cor para criar um tema para seu jogo.",
"default": "#909090"
},
{
"label": "Verso do cartão",
"description": "Use um verso customizado para seus cartões."
}
]
},
{
"label": "Localização",
"fields": [
{
"label": "Texto de virada de cartão",
"default": "Cartão virou"
},
{
"label": "Texto de tempo gasto",
"default": "Tempo gasto"
},
{
"label": "Texto de feedback",
"default": "Bom trabalho!"
},
{
"label": "Texto do botão Tentar Novamente",
"default": "Tentar novamente?"
},
{
"label": "Rótulo do botão Fechar",
"default": "Fechar"
},
{
"label": "Rótulo do jogo",
"default": "Jogo da memória. Forme pares de cartões."
},
{
"label": "Rótulo de fim de jogo",
"default": "Todas os cartões foram encontrados."
},
{
"label": "Rótulo de índice de cartão",
"default": "Cartão %num:"
},
{
"label": "Rótulo de cartão não virado",
"default": "Não virado."
},
{
"label": "Rótulo de combinação",
"default": "Combinação encontrada."
}
]
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Padrão"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Cartões",
"entity": "card",
"field": {
"label": "Cartão",
"fields": [
{
"label":"Image"
"label": "Imagem"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same image."
"label": "Texto alternativo para a imagem",
"description": "Descreva o que pode ser visto na foto. O texto será lido para os usuários que necessitam utilizar leitores de tela."
},
{
"label":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"label": "Audio Track",
"description": "An optional sound that plays when the card is turned."
},
{
"label": "Imagem-par",
"description": "Uma imagem opcional para ser combinada ao invés de utilizar dois cartões com a mesma imagem."
},
{
"label": "Texto alternativo para a Imagem-par",
"description": "Descreva o que pode ser visto na foto. O texto será lido para os usuários que necessitam utilizar leitores de tela."
},
{
"label": "Matching Audio Track",
"description": "An optional sound that plays when the second card is turned."
},
{
"label": "Descrição",
"description": "Um texto curto opcional que aparecerá quando duas cartas forem combinadas corretamente."
}
]
}
},
{
"label":"Behavioural settings",
"description":"These options will let you control how the game behaves.",
"fields":[
"label": "Configurações comportamentais",
"description": "Estas opções permitirão que você controle como o jogo funciona.",
"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": "Posicionar os cartões em um quadrado",
"description": "Tentará coincidir o número de linhas e colunas quando distribuir os cartões. Após, os cartões serão dimensionados para preencher o espaço."
},
{
"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": "Número de cartas para serem usadas",
"description": "Colocando um número maior que 2 fara com que o jogo escolha cartões aleatórios da lista de cartões."
},
{
"label":"Add button for retrying when the game is over"
"label": "Adicionar botão para tentar novamente quando o jogo acabar"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"label": "Aparência e percepção",
"description": "Controla o visual do jogo.",
"fields": [
{
"label":"Theme Color",
"description":"Choose a color to create a theme for your card game.",
"default":"#909090",
"spectrum":{
}
"label": "Cor tema",
"description": "Escolha uma cor para criar um tema para seu jogo.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Verso do cartão",
"description": "Use um verso customizado para seus cartões."
}
]
},
{
"label":"Localization",
"fields":[
"label": "Localização",
"fields": [
{
"label":"Card turns text",
"default":"Card turns"
"label": "Texto de virada de cartão",
"default": "Cartão virou"
},
{
"label":"Time spent text",
"default":"Time spent"
"label": "Texto de tempo gasto",
"default": "Tempo gasto"
},
{
"label":"Feedback text",
"default":"Good work!"
"label": "Texto de feedback",
"default": "Bom trabalho!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Texto do botão Tentar Novamente",
"default": "Tentar novamente?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Rótulo do botão Fechar",
"default": "Fechar"
},
{
"label": "Rótulo do jogo",
"default": "Jogo da memória. Forme pares de cartões."
},
{
"label": "Rótulo de fim de jogo",
"default": "Todas os cartões foram encontrados."
},
{
"label": "Rótulo de índice de cartão",
"default": "Cartão %num:"
},
{
"label": "Rótulo de cartão não virado",
"default": "Não virado."
},
{
"label": "Rótulo de combinação",
"default": "Combinação encontrada."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Default"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Cards",
"entity": "card",
"field": {
"label": "Card",
"fields": [
{
"label":"Image"
"label": "Image"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same 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":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"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": "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": "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": "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": "Add button for retrying when the game is over"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"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.",
"default":"#909090",
"spectrum":{
}
"label": "Theme Color",
"description": "Choose a color to create a theme for your card game.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Card Back",
"description": "Use a custom back for your cards."
}
]
},
{
"label":"Localization",
"fields":[
"label": "Localization",
"fields": [
{
"label":"Card turns text",
"default":"Card turns"
"label": "Card turns text",
"default": "Card turns"
},
{
"label":"Time spent text",
"default":"Time spent"
"label": "Time spent text",
"default": "Time spent"
},
{
"label":"Feedback text",
"default":"Good work!"
"label": "Feedback text",
"default": "Good work!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Try again button text",
"default": "Try again?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Close button label",
"default": "Close"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

View File

@ -1,89 +1,122 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "По умолчанию"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Карточки",
"entity": "карточка",
"field": {
"label": "Карточка",
"fields": [
{
"label":"Image"
"label": "Изображение"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same image."
"label": "Альтернативный текст для изображения",
"description": "Опишите, что видно на фото. Текст читается с помощью инструментов преобразования текста в речь, необходимых пользователям с нарушениями зрения."
},
{
"label":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"label": "Звуковая дорожка",
"description": "Дополнительный звук, который воспроизводится при повороте карточки."
},
{
"label": "Соответствующее изображения",
"description": "Необязательное изображение для сравнения вместо использования двух карточек с одинаковым изображением."
},
{
"label": "Альтернативный текст для соответствующего изображения",
"description": "Describe what can be seen in the photo. Текст читается с помощью инструментов преобразования текста в речь, необходимых пользователям с нарушениями зрения."
},
{
"label": "Соответствующая звуковая дорожка",
"description": "Дополнительный звук, который воспроизводится при повороте второй карточки."
},
{
"label": "Описание",
"description": "Дополнительный короткий текст, который появится после того, как найдены две подходящие карточки."
}
]
}
},
{
"label":"Behavioural settings",
"description":"These options will let you control how the game behaves.",
"fields":[
"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.",
"fields":[
"label": "Смотреть и чувствовать",
"description": "Управление визуальными эффектами игры.",
"fields": [
{
"label":"Theme Color",
"description":"Choose a color to create a theme for your card game.",
"default":"#909090",
"spectrum":{
}
"label": "Цвет темы",
"description": "Выберите цвет, чтобы создать тему для своей карточной игры.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Обратная сторона карточки",
"description": "Использование произвольной спины для своих карточек."
}
]
},
{
"label":"Localization",
"fields":[
"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": "Надпись игры",
"default": "Игра на запоминание. Найти подходящие карточки."
},
{
"label": "Надпись завершения игры",
"default": "Все карточки были найдены."
},
{
"label": "Надпись номера карточки",
"default": "Карточка %num:"
},
{
"label": "Надпись неперевернутой карточки",
"default": "Неперевернутая."
},
{
"label": "Надпись подходящей карточки",
"default": "Соответствие найдено."
}
]
}
]
}
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Default"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Cards",
"entity": "card",
"field": {
"label": "Card",
"fields": [
{
"label":"Image"
"label": "Image"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same 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":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"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": "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": "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": "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": "Add button for retrying when the game is over"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"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.",
"default":"#909090",
"spectrum":{
}
"label": "Theme Color",
"description": "Choose a color to create a theme for your card game.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Card Back",
"description": "Use a custom back for your cards."
}
]
},
{
"label":"Localization",
"fields":[
"label": "Localization",
"fields": [
{
"label":"Card turns text",
"default":"Card turns"
"label": "Card turns text",
"default": "Card turns"
},
{
"label":"Time spent text",
"default":"Time spent"
"label": "Time spent text",
"default": "Time spent"
},
{
"label":"Feedback text",
"default":"Good work!"
"label": "Feedback text",
"default": "Good work!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Try again button text",
"default": "Try again?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Close button label",
"default": "Close"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Default"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Cards",
"entity": "card",
"field": {
"label": "Card",
"fields": [
{
"label":"Image"
"label": "Image"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same 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":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"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": "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": "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": "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": "Add button for retrying when the game is over"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"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.",
"default":"#909090",
"spectrum":{
}
"label": "Theme Color",
"description": "Choose a color to create a theme for your card game.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Card Back",
"description": "Use a custom back for your cards."
}
]
},
{
"label":"Localization",
"fields":[
"label": "Localization",
"fields": [
{
"label":"Card turns text",
"default":"Card turns"
"label": "Card turns text",
"default": "Card turns"
},
{
"label":"Time spent text",
"default":"Time spent"
"label": "Time spent text",
"default": "Time spent"
},
{
"label":"Feedback text",
"default":"Good work!"
"label": "Feedback text",
"default": "Good work!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Try again button text",
"default": "Try again?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Close button label",
"default": "Close"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Default"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Cards",
"entity": "card",
"field": {
"label": "Card",
"fields": [
{
"label":"Image"
"label": "Image"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same 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":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"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": "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": "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": "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": "Add button for retrying when the game is over"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"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.",
"default":"#909090",
"spectrum":{
}
"label": "Theme Color",
"description": "Choose a color to create a theme for your card game.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Card Back",
"description": "Use a custom back for your cards."
}
]
},
{
"label":"Localization",
"fields":[
"label": "Localization",
"fields": [
{
"label":"Card turns text",
"default":"Card turns"
"label": "Card turns text",
"default": "Card turns"
},
{
"label":"Time spent text",
"default":"Time spent"
"label": "Time spent text",
"default": "Time spent"
},
{
"label":"Feedback text",
"default":"Good work!"
"label": "Feedback text",
"default": "Good work!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Try again button text",
"default": "Try again?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Close button label",
"default": "Close"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

View File

@ -1,87 +1,120 @@
{
"semantics":[
"semantics": [
{
"widgets":[
"widgets": [
{
"label":"Default"
"label": "Default"
}
],
"label":"Cards",
"entity":"card",
"field":{
"label":"Card",
"fields":[
"label": "Cards",
"entity": "card",
"field": {
"label": "Card",
"fields": [
{
"label":"Image"
"label": "Image"
},
{
"label":"Matching Image",
"description":"An optional image to match against instead of using two cards with the same 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":"Description",
"description":"An optional short text that will pop up once the two matching cards are found."
"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": "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": "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": "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": "Add button for retrying when the game is over"
}
]
},
{
"label":"Look and feel",
"description":"Control the visuals of the game.",
"fields":[
"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.",
"default":"#909090",
"spectrum":{
}
"label": "Theme Color",
"description": "Choose a color to create a theme for your card game.",
"default": "#909090"
},
{
"label":"Card Back",
"description":"Use a custom back for your cards."
"label": "Card Back",
"description": "Use a custom back for your cards."
}
]
},
{
"label":"Localization",
"fields":[
"label": "Localization",
"fields": [
{
"label":"Card turns text",
"default":"Card turns"
"label": "Card turns text",
"default": "Card turns"
},
{
"label":"Time spent text",
"default":"Time spent"
"label": "Time spent text",
"default": "Time spent"
},
{
"label":"Feedback text",
"default":"Good work!"
"label": "Feedback text",
"default": "Good work!"
},
{
"label":"Try again button text",
"default":"Try again?"
"label": "Try again button text",
"default": "Try again?"
},
{
"label":"Close button label",
"default":"Close"
"label": "Close button label",
"default": "Close"
},
{
"label": "Game label",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"default": "Unturned."
},
{
"label": "Card matched label",
"default": "Match found."
}
]
}

122
language/zh-hans.json Normal file
View File

@ -0,0 +1,122 @@
{
"semantics": [
{
"widgets": [
{
"label": "预设"
}
],
"label": "所有卡片",
"entity": "卡片",
"field": {
"label": "卡片",
"fields": [
{
"label": "图像"
},
{
"label": "配对图像(非必要项)",
"description": "如果游戏中要配对的不是同一张图像,那么可以在这里添加要配对的另一张图像。"
},
{
"label": "音轨",
"description": "翻转卡片时可选声音."
},
{
"label": "配对成功文字(非必要项)",
"description": "在找到配对时会显示的文字讯息。"
},
{
"label": "配对图像的替代文字",
"description": "在报读器上用、或是配对图像无法正常输出时的文字。"
},
{
"label": "匹配音轨",
"description": "翻转第二张卡片时可选声音."
},
{
"label": "配对成功文字(非必要项)",
"description": "在找到配对时会显示的文字讯息。"
}
]
}
},
{
"label": "行为设置",
"description": "让你控制游戏行为的一些设置。",
"fields": [
{
"label": "将所有卡片显示在方形容器",
"description": "在布置卡片时,将尝试匹配列数和行数。之后,卡片将被缩放以适合容器。"
},
{
"label": "卡片的使用数量",
"description": "游戏中配对的卡片组合数量,设定后会从卡片集中随机挑选指定组合数,数字必须大于 2。"
},
{
"label": "显示「再试一次」按钮"
}
]
},
{
"label": "外观",
"description": "控制游戏的视觉效果。",
"fields": [
{
"label": "主题色调",
"description": "选择游戏环境要使用的色调。",
"default": "#909090"
},
{
"label": "背面图像(非必要项)",
"description": "允许自定义卡片背景要使用的图片。"
}
]
},
{
"label": "本地化",
"fields": [
{
"label": "翻牌次数的显示文字",
"default": "翻牌次数"
},
{
"label": "花费时间的显示文字",
"default": "花费时间"
},
{
"label": "游戏过关的显示文字",
"default": "干得好!"
},
{
"label": "重试按钮的显示文字",
"default": "再试一次"
},
{
"label": "关闭按钮的显示文字",
"default": "关闭"
},
{
"label": "游戏说明的显示文字",
"default": "卡片记忆游戏,找出配对的所有图片吧!"
},
{
"label": "游戏结束的显示文字",
"default": "已配对完所有卡片。"
},
{
"label": "卡片索引的显示文字",
"default": "%num: 张卡片"
},
{
"label": "卡片未翻开的显示文字",
"default": "还没翻开。"
},
{
"label": "卡片已配对的显示文字",
"default": "配对成功。"
}
]
}
]
}

122
language/zh-hant.json Normal file
View File

@ -0,0 +1,122 @@
{
"semantics": [
{
"widgets": [
{
"label": "預設"
}
],
"label": "所有卡片",
"entity": "卡片",
"field": {
"label": "卡片",
"fields": [
{
"label": "圖像"
},
{
"label": "配對圖像(非必要項)",
"description": "如果遊戲中要配對的不是同一張圖像,那麼可以在這裡添加要配對的另一張圖像。"
},
{
"label": "Audio Track",
"description": "An optional sound that plays when the card is turned."
},
{
"label": "配對成功文字(非必要項)",
"description": "在找到配對時會跳出的文字訊息。"
},
{
"label": "配對圖像的替代文字",
"description": "在報讀器上用、或是配對圖像無法正常輸出時顯示的文字。"
},
{
"label": "Matching Audio Track",
"description": "An optional sound that plays when the second card is turned."
},
{
"label": "配對成功文字(非必要項)",
"description": "在找到配對時會跳出的文字訊息。"
}
]
}
},
{
"label": "行為設置",
"description": "讓你控制遊戲行為的一些設置。",
"fields": [
{
"label": "將所有卡片顯示在方形容器",
"description": "在佈置卡片時,將嘗試匹配列數和行數。之後,卡片將被縮放以適合容器。"
},
{
"label": "卡片的使用數量",
"description": "遊戲中配對的卡片組合數量,設定後會從卡片集中隨機挑選指定組合數,數字必須大於 2。"
},
{
"label": "顯示「再試一次」按鈕"
}
]
},
{
"label": "外觀",
"description": "控制遊戲的視覺效果。",
"fields": [
{
"label": "主題色調",
"description": "選擇遊戲環境要使用的色調。",
"default": "#909090"
},
{
"label": "背面圖像(非必要項)",
"description": "允許自訂卡片背景要使用的圖片。"
}
]
},
{
"label": "本地化",
"fields": [
{
"label": "翻牌次數的顯示文字",
"default": "翻牌次數"
},
{
"label": "花費時間的顯示文字",
"default": "花費時間"
},
{
"label": "遊戲過關的顯示文字",
"default": "幹得好!"
},
{
"label": "重試按鈕的顯示文字",
"default": "再試一次"
},
{
"label": "關閉按鈕的顯示文字",
"default": "關閉"
},
{
"label": "遊戲說明的顯示文字",
"default": "卡片記憶遊戲,找出配對的所有卡片吧!"
},
{
"label": "遊戲結束的的顯示文字",
"default": "已配對完所有卡片。"
},
{
"label": "卡片索引的顯示文字",
"default": "%num: 張卡片"
},
{
"label": "卡片未翻開的顯示文字",
"default": "還沒翻開。"
},
{
"label": "卡片已配對的顯示文字",
"default": "配對成功。"
}
]
}
]
}

122
language/zh-tw.json Normal file
View File

@ -0,0 +1,122 @@
{
"semantics": [
{
"widgets": [
{
"label": "預設"
}
],
"label": "記憶牌",
"entity": "記憶牌",
"field": {
"label": "記憶牌",
"fields": [
{
"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": "Audio Track",
"description": "An optional sound that plays when the card is turned."
},
{
"label": "相稱圖示",
"description": "可選用一張與主圖示相稱的圖示,並非使用兩張相同的圖示."
},
{
"label": "相稱圖示的替代文字",
"description": "請描述此張圖示中可以看到什麼. 此段文字將做為閱讀器導讀文字,對視障使用者更為友善."
},
{
"label": "Matching Audio Track",
"description": "An optional sound that plays when the second card is turned."
},
{
"label": "描述",
"description": "選填。當找到兩張相稱圖示時所顯示的文字."
}
]
}
},
{
"label": "行為設定",
"description": "這些選項可以讓你控制遊戲的行為.",
"fields": [
{
"label": "將記憶牌顯示於正方形中",
"description": "當設定多組記憶牌時,將依組數平均分配顯示行列數及顯示大小."
},
{
"label": "使用的記憶牌組數量",
"description": "設定大於2的組數時即可讓遊戲隨機顯示記憶牌."
},
{
"label": "遊戲結束後顯示重試功能鈕"
}
]
},
{
"label": "外觀視覺",
"description": "控制遊戲的視覺效果.",
"fields": [
{
"label": "主題顏色",
"description": "為您的翻轉記憶牌遊戲設定一種顏色主題.",
"default": "#909090"
},
{
"label": "記憶牌背面圖示",
"description": "為您的卡片背面設定圖示."
}
]
},
{
"label": "在地化",
"fields": [
{
"label": "翻轉記憶牌功能鈕名稱",
"default": "翻轉記憶牌"
},
{
"label": "花費時間",
"default": "實際花費時間"
},
{
"label": "回饋文字",
"default": "做得好!"
},
{
"label": "重試功能鈕名稱",
"default": "重試?"
},
{
"label": "關閉功能鈕名稱",
"default": "關閉"
},
{
"label": "遊戲名稱",
"default": "翻轉記憶牌遊戲. 請找出相稱的記憶牌."
},
{
"label": "遊戲完成名稱",
"default": "所有的記憶牌皆已找出."
},
{
"label": "記憶牌索引名稱",
"default": "記憶牌數量 %num:"
},
{
"label": "未翻轉記憶牌名稱",
"default": "未翻轉."
},
{
"label": "相稱記憶牌名稱",
"default": "已找到相稱的記憶牌."
}
]
}
]
}

View File

@ -2,8 +2,8 @@
"title": "Memory Game",
"description": "See how many cards you can remember!",
"majorVersion": 1,
"minorVersion": 2,
"patchVersion": 5,
"minorVersion": 3,
"patchVersion": 2,
"runnable": 1,
"author": "Joubel",
"license": "MIT",
@ -52,6 +52,11 @@
"machineName": "H5PEditor.VerticalTabs",
"majorVersion": 1,
"minorVersion": 3
},
{
"machineName": "H5PEditor.AudioRecorder",
"majorVersion": 1,
"minorVersion": 0
}
]
}

View File

@ -1,6 +1,14 @@
.h5p-memory-game {
overflow: hidden;
}
.h5p-memory-game .h5p-memory-hidden-read {
position: absolute;
top: -1px;
left: -1px;
width: 1px;
height: 1px;
color: transparent;
}
.h5p-memory-game > ul {
list-style: none !important;
padding: 0.25em 0.5em !important;
@ -186,9 +194,6 @@
margin: 0 1em 0 0;
font-weight: bold;
}
.h5p-memory-game .h5p-status > dt:after {
content: ":";
}
.h5p-memory-game .h5p-status > dd {
margin: 0;
}
@ -267,7 +272,7 @@
color: #666;
}
.h5p-memory-game .h5p-memory-close:focus {
outline: 2px dashed pink;
outline: 2px solid #a5c7fe;
}
.h5p-memory-reset {
position: absolute;
@ -297,7 +302,7 @@
margin-top: -0.2em;
}
.h5p-memory-reset:focus {
outline: 2px dashed pink;
outline: 2px solid #a5c7fe;
}
.h5p-memory-transin {
transform: translate(-50%,-50%) scale(0) rotate(180deg);
@ -307,3 +312,34 @@
transform: translate(-50%,-450%) scale(0) rotate(360deg);
opacity: 0;
}
.h5p-memory-complete {
display: none;
}
.h5p-memory-game .h5p-programatically-focusable {
outline: none;
}
.h5p-memory-audio-instead-of-image {
font-family: 'H5PFontAwesome4';
width: 100%;
height: 100%;
font-style: normal;
color: #404040;
font-size: 2em;
}
.h5p-memory-audio-button {
position: absolute;
top: 0;
right: 0;
font-family: 'H5PFontAwesome4';
width: 1em;
height: 1em;
line-height: 1;
}
.h5p-memory-audio-instead-of-image:before,
.h5p-memory-audio-button:before {
content: "\f026";
}
.h5p-memory-audio-playing .h5p-memory-audio-instead-of-image:before,
.h5p-memory-audio-playing .h5p-memory-audio-button:before {
content: "\f028";
}

View File

@ -5,6 +5,7 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
var CARD_STD_SIZE = 116; // PX
var STD_FONT_SIZE = 16; // PX
var LIST_PADDING = 1; // EMs
var numInstances = 0;
/**
* Memory Game Constructor
@ -21,11 +22,28 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
// Initialize event inheritance
EventDispatcher.call(self);
var flipped, timer, counter, popup, $feedback, $wrapper, maxWidth, numCols;
var flipped, timer, counter, popup, $bottom, $taskComplete, $feedback, $wrapper, maxWidth, numCols, audioCard;
var cards = [];
var flipBacks = []; // Que of cards to be flipped back
var numFlipped = 0;
var removed = 0;
numInstances++;
// Add defaults
parameters = $.extend(true, {
l10n: {
cardTurns: 'Card turns',
timeSpent: 'Time spent',
feedback: 'Good work!',
tryAgain: 'Reset',
closeLabel: 'Close',
label: 'Memory Game. Find the matching cards.',
done: 'All of the cards have been found.',
cardPrefix: 'Card %num: ',
cardUnturned: 'Unturned.',
cardMatched: 'Match found.'
}
}, parameters);
/**
* Check if these two cards belongs together.
@ -49,17 +67,17 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
return;
}
// Remove them from the game.
card.remove();
mate.remove();
// Update counters
numFlipped -= 2;
removed += 2;
var isFinished = (removed === cards.length);
var desc = card.getDescription();
// Remove them from the game.
card.remove(!isFinished);
mate.remove();
var desc = card.getDescription();
if (desc !== undefined) {
// Pause timer and show desciption.
timer.pause();
@ -67,19 +85,25 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
if (card.hasTwoImages) {
imgs.push(mate.getImage());
}
popup.show(desc, imgs, cardStyles ? cardStyles.back : undefined, function () {
popup.show(desc, imgs, cardStyles ? cardStyles.back : undefined, function (refocus) {
if (isFinished) {
// Game done
card.makeUntabbable();
finished();
}
else {
// Popup is closed, continue.
timer.play();
if (refocus) {
card.setFocus();
}
}
});
}
else if (isFinished) {
// Game done
card.makeUntabbable();
finished();
}
};
@ -90,7 +114,9 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
*/
var finished = function () {
timer.stop();
$feedback.addClass('h5p-show');
$taskComplete.show();
$feedback.addClass('h5p-show'); // Announce
$bottom.focus();
// Create and trigger xAPI event 'completed'
var completedEvent = self.createXAPIEventTemplate('completed');
@ -113,7 +139,7 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
});
retryButton.classList.add('h5p-memory-transin');
setTimeout(function () {
// Remove class on nextTick to get transition effect
// Remove class on nextTick to get transition effectupd
retryButton.classList.remove('h5p-memory-transin');
}, 0);
@ -128,16 +154,14 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
* Shuffle the cards and restart the game!
* @private
*/
var resetGame = function () {
var resetGame = function () {
// Reset cards
removed = 0;
for (var i = 0; i < cards.length; i++) {
cards[i].reset();
}
// Remove feedback
$feedback[0].classList.remove('h5p-show');
$taskComplete.hide();
// Reset timer and counter
timer.reset();
@ -151,11 +175,15 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
for (var i = 0; i < cards.length; i++) {
cards[i].reAppend();
}
for (var j = 0; j < cards.length; j++) {
cards[j].reset();
}
// Scale new layout
$wrapper.children('ul').children('.h5p-row-break').removeClass('h5p-row-break');
maxWidth = -1;
self.trigger('resize');
cards[0].setFocus();
}, 600);
};
@ -169,7 +197,7 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
buttonElement.innerHTML = label;
buttonElement.setAttribute('role', 'button');
buttonElement.tabIndex = 0;
buttonElement.addEventListener('click', function (event) {
buttonElement.addEventListener('click', function () {
action.apply(buttonElement);
}, false);
buttonElement.addEventListener('keypress', function (event) {
@ -190,6 +218,17 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
*/
var addCard = function (card, mate) {
card.on('flip', function () {
if (audioCard) {
audioCard.stopAudio();
}
// Always return focus to the card last flipped
for (var i = 0; i < cards.length; i++) {
cards[i].makeUntabbable();
}
card.makeTabbable();
popup.close();
self.triggerXAPI('interacted');
// Keep track of time spent
timer.play();
@ -197,6 +236,11 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
// Keep track of the number of flipped cards
numFlipped++;
// Announce the card unless it's the last one and it's correct
var isMatched = (flipped === mate);
var isLast = ((removed + 2) === cards.length);
card.updateLabel(isMatched, !(isMatched && isLast));
if (flipped !== undefined) {
var matie = flipped;
// Reset the flipped card.
@ -219,6 +263,81 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
// Count number of cards turned
counter.increment();
});
card.on('audioplay', function () {
if (audioCard) {
audioCard.stopAudio();
}
audioCard = card;
});
card.on('audiostop', function () {
audioCard = undefined;
});
/**
* Create event handler for moving focus to the next or the previous
* card on the table.
*
* @private
* @param {number} direction +1/-1
* @return {function}
*/
var createCardChangeFocusHandler = function (direction) {
return function () {
// Locate next card
for (var i = 0; i < cards.length; i++) {
if (cards[i] === card) {
// Found current card
var nextCard, fails = 0;
do {
fails++;
nextCard = cards[i + (direction * fails)];
if (!nextCard) {
return; // No more cards
}
}
while (nextCard.isRemoved());
card.makeUntabbable();
nextCard.setFocus();
return;
}
}
};
};
// Register handlers for moving focus to next and previous card
card.on('next', createCardChangeFocusHandler(1));
card.on('prev', createCardChangeFocusHandler(-1));
/**
* Create event handler for moving focus to the first or the last card
* on the table.
*
* @private
* @param {number} direction +1/-1
* @return {function}
*/
var createEndCardFocusHandler = function (direction) {
return function () {
var focusSet = false;
for (var i = 0; i < cards.length; i++) {
var j = (direction === -1 ? cards.length - (i + 1) : i);
if (!focusSet && !cards[j].isRemoved()) {
cards[j].setFocus();
focusSet = true;
}
else if (cards[j] === card) {
card.makeUntabbable();
}
}
};
};
// Register handlers for moving focus to first and last card
card.on('first', createEndCardFocusHandler(1));
card.on('last', createEndCardFocusHandler(-1));
cards.push(card);
};
@ -277,16 +396,16 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
var cardParams = cardsToUse[i];
if (MemoryGame.Card.isValid(cardParams)) {
// Create first card
var cardTwo, cardOne = new MemoryGame.Card(cardParams.image, id, cardParams.description, cardStyles);
var cardTwo, cardOne = new MemoryGame.Card(cardParams.image, id, cardParams.imageAlt, parameters.l10n, cardParams.description, cardStyles, cardParams.audio);
if (MemoryGame.Card.hasTwoImages(cardParams)) {
// Use matching image for card two
cardTwo = new MemoryGame.Card(cardParams.match, id, cardParams.description, cardStyles);
cardTwo = new MemoryGame.Card(cardParams.match, id, cardParams.matchAlt, parameters.l10n, cardParams.description, cardStyles, cardParams.matchAudio);
cardOne.hasTwoImages = cardTwo.hasTwoImages = true;
}
else {
// Add two cards with the same image
cardTwo = new MemoryGame.Card(cardParams.image, id, cardParams.description, cardStyles);
cardTwo = new MemoryGame.Card(cardParams.image, id, cardParams.imageAlt, parameters.l10n, cardParams.description, cardStyles, cardParams.audio);
}
// Add cards to card list for shuffeling
@ -310,25 +429,46 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
}
// Add cards to list
var $list = $('<ul/>');
var $list = $('<ul/>', {
role: 'application',
'aria-labelledby': 'h5p-intro-' + numInstances
});
for (var i = 0; i < cards.length; i++) {
cards[i].appendTo($list);
}
cards[0].makeTabbable();
if ($list.children().length) {
$('<div/>', {
id: 'h5p-intro-' + numInstances,
'class': 'h5p-memory-hidden-read',
html: parameters.l10n.label,
appendTo: $container
});
$list.appendTo($container);
$feedback = $('<div class="h5p-feedback">' + parameters.l10n.feedback + '</div>').appendTo($container);
$bottom = $('<div/>', {
'class': 'h5p-programatically-focusable',
tabindex: '-1',
appendTo: $container
});
$taskComplete = $('<div/>', {
'class': 'h5p-memory-complete h5p-memory-hidden-read',
html: parameters.l10n.done,
appendTo: $bottom
});
$feedback = $('<div class="h5p-feedback">' + parameters.l10n.feedback + '</div>').appendTo($bottom);
// Add status bar
var $status = $('<dl class="h5p-status">' +
'<dt>' + parameters.l10n.timeSpent + '</dt>' +
'<dd class="h5p-time-spent">0:00</dd>' +
'<dt>' + parameters.l10n.cardTurns + '</dt>' +
'<dd class="h5p-card-turns">0</dd>' +
'</dl>').appendTo($container);
'<dt>' + parameters.l10n.timeSpent + ':</dt>' +
'<dd class="h5p-time-spent"><time role="timer" datetime="PT0M0S">0:00</time><span class="h5p-memory-hidden-read">.</span></dd>' +
'<dt>' + parameters.l10n.cardTurns + ':</dt>' +
'<dd class="h5p-card-turns">0<span class="h5p-memory-hidden-read">.</span></dd>' +
'</dl>').appendTo($bottom);
timer = new MemoryGame.Timer($status.find('.h5p-time-spent')[0]);
timer = new MemoryGame.Timer($status.find('time')[0]);
counter = new MemoryGame.Counter($status.find('.h5p-card-turns'));
popup = new MemoryGame.Popup($container, parameters.l10n);
@ -340,10 +480,10 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
/**
* Will try to scale the game so that it fits within its container.
* Puts the cards into a grid layout to make it as square as possible  
* Puts the cards into a grid layout to make it as square as possible
* which improves the playability on multiple devices.
*
* @private
* @private
*/
var scaleGameSize = function () {
@ -411,7 +551,7 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
/**
* Determine color contrast level compared to white(#fff)
*
* @private
* @private
* @param {string} color hex code
* @return {number} From 1 to Infinity.
*/

View File

@ -13,16 +13,16 @@
var closed;
var $popup = $('<div class="h5p-memory-pop"><div class="h5p-memory-top"></div><div class="h5p-memory-desc"></div><div class="h5p-memory-close" role="button" tabindex="0" title="' + (l10n.closeLabel || 'Close') + '"></div></div>').appendTo($container);
var $popup = $('<div class="h5p-memory-pop" role="dialog"><div class="h5p-memory-top"></div><div class="h5p-memory-desc h5p-programatically-focusable" tabindex="-1"></div><div class="h5p-memory-close" role="button" tabindex="0" title="' + (l10n.closeLabel || 'Close') + '" aria-label="' + (l10n.closeLabel || 'Close') + '"></div></div>').appendTo($container);
var $desc = $popup.find('.h5p-memory-desc');
var $top = $popup.find('.h5p-memory-top');
// Hook up the close button
$popup.find('.h5p-memory-close').on('click', function () {
self.close();
$popup.find('.h5p-memory-close').on('click', function () {
self.close(true);
}).on('keypress', function (event) {
if (event.which === 13 || event.which === 32) {
self.close();
self.close(true);
event.preventDefault();
}
});
@ -41,22 +41,26 @@
$('<div class="h5p-memory-image"' + (styles ? styles : '') + '></div>').append(imgs[i]).appendTo($top);
}
$popup.show();
$desc.focus();
closed = done;
};
/**
* Close the popup.
*
* @param {boolean} refocus Sets focus after closing the dialog
*/
self.close = function () {
self.close = function (refocus) {
if (closed !== undefined) {
$popup.hide();
closed();
closed(refocus);
closed = undefined;
}
};
/**
* Sets popup size relative to the card size
*
* @param {number} fontSize
*/
self.setSize = function (fontSize) {

View File

@ -26,6 +26,22 @@
"importance": "high",
"ratio": 1
},
{
"name": "imageAlt",
"type": "text",
"label": "Alternative text for Image",
"importance": "high",
"description": "Describe what can be seen in the photo. The text is read by text-to-speech tools needed by visually impaired users."
},
{
"name": "audio",
"type": "audio",
"importance": "high",
"label": "Audio Track",
"description": "An optional sound that plays when the card is turned.",
"optional": true,
"widgetExtensions": ["AudioRecorder"]
},
{
"name": "match",
"type": "image",
@ -35,6 +51,23 @@
"description": "An optional image to match against instead of using two cards with the same image.",
"ratio": 1
},
{
"name": "matchAlt",
"type": "text",
"label": "Alternative text for Matching Image",
"importance": "low",
"optional": true,
"description": "Describe what can be seen in the photo. The text is read by text-to-speech tools needed by visually impaired users."
},
{
"name": "matchAudio",
"type": "audio",
"importance": "low",
"label": "Matching Audio Track",
"description": "An optional sound that plays when the second card is turned.",
"optional": true,
"widgetExtensions": ["AudioRecorder"]
},
{
"name": "description",
"type": "text",
@ -146,7 +179,7 @@
"importance": "low",
"name": "tryAgain",
"type": "text",
"default": "Try again?"
"default": "Reset"
},
{
"label": "Close button label",
@ -154,6 +187,41 @@
"name": "closeLabel",
"type": "text",
"default": "Close"
},
{
"label": "Game label",
"importance": "low",
"name": "label",
"type": "text",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game finished label",
"importance": "low",
"name": "done",
"type": "text",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"importance": "low",
"name": "cardPrefix",
"type": "text",
"default": "Card %num:"
},
{
"label": "Card unturned label",
"importance": "low",
"name": "cardUnturned",
"type": "text",
"default": "Unturned."
},
{
"label": "Card matched label",
"importance": "low",
"name": "cardMatched",
"type": "text",
"default": "Match found."
}
]
}

View File

@ -28,6 +28,11 @@
var minutes = Timer.extractTimeElement(time, 'minutes');
var seconds = Timer.extractTimeElement(time, 'seconds') % 60;
// Update duration attribute
element.setAttribute('datetime', 'PT' + minutes + 'M' + seconds + 'S');
// Add leading zero
if (seconds < 10) {
seconds = '0' + seconds;
}

View File

@ -1,6 +1,6 @@
var H5PUpgrades = H5PUpgrades || {};
H5PUpgrades['H5P.MemoryGame'] = (function ($) {
H5PUpgrades['H5P.MemoryGame'] = (function () {
return {
1: {
/**
@ -42,4 +42,4 @@ H5PUpgrades['H5P.MemoryGame'] = (function ($) {
}
}
};
})(H5P.jQuery);
})();