Show
Ignore:
Timestamp:
09/03/2007 08:49:02 PM (15 months ago)
Author:
Shadowhand
Message:

A few small changes:

  • Added html::script() and html::stylesheet()
  • Updated Kohana::lang() to use foo.bar syntax, like Event and Config
  • Fixed the View class' output callback handling
  • Removed AJAX spinner
  • Updated User Guide effects to use an easing for animations, and call prettyPrint() only when there are elements to be highlighted
  • Updated User Guide layout to remove AJAX-related styles
  • Updated User Guide template to be i18n compatible, the same template can be used for every language
  • Removed User Guide menu template, in favor of building the menu in the template
  • Added i18n directory for the User Guide, for localized strings (title, copyright, menu)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/core/Kohana.php

    r475 r486  
    428428        } 
    429429 
    430         public static function lang($type = FALSE, $name = TRUE) 
     430        public static function lang($type) 
    431431        { 
    432432                static $found = array(); 
    433433 
    434                 // Throw an exception if the type is not specified 
    435                 if ($type == FALSE) 
    436                         throw new Kohana_Exception('A language message type must be used when calling <code>Kohan::lang()</code>.'); 
     434                if (strpos($type, '.') !== FALSE) 
     435                { 
     436                        list ($type, $name) = explode('.', $type); 
     437                } 
     438                else 
     439                { 
     440                        $name = TRUE; 
     441                } 
    437442 
    438443                if ( ! isset($found[$type])) 
     
    531536        protected $code = 0; 
    532537 
    533  
    534538        function __construct($error) 
    535539        { 
    536540                // Fetch the error message 
    537                 $message = Kohana::lang('exceptions', $error); 
     541                $message = Kohana::lang('exceptions.'.$error); 
    538542 
    539543                // Handle error messages that are not set