LanguageList.qml 3.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
/* 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
 *   along with this program; if not, see <http://www.gnu.org/licenses/>.
 */

import QtQuick 2.2

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 33 34 35 36 37 38 39 40 41
    /**
     * 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.
     */
42 43 44 45
    property var languages: [
            { "text": qsTr("Your system default"), "locale": "system" },
            { "text": "UK English", "locale": "en_GB.UTF-8" },
            { "text": "American English", "locale": "en_US.UTF-8" },
46 47
            //{ "text": "български", "locale": "bg_BG.UTF-8" },
            //{ "text": "Brezhoneg", "locale": "br_FR.UTF-8" },
48
            { "text": "Català", "locale": "ca_ES.UTF-8" },
49 50
            //{ "text": "Česká", "locale": "cs_CZ.UTF-8" },
            //{ "text": "Dansk", "locale": "da_DK.UTF-8" },
51
            { "text": "Deutsch", "locale": "de_DE.UTF-8" },
52
            //{ "text": "Ελληνικά", "locale": "el_GR.UTF-8" },
53 54 55
            { "text": "Español", "locale": "es_ES.UTF-8" },
            { "text": "Suomi", "locale": "fi_FI.UTF-8" },
            { "text": "Français", "locale": "fr_FR.UTF-8" },
56
            //{ "text": "Gàidhlig", "locale": "gd_GB.UTF-8" },
57
            { "text": "Galego", "locale": "gl_ES.UTF-8" },
58
            //{ "text": "Magyar", "locale": "hu_HU.UTF-8" },
59
            { "text": "Italiano", "locale": "it_IT.UTF-8" },
60 61
            //{ "text": "Lietuvių", "locale": "lt_LT.UTF-8" },
            //{ "text": "Latviešu", "locale": "lv_LV.UTF-8" },
62 63 64 65 66 67 68 69
            { "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" },
            { "text": "Русский", "locale": "ru_RU.UTF-8" },
            { "text": "Slovenský", "locale": "sk_SK.UTF-8" },
            { "text": "Slovenski", "locale": "sl_SI.UTF-8" },
70
            //{ "text": "црногорски jeзик", "locale": "sr_ME.UTF-8" },
71
            { "text": "Svenska", "locale": "sv_FI.UTF-8" },
72 73 74
            //{ "text": "தமிழ்", "locale": "ta_IN.UTF-8" },
            //{ "text": "ไทย", "locale": "th_TH.UTF-8" },
            { "text": "Türk", "locale": "tr_TR.UTF-8" },
75 76 77 78 79
            { "text": "український", "locale": "uk_UA.UTF-8" },
            { "text": "中文(简体)", "locale": "zh_CN.UTF-8" },
            { "text": "繁體中文", "locale": "zh_TW.UTF-8" }
        ]
}