diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-11-19 20:47:36 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-11-19 20:47:36 +0000 |
commit | c0ca9df21816267ea5459adaf831f3cf6590b281 (patch) | |
tree | 172082787799b8a5352a75592ad55a689dbd8a1a | |
parent | 8f04a61ac19ed10f5550939b789550cab24b7612 (diff) | |
download | drakx-net-c0ca9df21816267ea5459adaf831f3cf6590b281.tar drakx-net-c0ca9df21816267ea5459adaf831f3cf6590b281.tar.gz drakx-net-c0ca9df21816267ea5459adaf831f3cf6590b281.tar.bz2 drakx-net-c0ca9df21816267ea5459adaf831f3cf6590b281.tar.xz drakx-net-c0ca9df21816267ea5459adaf831f3cf6590b281.zip |
use user-friendly interface name
-rwxr-xr-x | bin/net_applet | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/net_applet b/bin/net_applet index 5da2da5..ee1aaad 100755 --- a/bin/net_applet +++ b/bin/net_applet @@ -91,12 +91,12 @@ sub get_state_message { my $network = network::net_applet::get_current_network(); formatAlaTeX( $current_state eq 'connected' ? - N("Network is up on interface %s.", $interface) . + N("Network is up on interface %s.", get_interface_name($interface)) . "\n\n" . N("IP address: %s", network::tools::get_interface_ip_address($net, $interface)) . "\n\n" . N("Gateway: %s", [ network::tools::get_interface_status($interface) ]->[1]) . ($network && "\n\n" . N("Connected to %s (link level: %d %%)", $network->{name}, $network->{signal_strength})) : $current_state eq 'disconnected' ? - N("Network is down on interface %s.", $interface) + N("Network is down on interface %s.", get_interface_name($interface)) : N("You do not have any configured Internet connection. Run the \"%s\" assistant from the Mandriva Linux Control Center", N("Set up a new network interface (LAN, ISDN, ADSL, ...)")) |