aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Lang.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-09-16 09:30:07 +0200
committerMario Vavti <mario@mariovavti.com>2018-09-16 09:30:07 +0200
commit07cd1d1272bd301c2f41f5579697754ccbbf5ae3 (patch)
treeab8220846fc31eff352e65befe8fbb46700cc228 /Zotlabs/Module/Lang.php
parent791ff25d52c7f7e95758f1218a1621012b15be7c (diff)
downloadvolse-hubzilla-07cd1d1272bd301c2f41f5579697754ccbbf5ae3.tar.gz
volse-hubzilla-07cd1d1272bd301c2f41f5579697754ccbbf5ae3.tar.bz2
volse-hubzilla-07cd1d1272bd301c2f41f5579697754ccbbf5ae3.zip
appification of the lang module
Diffstat (limited to 'Zotlabs/Module/Lang.php')
-rw-r--r--Zotlabs/Module/Lang.php19
1 files changed, 17 insertions, 2 deletions
diff --git a/Zotlabs/Module/Lang.php b/Zotlabs/Module/Lang.php
index 0e5d85d05..9858beecd 100644
--- a/Zotlabs/Module/Lang.php
+++ b/Zotlabs/Module/Lang.php
@@ -1,13 +1,28 @@
<?php
namespace Zotlabs\Module;
+use App;
+use Zotlabs\Lib\Apps;
+use Zotlabs\Web\Controller;
-class Lang extends \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();
+
}
-
}