From 46206a6252e232ce5675e3500be423ab743a56a0 Mon Sep 17 00:00:00 2001 From: Yves Duret Date: Tue, 21 Aug 2001 16:36:03 +0000 Subject: removed all fussy sprintf --- control-center | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/control-center b/control-center index 3e9d28e1..3deb1c3e 100755 --- a/control-center +++ b/control-center @@ -55,7 +55,7 @@ my $nb_pages=0; my $window_global = new Gtk::Window -toplevel; $window_global->signal_connect ( delete_event => sub { quit_global(); }); $window_global->set_position(1); -$window_global->set_title( sprintf( _("Mandrake Control Center %s"), $_version)); +$window_global->set_title( _("Mandrake Control Center %s", $_version)); $window_global->border_width(0); my $vbox_global = new Gtk::VBox(0, 0); @@ -213,7 +213,7 @@ sub exec_treeitem { print "e exec_tree_item->[$nb_pages]\n" . (Data::Dumper->Dump([\@pid_launched], ['p'])); if (!$available) { my $vbox = new Gtk::VBox(0, 0); - $vbox->pack_start( new Gtk::Label ( sprintf( _("The application cannot be loaded,\nthe file '%s' has not been found.\nTry to install it.", $exec_string))), 1, 0, 0); + $vbox->pack_start( new Gtk::Label( _("The application cannot be loaded,\nthe file '%s' has not been found.\nTry to install it.", $exec_string)), 1, 0, 0); $vbox->show_all; $notebook_global->append_page($vbox, ""); $nb_pages++; @@ -342,7 +342,7 @@ sub draw_exposed { $pix->draw_string($style->font, $darea1->style->black_gc, 73, 170, _("The place where you can configure your Mandrake Box") ); my @revtree; - open VERS, "/etc/mandrake-release" or die(sprintf _("cannot open this file for read: %s", $!)); + open VERS, "/etc/mandrake-release" or die _("cannot open this file for read: %s", $!); while () { push (@revtree,$_) } my @info_tree = split / /, $revtree[0]; @@ -488,7 +488,7 @@ sub about_mdk_cc { $button->signal_connect_object("clicked",$window_about => 'destroy'); $bbox1->add($button); - my $label = new Gtk::Label( sprintf( _("Mandrake Control Center %s \n \n Copyright (C) 2001 Mandrakesoft SA\n", $_version) ) ); + my $label = new Gtk::Label( _("Mandrake Control Center %s \n \n Copyright (C) 2001 Mandrakesoft SA\n", $_version) ); my $style1 = new Gtk::Style; $style1->font(Gtk::Gdk::Font->fontset_load(_("-adobe-times-bold-r-normal--14-*-100-100-p-*-iso8859-*,*-r-*"))); $label->set_style($style1); -- cgit v1.2.1