Skip to content

Commit

Permalink
refactor: brands as translatable strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Oct 28, 2024
1 parent 27a298e commit 4843865
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions includes/layouts/feedzy-pro.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@
<h3 class="h3">
<?php
// translators: %s: OpenAI (ChatGPT)
echo sprintf( esc_html__( '%s Support', 'feedzy-rss-feeds' ), 'OpenAI (ChatGPT)' );
echo sprintf( esc_html__( '%s Support', 'feedzy-rss-feeds' ), __( 'OpenAI (ChatGPT)', 'feedzy-rss-feeds' ) );
?>
<span class="pro-label"><?php esc_html_e( 'Answer a few questions to help us improve Feedzy', 'feedzy-rss-feeds' ); ?></span>
</h3>
<p>
<?php
/* translators: %s: OpenAI API */
echo sprintf( esc_html__( 'Using the %s integration, paraphrase, summarize, generate missing featured images, or apply your custom prompt to the imported content.', 'feedzy-rss-feeds' ), 'OpenAI API' );
echo sprintf( esc_html__( 'Using the %s integration, paraphrase, summarize, generate missing featured images, or apply your custom prompt to the imported content.', 'feedzy-rss-feeds' ), __( 'OpenAI API', 'feedzy-rss-feeds' ) );
?>
</p>
</li>
Expand All @@ -146,15 +146,15 @@
<?php

/* translators: %s: WordAI & SpinnerChief */
echo sprintf( esc_html__( '%s integration', 'feedzy-rss-feeds' ), 'WordAI & SpinnerChief' );
echo sprintf( esc_html__( '%s integration', 'feedzy-rss-feeds' ), __( 'WordAI & SpinnerChief', 'feedzy-rss-feeds' ) );
?>
<span class="pro-label"><?php esc_html_e( 'Agency plan', 'feedzy-rss-feeds' );?></span>
</h3>
<p>
<?php

/* translators: %1$s: WordAi, %2$s: SpinnerChief */
echo sprintf( esc_html__( '%1$s and %2$s can be used to rephrase RSS feeds when they are imported as posts in WordPress.', 'feedzy-rss-feeds' ), 'WordAi', 'SpinnerChief' );
echo sprintf( esc_html__( '%1$s and %2$s can be used to rephrase RSS feeds when they are imported as posts in WordPress.', 'feedzy-rss-feeds' ), __( 'WordAi', 'feedzy-rss-feeds' ), __( 'SpinnerChief', 'feedzy-rss-feeds' ) );
?>
</p>
</li>
Expand Down
5 changes: 2 additions & 3 deletions js/ActionPopup/SortableItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,8 @@ const SortableItem = ({ propRef, loopIndex, item }) => {
label={ __( 'Main Prompt', 'feedzy-rss-feeds' ) }
help={
sprintf(
// translators: %1$s is the tag content: {content}, %2$s is the tag content: {content}
__( 'You can use %1$s in the textarea such as: "Rephrase my %2$s for better SEO."', 'feedzy-rss-feeds' ),
'{content}',
// translators: %1$s is the tag content: {content}
__( 'You can use %1$s in the textarea such as: "Rephrase my %1$s for better SEO."', 'feedzy-rss-feeds' ),
'{content}'
)
}
Expand Down

0 comments on commit 4843865

Please sign in to comment.