From dc35c2d483c2695adb753e8cc8ad9254d95949e9 Mon Sep 17 00:00:00 2001 From: TBK Date: Mon, 29 Apr 2019 19:01:15 +0200 Subject: [PATCH] Correct WireGuard to CamelCase --- appdata/network-manager-wireguard.metainfo.xml.in | 10 +++++----- examples/dbus/dbus.py | 4 ++-- shared/import-export.c | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/appdata/network-manager-wireguard.metainfo.xml.in b/appdata/network-manager-wireguard.metainfo.xml.in index 0e49519..a12f85f 100644 --- a/appdata/network-manager-wireguard.metainfo.xml.in +++ b/appdata/network-manager-wireguard.metainfo.xml.in @@ -6,8 +6,8 @@ CC0-1.0 nm-connection-editor.desktop gnome-control-center.desktop - <_name>Wireguard client - <_summary>Client for Wireguard virtual private networks + <_name>WireGuard client + <_summary>Client for WireGuard virtual private networks network @@ -15,12 +15,12 @@ NetworkManager connection VPN - Wireguard + WireGuard - <_p>Support for configuring Wireguard virtual private network connections. - <_p>Wireguard is a modern VPN client built for simplicity. + <_p>Support for configuring WireGuard virtual private network connections. + <_p>WireGuard is a modern VPN client built for simplicity. diff --git a/examples/dbus/dbus.py b/examples/dbus/dbus.py index 2fe4f9b..9431911 100755 --- a/examples/dbus/dbus.py +++ b/examples/dbus/dbus.py @@ -87,7 +87,7 @@ def hibernate(): def get_wg_plugin(bus_name="org.freedesktop.NetworkManager.wireguard", object_path="/org/freedesktop/NetworkManager/VPN/Plugin"): - """Retrieve the wireguard VPN plugin from the System Bus. + """Retrieve the WireGuard VPN plugin from the System Bus. Arguments: bus_name -- the bus name of the object to import @@ -107,7 +107,7 @@ def wg_disconnect(wg_plugin): wg_plugin.Disconnect() def wg_connect(wg_plugin): - """Send the Connect Command to the Wireguard Plugin""" + """Send the Connect Command to the WireGuard Plugin""" # these are the settings that are expected by Connect(a{sa{sv}}) for a VPN plugin service_type = GLib.Variant("s", "service") diff --git a/shared/import-export.c b/shared/import-export.c index abbc1d3..f370565 100644 --- a/shared/import-export.c +++ b/shared/import-export.c @@ -1059,14 +1059,14 @@ handle_line_error: if(!have_priv_key){ g_set_error_literal(error, NMV_EDITOR_PLUGIN_ERROR, NMV_EDITOR_PLUGIN_ERROR_FAILED, - "The file to import wasn't a valid Wireguard configuration (no local private key)"); + "The file to import wasn't a valid WireGuard configuration (no local private key)"); goto out_error; } if(!have_ip4_addr && !have_ip6_addr){ g_set_error_literal(error, NMV_EDITOR_PLUGIN_ERROR, NMV_EDITOR_PLUGIN_ERROR_FAILED, - "The file to import wasn't a valid Wireguard configuration (no local IPv4 or IPv6 addresses)"); + "The file to import wasn't a valid WireGuard configuration (no local IPv4 or IPv6 addresses)"); goto out_error; } @@ -1075,7 +1075,7 @@ handle_line_error: if(!have_pub_key){ g_set_error_literal(error, NMV_EDITOR_PLUGIN_ERROR, NMV_EDITOR_PLUGIN_ERROR_FAILED, - "The file to import wasn't a valid Wireguard configuration (no peer public key)"); + "The file to import wasn't a valid WireGuard configuration (no peer public key)"); goto out_error; } @@ -1087,7 +1087,7 @@ handle_line_error: if(!have_endpoint){ g_set_error_literal(error, NMV_EDITOR_PLUGIN_ERROR, NMV_EDITOR_PLUGIN_ERROR_FAILED, - "The file to import wasn't a valid Wireguard configuration (no peer endpoint)"); + "The file to import wasn't a valid WireGuard configuration (no peer endpoint)"); goto out_error; } @@ -1159,7 +1159,7 @@ create_config_string (NMConnection *connection, GError **error) g_set_error_literal (error, NMV_EDITOR_PLUGIN_ERROR, NMV_EDITOR_PLUGIN_ERROR_FILE_NOT_VPN, - _("connection is not a valid Wireguard connection")); + _("connection is not a valid WireGuard connection")); return NULL; }