Skip to content

Commit 4843865

Browse files
refactor: brands as translatable strings
1 parent 27a298e commit 4843865

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

includes/layouts/feedzy-pro.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@
122122
<h3 class="h3">
123123
<?php
124124
// translators: %s: OpenAI (ChatGPT)
125-
echo sprintf( esc_html__( '%s Support', 'feedzy-rss-feeds' ), 'OpenAI (ChatGPT)' );
125+
echo sprintf( esc_html__( '%s Support', 'feedzy-rss-feeds' ), __( 'OpenAI (ChatGPT)', 'feedzy-rss-feeds' ) );
126126
?>
127127
<span class="pro-label"><?php esc_html_e( 'Answer a few questions to help us improve Feedzy', 'feedzy-rss-feeds' ); ?></span>
128128
</h3>
129129
<p>
130130
<?php
131131
/* translators: %s: OpenAI API */
132-
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' );
132+
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' ) );
133133
?>
134134
</p>
135135
</li>
@@ -146,15 +146,15 @@
146146
<?php
147147

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

156156
/* translators: %1$s: WordAi, %2$s: SpinnerChief */
157-
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' );
157+
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' ) );
158158
?>
159159
</p>
160160
</li>

js/ActionPopup/SortableItem.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,8 @@ const SortableItem = ({ propRef, loopIndex, item }) => {
170170
label={ __( 'Main Prompt', 'feedzy-rss-feeds' ) }
171171
help={
172172
sprintf(
173-
// translators: %1$s is the tag content: {content}, %2$s is the tag content: {content}
174-
__( 'You can use %1$s in the textarea such as: "Rephrase my %2$s for better SEO."', 'feedzy-rss-feeds' ),
175-
'{content}',
173+
// translators: %1$s is the tag content: {content}
174+
__( 'You can use %1$s in the textarea such as: "Rephrase my %1$s for better SEO."', 'feedzy-rss-feeds' ),
176175
'{content}'
177176
)
178177
}

0 commit comments

Comments
 (0)