streams/Zotlabs/Module/Lang.php

29 lines
494 B
PHP
Raw Normal View History

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
2018-09-16 07:30:07 +00:00
class Lang extends Controller {
2016-04-19 03:38:38 +00:00
function get() {
2018-09-16 07:30:07 +00:00
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');
2016-04-19 03:38:38 +00:00
return lang_selector();
2018-09-16 07:30:07 +00:00
2016-04-19 03:38:38 +00:00
}
}