function _potx_parse_js_string in Translation template extractor 5
Same name and namespace in other branches
- 8 potx.inc \_potx_parse_js_string()
- 5.2 potx.inc \_potx_parse_js_string()
- 6.3 potx.inc \_potx_parse_js_string()
- 6 potx.inc \_potx_parse_js_string()
- 6.2 potx.inc \_potx_parse_js_string()
- 7.3 potx.inc \_potx_parse_js_string()
- 7 potx.inc \_potx_parse_js_string()
- 7.2 potx.inc \_potx_parse_js_string()
Clean up string found in JavaScript source code. Only for Drupal 6.
1 call to _potx_parse_js_string()
- _potx_parse_js_file in ./
potx.inc - Parse a JavaScript file for translatables. Only for Drupal 6.
File
- ./
potx.inc, line 1065 - Extraction API used by the web and command line interface.
Code
function _potx_parse_js_string($string) {
return _potx_format_quoted_string(implode('', preg_split('~(?<!\\\\)[\'"]\\s*\\+\\s*[\'"]~s', $string)));
}