aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Lang.php
blob: a163da1024b3f372f6d23939bd6d8887058b3a44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?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>' . t('Language App (Not Installed):') . '</b><br>';
				$o .= t('Change UI language');
				return $o;
			}
		}

		nav_set_selected('Language');
		return lang_selector();

	}
	
}