Show
Ignore:
Timestamp:
07/04/08 15:06:44 (5 months ago)
Author:
aarkerio
Message:

Internatiantilzation

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/lessons/admin_edit.ctp

    r624 r625  
    1 <script type="text/javascript"> 
    2    window.onload = timedMsg; 
    3 </script> 
    41<?php  
    5   $session->flash(); 
    6    
    7   echo $javascript->link('myfunctions'); 
    8   echo $javascript->link('fckeditor/fckeditor');  
     2 echo $javascript->link('myfunctions'); 
     3 echo $javascript->link('fckeditor/fckeditor');  
     4 
     5 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 
     6 echo $html->addCrumb(__('Lessons', true), '/admin/lessons/listing'); 
     7 echo $html->getCrumbs(' / ');  
    98   
    109  echo $form->create('Lesson'); 
     
    1514<table> 
    1615<tr><td> 
    17   <?php  echo $form->input('Lesson.title', array("size" => 50, "maxlength" => 120));  ?> 
     16  <?php  echo $form->input('Lesson.title', array('size' => 50, 'maxlength' => 120, 'label'=>__('Title', true)));  ?> 
    1817  </td> 
    1918  <td> 
     
    2221<td> 
    2322 <?php 
    24       echo $form->label('Lesson.subject_id', 'Subject:'); 
     23      echo $form->label('Lesson.subject_id', __('Subject', true)); 
    2524      echo $form->select('Lesson.subject_id', $subjects, null, null, false); 
    2625 ?> 
     
    3029<td colspan="3"> 
    3130 <?php  
    32       echo $form->label('Lesson.body', 'Body:' ); 
    3331      echo $form->textarea('Lesson.body', array('cols'=>80, 'rows'=>20)); 
    3432      echo $fck->load('LessonBody', 'Karamelo', 800, 600); 
     
    3735  <tr><td> 
    3836  <?php  
    39      echo $form->label( 'Lesson.status', 'Published:' ); 
    40      echo $form->checkbox('Lesson.status', array("value"=>1));  
     37     echo $form->label( 'Lesson.status', __('Published',true)); 
     38     echo $form->checkbox('Lesson.status', array('value'=>1));  
    4139  ?> 
    4240  </td><td> 
    4341  <?php  
    44       echo $form->label('Lesson.disc', 'Comments enabled:' ); 
    45       echo $form->checkbox('Lesson.disc', array("value"=>1)); 
     42      echo $form->label('Lesson.disc', __('Allow comments', true) ); 
     43      echo $form->checkbox('Lesson.disc', array('value'=>1)); 
    4644      ?> 
    4745      </td><td> 
    4846      <?php 
    49       echo $form->label('Lesson.end', 'End edition:' ); 
    50       echo $form->checkbox('Lesson.end', array("value"=>1));  
     47      echo $form->label('Lesson.end', __('End edition',true)); 
     48      echo $form->checkbox('Lesson.end', array('value'=>1));  
    5149     ?> 
    5250  </td></tr> 
     
    5654</td></tr> 
    5755</table> 
    58