Confused about config

Created on 10 May 2024, 5 months ago

All the advice I can find suggests that potx extracts config strings alongside everything else.
But my test
drush @hamlets potx --modules=contact
Shows nothing extracted from contact/config/install where I would expect to see 'Personal contact form' and 'Your message has been sent.'
Digging into the code it seems that these files are scanned but during the recursion of
_potx_find_shipped_config_translatables()
it never reaches $save_callback()
because
$_potx_processed_schema['translatables'] is not populated

I was able to populate it by swapping this
elseif (in_array($type, $_potx_processed_schema['translatables']) || (isset($schema_data['translatable']) && $schema_data['translatable'] === TRUE)) {
for
elseif (in_array($type, $_potx_processed_schema['translatables']) || in_array($schema_data['type'], ['text', 'label', 'required_label'])) {

💬 Support request
Status

Active

Version

1.0

Component

Documentation

Created by

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

Comments & Activities

  • Issue created by @matslats
  • This same problem of not extracting config seems to happen on localize.drupal.org, which has I believe been the case for years.
    So there's probably something I'm missing.

Production build 0.71.5 2024