aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gui.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-17 14:11:59 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-17 14:11:59 +0000
commitaecc2320ee642ed86c6ae7a726767f11b71d74b0 (patch)
tree92b29600d12ca702f342f75b6eb4148827d0341f /Rpmdrake/gui.pm
parentd27f80060e993d56e5d79f5eaf44c31660b05967 (diff)
downloadrpmdrake-aecc2320ee642ed86c6ae7a726767f11b71d74b0.tar
rpmdrake-aecc2320ee642ed86c6ae7a726767f11b71d74b0.tar.gz
rpmdrake-aecc2320ee642ed86c6ae7a726767f11b71d74b0.tar.bz2
rpmdrake-aecc2320ee642ed86c6ae7a726767f11b71d74b0.tar.xz
rpmdrake-aecc2320ee642ed86c6ae7a726767f11b71d74b0.zip
(format_pkg_simplifiedinfo) force align "name - summary" to the right
with RTL languages (#33603) because package name is always latin
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r--Rpmdrake/gui.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 2669ea34..ab164ab9 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -86,7 +86,10 @@ sub format_pkg_simplifiedinfo {
# discard update fields if not matching:
my $is_update = ($pkgs->{$key}{pkg}->flag_upgrade && $update_descr && $update_descr->{pre});
my $summary = get_summary($key);
- my $s = ugtk2::markup_to_TextView_format(join("\n", format_header(join(' - ', $name, $summary)) .
+ my $s = ugtk2::markup_to_TextView_format(
+ # force align "name - summary" to the right with RTL languages (#33603):
+ (lang::text_direction_rtl() ? "\x{200f}" : ()) .
+ join("\n", format_header(join(' - ', $name, $summary)) .
# workaround gtk+ bug where GtkTextView wronly limit embedded widget size to bigger line's width (#25533):
"\x{200b} \x{feff}" . ' ' x 120,
if_($is_update, # is it an update?