summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig/resolution_and_depth.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-11-06 13:20:21 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-11-06 13:20:21 +0000
commit9091151d546e5d749b47e2efce3ff651784fcc8c (patch)
tree2be2bec5e60f21ffe431eeef74095896ae5efe7f /perl-install/Xconfig/resolution_and_depth.pm
parent68a1a2a6f2b9fdb1fd0c833cd9b3d8dcb9d8fd5c (diff)
downloaddrakx-9091151d546e5d749b47e2efce3ff651784fcc8c.tar
drakx-9091151d546e5d749b47e2efce3ff651784fcc8c.tar.gz
drakx-9091151d546e5d749b47e2efce3ff651784fcc8c.tar.bz2
drakx-9091151d546e5d749b47e2efce3ff651784fcc8c.tar.xz
drakx-9091151d546e5d749b47e2efce3ff651784fcc8c.zip
replace "_" with "N" and "__" with "N_"
rationale: - currently, we use _("xxx") as a shorthand for gettext("xxx"). It also used to call xgettext with --keyword=_ - alas, function &_ is global and not by package (notice esp. that _ is not exported in common.pm) - this lead to big ugly pb with packages defining their own &_, overriding common.pm's &_ - a fix is to set @::textdomains to add a new domain (the default being "libDrakX") but relying on the global "_" is still dangerous!
Diffstat (limited to 'perl-install/Xconfig/resolution_and_depth.pm')
-rw-r--r--perl-install/Xconfig/resolution_and_depth.pm22
1 files changed, 11 insertions, 11 deletions
diff --git a/perl-install/Xconfig/resolution_and_depth.pm b/perl-install/Xconfig/resolution_and_depth.pm
index 2842ad121..c39704d9a 100644
--- a/perl-install/Xconfig/resolution_and_depth.pm
+++ b/perl-install/Xconfig/resolution_and_depth.pm
@@ -9,11 +9,11 @@ use common;
our %depth2text = (
- 8 => __("256 colors (8 bits)"),
- 15 => __("32 thousand colors (15 bits)"),
- 16 => __("65 thousand colors (16 bits)"),
- 24 => __("16 million colors (24 bits)"),
- 32 => __("4 billion colors (32 bits)"),
+ 8 => N_("256 colors (8 bits)"),
+ 15 => N_("32 thousand colors (15 bits)"),
+ 16 => N_("65 thousand colors (16 bits)"),
+ 24 => N_("16 million colors (24 bits)"),
+ 32 => N_("4 billion colors (32 bits)"),
);
our @depths_available = ikeys(%depth2text);
@@ -104,7 +104,7 @@ sub allowed {
push @resolution_and_depth,
map {
my $Depth = $_;
- map { /(\d+)x(\d+)/; { X => $1, Y => $2, Depth => $Depth } } @resolutions;
+ map { m/(\d+)x(\d+)/; { X => $1, Y => $2, Depth => $Depth } } @resolutions;
} @depths;
}
$prefered_depth, @resolution_and_depth;
@@ -127,7 +127,7 @@ sub choose {
my ($in, $default_resolution, @resolutions) = @_;
my $resolution = $default_resolution || {};
- $in->ask_from(_("Resolutions"), "",
+ $in->ask_from(N("Resolutions"), "",
[ {
val => \$resolution, type => 'list', sort => 0,
list => [ sort { $a->{X} <=> $b->{X} } @resolutions ],
@@ -207,7 +207,7 @@ sub choose_gtk {
require my_gtk;
my_gtk->import(qw(:helpers :wrappers));
- my $W = my_gtk->new(_("Resolution"));
+ my $W = my_gtk->new(N("Resolution"));
my %monitor_images_x_res = do {
my @l = qw(640 800 1024 1152 1280 1400 1600 1920 2048);
@@ -252,8 +252,8 @@ sub choose_gtk {
$set_chosen_x_res->($chosen_x_res, $chosen_y_res);
gtkadd($W->{window},
- gtkpack_($W->create_box_with_title(_("Choose the resolution and the color depth"),
- if_($card->{BoardName}, "(" . _("Graphics card: %s", $card->{BoardName}) . ")"),
+ gtkpack_($W->create_box_with_title(N("Choose the resolution and the color depth"),
+ if_($card->{BoardName}, "(" . N("Graphics card: %s", $card->{BoardName}) . ")"),
),
1, gtkpack2(new Gtk::VBox(0,0),
gtkpack2__(new Gtk::VBox(0, 15),
@@ -266,7 +266,7 @@ sub choose_gtk {
),
),
),
- 0, gtkadd($W->create_okcancel(_("Ok"), _("Cancel"))),
+ 0, gtkadd($W->create_okcancel(N("Ok"), N("Cancel"))),
));
$depth_combo->disable_activate;
$depth_combo->set_use_arrows_always(1);