Changeset 731 for trunk/app

Show
Ignore:
Timestamp:
08/21/08 16:28:02 (3 months ago)
Author:
aarkerio
Message:

Little bugs fixed

Location:
trunk/app
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/config/core.php

    r730 r731  
    1414 * In development mode, you need to click the flash message to continue. 
    1515 */ 
    16     Configure::write('debug', 1); 
     16      Configure::write('debug', 1); 
    1717/** 
    1818 * Application wide charset encoding 
    1919 */ 
    20     Configure::write('App.encoding', 'UTF-8'); 
     20      Configure::write('App.encoding', 'UTF-8'); 
    2121/** 
    2222 * To configure CakePHP *not* to use mod_rewrite and to 
  • trunk/app/locale/spa/LC_MESSAGES/default.po

    r730 r731  
    44msgid  "Yes" 
    55msgstr "Si" 
     6 
     7msgid  "See participation" 
     8msgstr "Ver participación" 
    69 
    710msgid  "Points up" 
  • trunk/app/models/vclassroom.php

    r730 r731  
    66*  GPLv3 manuel<arroba>mononeurona<punto>org 
    77*/  
     8 
    89class Vclassroom extends AppModel 
    910{ 
     
    130131 public function studentRecord($user_id, $vclassroom_id) 
    131132 { 
    132   try {    
     133  try  
     134  {    
    133135     $record                  = array(); 
    134136    
  • trunk/app/views/vclassrooms/admin_record.ctp

    r730 r731  
    147147      e($html->div(null, $re['Reply']['points'].' points',  array('id'=>$div_id, 'style'=>'width:150px;float:left;'))); 
    148148      e('<div style="width:450px;float:right;">'); 
    149       echo $html->link('See reply', '#', array('title'=>'View reply', 'onclick'=> 
     149      echo $html->link(__('See participation', true), '#', array('title'=>__('See participation', true), 'onclick'=> 
    150150        "window.open('/admin/topics/reply/".$re['Reply']['id']."','mywin','left=20,top=20,width=700,height=700,toolbar=0,resizable=1')")) . '&nbsp;&nbsp;'; 
    151151 
    152       echo $ajax->link($html->image('static/adownmod.png', array('alt'=>'Points down', 'title'=>'Points down')), 
     152      echo $ajax->link($html->image('static/adownmod.png', array('alt'=>__('Points down', true), 'title'=>__('Points down', true))), 
    153153                           '/admin/replies/points/'.$re['Reply']['id'].'/down', 
    154154                        array('update'  => $div_id, 
     
    156156                                  'after'   =>'tp('.$data['User']['id'].','.$data['Vclassroom']['id'].')', 
    157157                          'complete'=>"Element.hide('loadingre');Effect.Appear(".$div_id.")"),null,false); 
    158       echo $ajax->link($html->image('static/aupmod.png', array('alt'=>'Points up', 'title'=>'Points up')), 
     158      echo $ajax->link($html->image('static/aupmod.png', array('alt'=>__('Points up', true), 'title'=>__('Points up', true))), 
    159159                           '/admin/replies/points/'.$re['Reply']['id'].'/up', 
    160160                        array('update'  => $div_id, 
     
    175175 $ppoints = (int) 0;  // participation points  
    176176 if ( count($data['participations']) > 0 ): 
    177    echo '<h1>Participations</h1>'; 
     177   echo '<h1>'.__('Participations', true).'</h1>'; 
    178178   foreach ($data['participations'] as $p): 
    179179   e('<div style="border:1px dotted gray;padding:4px;margin:2px;height:20px;">'); 
     
    186186 
    187187   echo '<div style="width:450px;float:right;">';     
    188    echo 'Participation: '. $html->link($p['Participation']['title'], '#', array('title'=>'View reply', 'onclick'=>"window.open('/admin/participations/show/".$p['Participation']['id']."','mywin','left=20,top=20,width=700,height=700,toolbar=0,resizable=1')")).'  '; 
    189  
    190        echo $ajax->link($html->image('static/adownmod.png', array('alt'=>'Points down', 'title'=>'Points down')) , 
     188   echo __('Participation', true).': '. $html->link($p['Participation']['title'], '#', array('title'=>'View reply', 'onclick'=>"window.open('/admin/participations/show/".$p['Participation']['id']."','mywin','left=20,top=20,width=700,height=700,toolbar=0,resizable=1')")).'  '; 
     189 
     190       echo $ajax->link($html->image('static/adownmod.png', array('alt'=>__('Points down', true), 'title'=>__('Points down', true))) , 
    191191                           '/admin/participations/points/'.$p['Participation']['id'].'/down', 
    192192                        array('update'     => $div_id, 
     
    194194                                  'interactive'=>'tp('.$data['User']['id'].','.$data['Vclassroom']['id'].')', 
    195195                          'complete'   =>"Element.hide('loadingpa');Effect.Appear(".$div_id.");"),null,false); 
    196        echo $ajax->link($html->image('static/aupmod.png', array('alt'=>'Points up', 'title'=>'Points up')), 
     196       echo $ajax->link($html->image('static/aupmod.png', array('alt'=>__('Points up', true), 'title'=>__('Points up', true))), 
    197197                           '/admin/participations/points/'.$p['Participation']['id'].'/up', 
    198198                        array('update'     => $div_id, 
     
    204204    e('</div>'); 
    205205    endforeach; 
    206       e('<div id="loadingpa" style="display:none">');  
    207                   echo $html->image('static/loading.gif', array('alt'=>'Loading')); 
    208       e('</div>'); 
     206    e($html->div(null, $html->image('static/loading.gif', array('alt'=>'Loading'), array('id'=>'loadingpa', 'style'=>'display:none')))); 
    209207       
    210208 else: 
    211     echo  $html->para(null, 'No participation found'); 
    212  endif; 
    213  
    214  echo  $html->div(null, 'Treasure points: '      . $tpoints); 
    215  echo  $html->div(null, 'Webquests points: '  . $wpoints); 
    216  echo  $html->div(null, 'Participation points: ' . $ppoints, array('id'=>'parpoints')); 
     209    echo  $html->para(null, __('No participation found', true)); 
     210 endif; 
     211 
     212 echo  $html->div(null, __('Scavengers hunts', true) .' ' .__('points', true) .': '. $tpoints); 
     213 echo  $html->div(null, 'Webquests ' .__('points', true) .': '. $wpoints); 
     214 echo  $html->div(null, __('Participations', true) .' '. __('points', true) .': '. $ppoints, array('id'=>'parpoints')); 
    217215  
    218216 $points = ($tpoints + $wpoints + $rpoints + $ppoints); 
    219217  
    220  echo  $ajax->div('totalpoints') . '<b>Total points: ' . $points .'</b>'. $ajax->divEnd('totalpoints'); 
    221  
     218 echo  $ajax->div('totalpoints') . '<b>'.__('Total points', true).': ' . $points .'</b>'. $ajax->divEnd('totalpoints'); 
    222219?> 
    223220</div>