Ignore:
Timestamp:
Dec 27, 2022, 7:50:23 PM (17 months ago)
Author:
chronos
Message:
  • Modified: Updated Common package to latest version.
  • Modified: Fixes related to PHP 8.x.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Translation/Translation.php

    r880 r888  
    99include_once(dirname(__FILE__).'/UserLevel.php');
    1010
    11 class ModuleTranslation extends AppModule
     11class ModuleTranslation extends Module
    1212{
    1313  function __construct(System $System)
     
    2222  }
    2323
    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');
    3333    $this->System->ModuleManager->Modules['News']->RegisterRSS(array('Title' => T('Last translations'),
    3434      'Channel' => 'translation', 'Callback' => array($this, 'ShowRSS'), 'Permission' => LICENCE_ANONYMOUS));
    35     $this->System->RegisterMenuItem(array(
     35    Core::Cast($this->System)->RegisterMenuItem(array(
    3636      'Title' => T('Completion status'),
    3737      'Hint' => 'Stav dokončení překládů',
     
    4040      'Icon' => '',
    4141    ), 1);
    42     $this->System->RegisterMenuItem(array(
     42    Core::Cast($this->System)->RegisterMenuItem(array(
    4343      'Title' => T('Data source'),
    4444      'Hint' => 'Informace o překladových skupinách',
     
    6666      }
    6767    }
    68     $this->System->RegisterPageBarItem('Right', 'TranslatedMenu', array($this, 'ShowTranslatedMenu'));
     68    Core::Cast($this->System)->RegisterPageBarItem('Right', 'TranslatedMenu', array($this, 'ShowTranslatedMenu'));
    6969  }
    7070
Note: See TracChangeset for help on using the changeset viewer.