Changeset 720 for trunk/app/views

Show
Ignore:
Timestamp:
08/11/08 18:34:59 (4 months ago)
Author:
aarkerio
Message:

Quick bugs

Location:
trunk/app/views
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/topics/display.ctp

    r640 r720  
    33echo '<h1>'. $data['Forum']['title'] .'</h1>'; 
    44 
    5 echo $html->para(null, $data['User']['username'] . ' suggest topic: <b>'.$data['Topic']['subject'] .'</b>  at <span class="dates">'.$data['Topic']['created'].'</span>'); 
     5echo $html->para(null, $data['User']['username'] .' '. __('suggested topic', true).':<b> '.$data['Topic']['subject'] .'</b>  at <span class="dates">'.$data['Topic']['created'].'</span>'); 
    66 
    77echo $html->para(null, $html->link( 
    8 $html->image('static/return.jpg', array('alt'=>'Return to '. $data['Forum']['title'], 'title'=>'Return to '. $data['Forum']['title'])) 
     8$html->image('static/return.jpg', array('alt'=>__('Return to', true).' '. $data['Forum']['title'], 'title'=>__('Return to', true).' '. $data['Forum']['title'])) 
    99, '/forums/display/'.$data['Topic']['forum_id'].'/'.$data['Topic']['vclassroom_id'], null, null, false)); 
    1010 
    11 echo $html->div('titentry', 'Discussion on '.$data['Topic']['subject']); 
    12 echo $html->para(null, '<b>Discussion topic:</b> '.$data['Topic']['message']); 
     11echo $html->div('titentry', __('Discussion on', true) .' '.$data['Topic']['subject']); 
     12echo $html->para(null, '<b>'.__('Discussion topic', true).':</b> '.$data['Topic']['message']); 
    1313 
    1414if ( $belongs === true ): 
     
    2323 
    2424**/ 
    25  $tmp = $ajax->link($html->image("static/reply.gif", array("alt"=>"New reply", "title"=>"Reply")),  
     25 $tmp = $ajax->link($html->image("static/reply.gif", array('alt'=>__('Reply', true), 'title'=>__('Reply', true))),  
    2626      '/topics/reply/'.$data['Topic']['vclassroom_id'].'/'.$data['Forum']['id'].'/'.$data['Topic']['id'].'/'.$data['Forum']['user_id'], 
    2727                                array("update" => "qn", 
  • trunk/app/views/webquests/view.ctp

    r541 r720  
    33 
    44if ( $already === true ): 
    5       e($html->para(null, 'You already have answered this webquest')); 
     5      e($html->para(null, __('You already have answered this Webquest', true))); 
    66endif; 
    77 
     
    1414<?php 
    1515echo '<div style="margin:10px auto;padding:5px;border:1px dotted red;">';  
    16    echo '<h2>Introduction</h2>'; 
     16   echo '<h2>'.__('Introduction', true).'</h2>'; 
    1717   echo '<div>' . $gags->delTags($data['Webquest']['introduction']).'</div>'; 
    1818 
    19    echo '<h2>Tasks</h2>'; 
     19   echo '<h2>'.__('Tasks', true).'</h2>'; 
    2020   echo '<div>' . $gags->delTags($data['Webquest']['tasks']).'</div>'; 
    2121 
    22    echo '<h2>Process</h2>'; 
     22   echo '<h2>'.__('Process', true).'</h2>'; 
    2323   echo '<div>' .  $gags->delTags($data['Webquest']['process']).'</div>'; 
    2424 
     
    2626   echo '<div>' .  $gags->delTags($data['Webquest']['roles']).'</div>'; 
    2727 
    28    echo '<h2>Evaluation</h2>'; 
     28   echo '<h2>'.__('Evaluation', true).'</h2>'; 
    2929   echo '<div>' .  $gags->delTags($data['Webquest']['evaluation']).'</div>'; 
    3030 
    31    echo '<h2>Conclusion</h2>'; 
     31   echo '<h2>'.__('Conclusion', true).'</h2>'; 
    3232   echo '<div>' .  $gags->delTags($data['Webquest']['conclusion']).'</div>'; 
    3333 
    34    echo '<p>Created: <b>'. $data['Webquest']['created'].'</b></p>'; 
     34   echo $html->para(null, __('Created', true) .': <b>'. $data['Webquest']['created'].'</b>'); 
    3535echo '</div>'; 
    3636 
     
    4444  echo $form->label('ResultWebquest.answer', 'Answer:').'<br />'; 
    4545  echo $form->textarea('ResultWebquest.answer', array('cols'=>50, 'rows'=>20)); 
    46   echo $form->end('Send'); 
     46  echo $form->end(__('Send', true)); 
    4747echo '</fieldset>'; 
    4848 
    4949endif; 
    5050 
    51 if ( $session->check('Auth.User') ): 
     51if ( !$session->check('Auth.User') ): 
    5252      e($html->para(null, 'You must belong to class to see this exam')); 
    5353endif;