pragma Singleton import QtQuick 2.15 /** * Desktop Selector Modul Fordítások * ================================== * * Támogatott nyelvek: * - hu_HU: Magyar * - de_DE: Német * - en_US, en_GB, stb.: Angol (alapértelmezett) * * Használat QML-ben: * Text { text: Translations.title } */ QtObject { id: root // Aktuális nyelv kód (pl. "hu_HU", "en_US") property string currentLanguage: "en_US" // Modul fő címe property string title: "Select Desktop" // Figyelmeztető banner property string banner: "Choose a desktop environment. You can only choose one!" function setLanguage(locale) { currentLanguage = locale // ================== // MAGYAR // ================== if (locale.startsWith("hu")) { title = "Desktop kiválasztása" banner = "Válassz egy desktop környezetet. Csak egyet választhatsz!" } // ================== // NÉMET // ================== else if (locale.startsWith("de")) { title = "Desktop auswählen" banner = "Wähle eine Desktop-Umgebung. Du kannst nur eine auswählen!" } // ================== // ANGOL (alapértelmezett) // ================== else { title = "Select Desktop" banner = "Choose a desktop environment. You can only choose one!" } } }