summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-01-20 12:28:06 +0000
committerThierry Vignaud <tv@mageia.org>2013-01-20 12:28:06 +0000
commit18c484e289859836247a07d7a4b4db0659676d27 (patch)
treeaaf7bd567772219a5693449be3d12111a61500c2
parent4183b3106590d48db72cf1ea216fa460f7aea80a (diff)
downloaddrakx-net-18c484e289859836247a07d7a4b4db0659676d27.tar
drakx-net-18c484e289859836247a07d7a4b4db0659676d27.tar.gz
drakx-net-18c484e289859836247a07d7a4b4db0659676d27.tar.bz2
drakx-net-18c484e289859836247a07d7a4b4db0659676d27.tar.xz
drakx-net-18c484e289859836247a07d7a4b4db0659676d27.zip
fix untranslatable strings (inspirated by Yuri Chornoivan, mga#8628)
-rw-r--r--NEWS2
-rwxr-xr-xbin/draknetprofile6
2 files changed, 6 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 921d952..e293a62 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,5 @@
- drakhosts: fix translation domain (Yuri Chornoivan, mga#8629)
-- fix untranslatable strings (Yuri Chornoivan, mga#8638 & #8640)
+- fix untranslatable strings (Yuri Chornoivan, mga#8638, #8640 & #8628)
1.17:
- update translations
diff --git a/bin/draknetprofile b/bin/draknetprofile
index 325d9fb..4e81e5e 100755
--- a/bin/draknetprofile
+++ b/bin/draknetprofile
@@ -93,11 +93,15 @@ $profiles_list->get_selection->signal_connect('changed' => sub {
sub load_netprofile_modules() {
my @modules = network::network::netprofile_modules();
+ my %descriptions = map { $_ => translate($_) } N_("Save and restore the active services"),
+ N_("Network connection settings"), N_("Firewall settings"), N_("Firewall settings (IPv6)"),
+ N_("Proxy settings"), N_("Urpmi settings"), N_("Networkmanager connection settings");
+
foreach (@modules) {
push @{$modules_list->{data}}, [
$_->{module},
$_->{enabled},
- $_->{description},
+ $descriptions{$_->{description}} || $_->{description},
];
}
}