[Jifty-commit] r2052 - jifty/trunk/lib/Jifty/Action

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Oct 22 18:17:57 EDT 2006


Author: audreyt
Date: Sun Oct 22 18:17:57 2006
New Revision: 2052

Modified:
   jifty/trunk/lib/Jifty/Action/Record.pm

Log:
* Even more l10n on Jifty::Action::Record.

Modified: jifty/trunk/lib/Jifty/Action/Record.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action/Record.pm	(original)
+++ jifty/trunk/lib/Jifty/Action/Record.pm	Sun Oct 22 18:17:57 2006
@@ -172,9 +172,8 @@
                 my $same = sub {
                     my ( $self, $value ) = @_;
                     if ( $value ne $self->argument_value($field) ) {
-                        return $self->validation_error( $field
-                                . '_confirm' =>
-                                "The passwords you typed didn't match each other."
+                        return $self->validation_error(
+                            ($field.'_confirm') => _("The passwords you typed didn't match each other")
                         );
                     } else {
                         return $self->validation_ok( $field . '_confirm' );
@@ -242,8 +241,7 @@
                         }
                         return (
                             $self->validation_error(
-                                $field => $message
-                                    || q{That doesn't look right, but I don't know why}
+                                $field => ($message || _("That doesn't look right, but I don't know why"))
                             )
                         );
                     }


More information about the Jifty-commit mailing list