diff options
Diffstat (limited to 'PerlTQt/t/ca_i18n.t')
-rw-r--r-- | PerlTQt/t/ca_i18n.t | 23 |
1 files changed, 23 insertions, 0 deletions
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"; +} |