From b2af005db21bd8fd068cb79b2ae700953128af2c Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 1 Jan 2012 18:29:30 -0600 Subject: Move PerlQt --- PerlTQt/t/ca_i18n.t | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 PerlTQt/t/ca_i18n.t (limited to 'PerlTQt/t/ca_i18n.t') diff --git a/PerlTQt/t/ca_i18n.t b/PerlTQt/t/ca_i18n.t new file mode 100644 index 0000000..1e71c29 --- /dev/null +++ b/PerlTQt/t/ca_i18n.t @@ -0,0 +1,23 @@ +BEGIN { print "1..1\n" } + +use TQt; + +$a = TQt::Application(); +$pb=TQt::PushButton("Foooo", undef); + +{ + use bytes; + $pb->setText( "élégant" ); + + $b = $pb->text(); + $b2 = TQt::Widget::tr("élégant"); +} + + +$c = $pb->text(); +$c2= TQt::Widget::tr("élégant"); + +{ + use bytes; + print +($b ne $c and $b2 ne $c2) ? "ok 1\n":"not ok\n"; +} -- cgit v1.2.1