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.
D7 introduced context for strings and those specific strings can be overridden via settings.php but the docs in settings.php need to illustrate how to do that.
I think the way to change a string with context is additional arrays after the empty one
$conf['locale_custom_strings_en'] = array(
'' => array(
'forum' => 'Discussion board',
'@count min' => '@count minutes',
'!long-month-name' => array(
'May' => 'May', // Need better example that a no-op translation
),
),
);
Comments
Comment #1
RobLoachSubscribing. As I was updating String Overrides, I noticed that the custom string context wasn't documented, so I found this issue.
Comment #3
catchThis needs to be done, but it's not breaking anything as such.
Comment #4
BenK CreditAttribution: BenK commentedSubscribing...
Comment #5
plachCleaning-up the "language system" issue queue as per http://cyrve.com/criticals.
Comment #6
gregglesThis issue was addressed for 8.x http://cgit.drupalcode.org/drupal/tree/sites/default/default.settings.ph...
I'm marking this issue about 7.x as "outdated" since it seems the time to add this to 7.x has passed.