Changeset 76

Show
Ignore:
Timestamp:
08/31/08 22:47:44 (10 months ago)
Author:
nperriault
Message:

[1.0] Fixed the weird-spanish-bug (or so called) due to a bug in sfLucene plugin (the fix is now bundled locally in the symfonians repo, patch for official plugin is currently studied)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/apps/main/i18n/de/messages.xml

    r31 r76  
    11<?xml version="1.0" encoding="UTF-8"?> 
    22<xliff version="1.0"> 
    3   <file source-language="EN" target-language="de" datatype="plaintext" original="messages" date="2008-03-28T09:46:23Z" product-name="messages"> 
     3  <file source-language="en" target-language="de" datatype="plaintext" original="messages" product-name="messages"> 
    44    <body> 
    55<trans-unit id="1"> 
  • branches/1.0/apps/main/i18n/fr/messages.xml

    r38 r76  
    11<?xml version="1.0" encoding="UTF-8"?> 
    22<xliff version="1.0"> 
    3   <file source-language="EN" target-language="fr" datatype="plaintext" original="messages" date="2008-03-14T12:10:23Z" product-name="messages"> 
     3  <file source-language="en" target-language="fr" datatype="plaintext" original="messages" product-name="messages"> 
    44    <body> 
    55<trans-unit id="1"> 
  • branches/1.0/apps/main/i18n/pt/messages.xml

    r40 r76  
    1 <?xml version="1.0"?> 
     1<?xml version="1.0" encoding="UTF-8"?> 
    22<xliff version="1.0"> 
    3   <file source-language="EN" target-language="pt_br" datatype="plaintext" original="messages" product-name="messages"> 
     3  <file source-language="en" target-language="pt" datatype="plaintext" original="messages" product-name="messages"> 
    44    <body> 
    55<trans-unit id="1"> 
  • branches/1.0/apps/main/lib/myActions.class.php

    r37 r76  
    88 
    99  /** 
     10   * Internationalization utility 
     11   * @var sfI18N 
     12   */ 
     13  protected $i18n = null; 
     14 
     15  /** 
    1016   * Proxy action method to translate a string 
    1117   * 
     
    5864  protected function getI18N() 
    5965  { 
    60     return $this->getContext()->getI18N(); 
     66    if (is_null($this->i18n)) 
     67    { 
     68      $this->i18n = $this->getContext()->getI18N(); 
     69    } 
     70 
     71    return $this->i18n; 
    6172  } 
    6273 
     
    308319    } 
    309320    $mailer->disconnect(); 
    310      
     321 
    311322    // Add mailSent timestamp 
    312323    $this->getUser()->setAttribute('lastMailAt', time()); 
    313      
     324 
    314325    return ($sent > 0); 
    315326  } 
     
    352363    return $address; 
    353364  } 
    354    
     365 
    355366  /** 
    356367   * Checks for mail flooding (die, dirty spammers) 
     
    362373  { 
    363374    $user = $this->getUser(); 
    364      
     375 
    365376    if (!$user) 
    366377    { 
    367378      throw new sfException($this->__('Mail sending use the session, please allow cookies')); 
    368379    } 
    369      
     380 
    370381    $lastMailAt = $user->getAttribute('lastMailAt', null); 
    371      
     382 
    372383    if (is_null($lastMailAt)) 
    373384    { 
    374385      return; 
    375386    } 
    376      
     387 
    377388    $ttl = sfConfig::get('app_mail_mail_flood_time', 300); 
    378      
    379     if (time() - $lastMailAt < $ttl)  
     389 
     390    if (time() - $lastMailAt < $ttl) 
    380391    { 
    381392      throw new sfException(sprintf($this->__('You must wait at least %d seconds between two mail send, please try again later'), $ttl)); 
  • branches/1.0/plugins

    • Property svn:externals changed from
      sfPropelAlternativeSchemaPlugin http://svn.symfony-project.com/plugins/sfPropelAlternativeSchemaPlugin
      sfCSRFPlugin http://svn.symfony-project.com/plugins/sfCSRFPlugin
      sfWebBrowserPlugin http://svn.symfony-project.com/plugins/sfWebBrowserPlugin
      sfPagerNavigationPlugin http://svn.symfony-project.com/plugins/sfPagerNavigationPlugin
      sfFeed2Plugin http://svn.symfony-project.com/plugins/sfFeed2Plugin
      sfPropelMigrationsLightPlugin -r7087 http://svn.symfony-project.com/plugins/sfPropelMigrationsLightPlugin/trunk/
      sfSwiftPlugin -r6447 http://svn.symfony-project.com/plugins/sfSwiftPlugin/trunk
      sfLucenePlugin http://svn.symfony-project.com/plugins/sfLucenePlugin/branches/1.0/
      sfI18nExtractPlugin http://svn.symfony-project.com/plugins/sfI18nExtractPlugin
      to
      sfPropelAlternativeSchemaPlugin http://svn.symfony-project.com/plugins/sfPropelAlternativeSchemaPlugin
      sfCSRFPlugin http://svn.symfony-project.com/plugins/sfCSRFPlugin
      sfWebBrowserPlugin http://svn.symfony-project.com/plugins/sfWebBrowserPlugin
      sfPagerNavigationPlugin http://svn.symfony-project.com/plugins/sfPagerNavigationPlugin
      sfFeed2Plugin http://svn.symfony-project.com/plugins/sfFeed2Plugin
      sfPropelMigrationsLightPlugin -r7087 http://svn.symfony-project.com/plugins/sfPropelMigrationsLightPlugin/trunk/
      sfSwiftPlugin -r6447 http://svn.symfony-project.com/plugins/sfSwiftPlugin/trunk