Skip to content

Commit

Permalink
Improve translatability of text.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwilsoncc committed Aug 30, 2022
1 parent 019edad commit 14f55f3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions assets/js/gutenberg-syndicated-post.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ if (
);
} else if ( ! parseInt( dtGutenberg.unlinked ) ) {
message = sprintf(
/** translators: 1) Source of content. */
/** translators: 1) Source of content, 2) Distributor post type singular name. */
__(
'Distributed from %s. The original will update this version unless you',
'Distributed from %1$s. This %2$s is linked to the original. Edits to the original will be reflected in this version.',
'distributor'
),
dtGutenberg.originalLocationName
dtGutenberg.originalLocationName,
dtGutenberg.postTypeSingular
);

actions.push( {
label: __( 'unlink from original.', 'distributor' ),
label: __( 'Unlink from original.', 'distributor' ),
url: dtGutenberg.unlinkNonceUrl,
} );

Expand All @@ -42,15 +43,15 @@ if (
message = sprintf(
/** translators: 1) Source of content, 2) Distributor post type singular name. */
__(
'Originally distributed from %1$s. This %2$s has been unlinked from the original. However, you can always',
'Originally distributed from %1$s. This %2$s has been unlinked from the original. Edits to the original will not be reflected in this version.',
'distributor'
),
dtGutenberg.originalLocationName,
dtGutenberg.postTypeSingular
);

actions.push( {
label: __( 'restore it.', 'distributor' ),
label: __( 'Relink to original.', 'distributor' ),
url: dtGutenberg.linkNonceUrl,
} );

Expand Down

0 comments on commit 14f55f3

Please sign in to comment.