Warning, /education/gcompris/src/activities/scalesboard_weight/resource/1/Data.qml is written in an unsupported language. File is not indexed.
0001 /* GCompris - Data.qml 0002 * 0003 * SPDX-FileCopyrightText: 2020 Deepak Kumar <deepakdk2431@gmail.com> 0004 * 0005 * Authors: 0006 * Deepak Kumar <deepakdk2431@gmail.com> 0007 * 0008 * SPDX-License-Identifier: GPL-3.0-or-later 0009 */ 0010 import GCompris 1.0 0011 0012 Data { 0013 objective: qsTr("Balance up to 5 grams.") 0014 difficulty: 2 0015 0016 function g(value) { 0017 /* g == gram */ 0018 return qsTr("%1 g").arg(value) 0019 } 0020 0021 data: [ 0022 { 0023 "masses": [[1, g(1)], [1, g(1)], [2, g(2)], [1, g(1)], [2, g(2)], [1, g(1)], [2, g(2)]], 0024 "targets": [[3, g(3)], [4, g(4)], [5, g(5)]], 0025 "rightDrop": false, 0026 "message": qsTr('The "g" symbol at the end of a number means gram.') 0027 }, 0028 { 0029 "masses": [[6, g(6)], [9, g(9)], [2, g(2)], [7, g(7)], [6, g(6)], [7, g(7)], [8, g(8)]], 0030 "targets": [[4, g(4)], [3, g(3)], [5, g(5)]], 0031 "rightDrop": true, 0032 "message": qsTr("Take care, you can drop weights on both sides of the scale."), 0033 }, 0034 { 0035 "masses": [[1, g(1)], [1, g(1)], [2, g(2)], [1, g(1)], [2, g(2)], [1, g(1)], [2, g(2)]], 0036 "targets": [[4, g(4)], [3, g(3)], [5, g(5)]], 0037 "rightDrop": false, 0038 "message": qsTr("Now you have to guess the weight of the gift."), 0039 "question": qsTr("Enter the weight of the gift in grams: %1") 0040 } 0041 ] 0042 }