summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-14 19:21:27 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-14 19:21:27 +0000
commita2b6f8584ac687ab2f3ca2cd5404f4fd0c5cdfe4 (patch)
treee845e22d75e3004ee000270376924c706c9df90a /lib
parent2f2e487aac9a63a137e91786e7b8f1b95fefc0a7 (diff)
downloaddrakx-net-a2b6f8584ac687ab2f3ca2cd5404f4fd0c5cdfe4.tar
drakx-net-a2b6f8584ac687ab2f3ca2cd5404f4fd0c5cdfe4.tar.gz
drakx-net-a2b6f8584ac687ab2f3ca2cd5404f4fd0c5cdfe4.tar.bz2
drakx-net-a2b6f8584ac687ab2f3ca2cd5404f4fd0c5cdfe4.tar.xz
drakx-net-a2b6f8584ac687ab2f3ca2cd5404f4fd0c5cdfe4.zip
extract the "wrong PIN" error message to be reused
Diffstat (limited to 'lib')
-rw-r--r--lib/network/connection/cellular_card.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/network/connection/cellular_card.pm b/lib/network/connection/cellular_card.pm
index fb6948f..084e22c 100644
--- a/lib/network/connection/cellular_card.pm
+++ b/lib/network/connection/cellular_card.pm
@@ -5,6 +5,8 @@ use base qw(network::connection::cellular);
use strict;
use common;
+my $wrong_pin_error = N_("Wrong PIN number format: it should be 4 digits.");
+
sub get_type_name() { N("GPRS/Edge/3G") }
sub _get_type_icon() { 'cellular' }
sub get_devices() {
@@ -71,7 +73,7 @@ sub get_hardware_settings {
sub check_hardware_settings {
my ($self) = @_;
if ($self->{hardware}{pin} !~ /^[0-9]{4}$/) {
- $self->{hardware}{error} = N("Wrong PIN number format: it should be 4 digits.");
+ $self->{hardware}{error} = translate($wrong_pin_error);
return 0;
}
1;