Ignore:
Timestamp:
08/15/10 18:45:12 (22 months ago)
Author:
vain
Message:
  • several changes to copyright, router, bootstrap, frontcontroller and various other files
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/filters/setmodulelanguage.filter.php

    r4556 r4578  
    2424    * 
    2525    * @license    GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 
    26     * 
    2726    * @author     Jens-André Koch <vain@clansuite.com> 
    2827    * @copyright  Jens-André Koch (2005 - onwards) 
    29     * 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    32     * 
     29    *  
    3330    * @version    SVN: $Id$ 
    3431    */ 
     
    4340 * Clansuite Filter - Set Module Language 
    4441 * 
    45  * Purpose: Sets Text Domain for the requested Module 
     42 * Purpose: Sets the TextDomain for the requested Module 
    4643 * 
    4744 * @category    Clansuite 
     
    5249class Clansuite_Filter_SetModuleLanguage implements Clansuite_Filter_Interface 
    5350{ 
    54     private $locale     = null;     # holds instance of localization 
     51    private $locale = null;     # holds instance of localization 
    5552 
    5653    public function __construct(Clansuite_Localization $locale) 
    5754    { 
    58         $this->locale    = $locale;      # set instance of localization to class 
     55        $this->locale = $locale;      # set instance of localization to class 
    5956    } 
    6057 
    6158    public function executeFilter(Clansuite_HttpRequest $request, Clansuite_HttpResponse $response) 
    6259    { 
    63         #$modulename = Clansuite_Dispatcher::getModuleName(); 
    64         #$this->locale->loadTextDomain('LC_ALL', $modulename, $this->locale->getLocale(), $modulename); 
     60        #$route = Clansuite_HttpRequest::getRoute(); 
     61        $modulename = Clansuite_TargetRoute::getController(); 
     62        $this->locale->loadTextDomain('LC_ALL', $modulename, $this->locale->getLocale(), $modulename); 
    6563    } 
    6664} 
Note: See TracChangeset for help on using the changeset viewer.