[Jifty-commit] r837 - jifty/trunk/lib/Jifty/Web/Form

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Tue Apr 11 21:14:32 EDT 2006


Author: autrijus
Date: Tue Apr 11 21:14:32 2006
New Revision: 837

Modified:
   jifty/trunk/lib/Jifty/Web/Form/Link.pm

Log:
* J::Web::Form::Link - do not blindly localize the "label" field, as
  the label may be from DB that does not want to be localized.

  The burden of localization should be on the link's caller.

Modified: jifty/trunk/lib/Jifty/Web/Form/Link.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Form/Link.pm	(original)
+++ jifty/trunk/lib/Jifty/Web/Form/Link.pm	Tue Apr 11 21:14:32 2006
@@ -104,7 +104,7 @@
     Jifty->web->out(qq( title="@{[$self->tooltip]}")) if $tooltip;
     Jifty->web->out(qq( href="@{[$self->url]}"));
     Jifty->web->out( $self->javascript() );
-    Jifty->web->out(qq(>@{[_($label)]}</a>));
+    Jifty->web->out(qq(>$label</a>));
     $self->render_key_binding();
 
     return ('');


More information about the Jifty-commit mailing list