- Status changed to Closed: won't fix
9 months ago 9:56am 11 April 2024 - 🇩🇪Germany geek-merlin Freiburg, Germany
Good idea, but unfortunately:
> Note: GLOB_BRACE is not available on some non GNU systems, like Solaris or Alpine Linux.
We have the following use-case.
Potx is used (by Drupal) to extract all translatable strings from modules and installation profiles. However, sometimes you have some extra files in your project that may also contain translatable strings. We would like to extract all those strings into a single PO file so that they can be translated as a single project while being kept separate from reusable (e.g. contrib) modules.
The PHP glob
function takes the GLOB_BRACE
option: Expands {a,b,c} to match 'a', 'b', or 'c'
. This would add the desired versatility to the folder option. The following expression would work for the above scenario: potx single --folder 'html/{themes/custom,modules/custom,modules/features}/'
.
The PHP man page does show a caveat for this option that we may want to consider: Note: The GLOB_BRACE flag is not available on some non GNU systems, like Solaris.
Closed: won't fix
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Good idea, but unfortunately:
> Note: GLOB_BRACE is not available on some non GNU systems, like Solaris or Alpine Linux.