diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-27 16:18:37 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-27 16:18:37 +0000 |
commit | 12835fd4395e8b498776eaf26b086edd490a438a (patch) | |
tree | b013c60f05ef20c6acb9990c147e53edf15dfad1 | |
parent | b6b023323cfd4dd5a7f02ae7a92ca45928d79704 (diff) | |
download | rpmdrake-12835fd4395e8b498776eaf26b086edd490a438a.tar rpmdrake-12835fd4395e8b498776eaf26b086edd490a438a.tar.gz rpmdrake-12835fd4395e8b498776eaf26b086edd490a438a.tar.bz2 rpmdrake-12835fd4395e8b498776eaf26b086edd490a438a.tar.xz rpmdrake-12835fd4395e8b498776eaf26b086edd490a438a.zip |
have mandrake choices categories translated
-rwxr-xr-x | rpmdrake | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |