2016-04-19 03:38:38 +00:00
|
|
|
<?php
|
|
|
|
namespace Zotlabs\Module;
|
|
|
|
|
2018-09-16 07:30:07 +00:00
|
|
|
use App;
|
|
|
|
use Zotlabs\Lib\Apps;
|
|
|
|
use Zotlabs\Web\Controller;
|
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
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
nav_set_selected('Language');
|
|
|
|
return lang_selector();
|
|
|
|
|
|
|
|
}
|
2018-09-16 07:30:07 +00:00
|
|
|
|
2016-04-19 03:38:38 +00:00
|
|
|
}
|