wifi networks: allow localization

This commit is contained in:
end-4
2025-03-29 01:32:21 +01:00
parent eaf487eb18
commit 1a217dac87
2 changed files with 11 additions and 6 deletions
+5
View File
@@ -92,8 +92,13 @@
"Paired": "Paired",
"More": "More",
"Selected": "Selected",
"Connecting to": "Connecting to",
"Current network": "Current network",
"Authentication": "Authentication",
"Authentication failed": "Authentication failed",
"Enter network password": "Enter network password",
"Properties": "Properties",
"Forget": "Forget",
"Effects": "Effects",
"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",
@@ -39,7 +39,7 @@ const WifiNetwork = (accessPoint) => {
return Button({
onClicked: accessPoint.active ? () => { } : () => {
connectAttempt = accessPoint.ssid;
networkAuthSSID.label = `Connecting to: ${connectAttempt}`;
networkAuthSSID.label = `${getString('Connecting to')}: ${connectAttempt}`;
// Check if the SSID is stored
execAsync(['nmcli', '-g', 'NAME', 'connection', 'show'])
@@ -151,7 +151,7 @@ const CurrentNetwork = () => {
});
const cancelAuthButton = Button({
className: 'txt sidebar-wifinetworks-network-button',
label: 'Cancel',
label: getString('Cancel'),
hpack: 'end',
onClicked: () => {
networkAuth.revealChild = false;
@@ -175,7 +175,7 @@ const CurrentNetwork = () => {
revealChild: false,
child: Label({
className: 'txt txt-italic txt-subtext',
label: 'Authentication failed',
label: getString('Authentication failed'),
}),
})
const authEntry = Entry({
@@ -200,10 +200,10 @@ const CurrentNetwork = () => {
authFailed.revealChild = true;
});
},
placeholderText: 'Enter network password',
placeholderText: getString('Enter network password'),
});
const forgetButton = Button({
label: 'Forget',
label: getString('Forget'),
hexpand: true,
className: 'txt sidebar-wifinetworks-network-button',
onClicked: () => {
@@ -228,7 +228,7 @@ const CurrentNetwork = () => {
setup: setupCursorHover,
});
const propertiesButton = Button({
label: 'Properties',
label: getString('Properties'),
className: 'txt sidebar-wifinetworks-network-button',
hexpand: true,
onClicked: () => {