function potx_finish_processing in Translation template extractor 7.3
Same name and namespace in other branches
- 8 potx.inc \potx_finish_processing()
- 6.3 potx.inc \potx_finish_processing()
Executes tasks that need to happen after all the files have been processed.
Parameters
string $save_callback:
int $api_version:
3 calls to potx_finish_processing()
- PotxTestCase::testDrupal8CustomYml in tests/
potx.test - Test parsing of custom yaml files.
- potx_drush_extract in ./
potx.drush.inc - Drush command callback.
- potx_select_component_form_submit in ./
potx.admin.inc - Generate translation template or translation file for the requested component.
File
- ./
potx.inc, line 388 - Extraction API used by the web and command line interface.
Code
function potx_finish_processing($save_callback = '_potx_save_string', $api_version = POTX_API_CURRENT) {
global $yaml_translation_patterns;
global $_potx_module_metadata;
global $potx_callbacks;
if ($api_version > POTX_API_7) {
foreach ($_potx_module_metadata as $module_name => $module_metadata) {
$potx_callbacks['store_module_metadata']($module_name, $module_metadata);
}
// Parsing shipped configuration has to happen after processing all schemas.
_potx_parse_shipped_configuration($save_callback, $api_version);
// Clear yaml translation patterns, so translation patterns for a module
// won't be used for extracting translatable strings for another module.
$yaml_translation_patterns = NULL;
}
}