[Jifty-commit] r2114 - in jifty/trunk: lib lib/Jifty
plugins/Login/lib/Jifty/Plugin/Login/Action
plugins/Login/lib/Jifty/Plugin/Login/Notification
plugins/Login/share/po plugins/Login/share/web/templates
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sat Nov 4 16:39:24 EST 2006
Author: yves
Date: Sat Nov 4 16:39:23 2006
New Revision: 2114
Added:
jifty/trunk/plugins/Login/share/po/en.po
jifty/trunk/plugins/Login/share/po/fr.po
jifty/trunk/share/po/fr.po
Modified:
jifty/trunk/lib/Jifty.pm
jifty/trunk/lib/Jifty/I18N.pm
jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/ConfirmEmail.pm
jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/Login.pm
jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/ResetLostPassword.pm
jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/SendAccountConfirmation.pm
jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/SendPasswordReminder.pm
jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/Signup.pm
jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Notification/ConfirmAddress.pm
jifty/trunk/plugins/Login/share/web/templates/login
jifty/trunk/plugins/Login/share/web/templates/logout
jifty/trunk/plugins/Login/share/web/templates/signup
Log:
plugins localization and french po files
Modified: jifty/trunk/lib/Jifty.pm
==============================================================================
--- jifty/trunk/lib/Jifty.pm (original)
+++ jifty/trunk/lib/Jifty.pm Sat Nov 4 16:39:23 2006
@@ -115,7 +115,6 @@
# Load the configuration. stash it in ->config
Jifty->config( Jifty::Config->new() );
- Jifty::I18N->refresh(); # can't do this before we have the config set up
# Now that we've loaded the configuration, we can remove the temporary
# Jifty::DBI::Record baseclass for records and insert our "real" baseclass,
@@ -145,6 +144,9 @@
$class_loader->require;
Jifty->plugins(@plugins);
+
+ Jifty::I18N->refresh(); # can't do this before we have the config set up and load plugins
+
Jifty->handler(Jifty::Handler->new());
Jifty->api(Jifty::API->new());
Modified: jifty/trunk/lib/Jifty/I18N.pm
==============================================================================
--- jifty/trunk/lib/Jifty/I18N.pm (original)
+++ jifty/trunk/lib/Jifty/I18N.pm Sat Nov 4 16:39:23 2006
@@ -6,6 +6,7 @@
use Locale::Maketext::Lexicon ();
use Email::MIME::ContentType;
use Encode::Guess qw(iso-8859-1);
+use File::ShareDir ':ALL';
=head1 NAME
@@ -35,13 +36,18 @@
my $self = {};
bless $self, $class;
+ my @import = (
+ 'Gettext',Jifty->config->framework('L10N')->{'PoDir'}. '/*.po',
+ 'Gettext',Jifty->config->framework('L10N')->{'DefaultPoDir'}. '/*.po'
+ );
+
+ foreach my $plugin (Jifty->plugins) {
+ push @import, 'Gettext';
+ push @import, module_dir(ref($plugin)).'/po/*.po';
+ };
+
Locale::Maketext::Lexicon->import(
- { '*' => [
- Gettext => Jifty->config->framework('L10N')->{'PoDir'}
- . '/*.po',
- Gettext => Jifty->config->framework('L10N')->{'DefaultPoDir'}
- . '/*.po',
- ],
+ { '*' => \@import,
_decode => 1,
_auto => 1,
_style => 'gettext',
Modified: jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/ConfirmEmail.pm
==============================================================================
--- jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/ConfirmEmail.pm (original)
+++ jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/ConfirmEmail.pm Sat Nov 4 16:39:23 2006
@@ -39,7 +39,7 @@
if ( $u->email_confirmed ) {
$self->result->error(
- email => "You have already confirmed your account." );
+ email => _("You have already confirmed your account.") );
$self->result->success(1); # but the action is still a success
}
@@ -49,7 +49,7 @@
$self->result->message( "Welcome to "
. Jifty->config->framework('ApplicationName') . ", "
. $u->name
- . ". Your email address has now been confirmed." );
+ . _(". Your email address has now been confirmed.") );
# Actually do the login thing.
Jifty->web->current_user( $CurrentUser->new( id => $u->id ) );
Modified: jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/Login.pm
==============================================================================
--- jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/Login.pm (original)
+++ jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/Login.pm Sat Nov 4 16:39:23 2006
@@ -20,21 +20,21 @@
return (
{
email => {
- label => 'Email address',
+ label => _('Email address'),
mandatory => 1,
ajax_validates => 1,
},
password => {
type => 'password',
- label => 'Password',
+ label => _('Password'),
mandatory => 1
},
remember => {
type => 'checkbox',
- label => 'Remember me?',
+ label => _('Remember me?'),
hints =>
- 'If you want, your browser can remember your login for you',
+ _('If you want, your browser can remember your login for you'),
default => 0,
}
}
@@ -57,13 +57,13 @@
unless ( $email =~ /\S\@\S/ ) {
return $self->validation_error(
- email => "That doesn't look like an email address." );
+ email => _("That doesn't look like an email address.") );
}
my $u = $LoginUser->new( current_user => $CurrentUser->superuser );
$u->load_by_cols( email => $email );
return $self->validation_error(
- email => 'No account has that email address.' )
+ email => _('No account has that email address.') )
unless ( $u->id );
return $self->validation_ok('email');
@@ -87,18 +87,18 @@
&& $user->password_is( $self->argument_value('password') ) )
{
$self->result->error(
- q{You may have mistyped your email address or password. Give it another shot?}
+ _('You may have mistyped your email address or password. Give it another shot?')
);
return;
}
unless ( $user->user_object->email_confirmed ) {
- $self->result->error(q{You haven't confirmed your account yet.});
+ $self->result->error(_("You haven't confirmed your account yet."));
return;
}
# Set up our login message
- $self->result->message( "Welcome back, " . $user->user_object->name . "." );
+ $self->result->message( _("Welcome back, ") . $user->user_object->name . "." );
# Actually do the signin thing.
Jifty->web->current_user($user);
Modified: jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/ResetLostPassword.pm
==============================================================================
--- jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/ResetLostPassword.pm (original)
+++ jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/ResetLostPassword.pm Sat Nov 4 16:39:23 2006
@@ -30,7 +30,7 @@
password_confirm => {
type => 'password',
sticky => 0,
- label => 'type your password again'
+ label => _('type your password again')
},
}
);
@@ -51,7 +51,7 @@
unless ($u) {
$self->result->error(
-"You don't exist. I'm not sure how this happened. Really, really sorry. Please email us!"
+_("You don't exist. I'm not sure how this happened. Really, really sorry. Please email us!")
);
}
@@ -65,18 +65,18 @@
and $pass eq $pass_c )
{
$self->result->error(
-"It looks like you didn't enter the same password into both boxes. Give it another shot?"
+_("It looks like you didn't enter the same password into both boxes. Give it another shot?")
);
return;
}
unless ( $u->set_password($pass) ) {
- $self->result->error("There was an error setting your password.");
+ $self->result->error(_("There was an error setting your password."));
return;
}
# Log in!
- $self->result->message("Your password has been reset. Welcome back.");
+ $self->result->message(_("Your password has been reset. Welcome back."));
Jifty->web->current_user( $CurrentUser->new( id => $u->id ) );
return 1;
Modified: jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/SendAccountConfirmation.pm
==============================================================================
--- jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/SendAccountConfirmation.pm (original)
+++ jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/SendAccountConfirmation.pm Sat Nov 4 16:39:23 2006
@@ -28,7 +28,7 @@
return (
{
address => {
- label => 'email address',
+ label => _('email address'),
mandatory => 1,
default_value => "",
},
@@ -64,18 +64,18 @@
my $CurrentUser = $self->CurrentUserClass();
return $self->validation_error(
- address => "That doesn't look like an email address." )
+ address => _("That doesn't look like an email address.") )
unless ( $email =~ /\S\@\S/ );
$self->user_object(
$LoginUser->new( current_user => $CurrentUser->superuser ) );
$self->user_object->load_by_cols( email => $email );
return $self->validation_error(
- address => "It doesn't look like there's an account by that name." )
+ address => _("It doesn't look like there's an account by that name.") )
unless ( $self->user_object->id );
return $self->validation_error(
- address => "It looks like you're already confirmed." )
+ address => _("It looks like you're already confirmed.") )
if ( $self->user_object->email_confirmed );
return $self->validation_ok('address');
@@ -91,7 +91,7 @@
my $self = shift;
Jifty::Plugin::Login::Notification::ConfirmAddress->new(
to => $self->user_object )->send;
- return $self->result->message("Confirmation resent.");
+ return $self->result->message(_("Confirmation resent."));
}
1;
Modified: jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/SendPasswordReminder.pm
==============================================================================
--- jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/SendPasswordReminder.pm (original)
+++ jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/SendPasswordReminder.pm Sat Nov 4 16:39:23 2006
@@ -10,6 +10,7 @@
package Jifty::Plugin::Login::Action::SendPasswordReminder;
use base qw/Jifty::Action Jifty::Plugin::Login/;
+
__PACKAGE__->mk_accessors(qw(user_object));
use Jifty::Plugin::Login::Model::User;
@@ -30,7 +31,7 @@
return (
{
address => {
- label => 'email address',
+ label => _('email address'),
mandatory => 1,
},
}
@@ -67,14 +68,14 @@
my $CurrentUser = $self->CurrentUserClass();
return $self->validation_error(
- address => "That doesn't look like an email address." )
+ address => _("That doesn't look like an email address.") )
unless ( $email =~ /\S\@\S/ );
$self->user_object(
$LoginUser->new( current_user => $CurrentUser->superuser ) );
$self->user_object->load_by_cols( email => $email );
return $self->validation_error(
- address => "It doesn't look like there's an account by that name." )
+ address => _("It doesn't look like there's an account by that name.") )
unless ( $self->user_object->id );
return $self->validation_ok('address');
@@ -91,7 +92,7 @@
Jifty::Plugin::Login::Notification::ConfirmLostPassword->new(
to => $self->user_object )->send;
return $self->result->message(
- "A link to reset your password has been sent to your email account.");
+ _("A link to reset your password has been sent to your email account."));
}
1;
Modified: jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/Signup.pm
==============================================================================
--- jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/Signup.pm (original)
+++ jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Action/Signup.pm Sat Nov 4 16:39:23 2006
@@ -41,7 +41,8 @@
for ( keys %$args ) { delete $args->{$_} unless ( $fields{$_} ); }
$args->{'email'}{'ajax_validates'} = 1;
- $args->{'password_confirm'}{'label'} = "Type that again?";
+ $args->{'password_confirm'}{'label'} = _("Type that again?");
+ $args->{'name'}{'label'} = _("Name");
return $args;
}
@@ -58,14 +59,14 @@
my $CurrentUser = $self->CurrentUserClass();
return $self->validation_error(
- email => "That doesn't look like an email address." )
+ email => _("That doesn't look like an email address.") )
unless ( $email =~ /\S\@\S/ );
my $u = $LoginUser->new( current_user => $CurrentUser->superuser );
$u->load_by_cols( email => $email );
if ( $u->id ) {
return $self->validation_error( email =>
-'It looks like you already have an account. Perhaps you want to <a href="/login">sign in</a> instead?'
+_('It looks like you already have an account. Perhaps you want to <a href="/login">sign in</a> instead?')
);
}
@@ -98,15 +99,15 @@
# Handle errors?
unless ( $record->id ) {
$self->result->error(
-"Something bad happened and we couldn't create your account. Try again later. We're really, really sorry."
+_("Something bad happened and we couldn't create your account. Try again later. We're really, really sorry.")
);
return;
}
- $self->result->message( "Welcome to "
+ $self->result->message( _("Welcome to ")
. Jifty->config->framework('ApplicationName') . ", "
. $record->name
- . ". We've sent a confirmation message to your email box." );
+ . _(". We've sent a confirmation message to your email box.") );
return 1;
}
Modified: jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Notification/ConfirmAddress.pm
==============================================================================
--- jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Notification/ConfirmAddress.pm (original)
+++ jifty/trunk/plugins/Login/lib/Jifty/Plugin/Login/Notification/ConfirmAddress.pm Sat Nov 4 16:39:23 2006
@@ -36,7 +36,7 @@
my $confirm_url = $letme->as_url;
my $appname = Jifty->config->framework('ApplicationName');
- $self->subject( "Welcome to $appname!" );
+ $self->subject( _("Welcome to ")."$appname!" );
$self->from( Jifty->config->framework('AdminEmail') );
$self->body(<<"END_BODY");
Added: jifty/trunk/plugins/Login/share/po/en.po
==============================================================================
--- (empty file)
+++ jifty/trunk/plugins/Login/share/po/en.po Sat Nov 4 16:39:23 2006
@@ -0,0 +1,144 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: lib/Jifty/Plugin/Login/Action/Signup.pm:110
+msgid ". We've sent a confirmation message to your email box."
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/ConfirmEmail.pm:52
+msgid ". Your email address has now been confirmed."
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/SendPasswordReminder.pm:94
+msgid "A link to reset your password has been sent to your email account."
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/SendAccountConfirmation.pm:94
+msgid "Confirmation resent."
+msgstr ""
+
+#: share/web/templates/login:15
+msgid "Don't have an account?"
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/Login.pm:23
+msgid "Email address"
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/Login.pm:37
+msgid "If you want, your browser can remember your login for you"
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/SendAccountConfirmation.pm:74 lib/Jifty/Plugin/Login/Action/SendPasswordReminder.pm:77
+msgid "It doesn't look like there's an account by that name."
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/Signup.pm:69
+msgid "It looks like you already have an account. Perhaps you want to <a href=\"/login\">sign in</a> instead?"
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/ResetLostPassword.pm:68
+msgid "It looks like you didn't enter the same password into both boxes. Give it another shot?"
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/SendAccountConfirmation.pm:78
+msgid "It looks like you're already confirmed."
+msgstr ""
+
+#: share/web/templates/login:13 share/web/templates/login:8
+msgid "Login"
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/Signup.pm:45
+msgid "Name"
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/Login.pm:66
+msgid "No account has that email address."
+msgstr ""
+
+#: share/web/templates/logout:2
+msgid "Ok, you're now logged out. Have a good day."
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/Login.pm:30
+msgid "Password"
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/Login.pm:35
+msgid "Remember me?"
+msgstr ""
+
+#: share/web/templates/signup:11 share/web/templates/signup:6
+msgid "Signup"
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/Signup.pm:102
+msgid "Something bad happened and we couldn't create your account. Try again later. We're really, really sorry."
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/Login.pm:60 lib/Jifty/Plugin/Login/Action/SendAccountConfirmation.pm:67 lib/Jifty/Plugin/Login/Action/SendPasswordReminder.pm:70 lib/Jifty/Plugin/Login/Action/Signup.pm:62
+msgid "That doesn't look like an email address."
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/ResetLostPassword.pm:74
+msgid "There was an error setting your password."
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/Signup.pm:44
+msgid "Type that again?"
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/Login.pm:101
+msgid "Welcome back, "
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/Signup.pm:107 lib/Jifty/Plugin/Login/Notification/ConfirmAddress.pm:39
+msgid "Welcome to "
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/ResetLostPassword.pm:54
+msgid "You don't exist. I'm not sure how this happened. Really, really sorry. Please email us!"
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/ConfirmEmail.pm:42
+msgid "You have already confirmed your account."
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/Login.pm:96
+msgid "You haven't confirmed your account yet."
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/Login.pm:90
+msgid "You may have mistyped your email address or password. Give it another shot?"
+msgstr ""
+
+#: share/web/templates/login:18
+msgid "You're already logged in."
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/ResetLostPassword.pm:79
+msgid "Your password has been reset. Welcome back."
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/SendAccountConfirmation.pm:31 lib/Jifty/Plugin/Login/Action/SendPasswordReminder.pm:33
+msgid "email address"
+msgstr ""
+
+#: lib/Jifty/Plugin/Login/Action/ResetLostPassword.pm:33
+msgid "type your password again"
+msgstr ""
Added: jifty/trunk/plugins/Login/share/po/fr.po
==============================================================================
--- (empty file)
+++ jifty/trunk/plugins/Login/share/po/fr.po Sat Nov 4 16:39:23 2006
@@ -0,0 +1,144 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# AGOSTINI Yves <agostini at univ-metz.fr>, 2006.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: 2006-10-24 15:00+ZONE\n"
+"PO-Revision-Date: 2006-10-25 10:36+ZONE\n"
+"Last-Translator: AGOSTINI Yves <agostini at univ-metz.fr>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: lib/Jifty/Plugin/Login/Action/Signup.pm:110
+msgid ". We've sent a confirmation message to your email box."
+msgstr ". Un message de confirmation vous a été envoyé par mail."
+
+#: lib/Jifty/Plugin/Login/Action/ConfirmEmail.pm:52
+msgid ". Your email address has now been confirmed."
+msgstr ". Votre adresse mail a été vérifiée."
+
+#: lib/Jifty/Plugin/Login/Action/SendPasswordReminder.pm:94
+msgid "A link to reset your password has been sent to your email account."
+msgstr "Un lien web pour ré-initialiser votre mot de passe vous a été envoyé par mail."
+
+#: lib/Jifty/Plugin/Login/Action/SendAccountConfirmation.pm:94
+msgid "Confirmation resent."
+msgstr "Demande de confirmation transmise."
+
+#: share/web/templates/login:15
+msgid "Don't have an account?"
+msgstr "Vous n'avez pas de compte?"
+
+#: lib/Jifty/Plugin/Login/Action/Login.pm:23
+msgid "Email address"
+msgstr "Adresse mail"
+
+#: lib/Jifty/Plugin/Login/Action/Login.pm:37
+msgid "If you want, your browser can remember your login for you"
+msgstr "Si vous le désirez, votre navigateur peut mémoriser votre identification"
+
+#: lib/Jifty/Plugin/Login/Action/SendAccountConfirmation.pm:74 lib/Jifty/Plugin/Login/Action/SendPasswordReminder.pm:77
+msgid "It doesn't look like there's an account by that name."
+msgstr "Ce compte ne semble pas exister."
+
+#: lib/Jifty/Plugin/Login/Action/Signup.pm:69
+msgid "It looks like you already have an account. Perhaps you want to <a href=\"/login\">sign in</a> instead?"
+msgstr "Vous semblez déjà avoir un compte. Vous désirez peut-être plutôt vous <a href=\"/login\">identifier</a> ?"
+
+#: lib/Jifty/Plugin/Login/Action/ResetLostPassword.pm:68
+msgid "It looks like you didn't enter the same password into both boxes. Give it another shot?"
+msgstr "Les mots de passe semblent différents. Ré-essayer ?"
+
+#: lib/Jifty/Plugin/Login/Action/SendAccountConfirmation.pm:78
+msgid "It looks like you're already confirmed."
+msgstr "Votre identifiant a déjà été vérifié."
+
+#: share/web/templates/login:13 share/web/templates/login:8
+msgid "Login"
+msgstr "Identification"
+
+#: lib/Jifty/Plugin/Login/Action/Signup.pm:45
+msgid "Name"
+msgstr "Nom"
+
+#: lib/Jifty/Plugin/Login/Action/Login.pm:66
+msgid "No account has that email address."
+msgstr "Aucun compte n'a cette adresse mail."
+
+#: share/web/templates/logout:2
+msgid "Ok, you're now logged out. Have a good day."
+msgstr "Vous êtes déconnecté. Au revoir."
+
+#: lib/Jifty/Plugin/Login/Action/Login.pm:30
+msgid "Password"
+msgstr "Mot de passe"
+
+#: lib/Jifty/Plugin/Login/Action/Login.pm:35
+msgid "Remember me?"
+msgstr "S'en rappeller ?"
+
+#: share/web/templates/signup:11 share/web/templates/signup:6
+msgid "Signup"
+msgstr "S'enregistrer"
+
+#: lib/Jifty/Plugin/Login/Action/Signup.pm:102
+msgid "Something bad happened and we couldn't create your account. Try again later. We're really, really sorry."
+msgstr "Votre compte ne peut actuellement être créé. Merci de réessayer ultérieurement."
+
+#: lib/Jifty/Plugin/Login/Action/Login.pm:60 lib/Jifty/Plugin/Login/Action/SendAccountConfirmation.pm:67 lib/Jifty/Plugin/Login/Action/SendPasswordReminder.pm:70 lib/Jifty/Plugin/Login/Action/Signup.pm:62
+msgid "That doesn't look like an email address."
+msgstr "Cela ne ressemble pas à une adresse mail."
+
+#: lib/Jifty/Plugin/Login/Action/ResetLostPassword.pm:74
+msgid "There was an error setting your password."
+msgstr "Erreur lors de la création de votre mot de passe."
+
+#: lib/Jifty/Plugin/Login/Action/Signup.pm:44
+msgid "Type that again?"
+msgstr "Confirmer"
+
+#: lib/Jifty/Plugin/Login/Action/Login.pm:101
+msgid "Welcome back, "
+msgstr "Bienvenue, "
+
+#: lib/Jifty/Plugin/Login/Action/Signup.pm:107 lib/Jifty/Plugin/Login/Notification/ConfirmAddress.pm:39
+msgid "Welcome to "
+msgstr "Bienvenue sur "
+
+#: lib/Jifty/Plugin/Login/Action/ResetLostPassword.pm:54
+msgid "You don't exist. I'm not sure how this happened. Really, really sorry. Please email us!"
+msgstr "Vous n'existez pas !!!"
+
+#: lib/Jifty/Plugin/Login/Action/ConfirmEmail.pm:42
+msgid "You have already confirmed your account."
+msgstr "Vous avez déjà confirmé votre compte."
+
+#: lib/Jifty/Plugin/Login/Action/Login.pm:96
+msgid "You haven't confirmed your account yet."
+msgstr "Vous n'avez pas encore confirmé votre compte."
+
+#: lib/Jifty/Plugin/Login/Action/Login.pm:90
+msgid "You may have mistyped your email address or password. Give it another shot?"
+msgstr "Erreur dans votre mail ou votre mot de passe. Ré-essayer?"
+
+#: share/web/templates/login:18
+msgid "You're already logged in."
+msgstr "Vous êtes déjà connecté."
+
+#: lib/Jifty/Plugin/Login/Action/ResetLostPassword.pm:79
+msgid "Your password has been reset. Welcome back."
+msgstr "Votre mot de passe a été ré-initialisé. Bon retour."
+
+#: lib/Jifty/Plugin/Login/Action/SendAccountConfirmation.pm:31 lib/Jifty/Plugin/Login/Action/SendPasswordReminder.pm:33
+msgid "email address"
+msgstr "adresse mail"
+
+#: lib/Jifty/Plugin/Login/Action/ResetLostPassword.pm:33
+msgid "type your password again"
+msgstr "confirmez votre mot de passe"
Modified: jifty/trunk/plugins/Login/share/web/templates/login
==============================================================================
--- jifty/trunk/plugins/Login/share/web/templates/login (original)
+++ jifty/trunk/plugins/Login/share/web/templates/login Sat Nov 4 16:39:23 2006
@@ -5,16 +5,16 @@
<&|/_elements/wrapper, title => 'Login' &>
% if (not Jifty->web->current_user->id) {
-<h2>Login</h2>
+<h2><% _('Login') %></h2>
<% Jifty->web->form->start(call => $next, name => "loginbox") %>
<% $action->form_field('email') %>
<% $action->form_field('password') %>
<% $action->form_field('remember') %>
-<% Jifty->web->form->submit(label => 'Login', submit => $action) %>
+<% Jifty->web->form->submit(label => _('Login'), submit => $action) %>
<% Jifty->web->form->end %>
-<% Jifty->web->tangent( label => q{Don't have an account?}, url => '/signup' )%>
+<% Jifty->web->tangent( label => _("Don't have an account?"), url => '/signup' )%>
% }
% else {
-You're already logged in.
+<% _("You're already logged in.") %>
% }
</&>
Modified: jifty/trunk/plugins/Login/share/web/templates/logout
==============================================================================
--- jifty/trunk/plugins/Login/share/web/templates/logout (original)
+++ jifty/trunk/plugins/Login/share/web/templates/logout Sat Nov 4 16:39:23 2006
@@ -1,3 +1,3 @@
<&| /_elements/wrapper, title => "Logged out" &>
-<p>Ok, you're now logged out. Have a good day.</p>
+<p><% _("Ok, you're now logged out. Have a good day.") %></p>
</&>
Modified: jifty/trunk/plugins/Login/share/web/templates/signup
==============================================================================
--- jifty/trunk/plugins/Login/share/web/templates/signup (original)
+++ jifty/trunk/plugins/Login/share/web/templates/signup Sat Nov 4 16:39:23 2006
@@ -3,11 +3,11 @@
$next
</%args>
<&|/_elements/wrapper, title => 'Signup' &>
-<h2>Signup</h2>
+<h2><% _("Signup") %></h2>
<% Jifty->web->form->start(call => $next, name => "signupbox") %>
% foreach my $key ($action->argument_names) {
<% $action->form_field($key) %>
% }
-<% Jifty->web->form->submit(label => 'Signup', submit => $action) %>
+<% Jifty->web->form->submit(label => _('Signup'), submit => $action) %>
<% Jifty->web->form->end %>
</&>
Added: jifty/trunk/share/po/fr.po
==============================================================================
--- (empty file)
+++ jifty/trunk/share/po/fr.po Sat Nov 4 16:39:23 2006
@@ -0,0 +1,166 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# AGOSTINI Yves <agostini at univ-metz.fr>, 2006.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: 2006-10-24 18:00+ZONE\n"
+"PO-Revision-Date: 2006-11-02 09:34+ZONE\n"
+"Last-Translator: AGOSTINI Yves <agostini at univ-metz.fr>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO8859-15\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: lib/Jifty/Web.pm:583
+msgid " $self->response->results "
+msgstr ""
+
+#: share/web/templates/__jifty/halo:119
+#. ($_->[3])
+msgid "%1 seconds"
+msgstr "%1 secondes"
+
+#: share/web/templates/__jifty/admin/index.html:19
+msgid "Actions"
+msgstr ""
+
+#: share/web/templates/_elements/wrapper:11
+msgid "Administration mode is enabled."
+msgstr "Mode d'administration activé."
+
+#: share/web/templates/_elements/wrapper:11
+msgid "Alert"
+msgstr "Alerte"
+
+#: lib/Jifty/Action/Record/Create.pm:82
+msgid "An error occurred. Try again later"
+msgstr "Erreur. Ré-essayez plus tard"
+
+#: share/web/templates/helpers/calendar.html:4
+msgid "Close window"
+msgstr "Fermer la fenêtre"
+
+#: lib/Jifty/Action/Record/Create.pm:81
+#. (ref($record)
+msgid "Create of %1 failed: %2"
+msgstr "La création de %1 a échoué: %2"
+
+#: lib/Jifty/Action/Record/Create.pm:105
+msgid "Created"
+msgstr "Créé"
+
+#: share/web/templates/__jifty/admin/index.html:3
+msgid "Database Administration"
+msgstr "Administration de la Base de Données"
+
+#: lib/Jifty/Action/Record/Delete.pm:76
+msgid "Deleted"
+msgstr "Effacé"
+
+#: lib/Jifty/Mason/Halo.pm:104
+#. ($comp_name)
+msgid "Edit %1"
+msgstr "Editer %1"
+
+#: share/web/templates/dhandler:7
+msgid "Go back home..."
+msgstr "Retour..."
+
+#: share/web/templates/_elements/sidebar:5
+#. ($u->$method()
+msgid "Hiya, %1."
+msgstr "Bonjour, %1"
+
+#: share/web/templates/__jifty/online_docs/toc.html:6
+msgid "Jifty Developer Documentation Online"
+msgstr ""
+
+#: share/web/templates/__jifty/online_docs/content.html:6
+msgid "Jifty Pod Online"
+msgstr ""
+
+#: share/web/templates/_elements/wrapper:18
+msgid "Loading..."
+msgstr "Chargement..."
+
+#: share/web/templates/__jifty/admin/index.html:9
+msgid "Models"
+msgstr "Modèles"
+
+#: lib/Jifty/Web.pm:276
+msgid "No request to handle"
+msgstr "Aucune requête à traiter"
+
+#: share/web/templates/__jifty/online_docs/index.html:5
+msgid "Online Documentation"
+msgstr "Documentation en ligne"
+
+#: lib/Jifty/Record.pm:240 lib/Jifty/Record.pm:316 lib/Jifty/Record.pm:60
+msgid "Permission denied"
+msgstr "Autorisation refusée"
+
+#:
+msgid "Record created"
+msgstr "Enregistrement créé"
+
+#: share/web/templates/__jifty/halo:111
+msgid "SQL Statements"
+msgstr ""
+
+#: share/web/templates/__jifty/online_docs/content.html:50
+msgid "Schema"
+msgstr "Schéma"
+
+#: share/web/templates/dhandler:1
+msgid "Something's not quite right"
+msgstr "Problème"
+
+#: share/web/templates/__jifty/online_docs/index.html:16 share/web/templates/__jifty/online_docs/index.html:18
+msgid "Table of Contents"
+msgstr "Table des matières"
+
+#: lib/Jifty/Action.pm:854
+msgid "That doesn't look like a correct value"
+msgstr "Valeur incorecte"
+
+#: lib/Jifty/Action/Record.pm:249
+msgid "That doesn't look right, but I don't know why"
+msgstr "Problème"
+
+#: lib/Jifty/Action/Record.pm:181
+msgid "The passwords you typed didn't match each other"
+msgstr "Les mots de passe tapés ne sont pas identiques"
+
+#: lib/Jifty/Web.pm:339
+msgid "There was an error completing the request. Please try again later."
+msgstr "Problème lors de l'exécution de cette requête. Ré-essayez plus tard."
+
+#: share/web/templates/__jifty/admin/index.html:5
+msgid "This console lets you manage the records in your Jifty database. Below, you should see a list of all your database tables. Feel free to go through and add, delete or modify records."
+msgstr "Cette page vous permet de gérer vos enregistrements dans la base. Vous trouverez ci-dessous la listes des tables. Vous pouvez ajouter, effacer ou modifier les enregistements."
+
+#: lib/Jifty/Action/Record/Update.pm:156
+msgid "Updated"
+msgstr "Modification"
+
+#: share/web/templates/index.html:1
+msgid "Welcome to your new Jifty application"
+msgstr "Bienvenue sur votre nouvelle application Jifty"
+
+#: share/web/templates/dhandler:5
+msgid "You got to a page that we don't think exists. Anyway, the software has logged this error. Sorry about this."
+msgstr "Cette page n'existe pas."
+
+#: lib/Jifty/Action.pm:841
+msgid "You need to fill in this field"
+msgstr "Information obligatoire"
+
+#: share/web/templates/index.html:3
+#. ('http://hdl.loc.gov/loc.pnp/cph.3c13461')
+msgid "You said you wanted a pony. (Source %1)"
+msgstr ""
+
More information about the Jifty-commit
mailing list