mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-22 19:15:19 +00:00
28 lines
494 B
PHP
28 lines
494 B
PHP
<?php
|
|
namespace Zotlabs\Module;
|
|
|
|
use App;
|
|
use Zotlabs\Lib\Apps;
|
|
use Zotlabs\Web\Controller;
|
|
|
|
class Lang extends Controller {
|
|
|
|
function get() {
|
|
|
|
if(local_channel()) {
|
|
if(! Apps::system_app_installed(local_channel(), 'Language')) {
|
|
//Do not display any associated widgets at this point
|
|
App::$pdl = '';
|
|
|
|
$o = '<b>Language App (Not Installed):</b><br>';
|
|
$o .= t('Change UI language');
|
|
return $o;
|
|
}
|
|
}
|
|
|
|
nav_set_selected('Language');
|
|
return lang_selector();
|
|
|
|
}
|
|
|
|
}
|