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

RobLoach’s picture

Subscribing. As I was updating String Overrides, I noticed that the custom string context wasn't documented, so I found this issue.

catch’s picture

Priority: Critical » Normal

This needs to be done, but it's not breaking anything as such.

BenK’s picture

Subscribing...

plach’s picture

Component: language system » locale.module

Cleaning-up the "language system" issue queue as per http://cyrve.com/criticals.

greggles’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

This 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.