File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,20 @@ else # Remove access to settings
41
41
42
42
USER=\$ (id -un)
43
43
44
+ # Extract the line in /etc/default/locale where LANG is set
45
+ LOCALE_VAR=\$ (grep LANG= /etc/default/locale)
46
+
47
+ # Set the info text based on the chosen language
48
+ if echo \$ LOCALE_VAR | grep sv; then
49
+ INFO="Systeminställningarna är inte tillgängliga för allmänheten.\n\nKontakta personalen om det uppstår problem."
50
+ elif echo \$ LOCALE_VAR | grep en; then
51
+ INFO="The settings are not accessible to the public.\n\nContact the staff if there are issues."
52
+ else
53
+ INFO="Systemindstillingerne er ikke tilgængelige for publikum.\n\nKontakt personalet, hvis der er problemer."
54
+ fi
55
+
44
56
if [ \$ USER == "user" ]; then
45
- zenity --info --text="Systemindstillingerne er ikke tilgængelige for publikum.\n\n Kontakt personalet, hvis der er problemer. "
57
+ zenity --info --text="\$ INFO "
46
58
else
47
59
/usr/bin/gnome-control-center.real
48
60
fi
You can’t perform that action at this time.
0 commit comments