diff options
Diffstat (limited to 'control-center')
-rwxr-xr-x | control-center | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/control-center b/control-center index e37b9e33..b2a505b4 100755 --- a/control-center +++ b/control-center @@ -53,6 +53,10 @@ my $min_height = $rootwin_height == 480 ? 420 : 500; require_root_capability() if !$::testing; # just to get root capabilities +my $branding = N("Mandriva Linux"); +my $product_id = common::parse_LDAP_namespace_structure(cat_('/etc/product.id')); +# allow OEM branding: +$branding = translate($product_id->{distribution}); #------------------------------------------------------------- # read configuration, set themes, ... @@ -90,14 +94,14 @@ Gtk2::Rc->parse($rc) if -r $rc; # Splash window: please wait ... my $window_splash = Gtk2::Window->new('popup'); $window_splash->signal_connect(delete_event => \&quit_global); -$window_splash->set_title(N("Mandriva Linux Control Center")); +$window_splash->set_title(N("%s Control Center", $branding)); $window_splash->set_position('center_always'); $window_splash->add(gtkadd(gtkset_shadow_type(Gtk2::Frame->new, 'etched_out'), gtkput(my $fixed = Gtk2::Fixed->new, gtkpack(Gtk2::VBox->new(0, 0), if_(-r "$themes_dir/$theme/splash_screen.png", gtkcreate_img("splash_screen")), gtkset_markup(Gtk2::Label->new, join('', qq(\n<span size="x-large" weight="heavy">), - N("Mandriva Linux Control Center"), + N("%s Control Center", $branding), "</span>"), ), Gtk2::Label->new(N("Loading... Please wait") . "\n"), @@ -193,7 +197,7 @@ my @tree = ( N("Set up a web server"), 'Apache.pm', ], [ "Installation server wizard", "installsrv", 'wizard-mdk', N("Configure installation server"), - N("Set up server for network installations of Mandriva Linux"), 'Installsrv.pm', 1, + N("Set up server for network installations of %s", $branding), 'Installsrv.pm', 1, ], ), ), @@ -722,7 +726,7 @@ $window_global->signal_connect(delete_event => \&quit_global); use POSIX qw(:sys_utsname_h :math_h :sys_wait_h :unistd_h); my (undef, $nodename) = POSIX::uname(); -$window_global->set_title(N("Mandriva Linux Control Center %s [on %s]", $version, $nodename)); +$window_global->set_title(N("%s Control Center %s [on %s]", $branding, $version, $nodename)); $window_global->set_position('center'); foreach my $notebook ($banner_notebook) { @@ -736,7 +740,7 @@ $notebook_global->set_scrollable(1); # banner : add2notebook($banner_notebook, "", Gtk2::Banner->new("/usr/share/icons/large/drakconf.png", - N("Welcome to the Mandriva Linux Control Center"))); + N("Welcome to the %s Control Center", $branding))); my ($_hand_cursor, $wait_cursor) = map { Gtk2::Gdk::Cursor->new($_) } qw(hand2 watch); @@ -1284,7 +1288,7 @@ sub more_themes() { } sub about_mdk_cc() { - my $window_about = new_dialog(N("About - Mandriva Linux Control Center")); + my $window_about = new_dialog(N("About - %s Control Center", $branding)); my $tree_model = Gtk2::TreeStore->new("Glib::String", "Glib::String", "Glib::String"); my $credits = Gtk2::TextView->new; @@ -1355,9 +1359,9 @@ sub about_mdk_cc() { gtkpack_($window_about->vbox, (0, gtkset_size_request(Gtk2::Banner->new('splash_screen_about', - #-PO: here, %s will be replaced by the version (eg: "Mandriva Linux 2007.1 (Discovery) Control Center") - N("Mandriva Linux %s (%s) Control Center", - @$release{qw(version product)}), + #-PO: here, %s will be replaced by the version (eg: "%s 2007.1 (Discovery) Control Center") + N("%s %s (%s) Control Center", + $branding, @$release{qw(version product)}), { txt_ypos => 50 }), -1, 120)), 0, Gtk2::Label->new(""), 0, Gtk2::Label->new( |