diff options
author | ivan <ivan> | 2009-12-31 13:16:41 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-12-31 13:16:41 +0000 |
commit | b4b0c7e72d7eaee2fbfc7022022c9698323203dd (patch) | |
tree | ba4cd21399e412c32fe3737eaa8478e3271509f9 /rt/t/api/i18n.t | |
parent | 2dfda73eeb3eae2d4f894099754794ef07d060dd (diff) |
import rt 3.8.7
Diffstat (limited to 'rt/t/api/i18n.t')
-rw-r--r-- | rt/t/api/i18n.t | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/rt/t/api/i18n.t b/rt/t/api/i18n.t new file mode 100644 index 000000000..17d71b761 --- /dev/null +++ b/rt/t/api/i18n.t @@ -0,0 +1,30 @@ + +use strict; +use warnings; +use RT; +use RT::Test tests => 9; + + +{ + +use_ok ('RT::I18N'); +ok(RT::I18N->Init); + + +} + +{ + +ok(my $chinese = RT::I18N->get_handle('zh_tw')); +ok(UNIVERSAL::can($chinese, 'maketext')); +like($chinese->maketext('__Content-Type') , qr/utf-8/i, "Found the utf-8 charset for traditional chinese in the string ".$chinese->maketext('__Content-Type')); +is($chinese->encoding , 'utf-8', "The encoding is 'utf-8' -".$chinese->encoding); + +ok(my $en = RT::I18N->get_handle('en')); +ok(UNIVERSAL::can($en, 'maketext')); +is($en->encoding , 'utf-8', "The encoding ".$en->encoding." is 'utf-8'"); + + +} + +1; |