isocial-svn Mailing List for isocial (Page 12)
Status: Pre-Alpha
Brought to you by:
aguidrevitch
You can subscribe to this list here.
2008 |
Jan
|
Feb
(11) |
Mar
(80) |
Apr
(22) |
May
(90) |
Jun
(28) |
Jul
(33) |
Aug
(12) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
---|
From: <di...@us...> - 2008-02-26 10:07:50
|
Revision: 29 http://isocial.svn.sourceforge.net/isocial/?rev=29&view=rev Author: dim0s77 Date: 2008-02-26 02:07:55 -0800 (Tue, 26 Feb 2008) Log Message: ----------- minor fixes in translations Modified Paths: -------------- app/locales/user/ru.php Modified: app/locales/user/ru.php =================================================================== --- app/locales/user/ru.php 2008-02-25 18:13:59 UTC (rev 28) +++ app/locales/user/ru.php 2008-02-26 10:07:55 UTC (rev 29) @@ -7,15 +7,15 @@ $dictionary['Sign Up for iSocial'] = 'Регистрация в iSocial'; $dictionary['Sign Up'] = 'Регистрация'; $dictionary['Incorrect email/password combination'] = 'Неправильное имя и/или пароль'; -$dictionary['Passwords are case sensitive. Please check your CAPS lock key'] = 'Пароли чувствительны к регистру. Проверьте состояние клавиши Caps Lock'; +$dictionary['Passwords are case sensitive. Please check your CAPS lock key'] = 'Пароли чувствительны к регистру. Проверьте состояние индикатора Caps Lock'; $dictionary['Name'] = 'Имя'; $dictionary['Confirm password'] = 'Подтвердите пароль'; $dictionary['Name is missing'] = 'Не указано имя'; $dictionary['please enter the name'] = 'это поле не может быть пустым'; -$dictionary['Incorrect email'] = 'Неправильный Email адрес'; -$dictionary['please enter the correct email'] = 'введите корректный email адрес, например va...@pu...'; -$dictionary['Email is taken'] = 'Пользователь с таким Email адресом уже зарегистрирован'; -$dictionary['please enter other email'] = 'введите другой email адрес'; +$dictionary['Incorrect email'] = 'Неверный e-mail адрес'; +$dictionary['please enter the correct email'] = 'введите корректный e-mail адрес, например va...@pu...'; +$dictionary['Email is taken'] = 'Пользователь с таким e-mail адресом уже зарегистрирован'; +$dictionary['please enter other email'] = 'введите другой e-mail адрес'; $dictionary['Password is missing'] = 'Не указан пароль'; $dictionary['please enter the password'] = 'это поле не может быть пустым'; $dictionary['Password confirmation is missing'] = 'Повторите пароль'; @@ -23,22 +23,22 @@ $dictionary['Passwords don\'t match'] = 'Пароли не совпадают'; $dictionary['please reenter both passwords'] = 'убедитесь, что оба пароля совпадают'; $dictionary['Thank you for registration'] = 'Спасибо за регистрацию'; -$dictionary['Everyone Can Join'] = 'Любой может присоединиться'; -$dictionary['Last step'] = 'Предыдущий шаг'; -$dictionary['Check please your e-mail and click on confirmation link'] = 'Проверьте пожалуйста ваш e-mail и подтвердите регистрацию переходом по ссылке'; -$dictionary['go to login'] = 'Войти'; +$dictionary['Everyone Can Join'] = 'Присоединиться может каждый'; +$dictionary['Last step'] = 'Последний шаг'; +$dictionary['Check please your e-mail and click on confirmation link'] = 'Проверьте, пожалуйста, Ваш e-mail и подтвердите регистрацию переходом по ссылке'; +$dictionary['go to login'] = 'войти'; $dictionary['Confirmation'] = 'Подтверждение'; -$dictionary['Thank you for signing up on ISocial'] = 'Спасибо за регистрация в ISocial'; +$dictionary['Thank you for signing up on ISocial'] = 'Спасибо за регистрация в iSocial'; $dictionary['With best regards'] = 'С наилучшими пожеланиями'; -$dictionary['The ISocial Team'] = 'команда ISocial'; +$dictionary['The ISocial Team'] = 'команда iSocial'; $dictionary['Hey'] = 'Привет'; -$dictionary['ISocial confirm registration'] = 'Ратифицирование регистрации в ISocial'; -$dictionary['You recently registered for ISocial using this e-mail address.'] = 'Вы только что зарегистрировались в ISocial используя этот e-mail адрес'; +$dictionary['ISocial confirm registration'] = 'Подтверждение регистрации в iSocial'; +$dictionary['You recently registered for ISocial using this e-mail address.'] = 'Вы только что зарегистрировались в iSocial используя этот e-mail адрес'; $dictionary['To complete your registration, follow the link below'] = 'Для завершения регистрации, перейдите по ссылке ниже'; -$dictionary['If clicking on the link doesn\'t work, try copying and pasting it into your browser'] = 'Если переход по ссылке не работает, попробуйте скопировать ее и вставить в адресную строку вашего бровзера'; -$dictionary['If you did not register for ISocial, please disregard this message'] = 'Если вы не регистрировались в ISocial, проигнорируйте пожалуйста это сообщение'; +$dictionary['If clicking on the link doesn\'t work, try copying and pasting it into your browser'] = 'Если переход по ссылке не работает, попробуйте скопировать ее и вставить в адресную строку Вашего браузера'; +$dictionary['If you did not register for ISocial, please disregard this message'] = 'Если Вы не регистрировались в iSocial, проигнорируйте, пожалуйста, это сообщение'; $dictionary['Check out'] = 'Проверьте и подтвердите'; -$dictionary['if you have any questions'] = 'если у вас есть какие либо вопросы'; +$dictionary['if you have any questions'] = 'если у Вас есть какие-либо вопросы'; $dictionary['Thanks'] = 'Спасибо'; ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <agu...@us...> - 2008-02-25 18:13:55
|
Revision: 28 http://isocial.svn.sourceforge.net/isocial/?rev=28&view=rev Author: aguidrevitch Date: 2008-02-25 10:13:59 -0800 (Mon, 25 Feb 2008) Log Message: ----------- minor russian translation fixes Modified Paths: -------------- app/locales/user/ru.php Modified: app/locales/user/ru.php =================================================================== --- app/locales/user/ru.php 2008-02-25 18:13:14 UTC (rev 27) +++ app/locales/user/ru.php 2008-02-25 18:13:59 UTC (rev 28) @@ -24,10 +24,10 @@ $dictionary['please reenter both passwords'] = 'убедитесь, что оба пароля совпадают'; $dictionary['Thank you for registration'] = 'Спасибо за регистрацию'; $dictionary['Everyone Can Join'] = 'Любой может присоединиться'; -$dictionary['Last step'] = 'Предидущий шаг'; -$dictionary['Check please your e-mail and click on confirmation link'] = 'Проверьте пожалуйста ваш e-mail и подтвердите переходом по ссылке'; +$dictionary['Last step'] = 'Предыдущий шаг'; +$dictionary['Check please your e-mail and click on confirmation link'] = 'Проверьте пожалуйста ваш e-mail и подтвердите регистрацию переходом по ссылке'; $dictionary['go to login'] = 'Войти'; -$dictionary['Confirmation'] = 'Ратифицирование'; +$dictionary['Confirmation'] = 'Подтверждение'; $dictionary['Thank you for signing up on ISocial'] = 'Спасибо за регистрация в ISocial'; $dictionary['With best regards'] = 'С наилучшими пожеланиями'; $dictionary['The ISocial Team'] = 'команда ISocial'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <agu...@us...> - 2008-02-25 18:13:12
|
Revision: 27 http://isocial.svn.sourceforge.net/isocial/?rev=27&view=rev Author: aguidrevitch Date: 2008-02-25 10:13:14 -0800 (Mon, 25 Feb 2008) Log Message: ----------- 'from' and 'subject' email fields are correctly encoded as utf8 Modified Paths: -------------- app/application_controller.php Modified: app/application_controller.php =================================================================== --- app/application_controller.php 2008-02-25 18:10:24 UTC (rev 26) +++ app/application_controller.php 2008-02-25 18:13:14 UTC (rev 27) @@ -97,12 +97,9 @@ function sendHTMLemail( $to, $html, $enable_text = false) { list($header, $html) = preg_split('/\r?\n\r?\n/m', $html, 2); $headers = $this->extractHeaders( $header ); - - if (preg_match('/(\"[^\"]+\")/', $headers['From'], $matches)) { - $name = "=?utf-8?B?" . base64_encode($matches[0]) . "?="; - $headers['From'] = preg_replace('/\"[^\"]+\"/', $name, $headers['From']); - } + $headers['From'] = $this->_fix_email($headers['From']); + $body = "From: " . $headers['From'] . "\n"; $body .= "MIME-Version: 1.0\n"; $boundary = uniqid("HTMLEMAIL"); @@ -123,8 +120,8 @@ "Content-Type: text/html; charset=utf-8\n". "Content-Transfer-Encoding: base64\n\n"; $body .= chunk_split(base64_encode($html)); - - mail($to, $headers['Subject'], "", $body); + + mail($to, $this->_to_base64_utf8($headers['Subject']), "", $body); } function extractHeaders ( $header ) { @@ -150,7 +147,19 @@ { return $this->renderPartial("pageheader"); } + + function _fix_email ($value) { + // eats last space !!! + if (preg_match('/(.*?)\s+(<?\S+@\S+>?)/', $value, $matches)) { + $name = $this->_to_base64_utf8($matches[1]); + $value = $name . " " . $matches[2]; + } + return $value; + } + function _to_base64_utf8 ($value) { + return "=?utf-8?B?" . base64_encode($value) . "?="; + } } ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <di...@us...> - 2008-02-25 18:11:06
|
Revision: 26 http://isocial.svn.sourceforge.net/isocial/?rev=26&view=rev Author: dim0s77 Date: 2008-02-25 10:10:24 -0800 (Mon, 25 Feb 2008) Log Message: ----------- minor fixes in login Modified Paths: -------------- app/controllers/user_controller.php app/models/user.php Modified: app/controllers/user_controller.php =================================================================== --- app/controllers/user_controller.php 2008-02-25 17:58:01 UTC (rev 25) +++ app/controllers/user_controller.php 2008-02-25 18:10:24 UTC (rev 26) @@ -38,11 +38,7 @@ return; } - $user = $this->User->login($this->params['email'], $this->params['password']); - if ($user) { - $this->_login($user->id); - $this->redirectToAction( 'home' ); - } + $this->_loginUser($this->params['email'], $this->params['password']); $this->addError( '_common', @@ -51,6 +47,15 @@ ); } + function _loginUser ($email, $password) + { + $user = $this->User->login($email, $password); + if ($user && $user->active) { + $this->_login($user->id); + $this->redirectToAction( 'home' ); + } + } + function logout () { $this->_logout(); $this->redirectToAction( 'login' ); @@ -122,14 +127,14 @@ $confirmation = $this->Confirmation->findFirst(array('uuid' => $this->params['uuid'])); if ($confirmation) { $user = $this->User->findFirst(array( 'id' => $confirmation->user_id )); - if ($user && $user->active == 1) { + if ($user) { if ($user->email == $this->params['email']) { if (!empty($this->params['user'])){ - $user->setAttributes($this->params['user']); + $user_data = $this->params['user']; + $user->setAttributes($user_data); if ($user->updatePassword()) { $confirmation->destroy(); - $this->_login($user->id); - $this->redirectToAction( 'home' ); + $this->_loginUser($this->params['email'], $user_data['password']); } } else { $this->email = $user->email; Modified: app/models/user.php =================================================================== --- app/models/user.php 2008-02-25 17:58:01 UTC (rev 25) +++ app/models/user.php 2008-02-25 18:10:24 UTC (rev 26) @@ -10,6 +10,7 @@ $this->validatePasswords(); if (!count($this->getErrors())) { $this->_encryptPassword(); + $this->active = 1; return $this->save(); } return false; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |