Enclose file name patterns with delimiters in yaml_translation_patterns.yml

Created on 6 December 2022, about 2 years ago
Updated 20 March 2023, almost 2 years ago

Problem/Motivation

When extracting the translation template from a (custom) module, the following warning is provided:

 [warning] preg_match(): No ending delimiter '*' found potx.inc:2372
 [warning] preg_match(): Unknown modifier '.' potx.inc:2372
 [warning] preg_match(): No ending delimiter '*' found potx.inc:2372
 [warning] preg_match(): Unknown modifier '.' potx.inc:2372
 [warning] preg_match(): Unknown modifier '.' potx.inc:2372
 [warning] preg_match(): Unknown modifier '.' potx.inc:2372
 [warning] preg_match(): No ending delimiter '*' found potx.inc:2372
 [warning] preg_match(): Unknown modifier '.' potx.inc:2372
 [warning] preg_match(): No ending delimiter '*' found potx.inc:2372
 [warning] preg_match(): Unknown modifier '.' potx.inc:2372
 [warning] preg_match(): No ending delimiter '*' found potx.inc:2372
 [warning] preg_match(): Unknown modifier '.' potx.inc:2372
 [warning] preg_match(): Delimiter must not be alphanumeric or backslash potx.inc:2372
 [warning] preg_match(): Unknown modifier '.' potx.inc:2372

These patterns are retrieved from the yaml_translation_patterns.yml file.

Proposed resolution

Enclose the file name patterns with the ~ delimiter, similar what is done in the rest of the _potx_parse_yaml_file() function.

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇳🇱Netherlands watergate

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024