Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow-up to #2559445: Replace !placeholder with @placeholder in aggregator module
Problem/Motivation
In order to make #2506445: Replace !placeholder with @placeholder in t() and format_string() for non-URLs in tests approachable, we need to break it up into smaller chunks. This issue address !placeholder in the Config Translation module
See #2506427: [meta] !placeholder causes strings to be escaped and makes the sanitization API harder to understand for complete motivation on removal of !placeholder
Proposed resolution
Replace !placeholder with @placeholder in the Config Translation module.
core/modules/config_translation/*
Remaining tasks
- Replace !placeholder with @placeholder. Refer to patch in #2506445-85: Replace !placeholder with @placeholder in t() and format_string() for non-URLs in tests as that patch should have related update
- Ensure tests come back clean
- Manually test the update and post screen shot after patch, review source for any difference in escaping.
User interface changes
Comment | File | Size | Author |
---|---|---|---|
#3 | interdiff-2559449-2-3.txt | 5.59 KB | geertvd |
#3 | replace_placeholder-2559449-3.patch | 8.17 KB | geertvd |
#2 | replace_placeholder-2559449-2.patch | 13.47 KB | joelpittet |
Comments
Comment #2
joelpittetComment #3
geertvd CreditAttribution: geertvd at XIO commentedRemoving replacements in hook_help since this is covered in #2560783: Replace !placeholder with :placeholder for URLs in hook_help() implementations
Comment #4
justAChris CreditAttribution: justAChris as a volunteer commentedPostponed on determining plan in parent #2506427: [meta] !placeholder causes strings to be escaped and makes the sanitization API harder to understand and then analyzing whether this individual issue still makes sense.
Comment #5
justAChris CreditAttribution: justAChris as a volunteer commentedClosing this, splitting by module was not the ideal approach to removing !placeholder. Marking as duplicate of #2506427: [meta] !placeholder causes strings to be escaped and makes the sanitization API harder to understand, since the chosen approach is / will be outlined there, please refer to it for any additional action.
Comment #6
Sutharsan CreditAttribution: Sutharsan as a volunteer commentedPatch now merged into #2506445-140: Replace !placeholder with @placeholder in t() and format_string() for non-URLs in tests.
Comment #7
xjm