From 12835fd4395e8b498776eaf26b086edd490a438a Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 27 Aug 2002 16:18:37 +0000 Subject: have mandrake choices categories translated --- rpmdrake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpmdrake b/rpmdrake index 86fa4d91..cf516d23 100755 --- a/rpmdrake +++ b/rpmdrake @@ -85,13 +85,13 @@ sub parse_compssUsers_flat { /^\s*$/ and next; if (/^\S.*/) { if (/^(.+?) \[icon=.+?\] \[path=(.+?)\]/) { - $category = "$2|$1"; + $category = translate($2).'|'.translate($1); } else { print STDERR "Malformed category in compssUsers.flat: <$_>\n"; } } elsif (/^\t(\d) (\S+)\s*$/) { $category or print STDERR "Entry without category <$_>\n"; - push @{$compssUsers{$2}}, $category . ($1 <= 3 ? '|Other' : ''); + push @{$compssUsers{$2}}, $category . ($1 <= 3 ? '|'._("Other") : ''); } } \%compssUsers; @@ -425,7 +425,7 @@ or you already installed all of them.")); $tree = Gtk::CTree->new(3, 0); $tree->set_selection_mode('browse'); $tree->set_column_auto_resize($_, 1) foreach 0..2; - $typical_width = $tree->get_style->font->string_width("Develop xmms-more-vis-plugins-1.6.0.0-2mdk"); + $typical_width = $tree->get_style->font->string_width(translate("Graphical Environment")."xmms-more-vis-plugins"); $typical_width > 500 and $typical_width = 500; #- try to not being crazy with a too large value $typical_width < 150 and $typical_width = 150; $tree->set_column_max_width(0, $typical_width); -- cgit v1.2.1