LOCALE_JS_STRING
Same name and namespace in other branches
- 10 core/modules/locale/locale.module \LOCALE_JS_STRING
- 11.x core/modules/locale/locale.module \LOCALE_JS_STRING
- 9 core/modules/locale/locale.module \LOCALE_JS_STRING
- 8.9.x core/modules/locale/locale.module \LOCALE_JS_STRING
- 7.x includes/locale.inc \LOCALE_JS_STRING
Regular expression pattern used to localize JavaScript strings.
2 uses of LOCALE_JS_STRING
- locale.module in core/
modules/ locale/ locale.module - LocaleJs::parseJsFile in core/
modules/ locale/ src/ LocaleJs.php - Parses a JavaScript file, extracts translatable strings, and saves them.
File
-
core/
modules/ locale/ locale.module, line 25
Code
const LOCALE_JS_STRING = '(?:(?:\'(?:\\\\\'|[^\'])*\'|"(?:\\\\"|[^"])*")(?:\\s*\\+\\s*)?)+';
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.