status/network: Title mobile connections as "Mobile"

As per the latest mockups, modem network connections are labeled
"Mobile". Override _getDefaultName in NMModemToggle and always
return "Mobile" as title.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>
This commit is contained in:
Georges Basile Stavracas Neto 2023-02-04 20:34:11 -03:00
parent e0408faf71
commit 2d4521be3b

View File

@ -1860,6 +1860,11 @@ class NMModemToggle extends NMDeviceToggle {
'gnome-network-panel.desktop');
}
_getDefaultName() {
// Translators: "Mobile" from "Mobile Broadband"
return _('Mobile');
}
_createDeviceMenuItem(device) {
return new NMModemDeviceItem(this._client, device);
}