Merge pull request #24812 from mahyard/mark-message-to-be-extracted

Put two messages inside interpolate function to be extracted
This commit is contained in:
Ned Batchelder
2020-08-19 14:54:17 -04:00
committed by GitHub

View File

@@ -313,11 +313,14 @@
{
view: new AccountSettingsFieldViews.SocialLinkTextFieldView({
model: userAccountModel,
title: gettext(platformData.display_name + ' Link'),
title: StringUtils.interpolate(
gettext('{platform_display_name} Link'),
{platform_display_name: platformData.display_name}
),
valueAttribute: 'social_links',
helpMessage: gettext(
'Enter your ' + platformData.display_name + ' username or the URL to your ' +
platformData.display_name + ' page. Delete the URL to remove the link.'
helpMessage: StringUtils.interpolate(
gettext('Enter your {platform_display_name} username or the URL to your {platform_display_name} page. Delete the URL to remove the link.'), // eslint-disable-line max-len
{platform_display_name: platformData.display_name}
),
platform: socialPlatform,
persistChanges: true,