pragma Singleton import QtQuick 2.15 QtObject { id: root property string title: "Create user" property string description: "Set up the computer's primary user account. This account has full administrator (root / sudo) privileges." property string usernameLabel: "Username" property string hostnameLabel: "Computer name" property string passwordLabel: "Password" property string passwordPlaceholder: "Password" property string passwordConfirmLabel: "Confirm password" property string reuseRootLabel: "Use the same password for the administrator (root)" property string rootPasswordLabel: "Root password" property string rootPasswordPlaceholder: "Root password" property string rootPasswordConfirmLabel: "Confirm root password" function setLanguage(locale) { if (locale.startsWith("hu")) { title = "Felhasználó létrehozása" description = "Állítsd be a számítógép elsődleges felhasználói fiókját. Ez a fiók teljes rendszergazdai (root / sudo) jogosultsággal rendelkezik." usernameLabel = "Felhasználónév" hostnameLabel = "Számítógépnév" passwordLabel = "Jelszó" passwordPlaceholder = "Jelszó" passwordConfirmLabel = "Jelszó megerősítése" reuseRootLabel = "Ugyanaz a jelszó az adminisztrátorhoz (root)" rootPasswordLabel = "Root jelszó" rootPasswordPlaceholder = "Root jelszó" rootPasswordConfirmLabel = "Root jelszó megerősítése" } else if (locale.startsWith("de")) { title = "Benutzer erstellen" description = "Richte das primäre Benutzerkonto des Computers ein. Dieses Konto hat volle Administratorrechte (root / sudo)." usernameLabel = "Benutzername" hostnameLabel = "Computername" passwordLabel = "Passwort" passwordPlaceholder = "Passwort" passwordConfirmLabel = "Passwort bestätigen" reuseRootLabel = "Dasselbe Passwort für den Administrator (root)" rootPasswordLabel = "Root-Passwort" rootPasswordPlaceholder = "Root-Passwort" rootPasswordConfirmLabel = "Root-Passwort bestätigen" } else { title = "Create user" description = "Set up the computer's primary user account. This account has full administrator (root / sudo) privileges." usernameLabel = "Username" hostnameLabel = "Computer name" passwordLabel = "Password" passwordPlaceholder = "Password" passwordConfirmLabel = "Confirm password" reuseRootLabel = "Use the same password for the administrator (root)" rootPasswordLabel = "Root password" rootPasswordPlaceholder = "Root password" rootPasswordConfirmLabel = "Confirm root password" } } }