Ignore:
Timestamp:
Dec 27, 2022, 7:50:23 PM (2 years ago)
Author:
chronos
Message:
  • Modified: Updated Common package to latest version.
  • Modified: Fixes related to PHP 8.x.
Location:
trunk/Modules/Translation
Files:
7 edited

Legend:

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

    r880 r888  
    3838  }
    3939
    40   function Show()
     40  function Show(): string
    4141  {
    4242    $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();
  • trunk/Modules/Translation/Form.php

    r880 r888  
    66  var $ID;
    77
    8   function Show()
     8  function Show(): string
    99  {
    1010    $this->Title = T('Translation');
     
    1717  }
    1818
    19   function ShowForm()
     19  function ShowForm(): string
    2020  {
    2121    $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();
  • trunk/Modules/Translation/LoadNames.php

    r880 r888  
    9090    }
    9191
    92   function Show()
     92  function Show(): string
    9393  {
    9494    $this->RawPage = true;
  • trunk/Modules/Translation/Progress.php

    r880 r888  
    6464  }
    6565
    66   function Show()
     66  function Show(): string
    6767  {
    6868    $this->Title = T('Progress');
  • trunk/Modules/Translation/Save.php

    r880 r888  
    174174  }
    175175
    176   function Show()
     176  function Show(): string
    177177  {
    178178    global $Message, $MessageType;
  • 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
  • trunk/Modules/Translation/TranslationList.php

    r880 r888  
    376376  }
    377377
    378   function Show()
     378  function Show(): string
    379379  {
    380380    $this->Title = T('Translation groups');
     
    521521  }
    522522
    523   function Show()
     523  function Show(): string
    524524  {
    525525    $this->Title = T('Translation groups');
Note: See TracChangeset for help on using the changeset viewer.