diff --git a/admin/tool/mobile/lang/en/tool_mobile.php b/admin/tool/mobile/lang/en/tool_mobile.php index 2ba77ad8f04..9ec94bfa568 100644 --- a/admin/tool/mobile/lang/en/tool_mobile.php +++ b/admin/tool/mobile/lang/en/tool_mobile.php @@ -36,6 +36,7 @@ $string['autologout'] = 'Enforce auto logout for your users'; $string['autologout_desc'] = 'For security reasons, you can enforce automatic logout for your users when they leave or close the app, or it goes to background. Users will have to log in again when they return to the app.'; $string['autologoutcustom'] = 'Custom time after users leave or close the app'; $string['autologoutinmediate'] = 'Immediately after users leave or close the app'; +$string['autologouttime'] = 'Auto logout timer'; $string['cachedef_plugininfo'] = 'This stores the list of plugins with mobile addons'; $string['cachedef_subscriptiondata'] = 'This stores the Moodle app subscription information.'; $string['clickheretolaunchtheapp'] = 'Click here if the app does not open automatically.'; diff --git a/admin/tool/mobile/settings.php b/admin/tool/mobile/settings.php index fc607bef1a5..8055b2f3c18 100644 --- a/admin/tool/mobile/settings.php +++ b/admin/tool/mobile/settings.php @@ -111,7 +111,8 @@ if ($hassiteconfig) { new lang_string('autologout', 'tool_mobile'), new lang_string('autologout_desc', 'tool_mobile'), 0, $options)); - $temp->add(new admin_setting_configduration('tool_mobile/autologouttime', '', '', DAYSECS)); + $temp->add(new admin_setting_configduration('tool_mobile/autologouttime', + new lang_string('autologouttime', 'tool_mobile'), '', DAYSECS)); $temp->hide_if('tool_mobile/autologouttime', 'tool_mobile/autologout', 'neq', tool_mobile\api::AUTOLOGOUT_CUSTOM); $options = [