Details
-
Type:
Task
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.0
-
Fix Version/s: DEV backlog
-
Component/s: Language
-
Labels:None
-
Affected Branches:MOODLE_20_STABLE
Description
Make and independent script, to be executed in moodle base dir able to:
- extract all tokens from a given lang (en_utf8 mainly).
- search all moodle codebase (and contrib!!!) for any occurrence of those tokens between single or double quotes.
- print summary information (total tokens in lang, number of unused tokens...)
- print unused tokens details.
This will help to get some real numbers about MDL-15252.
Attachments
Issue Links
| This issue has been marked as being related by: | ||||
| MDLSITE-425 | Check for any deleted lang strings |
|
|
|
At the moment, I've got a script that fetches all get_string() and print_string() calls from .php, .html and .htm files. It recognizes the string identifier and the module. There are some more complicated callers that we will have to deal manually with - eg:
get_string('error'.$this->response['faultCode'], 'mnet')
get_string("format$courseformat","format_$courseformat")
get_string('modulename', $this->cm->modname)
I will try to mark up such places. Hopefully some alpha results soon.