diff options
author | Mario <mario@mariovavti.com> | 2021-08-24 18:50:19 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-08-24 18:50:19 +0000 |
commit | f39952805557b33f612a3d1769057bcefffeb438 (patch) | |
tree | b6eee7d7fda21f40f57b984534c9d03e821159ae /Zotlabs/Module/Lang.php | |
parent | fea3980c01499d627655cbe93361526c540e543e (diff) | |
download | volse-hubzilla-f39952805557b33f612a3d1769057bcefffeb438.tar.gz volse-hubzilla-f39952805557b33f612a3d1769057bcefffeb438.tar.bz2 volse-hubzilla-f39952805557b33f612a3d1769057bcefffeb438.zip |
more app descriptions and change the image counter to display % of images loaded instead of loaded images count
Diffstat (limited to 'Zotlabs/Module/Lang.php')
-rw-r--r-- | Zotlabs/Module/Lang.php | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/Zotlabs/Module/Lang.php b/Zotlabs/Module/Lang.php index 1a2f1664e..fe185ebea 100644 --- a/Zotlabs/Module/Lang.php +++ b/Zotlabs/Module/Lang.php @@ -28,9 +28,9 @@ class Lang extends Controller { } } - $lc = x($_POST['zinlc']) && preg_match('/^\?\?|[a-z]{2,2}[x_\-]{0,1}[a-zA-Z]{0,2}$/', $_POST['zinlc']) + $lc = x($_POST['zinlc']) && preg_match('/^\?\?|[a-z]{2,2}[x_\-]{0,1}[a-zA-Z]{0,2}$/', $_POST['zinlc']) ? $_POST['zinlc'] : ''; - $lcs= x($_POST['zinlcs']) && preg_match('/^[a-z,_\-]{0,191}$/', $_POST['zinlcs']) + $lcs= x($_POST['zinlcs']) && preg_match('/^[a-z,_\-]{0,191}$/', $_POST['zinlcs']) ? $_POST['zinlcs'] : ''; if ($isajax) { @@ -57,12 +57,10 @@ class Lang extends Controller { 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') . ' (' . t('Not Installed') . '):</b><br>'; - $o .= t('Change UI language'); - return $o; + //Do not display any associated widgets at this point + App::$pdl = ''; + $papp = Apps::get_papp('Language'); + return Apps::app_render($papp, 'module'); } } @@ -70,5 +68,5 @@ class Lang extends Controller { return lang_selector(); } - + } |