2016-04-19 03:38:38 +00:00
|
|
|
<?php
|
2021-12-03 03:01:39 +00:00
|
|
|
|
2022-02-16 04:08:28 +00:00
|
|
|
namespace Code\Module;
|
2016-04-19 03:38:38 +00:00
|
|
|
|
2018-09-16 07:30:07 +00:00
|
|
|
use App;
|
2022-02-16 04:08:28 +00:00
|
|
|
use Code\Lib\Apps;
|
|
|
|
use Code\Web\Controller;
|
|
|
|
use Code\Lib\Navbar;
|
2016-04-19 03:38:38 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
class Lang extends Controller
|
|
|
|
{
|
2016-04-19 03:38:38 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
public function get()
|
|
|
|
{
|
2018-09-16 07:30:07 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
if (local_channel()) {
|
|
|
|
if (!Apps::system_app_installed(local_channel(), 'Language')) {
|
|
|
|
//Do not display any associated widgets at this point
|
|
|
|
App::$pdl = '';
|
2018-09-16 07:30:07 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
$o = '<b>Language App (Not Installed):</b><br>';
|
|
|
|
$o .= t('Change UI language');
|
|
|
|
return $o;
|
|
|
|
}
|
|
|
|
}
|
2018-09-16 07:30:07 +00:00
|
|
|
|
2022-01-25 04:16:38 +00:00
|
|
|
Navbar::set_selected('Language');
|
2021-12-02 23:02:31 +00:00
|
|
|
return lang_selector();
|
|
|
|
}
|
2016-04-19 03:38:38 +00:00
|
|
|
}
|