C

Qt Quick Ultralite translation Example

import QmlProject 1.3

Project {
        mainFile: "translation.qml"

        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"
                ]
        }

        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/monotype/TranslationsSampleFontmap.fmp"
                ]
        }

        MCU.Config {
                fontEngine: "Spark"
                defaultFontFamily: "arabic-style-font"
                fontCacheSize: 1 // Disable the cache
        }

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