diff options
| author | Emīls Piņķis <emils@mullvad.net> | 2019-06-14 11:28:02 +0100 |
|---|---|---|
| committer | Emīls Piņķis <emils@mullvad.net> | 2019-06-14 11:28:02 +0100 |
| commit | b7cfcd5f9154cf969eb9ae414e73fa5a3d4a119d (patch) | |
| tree | 9161e7f7a7c29b51bd55403a2fbe322662b0972f /gui | |
| parent | 6e658fb0fef2912840896f35c8d6bde2842a69cf (diff) | |
| parent | 0bc90f330be6bfbaf7e50c4d0220210f958c4956 (diff) | |
| download | mullvadvpn-b7cfcd5f9154cf969eb9ae414e73fa5a3d4a119d.tar.xz mullvadvpn-b7cfcd5f9154cf969eb9ae414e73fa5a3d4a119d.zip | |
Merge branch 'linux-improve-old-kernel-message'
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/locales/messages.pot | 4 | ||||
| -rw-r--r-- | gui/src/renderer/components/NotificationArea.tsx | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gui/locales/messages.pot b/gui/locales/messages.pot index fd19504fa1..e66591d010 100644 --- a/gui/locales/messages.pot +++ b/gui/locales/messages.pot @@ -212,6 +212,10 @@ msgid "Failed to apply firewall rules. The device might currently be unsecured" msgstr "" msgctxt "in-app-notifications" +msgid "Your kernel may be outdated" +msgstr "" + +msgctxt "in-app-notifications" msgid "Failed to set system DNS server" msgstr "" diff --git a/gui/src/renderer/components/NotificationArea.tsx b/gui/src/renderer/components/NotificationArea.tsx index 6405e9828f..062bb45da7 100644 --- a/gui/src/renderer/components/NotificationArea.tsx +++ b/gui/src/renderer/components/NotificationArea.tsx @@ -50,10 +50,14 @@ function getBlockReasonMessage(blockReason: BlockReason): string { 'Could not configure IPv6, please enable it on your system or disable it in the app', ); case 'set_firewall_policy_error': - return messages.pgettext( + return `${messages.pgettext( 'in-app-notifications', 'Failed to apply firewall rules. The device might currently be unsecured', - ); + )}${ + process.platform === 'linux' + ? '. ' + messages.pgettext('in-app-notifications', 'Your kernel may be outdated') + : '' + }`; case 'set_dns_error': return messages.pgettext('in-app-notifications', 'Failed to set system DNS server'); case 'start_tunnel_error': |
