Development

Changeset 18508

You must first sign up to be able to contribute.

Changeset 18508

Show
Ignore:
Timestamp:
05/21/09 17:00:30 (4 years ago)
Author:
Tiago.Ribeiro
Message:

Adding I18N to reset mail subject and sender

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfDoctrineApplyPlugin/trunk/modules/sfApply/lib/BasesfApplyActions.class.php

    r16939 r18508  
    8787    $profile->setValidate('r' . self::createGuid()); 
    8888    $profile->save(); 
     89 
    8990    // Create the mailer and message objects 
    9091    $mailer = $this->getMailer(); 
    91     $message = new Swift_Message( 
    92       sfConfig::get('app_sfApplyPlugin_reset_subject', 
    93       "Please verify your password reset request on " .  
    94         $this->getRequest()->getHost())); 
     92    $message = new Swift_Message(sfConfig::get('app_sfApplyPlugin_reset_subject', sfContext::getInstance()->getI18N()->__("Please verify your password reset request on %1%", array('%1%' => $this->getRequest()->getHost())))); 
     93 
    9594    // Render message parts 
    9695    $mailContext = array('name' => $profile->getFullname(), 
     
    111110      throw new Exception('app_sfApplyPlugin_from is not set'); 
    112111    } 
    113     $address = new Swift_Address($from['email'], $from['fullname']); 
     112    $address = new Swift_Address($from['email'], sfContext::getInstance()->getI18N()->__($from['fullname'])); 
    114113    return $address; 
    115114  }