Moodle Plugins directory: String override: Versions: 1.0.0 | Moodle.org
String override
Local plugins ::: local_string_override
Maintained by
Juho Jaakkola,
Arto Nieminen
Makes it possible for plugins to override existing translations regardless if they're bundled with Moodle or they're originated from a community plugin.
String override 1.0.0
Moodle 2.9, 3.0, 3.1
Released: quinta-feira, 11 de agosto de 2016 às 21:06
local_string_override
Moodle plugin that allows plugins to override existing translations.
Every now and then plugins need to change the way how Moodle behaves. Changes in the behavior may however cause the existing translations to become inconsistent with the new behavior. This plugin makes it possible for plugins to override the existing translations regardless if they're bundled with Moodle or they're originated from a community plugin.
Installation
- Place the plugin source code to
/local/string_override/
directory Enable the string manager in
config.php
with:$CFG->customstringmanager = 'local_string_override_manager';
How to use it
- Find the identifier of the string that you want to override
- E.g.
auth_changepasswordhelp_expl
- E.g.
- Find out the file where the translation is located
- E.g.
/lang/en/auth.php
- E.g.
- Create the file
<type>/<your_plugin>/lang/<lang_code>/<translation_file>.php
- E.g.
local/lazydog/lang/en/auth.php
- E.g.
Add the string identifier to the file using the standard translation file syntax
$string['auth_changepasswordhelp_expl'] = 'Your custom translation here';
Version information
- Version build number
- 2016081000
- Version release name
- 1.0.0
- Maturity
- Versão estável
- MD5 Sum
- 3fb1f511b87b94f31226f12c566f8fab
- Supported software
- Moodle 2.9, Moodle 3.0, Moodle 3.1
- The more recent release 1.0.1 (2017100500) exists for Moodle 2.9
- The more recent release 1.0.1 (2017100500) exists for Moodle 3.0
- The more recent release 1.0.1 (2017100500) exists for Moodle 3.1
Version control information
- Version control system (VCS)
- GIT
- VCS repository URL
- VCS tag
- 1.0.0
Default installation instructions for plugins of the type Local plugins
- Make sure you have all the required versions.
- Download and unpack the module.
- Place the folder in the "local" subdirectory.
- Visit http://yoursite.com/admin to finish the installation.