summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/harddrake2
diff options
context:
space:
mode:
authorPablo Saratxaga <pablo@mandriva.com>2003-02-05 18:58:29 +0000
committerPablo Saratxaga <pablo@mandriva.com>2003-02-05 18:58:29 +0000
commit2b21fab8487c7fab2b6b73afe33fb924d8ef9118 (patch)
tree1785485861c44ace43ed72128b007d4a714c0c3f /perl-install/standalone/harddrake2
parent2302833888a72557ef6c9be2a805a19a7b234f9d (diff)
downloaddrakx-2b21fab8487c7fab2b6b73afe33fb924d8ef9118.tar
drakx-2b21fab8487c7fab2b6b73afe33fb924d8ef9118.tar.gz
drakx-2b21fab8487c7fab2b6b73afe33fb924d8ef9118.tar.bz2
drakx-2b21fab8487c7fab2b6b73afe33fb924d8ef9118.tar.xz
drakx-2b21fab8487c7fab2b6b73afe33fb924d8ef9118.zip
small i18n improvement
Diffstat (limited to 'perl-install/standalone/harddrake2')
-rwxr-xr-xperl-install/standalone/harddrake28
1 files changed, 7 insertions, 1 deletions
diff --git a/perl-install/standalone/harddrake2 b/perl-install/standalone/harddrake2
index f9c1dc22f..b3b2e2728 100755
--- a/perl-install/standalone/harddrake2
+++ b/perl-install/standalone/harddrake2
@@ -180,7 +180,13 @@ my $selection = gtksignal_connect($tree->get_selection(), 'changed' => sub {
if ($current_device) {
gtktext_insert($text, [ map {
- if_($fields{$_}[0], [ $fields{$_}[0] . ": ", { 'foreground' => 'royalblue3', 'weight' => Gtk2::Pango->WEIGHT_BOLD } ],
+ # The U+200E character is to force LTR display, as what
+ # what follows the colon is always in LTR (device names,
+ # paths, etc), this ensures proper displaying of names
+ # like /dev/fd0 (otherwise it gets 'dev/fd0/').
+ # it must come *after* the space, as the space must follow
+ # the colon following the direction of writting.
+ if_($fields{$_}[0], [ $fields{$_}[0] . ": \x{200e}", { 'foreground' => 'royalblue3', 'weight' => Gtk2::Pango->WEIGHT_BOLD } ],
[ "$current_device->{$_}\n\n", { 'foreground' => ($_ eq 'driver' && $current_device->{$_} =~ /^(unknown|Bad:)/ ? 'indian red' : 'black') } ])
} sort keys %$current_device ]);