Mageia Bugzilla – Attachment 3415 Details for
Bug 8628
Network profile modules are not translatable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Patch to fix the problem (make the descriptions localizable)
draknetprofile.patch (text/plain), 1.29 KB, created by
Yuri Chornoivan
on 2013-01-20 12:21:13 CET
(
hide
)
Description:
Patch to fix the problem (make the descriptions localizable)
Filename:
MIME Type:
Creator:
Yuri Chornoivan
Created:
2013-01-20 12:21:13 CET
Size:
1.29 KB
patch
obsolete
>Index: draknetprofile >=================================================================== >--- draknetprofile (revision 7147) >+++ draknetprofile (working copy) >@@ -93,11 +93,31 @@ > > sub load_netprofile_modules() { > my @modules = network::network::netprofile_modules(); >+ my $description = ''; > foreach (@modules) { >+ $description = $_->{description}; >+ if ($description eq "Save and restore the active services") { >+ $description = N("Save and restore the active services"); >+ } >+ elsif ($description eq "Network connection settings") { >+ $description = N("Network connection settings"); >+ } >+ elsif ($description eq "Firewall settings") { >+ $description = N("Firewall settings"); >+ } >+ elsif ($description eq "Firewall settings (IPv6)") { >+ $description = N("Firewall settings (IPv6)"); >+ } >+ elsif ($description eq "Proxy settings") { >+ $description = N("Proxy settings"); >+ } >+ elsif ($description eq "Urpmi settings") { >+ $description = N("Urpmi settings"); >+ } > push @{$modules_list->{data}}, [ > $_->{module}, > $_->{enabled}, >- $_->{description}, >+ $description, > ]; > } > }
Index: draknetprofile =================================================================== --- draknetprofile (revision 7147) +++ draknetprofile (working copy) @@ -93,11 +93,31 @@ sub load_netprofile_modules() { my @modules = network::network::netprofile_modules(); + my $description = ''; foreach (@modules) { + $description = $_->{description}; + if ($description eq "Save and restore the active services") { + $description = N("Save and restore the active services"); + } + elsif ($description eq "Network connection settings") { + $description = N("Network connection settings"); + } + elsif ($description eq "Firewall settings") { + $description = N("Firewall settings"); + } + elsif ($description eq "Firewall settings (IPv6)") { + $description = N("Firewall settings (IPv6)"); + } + elsif ($description eq "Proxy settings") { + $description = N("Proxy settings"); + } + elsif ($description eq "Urpmi settings") { + $description = N("Urpmi settings"); + } push @{$modules_list->{data}}, [ $_->{module}, $_->{enabled}, - $_->{description}, + $description, ]; } }
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 8628
:
3336
| 3415 |
3416