Revision: 394
Author: maxpowel
Date: Sat Sep 25 08:20:10 2010
Log: Mensaje de contraseña incorrecta traducido
http://code.google.com/p/wixet/source/detail?r=394
Modified:
/trunk/apps/core/i18n/es/messages.xml
/trunk/apps/ui/i18n/es/messages.xml
/trunk/apps/ui/modules/sfGuardAuth/actions/actions.class.php
/trunk/apps/ui/modules/sfGuardAuth/templates/signinSuccess.php
=======================================
--- /trunk/apps/core/i18n/es/messages.xml Thu Sep 23 14:46:24 2010
+++ /trunk/apps/core/i18n/es/messages.xml Sat Sep 25 08:20:10 2010
@@ -100,7 +100,6 @@
<source>Complete your sign up in Wixet</source>
<target>Completa tu registro en Wixet</target>
</trans-unit>
-
</body>
</file>
</xliff>
=======================================
--- /trunk/apps/ui/i18n/es/messages.xml Tue Sep 7 08:02:44 2010
+++ /trunk/apps/ui/i18n/es/messages.xml Sat Sep 25 08:20:10 2010
@@ -400,6 +400,10 @@
<source>More than %1% %2% ago</source>
<target>Hace mas de %1% %2%</target>
</trans-unit>
+ <trans-unit id="100">
+ <source>The username and/or password is invalid</source>
+ <target>El usuario y/o la contraseña es incorrecta</target>
+ </trans-unit>
</body>
</file>
</xliff>
=======================================
--- /trunk/apps/ui/modules/sfGuardAuth/actions/actions.class.php Fri Sep 17
09:09:57 2010
+++ /trunk/apps/ui/modules/sfGuardAuth/actions/actions.class.php Sat Sep 25
08:20:10 2010
@@ -5,6 +5,8 @@
{
public function executeSignin($request)
{
+ $languages = $this->getRequest()->getLanguages();
+ $this->getUser()->setCulture($languages[0]);
/*if($request->isXmlHttpRequest()){
return sfView::NONE;
}*/
@@ -41,6 +43,7 @@
{
$this->error = true;
$this->message = $this->form->getErrorSchema();
+ //$this->message = __("Username and/or password is invalid");
//$message = $this->form->getErrorSchema();
}
}
=======================================
--- /trunk/apps/ui/modules/sfGuardAuth/templates/signinSuccess.php Fri Sep
17 09:09:57 2010
+++ /trunk/apps/ui/modules/sfGuardAuth/templates/signinSuccess.php Sat Sep
25 08:20:10 2010
@@ -2,7 +2,7 @@
if(isset($error))
{
$json["error"] = $error;
- $json["message"] = "".$sf_data->getRaw('message');
+ $json["message"] = __("The username and/or password is invalid");
echo json_encode($json);
}else{
?>