Changeset 4578 for trunk/core/filters/setmodulelanguage.filter.php
- Timestamp:
- 08/15/10 18:45:12 (22 months ago)
- File:
-
- 1 edited
-
trunk/core/filters/setmodulelanguage.filter.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/filters/setmodulelanguage.filter.php
r4556 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite 32 * 29 * 33 30 * @version SVN: $Id$ 34 31 */ … … 43 40 * Clansuite Filter - Set Module Language 44 41 * 45 * Purpose: Sets TextDomain for the requested Module42 * Purpose: Sets the TextDomain for the requested Module 46 43 * 47 44 * @category Clansuite … … 52 49 class Clansuite_Filter_SetModuleLanguage implements Clansuite_Filter_Interface 53 50 { 54 private $locale = null; # holds instance of localization51 private $locale = null; # holds instance of localization 55 52 56 53 public function __construct(Clansuite_Localization $locale) 57 54 { 58 $this->locale = $locale; # set instance of localization to class55 $this->locale = $locale; # set instance of localization to class 59 56 } 60 57 61 58 public function executeFilter(Clansuite_HttpRequest $request, Clansuite_HttpResponse $response) 62 59 { 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); 65 63 } 66 64 }
Note: See TracChangeset
for help on using the changeset viewer.
