blob: cb267b44b7313297fe124e03d58873a2d7e69ec0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
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"
}
}
}
|