C

Qt Quick Ultralite translation Example

import QmlProject 1.3

Project {
    mainFile: "translation.qml"

    MCU.Config {
        Experimental.mergeStaticTextGlyphs: false // Disable due to using rich text in the StaticText item
    }

    ImageFiles {
        files: [
            "japan-flag-small.png",
            "latvia-flag-small.png",
            "norway-flag-small.png",
            "saudi-arabia-flag-small.png",
            "thai-flag-small.png",
            "usa-flag-small.png",
            "japan-flag-small-icon.png",
            "latvia-flag-small-icon.png",
            "norway-flag-small-icon.png",
            "saudi-arabia-flag-small-icon.png",
            "thai-flag-small-icon.png",
            "usa-flag-small-icon.png"
        ]
    }

    TranslationFiles {
        files: [
            "translation.ar_SA.ts",
            "translation.ja_JP.ts",
            "translation.lv_LV.ts",
            "translation.nb_NO.ts",
            "translation.th_TH.ts"
        ]
    }

    // Qul ships some default fonts. Since they don't contain glyphs for
    // all the characters that are needed for this application,
    // add some extra fonts.
    FontFiles {
        files: [
            "fonts/kosugi/Kosugi-Regular.ttf",
            "fonts/sarabun/Sarabun-Regular.ttf"
        ]
    }

    ModuleFiles {
        MCU.qulModules: ["Controls"]
        files: ["translation_fontconfig_static.qmlproject"]
    }
}