forked from Shinonome/dots-hyprland
wifi networks: allow localization
This commit is contained in:
@@ -92,8 +92,13 @@
|
|||||||
"Paired": "Paired",
|
"Paired": "Paired",
|
||||||
"More": "More",
|
"More": "More",
|
||||||
"Selected": "Selected",
|
"Selected": "Selected",
|
||||||
|
"Connecting to": "Connecting to",
|
||||||
"Current network": "Current network",
|
"Current network": "Current network",
|
||||||
"Authentication": "Authentication",
|
"Authentication": "Authentication",
|
||||||
|
"Authentication failed": "Authentication failed",
|
||||||
|
"Enter network password": "Enter network password",
|
||||||
|
"Properties": "Properties",
|
||||||
|
"Forget": "Forget",
|
||||||
"Effects": "Effects",
|
"Effects": "Effects",
|
||||||
"Transparency": "Transparency",
|
"Transparency": "Transparency",
|
||||||
"[AGS]\nMake shell elements transparent\nBlur is also recommended if you enable this": "[AGS]\nMake shell elements transparent\nBlur is also recommended if you enable this",
|
"[AGS]\nMake shell elements transparent\nBlur is also recommended if you enable this": "[AGS]\nMake shell elements transparent\nBlur is also recommended if you enable this",
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ const WifiNetwork = (accessPoint) => {
|
|||||||
return Button({
|
return Button({
|
||||||
onClicked: accessPoint.active ? () => { } : () => {
|
onClicked: accessPoint.active ? () => { } : () => {
|
||||||
connectAttempt = accessPoint.ssid;
|
connectAttempt = accessPoint.ssid;
|
||||||
networkAuthSSID.label = `Connecting to: ${connectAttempt}`;
|
networkAuthSSID.label = `${getString('Connecting to')}: ${connectAttempt}`;
|
||||||
|
|
||||||
// Check if the SSID is stored
|
// Check if the SSID is stored
|
||||||
execAsync(['nmcli', '-g', 'NAME', 'connection', 'show'])
|
execAsync(['nmcli', '-g', 'NAME', 'connection', 'show'])
|
||||||
@@ -151,7 +151,7 @@ const CurrentNetwork = () => {
|
|||||||
});
|
});
|
||||||
const cancelAuthButton = Button({
|
const cancelAuthButton = Button({
|
||||||
className: 'txt sidebar-wifinetworks-network-button',
|
className: 'txt sidebar-wifinetworks-network-button',
|
||||||
label: 'Cancel',
|
label: getString('Cancel'),
|
||||||
hpack: 'end',
|
hpack: 'end',
|
||||||
onClicked: () => {
|
onClicked: () => {
|
||||||
networkAuth.revealChild = false;
|
networkAuth.revealChild = false;
|
||||||
@@ -175,7 +175,7 @@ const CurrentNetwork = () => {
|
|||||||
revealChild: false,
|
revealChild: false,
|
||||||
child: Label({
|
child: Label({
|
||||||
className: 'txt txt-italic txt-subtext',
|
className: 'txt txt-italic txt-subtext',
|
||||||
label: 'Authentication failed',
|
label: getString('Authentication failed'),
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
const authEntry = Entry({
|
const authEntry = Entry({
|
||||||
@@ -200,10 +200,10 @@ const CurrentNetwork = () => {
|
|||||||
authFailed.revealChild = true;
|
authFailed.revealChild = true;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
placeholderText: 'Enter network password',
|
placeholderText: getString('Enter network password'),
|
||||||
});
|
});
|
||||||
const forgetButton = Button({
|
const forgetButton = Button({
|
||||||
label: 'Forget',
|
label: getString('Forget'),
|
||||||
hexpand: true,
|
hexpand: true,
|
||||||
className: 'txt sidebar-wifinetworks-network-button',
|
className: 'txt sidebar-wifinetworks-network-button',
|
||||||
onClicked: () => {
|
onClicked: () => {
|
||||||
@@ -228,7 +228,7 @@ const CurrentNetwork = () => {
|
|||||||
setup: setupCursorHover,
|
setup: setupCursorHover,
|
||||||
});
|
});
|
||||||
const propertiesButton = Button({
|
const propertiesButton = Button({
|
||||||
label: 'Properties',
|
label: getString('Properties'),
|
||||||
className: 'txt sidebar-wifinetworks-network-button',
|
className: 'txt sidebar-wifinetworks-network-button',
|
||||||
hexpand: true,
|
hexpand: true,
|
||||||
onClicked: () => {
|
onClicked: () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user