Development

Changeset 6177

You must first sign up to be able to contribute.

Changeset 6177

Show
Ignore:
Timestamp:
11/27/07 09:55:30 (11 months ago)
Author:
nicolas
Message:

Added sfPropelMigration plugin - refs #713

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfPropelPollsPlugin/trunk/modules/sfPolls/lib/BasesfPollsActions.class.php

    r5215 r6177  
    9292    $this->poll = $poll; 
    9393    $this->poll_results = $poll->getResults(); 
    94      
    95     $this->getResponse()->addStylesheet('/sfPropelPollsPlugin/css/sf_propel_polls'); 
    9694  } 
    9795 
     
    108106    if (is_null($answer_id)) // user has forgotten to check a vote option 
    109107    { 
    110       $this->setFlash('notice', 'You must check a vote option'); 
     108      $this->setFlash('notice', sfContext::getInstance()->getI18N()->__('You must check a vote option')); 
    111109      $this->redirect('@sf_propel_polls_detail?id='.$poll->getId()); 
    112110    } 
     
    122120        or $poll->hasUserVoted($user_id)) 
    123121    { 
    124       $this->setFlash('notice', 'You have already voted for this poll'); 
     122      $this->setFlash('notice', sfContext::getInstance()->getI18N()->__('You have already voted for this poll')); 
    125123      $this->redirect('@sf_propel_polls_detail?id='.$poll->getId()); 
    126124    } 
     
    135133    { 
    136134      $poll->addVote($answer->getId(), $user_id); 
    137       $message = 'Thanks for your vote'
     135      $message = sfContext::getInstance()->getI18N()->__('Thanks for your vote')
    138136    } 
    139137    catch (Exception $e) 
    140138    { 
    141       $message = 'Something went wrong, we were unable to store your vote.'
     139      $message = sfContext::getInstance()->getI18N()->__('Something went wrong, we were unable to store your vote.')
    142140      sfLogger::getInstance()->err('Polling error: '.$e->getMessage()); 
    143141    } 
  • plugins/sfPropelPollsPlugin/trunk/modules/sfPolls/templates/_poll_form.php

    r5215 r6177  
    1 <?php use_helper('Text', 'Javascript') ?> 
     1<?php use_helper('Text', 'Javascript', 'I18N') ?> 
    22<?php if (isset($poll)): ?> 
    33<div id="cmp_poll_<?php echo $poll->getId() ?>"> 
  • plugins/sfPropelPollsPlugin/trunk/modules/sfPolls/templates/_poll_form_elements.php

    r5215 r6177  
     1<?php use_helper('I18N') ?> 
    12<?php echo input_hidden_tag('poll_id', $poll->getId()) ?> 
    23<?php 
  • plugins/sfPropelPollsPlugin/trunk/modules/sfPolls/templates/detailSuccess.php

    r5215 r6177  
    1 <?php use_helper('Text') ?> 
     1<?php use_helper('Text', 'I18N') ?> 
    22<?php if (isset($poll)): ?> 
    33<h3><?php echo $poll->getTitle() ?></h3> 
  • plugins/sfPropelPollsPlugin/trunk/modules/sfPolls/templates/listSuccess.php

    r5215 r6177  
    1 <?php use_helper('Text') ?> 
     1<?php use_helper('Text', 'I18N') ?> 
    22<h2><?php echo __('Polls list') ?></h2> 
    33<?php if (isset($polls) && count($polls) > 0): ?> 
  • plugins/sfPropelPollsPlugin/trunk/modules/sfPolls/templates/resultsSuccess.php

    r5215 r6177  
    1 <?php use_helper('Text', 'Poll') ?> 
     1<?php use_helper('Text', 'Poll', 'I18N') ?> 
    22<h3><?php echo $poll->getTitle() ?></h3> 
    33<?php if ($poll->getDescription()): ?>