自定义Moodle登录页面

pre*_*thi 0 moodle

我想自定义Moodle登录页面.这就是为什么我要将"Username"等关键字更改为"uid",并将关键字"password"更改为"Userpassword".

我正在使用Moodle版本:2.7,主题:干净.

建议我对这些关键字进行更改的一些步骤.

Rus*_*and 5

您可以通过菜单更改语言字符串

网站管理员 - >语言 - >语言自定义 - >选择语言 - >搜索字符串

在幕后,这将创建一个本地版本 moodledata/lang/

例如: moodledata/lang/en_local/moodle.php

这比修改核心代码更好.

或者您可以直接创建上述文件并添加需要修改的字符串,例如;

<?php

// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.

/**
 * Local language pack from http://yourwebsite.com
 *
 * @package    core
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

defined('MOODLE_INTERNAL') || die();

$string['password'] = 'Userpassword';
$string['username'] = 'uid';
Run Code Online (Sandbox Code Playgroud)

  • 站点管理员>开发人员>清除所有缓存.这应该加载您所做的更改(如果您通过系统菜单更改语言字符串,则自动完成) (2认同)