LanguageList.qml 4.29 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* GCompris - LanguageList.qml
 *
 * Copyright (C) 2014 Johnny Jazeix <jazeix@gmail.com>
 *
 * Authors:
 *   Johnny Jazeix <jazeix@gmail.com>
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
19
 *   along with this program; if not, see <https://www.gnu.org/licenses/>.
20 21
 */

22
import QtQuick 2.6
23

24 25 26 27 28 29
/**
 * Container object with a list of all available translations.
 * @ingroup infrastructure
 *
 * Put here the locales for which we have a good enough translation.
 */
30
QtObject {
31 32
    property bool inMenu: false

33 34 35 36 37 38 39 40 41 42 43
    /**
     * type:list
     * List of language objects.
     *
     * A language object consists of the properties @c text (language string in
     * the locales' language) and @c locale (locale string of the form
     * aa_AA.UTF-8).
     *
     * The special purpose locale 'system' is used to refer to the system's
     * standard locale.
     */
44
    property var languages: [
45
            { "text": inMenu ? qsTr("Your system default") : qsTr("GCompris' language"), "locale": "system" },
46 47
            { "text": "UK English", "locale": "en_GB.UTF-8" },
            { "text": "American English", "locale": "en_US.UTF-8" },
48
            //{ "text": "български", "locale": "bg_BG.UTF-8" },
49
            { "text": "Brezhoneg", "locale": "br_FR.UTF-8" },
50
            {"text": "Беларуская", "locale": "be_BY.UTF-8" },
51
            { "text": "Català", "locale": "ca_ES.UTF-8" },
52 53
            //{ "text": "Česká", "locale": "cs_CZ.UTF-8" },
            //{ "text": "Dansk", "locale": "da_DK.UTF-8" },
54
            { "text": "Deutsch", "locale": "de_DE.UTF-8" },
Johnny Jazeix's avatar
Johnny Jazeix committed
55
            { "text": "Ελληνικά", "locale": "el_GR.UTF-8" },
56
            { "text": "Español", "locale": "es_ES.UTF-8" },
57
            { "text": "Eesti", "locale": "et_EE.UTF-8" },
58
            { "text": "Euskara", "locale": "eu_ES.UTF-8" },
59 60
            { "text": "Suomi", "locale": "fi_FI.UTF-8" },
            { "text": "Français", "locale": "fr_FR.UTF-8" },
61
            { "text": "Gaeilge", "locale": "ga_IE.UTF-8" },
62
            { "text": "Gàidhlig", "locale": "gd_GB.UTF-8" },
63
            { "text": "Galego", "locale": "gl_ES.UTF-8" },
Johnny Jazeix's avatar
Johnny Jazeix committed
64
            { "text": "עברית", "locale": "he_IL.UTF-8" },
Johnny Jazeix's avatar
Johnny Jazeix committed
65
            { "text": "हिन्दी", "locale": "hi_IN.UTF-8" },
Johnny Jazeix's avatar
Johnny Jazeix committed
66
            { "text": "Magyar", "locale": "hu_HU.UTF-8" },
Johnny Jazeix's avatar
Johnny Jazeix committed
67
            { "text": "Indonesia", "locale": "id_ID.UTF-8" },
68
            { "text": "Italiano", "locale": "it_IT.UTF-8" },
Johnny Jazeix's avatar
Johnny Jazeix committed
69
            { "text": "Lietuvių", "locale": "lt_LT.UTF-8" },
70
            //{ "text": "Latviešu", "locale": "lv_LV.UTF-8" },
Johnny Jazeix's avatar
Johnny Jazeix committed
71
            { "text": "Македонски", "locale": "mk_MK.UTF-8" },
72
            { "text": "മലയാളം", "locale": "ml_IN.UTF-8" },
73 74 75 76 77
            { "text": "Nederlands", "locale": "nl_NL.UTF-8" },
            { "text": "Norsk (nynorsk)", "locale": "nn_NO.UTF-8" },
            { "text": "Polski", "locale": "pl_PL.UTF-8" },
            { "text": "Português", "locale": "pt_PT.UTF-8" },
            { "text": "Português do Brasil", "locale": "pt_BR.UTF-8" },
78
            { "text": "Română", "locale": "ro_RO.UTF-8" },
79 80 81
            { "text": "Русский", "locale": "ru_RU.UTF-8" },
            { "text": "Slovenský", "locale": "sk_SK.UTF-8" },
            { "text": "Slovenski", "locale": "sl_SI.UTF-8" },
82
            //{ "text": "црногорски jeзик", "locale": "sr_ME.UTF-8" },
83
            { "text": "Svenska", "locale": "sv_FI.UTF-8" },
84 85 86
            //{ "text": "தமிழ்", "locale": "ta_IN.UTF-8" },
            //{ "text": "ไทย", "locale": "th_TH.UTF-8" },
            { "text": "Türk", "locale": "tr_TR.UTF-8" },
87 88 89 90 91
            { "text": "український", "locale": "uk_UA.UTF-8" },
            { "text": "中文(简体)", "locale": "zh_CN.UTF-8" },
            { "text": "繁體中文", "locale": "zh_TW.UTF-8" }
        ]
}