Changeset 888 for trunk/Modules/Translation
- Timestamp:
- Dec 27, 2022, 7:50:23 PM (2 years ago)
- Location:
- trunk/Modules/Translation
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Translation/Comparison.php
r880 r888 38 38 } 39 39 40 function Show() 40 function Show(): string 41 41 { 42 42 $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree(); -
trunk/Modules/Translation/Form.php
r880 r888 6 6 var $ID; 7 7 8 function Show() 8 function Show(): string 9 9 { 10 10 $this->Title = T('Translation'); … … 17 17 } 18 18 19 function ShowForm() 19 function ShowForm(): string 20 20 { 21 21 $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree(); -
trunk/Modules/Translation/LoadNames.php
r880 r888 90 90 } 91 91 92 function Show() 92 function Show(): string 93 93 { 94 94 $this->RawPage = true; -
trunk/Modules/Translation/Progress.php
r880 r888 64 64 } 65 65 66 function Show() 66 function Show(): string 67 67 { 68 68 $this->Title = T('Progress'); -
trunk/Modules/Translation/Save.php
r880 r888 174 174 } 175 175 176 function Show() 176 function Show(): string 177 177 { 178 178 global $Message, $MessageType; -
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 -
trunk/Modules/Translation/TranslationList.php
r880 r888 376 376 } 377 377 378 function Show() 378 function Show(): string 379 379 { 380 380 $this->Title = T('Translation groups'); … … 521 521 } 522 522 523 function Show() 523 function Show(): string 524 524 { 525 525 $this->Title = T('Translation groups');
Note:
See TracChangeset
for help on using the changeset viewer.