Mageia Bugzilla – Attachment 4377 Details for
Bug 5332
Some netprofile strings can't be localized, please add them to drakx-net.pot
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Patch to convert some network.pm messages into translatable ones
messages.patch (text/plain), 1.25 KB, created by
Yuri Chornoivan
on 2013-09-26 14:28:48 CEST
(
hide
)
Description:
Patch to convert some network.pm messages into translatable ones
Filename:
MIME Type:
Creator:
Yuri Chornoivan
Created:
2013-09-26 14:28:48 CEST
Size:
1.25 KB
patch
obsolete
>diff --git a/lib/network/network.pm b/lib/network/network.pm >index e62ea5e..f9d5211 100644 >--- a/lib/network/network.pm >+++ b/lib/network/network.pm >@@ -429,27 +429,27 @@ sub netprofile_modules() { > sub netprofile_module_enable { > my ($module) = @_; > system('/sbin/netprofile', 'module_enable', $module); >- log::explanations(qq(Enabling netprofile module $module)); >+ log::explanations(N("Enabling netprofile module %s", $module)); > } > > sub netprofile_module_disable { > my ($module) = @_; > system('/sbin/netprofile', 'module_disable', $module); >- log::explanations(qq(Disabling netprofile module $module)); >+ log::explanations(N("Disabling netprofile module %s", $module)); > } > > sub netprofile_set { > my ($net, $profile) = @_; > $net->{PROFILE} = $profile; > system('/sbin/netprofile', 'switch', $net->{PROFILE}); >- log::explanations(qq(Switching to "$net->{PROFILE}" profile)); >+ log::explanations(N("Switching to \"%s\" profile", $net->{PROFILE})); > } > > sub netprofile_delete { > my ($profile) = @_; > return if !$profile; > system('/sbin/netprofile', 'delete', $profile); >- log::explanations(qq(Deleting "$profile" profile)); >+ log::explanations(N("Deleting \"%s\" profile", $profile)); > } > > sub netprofile_list() {
diff --git a/lib/network/network.pm b/lib/network/network.pm index e62ea5e..f9d5211 100644 --- a/lib/network/network.pm +++ b/lib/network/network.pm @@ -429,27 +429,27 @@ sub netprofile_modules() { sub netprofile_module_enable { my ($module) = @_; system('/sbin/netprofile', 'module_enable', $module); - log::explanations(qq(Enabling netprofile module $module)); + log::explanations(N("Enabling netprofile module %s", $module)); } sub netprofile_module_disable { my ($module) = @_; system('/sbin/netprofile', 'module_disable', $module); - log::explanations(qq(Disabling netprofile module $module)); + log::explanations(N("Disabling netprofile module %s", $module)); } sub netprofile_set { my ($net, $profile) = @_; $net->{PROFILE} = $profile; system('/sbin/netprofile', 'switch', $net->{PROFILE}); - log::explanations(qq(Switching to "$net->{PROFILE}" profile)); + log::explanations(N("Switching to \"%s\" profile", $net->{PROFILE})); } sub netprofile_delete { my ($profile) = @_; return if !$profile; system('/sbin/netprofile', 'delete', $profile); - log::explanations(qq(Deleting "$profile" profile)); + log::explanations(N("Deleting \"%s\" profile", $profile)); } sub netprofile_list() {
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 5332
: 4377