mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-57838-master' of git://github.com/jleyva/moodle
This commit is contained in:
commit
5de6c5dc3b
@ -48,8 +48,6 @@ class api {
|
||||
const LOGIN_VIA_EMBEDDED_BROWSER = 3;
|
||||
/** @var int seconds an auto-login key will expire. */
|
||||
const LOGIN_KEY_TTL = 60;
|
||||
/** @var str link to the custom strings documentation for the app */
|
||||
const CUSTOM_STRINGS_DOC_URL = 'https://docs.moodle.org/en/Moodle_Mobile_language_strings_customisation';
|
||||
|
||||
/**
|
||||
* Returns a list of Moodle plugins supporting the mobile app.
|
||||
|
@ -32,7 +32,7 @@ $string['customlangstrings_desc'] = 'Words and phrases displayed in the app can
|
||||
mm.user.student|Learner|en
|
||||
mm.user.student|Aprendiz|es
|
||||
</pre>
|
||||
For a complete list of string identifiers and more information, see the <a href="{$a}">documentation page</a>.';
|
||||
For a complete list of string identifiers, see the documentation.';
|
||||
$string['custommenuitems'] = 'Custom menu items';
|
||||
$string['custommenuitems_desc'] = 'Additional items can be added to the app\'s main menu by specifying them here. Enter each custom menu item on a new line with format: item text, link URL, link-opening method (inappbrowser, browser or embedded) and language code (optional, for displaying the item to users of the specified language only), separated by pipe characters. For example:
|
||||
<pre>
|
||||
|
@ -109,8 +109,7 @@ if ($hassiteconfig) {
|
||||
|
||||
$temp->add(new admin_setting_configtextarea('tool_mobile/customlangstrings',
|
||||
new lang_string('customlangstrings', 'tool_mobile'),
|
||||
new lang_string('customlangstrings_desc', 'tool_mobile', tool_mobile\api::CUSTOM_STRINGS_DOC_URL),
|
||||
'', PARAM_RAW, '50', '10'));
|
||||
new lang_string('customlangstrings_desc', 'tool_mobile'), '', PARAM_RAW, '50', '10'));
|
||||
|
||||
$ADMIN->add('mobileapp', $temp);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user