Changeset 888 for trunk/Modules/Translation/Translation.php
- Timestamp:
- Dec 27, 2022, 7:50:23 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Translation/Translation.php
r880 r888 9 9 include_once(dirname(__FILE__).'/UserLevel.php'); 10 10 11 class ModuleTranslation extends AppModule11 class ModuleTranslation extends Module 12 12 { 13 13 function __construct(System $System) … … 22 22 } 23 23 24 function DoStart() 25 { 26 $this->System->RegisterPage( 'comparison.php', 'PageTranslationComparison');27 $this->System->RegisterPage( 'form.php', 'PageTranslationForm');28 $this->System->RegisterPage( 'save.php', 'PageTranslationSave');29 $this->System->RegisterPage( 'progress', 'PageProgress');30 $this->System->RegisterPage( 'translation-groups', 'PageTranslationGroups');31 $this->System->RegisterPage( 'TranslationList.php', 'PageTranslationList');32 $this->System->RegisterPage( 'LoadNames.php', 'PageLoadNames');24 function DoStart(): void 25 { 26 $this->System->RegisterPage(['comparison.php'], 'PageTranslationComparison'); 27 $this->System->RegisterPage(['form.php'], 'PageTranslationForm'); 28 $this->System->RegisterPage(['save.php'], 'PageTranslationSave'); 29 $this->System->RegisterPage(['progress'], 'PageProgress'); 30 $this->System->RegisterPage(['translation-groups'], 'PageTranslationGroups'); 31 $this->System->RegisterPage(['TranslationList.php'], 'PageTranslationList'); 32 $this->System->RegisterPage(['LoadNames.php'], 'PageLoadNames'); 33 33 $this->System->ModuleManager->Modules['News']->RegisterRSS(array('Title' => T('Last translations'), 34 34 'Channel' => 'translation', 'Callback' => array($this, 'ShowRSS'), 'Permission' => LICENCE_ANONYMOUS)); 35 $this->System->RegisterMenuItem(array(35 Core::Cast($this->System)->RegisterMenuItem(array( 36 36 'Title' => T('Completion status'), 37 37 'Hint' => 'Stav dokončení překládů', … … 40 40 'Icon' => '', 41 41 ), 1); 42 $this->System->RegisterMenuItem(array(42 Core::Cast($this->System)->RegisterMenuItem(array( 43 43 'Title' => T('Data source'), 44 44 'Hint' => 'Informace o překladových skupinách', … … 66 66 } 67 67 } 68 $this->System->RegisterPageBarItem('Right', 'TranslatedMenu', array($this, 'ShowTranslatedMenu'));68 Core::Cast($this->System)->RegisterPageBarItem('Right', 'TranslatedMenu', array($this, 'ShowTranslatedMenu')); 69 69 } 70 70
Note:
See TracChangeset
for help on using the changeset viewer.