[Rt-commit] r15012 - in rt/3.8/trunk: . t/i18n
falcone at bestpractical.com
falcone at bestpractical.com
Mon Aug 11 14:56:30 EDT 2008
Author: falcone
Date: Mon Aug 11 14:56:29 2008
New Revision: 15012
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/lib/RT/Interface/Web.pm
rt/3.8/trunk/t/i18n/default.t
Log:
r38130 at ketch: falcone | 2008-08-11 14:55:45 -0400
Fix the <title> portion of login by fixing loc() to act
more like 3.8.0 (and more like l) when we don't have a CurrentUser
RT-Ticket: 10909
RT-Status: resolved
RT-Action: Correspond
Modified: rt/3.8/trunk/lib/RT/Interface/Web.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/Interface/Web.pm (original)
+++ rt/3.8/trunk/lib/RT/Interface/Web.pm Mon Aug 11 14:56:29 2008
@@ -295,7 +295,7 @@
UNIVERSAL::can($session{'CurrentUser'}, 'loc')){
return($session{'CurrentUser'}->loc(@_));
}
- elsif ( my $u = eval { RT::CurrentUser->new($RT::SystemUser->Id) } ) {
+ elsif ( my $u = eval { RT::CurrentUser->new() } ) {
return ($u->loc(@_));
}
else {
Modified: rt/3.8/trunk/t/i18n/default.t
==============================================================================
--- rt/3.8/trunk/t/i18n/default.t (original)
+++ rt/3.8/trunk/t/i18n/default.t Mon Aug 11 14:56:29 2008
@@ -2,7 +2,7 @@
use strict;
use warnings;
-use Test::More tests => 7;
+use Test::More tests => 8;
use RT::Test;
my ($baseurl, $m) = RT::Test->started_ok;
@@ -15,10 +15,6 @@
$m->add_header('Accept-Language' => 'zh-tw,zh;q=0.8,en-gb;q=0.5,en;q=0.3');
$m->get_ok('/');
use utf8;
-use Devel::Peek;
Encode::_utf8_on($m->{content});
-TODO: {
- local $TODO = 'login page should be l10n';
- $m->title_is('登入');
-};
-
+$m->title_is('登入', 'Page title properly translated to chinese');
+$m->content_contains('密碼','Password properly translated');
More information about the Rt-commit
mailing list