Changeset 6177
- Timestamp:
- 11/27/07 09:55:30 (11 months ago)
- Files:
-
- plugins/sfPropelPollsPlugin/trunk/modules/sfPolls/config/view.yml (added)
- plugins/sfPropelPollsPlugin/trunk/modules/sfPolls/lib/BasesfPollsActions.class.php (modified) (4 diffs)
- plugins/sfPropelPollsPlugin/trunk/modules/sfPolls/templates/_poll_form.php (modified) (1 diff)
- plugins/sfPropelPollsPlugin/trunk/modules/sfPolls/templates/_poll_form_elements.php (modified) (1 diff)
- plugins/sfPropelPollsPlugin/trunk/modules/sfPolls/templates/detailSuccess.php (modified) (1 diff)
- plugins/sfPropelPollsPlugin/trunk/modules/sfPolls/templates/listSuccess.php (modified) (1 diff)
- plugins/sfPropelPollsPlugin/trunk/modules/sfPolls/templates/resultsSuccess.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfPropelPollsPlugin/trunk/modules/sfPolls/lib/BasesfPollsActions.class.php
r5215 r6177 92 92 $this->poll = $poll; 93 93 $this->poll_results = $poll->getResults(); 94 95 $this->getResponse()->addStylesheet('/sfPropelPollsPlugin/css/sf_propel_polls');96 94 } 97 95 … … 108 106 if (is_null($answer_id)) // user has forgotten to check a vote option 109 107 { 110 $this->setFlash('notice', 'You must check a vote option');108 $this->setFlash('notice', sfContext::getInstance()->getI18N()->__('You must check a vote option')); 111 109 $this->redirect('@sf_propel_polls_detail?id='.$poll->getId()); 112 110 } … … 122 120 or $poll->hasUserVoted($user_id)) 123 121 { 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')); 125 123 $this->redirect('@sf_propel_polls_detail?id='.$poll->getId()); 126 124 } … … 135 133 { 136 134 $poll->addVote($answer->getId(), $user_id); 137 $message = 'Thanks for your vote';135 $message = sfContext::getInstance()->getI18N()->__('Thanks for your vote'); 138 136 } 139 137 catch (Exception $e) 140 138 { 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.'); 142 140 sfLogger::getInstance()->err('Polling error: '.$e->getMessage()); 143 141 } plugins/sfPropelPollsPlugin/trunk/modules/sfPolls/templates/_poll_form.php
r5215 r6177 1 <?php use_helper('Text', 'Javascript' ) ?>1 <?php use_helper('Text', 'Javascript', 'I18N') ?> 2 2 <?php if (isset($poll)): ?> 3 3 <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') ?> 1 2 <?php echo input_hidden_tag('poll_id', $poll->getId()) ?> 2 3 <?php plugins/sfPropelPollsPlugin/trunk/modules/sfPolls/templates/detailSuccess.php
r5215 r6177 1 <?php use_helper('Text' ) ?>1 <?php use_helper('Text', 'I18N') ?> 2 2 <?php if (isset($poll)): ?> 3 3 <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') ?> 2 2 <h2><?php echo __('Polls list') ?></h2> 3 3 <?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') ?> 2 2 <h3><?php echo $poll->getTitle() ?></h3> 3 3 <?php if ($poll->getDescription()): ?>