Details
-
Type:
New Feature
-
Status: Development in progress
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 3.11
-
Fix Version/s: None
-
Component/s: Language
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_311_STABLE
-
Pull from Repository:
-
Pull Master Branch:mdl-70415-cli-search-and-replace
Description
There is a very common requirement to customize a large number of strings. eg 'course' -> 'subject'.
https://moodle.org/mod/forum/discuss.php?d=354499#
https://moodle.org/mod/forum/discuss.php?d=272950
The normal language customization is perfect from a functional point of view but its just clunky to do in bulk and an error prone process.
Proposing a very simple search and replace script, almost identical in usage to the db replace tool, but it operates on language strings.
http://moodle.local/admin/tool/replace/
php admin/tool/replace/cli/replace.php -h
MVP is a cli. We might do a gui in another tracker.