Changeset 626 for trunk/Modules/Translation
- Timestamp:
- Dec 4, 2013, 9:50:16 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Translation/Translation.php
r622 r626 22 22 function Start() 23 23 { 24 global $TranslationTree; 25 24 26 $this->System->RegisterPage('comparison.php', 'PageTranslationComparison'); 25 27 $this->System->RegisterPage('form.php', 'PageTranslationForm'); … … 35 37 'Permission' => LICENCE_ANONYMOUS, 36 38 'Icon' => '', 37 ), 1); 39 ), 1); 40 if(array_key_exists('Search', $this->System->ModuleManager->Modules)) 41 { 42 foreach($TranslationTree as $Group) 43 { 44 $Table = $Group['TablePrefix']; 45 46 $Columns = array('ID', 'Entry'); 47 foreach($Group['Items'] as $Item) 48 { 49 if($Item['Column'] != '') $Columns[] = $Item['Column']; 50 } 51 52 $this->System->ModuleManager->Modules['Search']->RegisterSearch('group'.$Group['Id'], 53 sprintf(T('Translation group "%s"'), $Group['Name']), $Columns, '`'.$Table.'`', $this->System->Link('/TranslationList.php?group='. 54 $Group['Id'].'&user=0&state=0&entry=&text=')); 55 } 56 } 38 57 } 39 58
Note:
See TracChangeset
for help on using the changeset viewer.