TextCollector::run
This is the main method to build the master string tables with the original strings.
It will search for existent modules that use the i18n feature, parse the _t() calls and write the resultant files in the lang folder of each module.
Signature
public function run([array
$restrictToModules = NULL,
[boolean
$mergeWithExisting = false]] )
Parameters
$restrictToModules
— array$mergeWithExisting
— boolean- Merge new master strings with existing ones
already defined in language files, rather than replacing them. This can be useful
for long-term maintenance of translations across releases, because it allows
"translation backports" to older releases without removing strings these older releases
still rely on.