diff --git a/Web/Presenters/AboutPresenter.php b/Web/Presenters/AboutPresenter.php index 411b01de..1a919e4d 100644 --- a/Web/Presenters/AboutPresenter.php +++ b/Web/Presenters/AboutPresenter.php @@ -54,17 +54,20 @@ final class AboutPresenter extends OpenVKPresenter function renderVersion(): void { $this->template->themes = Themepacks::i()->getAllThemes(); + $this->template->languages = getLanguages(); } function renderLanguage(): void { + $this->template->languages = getLanguages(); + if(!is_null($_GET['lg'])){ - Session::i()->set("lang", $_GET['lg']); + setLanguage($_GET['lg']); } } function renderSandbox(): void { - $this->template->manager = (new Managers)->get(4); + $this->template->languages = getLanguages(); } } diff --git a/Web/Presenters/templates/About/Language.xml b/Web/Presenters/templates/About/Language.xml index 9331757a..121452f0 100644 --- a/Web/Presenters/templates/About/Language.xml +++ b/Web/Presenters/templates/About/Language.xml @@ -7,16 +7,8 @@ {block content}
{/block} diff --git a/Web/Presenters/templates/About/Sandbox.xml b/Web/Presenters/templates/About/Sandbox.xml index 05219cc7..b84b515a 100644 --- a/Web/Presenters/templates/About/Sandbox.xml +++ b/Web/Presenters/templates/About/Sandbox.xml @@ -6,5 +6,5 @@ {/block} {block content} - {$manager->getUser()->getFullName()} + {php var_dump($languages)} {/block} diff --git a/Web/Presenters/templates/About/Version.xml b/Web/Presenters/templates/About/Version.xml index ea8697c8..752829c2 100644 --- a/Web/Presenters/templates/About/Version.xml +++ b/Web/Presenters/templates/About/Version.xml @@ -410,48 +410,26 @@Languagepacks | +Languagepacks | |||
---|---|---|---|---|
Language | ++ Native name + | Author | ||
Russian | -Vladimir Barinov (veselcraft) | -|||
English | -Vladimir Barinov (veselcraft) | -|||
Belarussian | -Daniil Myslivets (myslivets) and MoccoCoffee | -|||
Serbian | -Ivan Denisov (Dma Games) | -|||
Turkish | -Bedirhan Kurt (WindOWZ) | -|||
Armenian | -apeeh | -|||
German | -SamyoFox | -|||
Ukrainian | -Andrej Lenťaj | -|||
{$language['name']} | +{$language['native_name']} | +{$language['author']} | +