From 3c4792395352ed7ca517ca6c2ba3470f33341031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Tue, 21 Jan 2020 10:27:36 +0100 Subject: [PATCH] networkAgent: Use shorter title strings Since the headlines of the dialogs now use a much larger font, the strings need to be shorter so they won't be ellipsized. So use a shorter strings for those titles and also adjust the title-strings of the notifications sent by the NetworkAgent to be consistent. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/942 --- js/ui/components/networkAgent.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/ui/components/networkAgent.js b/js/ui/components/networkAgent.js index 2d8ed545d..6699cb6aa 100644 --- a/js/ui/components/networkAgent.js +++ b/js/ui/components/networkAgent.js @@ -303,7 +303,7 @@ class NetworkSecretDialog extends ModalDialog.ModalDialog { case '802-11-wireless': wirelessSetting = this._connection.get_setting_wireless(); ssid = NM.utils_ssid_to_utf8(wirelessSetting.get_ssid().get_data()); - content.title = _("Authentication required by wireless network"); + content.title = _('Authentication required'); content.message = _("Passwords or encryption keys are required to access the wireless network “%s”.").format(ssid); this._getWirelessSecrets(content.secrets, wirelessSetting); break; @@ -331,7 +331,7 @@ class NetworkSecretDialog extends ModalDialog.ModalDialog { // fall through case 'cdma': case 'bluetooth': - content.title = _("Mobile broadband network password"); + content.title = _('Authentication required'); content.message = _("A password is required to connect to “%s”.").format(connectionSetting.get_id()); this._getMobileSecrets(content.secrets, connectionType); break; @@ -678,7 +678,7 @@ var NetworkAgent = class { case '802-11-wireless': { let wirelessSetting = connection.get_setting_wireless(); let ssid = NM.utils_ssid_to_utf8(wirelessSetting.get_ssid().get_data()); - title = _("Authentication required by wireless network"); + title = _('Authentication required'); body = _("Passwords or encryption keys are required to access the wireless network “%s”.").format(ssid); break; } @@ -699,7 +699,7 @@ var NetworkAgent = class { // fall through case 'cdma': case 'bluetooth': - title = _("Mobile broadband network password"); + title = _('Authentication required'); body = _("A password is required to connect to “%s”.").format(connectionSetting.get_id()); break; case 'vpn':