summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-06-06 10:28:46 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-06-06 10:28:46 +0000
commit9a272db2227fac1037cc2c52aa420036797a5e28 (patch)
treea21bb573f42677971a3aaf6300f6037a812a3398 /perl-install/ugtk2.pm
parent5bf0bd6b8306216de14b62130108420733ab0d6c (diff)
downloaddrakx-9a272db2227fac1037cc2c52aa420036797a5e28.tar
drakx-9a272db2227fac1037cc2c52aa420036797a5e28.tar.gz
drakx-9a272db2227fac1037cc2c52aa420036797a5e28.tar.bz2
drakx-9a272db2227fac1037cc2c52aa420036797a5e28.tar.xz
drakx-9a272db2227fac1037cc2c52aa420036797a5e28.zip
ensure N() is not called before ugtk2 is initialised, otherwise
the gettext is not forced to utf8
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r--perl-install/ugtk2.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 154b1058e..01856795d 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -37,6 +37,8 @@ use Gtk2;
unless ($::no_ugtk_init) {
!check_for_xserver() and die "Cannot be run in console mode.\n";
+ $::one_message_has_been_translated and warn("N() was called from $::one_message_has_been_translated BEFORE gtk2 initialisation, replace it with a N_() AND a translate() later.\n"), c::_exit(1);
+
Gtk2->init(\@ARGV);
c::bind_textdomain_codeset($_, 'UTF8') foreach 'libDrakX', @::textdomains;
$::need_utf8_i18n = 1;