Changeset 815 for trunk/Modules/Translation/Translation.php
- Timestamp:
- Feb 22, 2015, 11:05:49 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Translation/Translation.php
r806 r815 20 20 $this->Dependencies = array('News'); 21 21 } 22 22 23 23 function Start() 24 24 { 25 25 global $TranslationTree; 26 26 27 27 $this->System->RegisterPage('comparison.php', 'PageTranslationComparison'); 28 28 $this->System->RegisterPage('form.php', 'PageTranslationForm'); … … 31 31 $this->System->RegisterPage('TranslationList.php', 'PageTranslationList'); 32 32 $this->System->RegisterPage('LoadNames.php', 'PageLoadNames'); 33 $this->System->ModuleManager->Modules['News']->RegisterRSS(array('Title' => T('Last translations'), 33 $this->System->ModuleManager->Modules['News']->RegisterRSS(array('Title' => T('Last translations'), 34 34 'Channel' => 'translation', 'Callback' => array($this, 'ShowRSS'), 'Permission' => LICENCE_ANONYMOUS)); 35 35 $this->System->RegisterMenuItem(array( … … 39 39 'Permission' => LICENCE_ANONYMOUS, 40 40 'Icon' => '', 41 ), 1); 41 ), 1); 42 42 if(array_key_exists('Search', $this->System->ModuleManager->Modules)) 43 43 { … … 45 45 { 46 46 $Table = $Group['TablePrefix']; 47 47 48 48 $Columns = array('ID', 'Entry'); 49 49 foreach($Group['Items'] as $Item) 50 50 { 51 51 if($Item['Column'] != '') $Columns[] = $Item['Column']; 52 } 52 } 53 53 54 54 $this->System->ModuleManager->Modules['Search']->RegisterSearch('group'.$Group['Id'], 55 55 sprintf(T('Translation group "%s"'), $Group['Name']), $Columns, '`'.$Table.'`', $this->System->Link('/TranslationList.php?group='. 56 $Group['Id'].'&user=0&state=0&entry=&text=')); 56 $Group['Id'].'&user=0&state=0&entry=&text=')); 57 57 } 58 } 58 } 59 59 } 60 60 61 61 function ShowRSS() 62 62 {
Note:
See TracChangeset
for help on using the changeset viewer.