Skip to content

Commit e07d0ab

Browse files
Merge pull request #983 from Codeinwp/fix/translation
fix: missing translations
2 parents 1373e69 + 4843865 commit e07d0ab

File tree

7 files changed

+302
-240
lines changed

7 files changed

+302
-240
lines changed

includes/layouts/feedzy-documentation.php

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
<img src="<?php echo esc_url( FEEDZY_ABSURL . 'img/feed-to-post.jpg' ); ?>" alt="">
1818
</div>
1919
<div class="fz-document-box-content">
20-
<h3 class="h3">Feed to Post</h3>
21-
<p>Learn how to convert feed items into Posts, Pages, or any custom post type.</p>
20+
<h3 class="h3"><?php esc_html_e( 'Feed to Post', 'feedzy-rss-feeds' ); ?></h3>
21+
<p><?php esc_html_e( 'Learn how to convert feed items into Posts, Pages, or any custom post type.', 'feedzy-rss-feeds' ); ?></p>
2222
<div class="cta">
23-
<a href="https://docs.themeisle.com/article/1154-how-to-use-feed-to-post-feature-in-feedzy" class="btn btn-outline-primary" target="_blank">Learn more</a>
23+
<a href="https://docs.themeisle.com/article/1154-how-to-use-feed-to-post-feature-in-feedzy" class="btn btn-outline-primary" target="_blank"><?php esc_html_e( 'Learn more', 'feedzy-rss-feeds' ); ?></a>
2424
</div>
2525
</div>
2626
</div>
@@ -31,10 +31,15 @@
3131
<img src="<?php echo esc_url( FEEDZY_ABSURL . 'img/shortcode.jpg' ); ?>" alt="">
3232
</div>
3333
<div class="fz-document-box-content">
34-
<h3 class="h3">Shortcode</h3>
35-
<p>Learn how to display feed items using the [feedzy-rss] shortcode in a few easy steps.</p>
34+
<h3 class="h3"<?php esc_html_e( 'Shortcode', 'feedzy-rss-feeds' ); ?></h3>
35+
<p>
36+
<?php
37+
// translators: %s is the shortcode [feedzy-rss]
38+
echo sprintf( esc_html__( 'Learn how to display feed items using the %s shortcode in a few easy steps.', 'feedzy-rss-feeds' ), '[feedzy-rss]' );
39+
?>
40+
</p>
3641
<div class="cta">
37-
<a href="https://docs.themeisle.com/article/1130-how-to-use-feedzy-with-a-shortcode" class="btn btn-outline-primary" target="_blank">Learn more</a>
42+
<a href="https://docs.themeisle.com/article/1130-how-to-use-feedzy-with-a-shortcode" class="btn btn-outline-primary" target="_blank"><?php esc_html_e( 'Learn more', 'feedzy-rss-feeds' ); ?></a>
3843
</div>
3944
</div>
4045
</div>
@@ -45,10 +50,16 @@
4550
<img src="<?php echo esc_url( FEEDZY_ABSURL . 'img/rephrase-feeds-content.jpg' ); ?>" alt="">
4651
</div>
4752
<div class="fz-document-box-content">
48-
<h3 class="h3">Rephrase Feeds content</h3>
49-
<p>Learn how to use WordAi and SpinnerChief to rephrase RSS feeds content.</p>
53+
<h3 class="h3"><?php esc_html_e( 'Rephrase Feeds content', 'feedzy-rss-feeds' ); ?></h3>
54+
<p>
55+
<?php
56+
57+
// translators: %1$s and %2$s are the service names (WordAi and SpinnerChief)
58+
echo sprintf( esc_html__( 'Learn how to use %1$s and %2$s to rephrase RSS feeds content.', 'feedzy-rss-feeds' ), 'WordAi', 'SpinnerChief' );
59+
?>
60+
</p>
5061
<div class="cta">
51-
<a href="https://docs.themeisle.com/article/746-how-to-use-wordai-to-rephrase-rss-content-in-feedzy" class="btn btn-outline-primary" target="_blank">Learn more</a>
62+
<a href="https://docs.themeisle.com/article/746-how-to-use-wordai-to-rephrase-rss-content-in-feedzy" class="btn btn-outline-primary" target="_blank"><?php esc_html_e( 'Learn more', 'feedzy-rss-feeds' ); ?></a>
5263
</div>
5364
</div>
5465
</div>
@@ -59,10 +70,10 @@
5970
<img src="<?php echo esc_url( FEEDZY_ABSURL . 'img/validate-RSS-feed.jpg' ); ?>" alt="">
6071
</div>
6172
<div class="fz-document-box-content">
62-
<h3 class="h3">How to validate a RSS feed </h3>
63-
<p>Learn how to check if a RSS feed is valid or not in Feedzy.</p>
73+
<h3 class="h3"><?php esc_html_e( 'How to validate a RSS feed', 'feedzy-rss-feeds' ); ?></h3>
74+
<p><?php esc_html_e( 'Learn how to check if a RSS feed is valid or not in Feedzy.', 'feedzy-rss-feeds' ); ?></p>
6475
<div class="cta">
65-
<a href="https://docs.themeisle.com/article/716-feedzy-how-to-check-whether-the-rss-feed-is-valid-or-not" class="btn btn-outline-primary" target="_blank">Learn more</a>
76+
<a href="https://docs.themeisle.com/article/716-feedzy-how-to-check-whether-the-rss-feed-is-valid-or-not" class="btn btn-outline-primary" target="_blank"><?php esc_html_e( 'Learn more', 'feedzy-rss-feeds' ); ?></a>
6677
</div>
6778
</div>
6879
</div>
@@ -73,10 +84,10 @@
7384
<img src="<?php echo esc_url( FEEDZY_ABSURL . 'img/feedzy-demo.jpg' ); ?>" alt="">
7485
</div>
7586
<div class="fz-document-box-content">
76-
<h3 class="h3">Feedzy Demo</h3>
77-
<p>See how Feedzy can integrate with your website by browsing our examples.</p>
87+
<h3 class="h3"><?php esc_html_e( 'Feedzy Demo', 'feedzy-rss-feeds' ); ?></h3>
88+
<p><?php esc_html_e( 'See how Feedzy can integrate with your website by browsing our examples.', 'feedzy-rss-feeds' ); ?></p>
7889
<div class="cta">
79-
<a href="https://demo.themeisle.com/feedzy-rss-feeds/" class="btn btn-outline-primary" target="_blank">Learn more</a>
90+
<a href="https://demo.themeisle.com/feedzy-rss-feeds/" class="btn btn-outline-primary" target="_blank"><?php esc_html_e( 'Learn more', 'feedzy-rss-feeds' ); ?></a>
8091
</div>
8192
</div>
8293
</div>
@@ -87,16 +98,16 @@
8798
<img src="<?php echo esc_url( FEEDZY_ABSURL . 'img/in-feedzy.jpg' ); ?>" alt="">
8899
</div>
89100
<div class="fz-document-box-content">
90-
<h3 class="h3">In Feedzy how do I...</h3>
91-
<p>Learn some of the most popular hooks you can use with the Feedzy plugin.</p>
101+
<h3 class="h3"><?php esc_html_e( 'In Feedzy how do I...', 'feedzy-rss-feeds' ); ?></h3>
102+
<p><?php esc_html_e( 'Learn some of the most popular hooks you can use with the Feedzy plugin.', 'feedzy-rss-feeds' ); ?></p>
92103
<div class="cta">
93-
<a href="https://docs.themeisle.com/article/942-in-feedzy-how-do-i" class="btn btn-outline-primary" target="_blank">Learn more</a>
104+
<a href="https://docs.themeisle.com/article/942-in-feedzy-how-do-i" class="btn btn-outline-primary" target="_blank"><?php esc_html_e( 'Learn more', 'feedzy-rss-feeds' ); ?></a>
94105
</div>
95106
</div>
96107
</div>
97108
</li>
98109
</ul>
99110
<div class="cta">
100-
<a href="https://docs.themeisle.com/category/712-feedzy" class="btn btn-ghost" target="blank">Open Feedzy Documentation page</a>
111+
<a href="https://docs.themeisle.com/category/712-feedzy" class="btn btn-ghost" target="blank"><?php esc_html_e( 'Open Feedzy Documentation page', 'feedzy-rss-feeds' ); ?></a>
101112
</div>
102113
</div>

includes/layouts/feedzy-improve.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@
55
<img src="<?php echo esc_url( FEEDZY_ABSURL . 'img/improve-feedzy.png' ); ?>" alt="">
66
</div>
77
<div class="fz-left">
8-
<h3 class="h3 pb-16">Answer a few questions to help us improve Feedzy</h3>
9-
<p>We're always looking for suggestions to further improve Feedzy.
10-
<?php if ( ! feedzy_is_pro() ) { ?>
11-
If your feedback is especially helpful and we choose to do an interview with you to discuss your suggestions, you will even gain a yearly membership for free for your trouble.
12-
<?php } ?>
8+
<h3 class="h3 pb-16"><?php esc_html_e( 'Answer a few questions to help us improve Feedzy', 'feedzy-rss-feeds' ); ?></h3>
9+
<p>
10+
<?php
11+
esc_html_e( 'We\'re always looking for suggestions to further improve Feedzy.', 'feedzy-rss-feeds' );
12+
if ( ! feedzy_is_pro() ) {
13+
esc_html_e( 'If your feedback is especially helpful and we choose to do an interview with you to discuss your suggestions, you will even gain a yearly membership for free for your trouble.', 'feedzy-rss-feeds' );
14+
}
15+
?>
1316
</p>
1417
<div class="cta">
15-
<a href="javascript:void(0)" id="fz-feedback-btn" class="btn btn-outline-primary" role="button">Take the Survey</a>
18+
<a href="javascript:void(0)" id="fz-feedback-btn" class="btn btn-outline-primary" role="button"><?php esc_html_e( 'Take the Survey', 'feedzy-rss-feeds' ); ?></a>
1619
</div>
1720
</div>
1821
</div>

includes/layouts/feedzy-pro.php

Lines changed: 70 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<?php // phpcs:disable ?>
22
<div class="fz-pro-features-wrap">
3-
<h2 class="h2">Powerful features available only with Feedzy Pro</h2>
3+
<h2 class="h2"><?php esc_html_e( 'Powerful features available only with Feedzy Pro', 'feedzy-rss-feeds' ); ?></h2>
44
<div class="fz-pro-features-table mb-30">
55
<div class="fz-pro-features-table-header">
66
<ul class="fz-pro-features-table-row">
77
<li class="features-info">&nbsp;</li>
8-
<li class="free">Free</li>
9-
<li class="pro">Pro</li>
8+
<li class="free"><?php esc_html_e( 'Free', 'feedzy-rss-feeds' ); ?></li>
9+
<li class="pro"><?php esc_html_e( 'Pro', 'feedzy-rss-feeds' ); ?></li>
1010
</ul>
1111
</div>
1212
<div class="fz-pro-features-table-body">
1313
<ul class="fz-pro-features-table-row">
1414
<li class="features-info">
15-
<h3 class="h3">Import content from RSS feeds</h3>
16-
<p>Create unlimited import routines for your RSS feeds and let them run on autopilot.</p>
15+
<h3 class="h3"><?php esc_html_e( 'Import content from RSS feeds', 'feedzy-rss-feeds' ); ?></h3>
16+
<p><?php esc_html_e( 'Create unlimited import routines for your RSS feeds and let them run on autopilot.', 'feedzy-rss-feeds' ); ?></p>
1717
</li>
1818
<li class="pro" data-label="Free">
1919
<span class="dashicons dashicons-saved"></span>
@@ -24,8 +24,8 @@
2424
</ul>
2525
<ul class="fz-pro-features-table-row">
2626
<li class="features-info">
27-
<h3 class="h3">Pagebuilder integration</h3>
28-
<p>Filter and display RSS feeds items directly with your favourite page builders.</p>
27+
<h3 class="h3"><?php esc_html_e( 'Pagebuilder integration', 'feedzy-rss-feeds' ); ?></h3>
28+
<p><?php esc_html_e( 'Filter and display RSS feeds items directly with your favourite page builders.', 'feedzy-rss-feeds' ); ?></p>
2929
</li>
3030

3131
<li class="pro" data-label="Free">
@@ -37,11 +37,10 @@
3737
</ul>
3838
<ul class="fz-pro-features-table-row">
3939
<li class="features-info">
40-
<h3 class="h3">Filter by Keyword(s) or Time Range</h3>
41-
<p>With this feature you can filter feed items, and Display or Exclude items if the title or content
42-
contains
43-
specific keyword(s). Additionally you can select a date range to import items within the
44-
selected date.</p>
40+
<h3 class="h3"><?php esc_html_e( 'Filter by Keyword(s) or Time Range', 'feedzy-rss-feeds' ); ?></h3>
41+
<p>
42+
<?php esc_html_e( 'With this feature you can filter feed items, and Display or Exclude items if the title or content contains specific keyword(s). Additionally you can select a date range to import items within the selected date.', 'feedzy-rss-feeds' ); ?>
43+
</p>
4544
</li>
4645
<li class="free" data-label="Free">
4746
<span class="dashicons dashicons-no-alt"></span>
@@ -52,10 +51,12 @@
5251
</ul>
5352
<ul class="fz-pro-features-table-row">
5453
<li class="features-info">
55-
<h3 class="h3">Multiple feed templates</h3>
56-
<p>Choose the best template for each feed, such as standard grid layout, blog layout, online shop
57-
layout, or
58-
audio playback (soundcloud) layout.</p>
54+
<h3 class="h3">
55+
<?php esc_html_e( 'Multiple feed templates', 'feedzy-rss-feeds' ); ?>
56+
</h3>
57+
<p>
58+
<?php esc_html_e( 'Choose the best template for each feed, such as standard grid layout, blog layout, online shop layout, or audio playback (soundcloud) layout.', 'feedzy-rss-feeds' ); ?>
59+
</p>
5960
</li>
6061
<li class="free" data-label="Free">
6162
<span class="dashicons dashicons-no-alt"></span>
@@ -67,10 +68,12 @@
6768

6869
<ul class="fz-pro-features-table-row">
6970
<li class="features-info">
70-
<h3 class="h3">Referral/Affiliate links </h3>
71-
<p>Add referral parameters, and Feedzy will automatically configure affiliate links for each item in
72-
the feed.
73-
You can even import prices from product sources to create extra value for your readers.</p>
71+
<h3 class="h3">
72+
<?php esc_html_e( 'Referral/Affiliate links', 'feedzy-rss-feeds' ); ?>
73+
</h3>
74+
<p>
75+
<?php esc_html_e( 'Add referral parameters, and Feedzy will automatically configure affiliate links for each item in the feed. You can even import prices from product sources to create extra value for your readers.', 'feedzy-rss-feeds' ); ?>
76+
</p>
7477
</li>
7578
<li class="free" data-label="Free">
7679
<span class="dashicons dashicons-no-alt"></span>
@@ -82,12 +85,12 @@
8285

8386
<ul class="fz-pro-features-table-row">
8487
<li class="features-info">
85-
<h3 class="h3">Importing the full-text content <span
86-
class="pro-label">Developer & Agency plans</span></h3>
87-
<p>During the import, Feedzy will visit URLs of all items and parse the content directly from the
88-
website,
89-
importing ALL the content from a item , compared to #item_content tag which only imports the
90-
post excerpts.
88+
<h3 class="h3">
89+
<?php esc_html_e( 'Importing the full-text content', 'feedzy-rss-feeds' ); ?>
90+
<span class="pro-label"><?php esc_html_e( 'Developer & Agency plans', 'feedzy-rss-feeds' ); ?></span>
91+
</h3>
92+
<p>
93+
<?php esc_html_e( 'During the import, Feedzy will visit URLs of all items and parse the content directly from the website, importing ALL the content from a item , compared to #item_content tag which only imports the post excerpts.', 'feedzy-rss-feeds' ); ?>
9194
</p>
9295
</li>
9396
<li class="free" data-label="Free">
@@ -99,9 +102,12 @@ class="pro-label">Developer & Agency plans</span></h3>
99102
</ul>
100103
<ul class="fz-pro-features-table-row">
101104
<li class="features-info">
102-
<h3 class="h3">Custom Fields <span class="pro-label">Developer & Agency plans</span></h3>
103-
<p>Create customizable fields and fetch custom values from the feed such as date updated, rating,
104-
etc.
105+
<h3 class="h3">
106+
<?php esc_html_e( 'Custom Fields', 'feedzy-rss-feeds' ); ?>
107+
<span class="pro-label"><?php esc_html_e( 'Developer & Agency plans', 'feedzy-rss-feeds' ); ?></span>
108+
</h3>
109+
<p>
110+
<?php esc_html_e( 'Create customizable fields and fetch custom values from the feed such as date updated, rating, etc.', 'feedzy-rss-feeds' ); ?>
105111
</p>
106112
</li>
107113
<li class="free" data-label="Free">
@@ -113,8 +119,18 @@ class="pro-label">Developer & Agency plans</span></h3>
113119
</ul>
114120
<ul class="fz-pro-features-table-row">
115121
<li class="features-info">
116-
<h3 class="h3">OpenAI (ChatGPT) Support <span class="pro-label">Developer & Agency plans</span></h3>
117-
<p>Using the OpenAI API integration, paraphrase, summarize, generate missing featured images, or apply your custom prompt to the imported content.
122+
<h3 class="h3">
123+
<?php
124+
// translators: %s: OpenAI (ChatGPT)
125+
echo sprintf( esc_html__( '%s Support', 'feedzy-rss-feeds' ), __( 'OpenAI (ChatGPT)', 'feedzy-rss-feeds' ) );
126+
?>
127+
<span class="pro-label"><?php esc_html_e( 'Answer a few questions to help us improve Feedzy', 'feedzy-rss-feeds' ); ?></span>
128+
</h3>
129+
<p>
130+
<?php
131+
/* 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', 'feedzy-rss-feeds' ) );
133+
?>
118134
</p>
119135
</li>
120136
<li class="free" data-label="Free">
@@ -126,9 +142,20 @@ class="pro-label">Developer & Agency plans</span></h3>
126142
</ul>
127143
<ul class="fz-pro-features-table-row">
128144
<li class="features-info">
129-
<h3 class="h3">WordAI & SpinnerChief integration <span class="pro-label">Agency plan</span></h3>
130-
<p>WordAi and SpinnerChief can be used to rephrase RSS feeds when they are imported as posts in
131-
WordPress.
145+
<h3 class="h3">
146+
<?php
147+
148+
/* translators: %s: WordAI & SpinnerChief */
149+
echo sprintf( esc_html__( '%s integration', 'feedzy-rss-feeds' ), __( 'WordAI & SpinnerChief', 'feedzy-rss-feeds' ) );
150+
?>
151+
<span class="pro-label"><?php esc_html_e( 'Agency plan', 'feedzy-rss-feeds' );?></span>
152+
</h3>
153+
<p>
154+
<?php
155+
156+
/* 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', 'feedzy-rss-feeds' ), __( 'SpinnerChief', 'feedzy-rss-feeds' ) );
158+
?>
132159
</p>
133160
</li>
134161
<li class="free" data-label="Free">
@@ -141,10 +168,12 @@ class="pro-label">Developer & Agency plans</span></h3>
141168

142169
<ul class="fz-pro-features-table-row">
143170
<li class="features-info">
144-
<h3 class="h3">Access to Translation and Paraphrasing service <span
145-
class="pro-label">Agency plan</span></h3>
146-
<p>Paraphrase or translate content before import using the built-in service, no separate
147-
subscription required.</p>
171+
<h3 class="h3">
172+
<?php esc_html_e( 'Access to Translation and Paraphrasing service', 'feedzy-rss-feeds' ); ?> <span class="pro-label"><?php esc_html_e( 'Agency plan', 'feedzy-rss-feeds' ); ?></span>
173+
</h3>
174+
<p>
175+
<?php esc_html_e( 'Paraphrase or translate content before import using the built-in service, no separate subscription required.', 'feedzy-rss-feeds' ); ?>
176+
</p>
148177
</li>
149178
<li class="free" data-label="Free">
150179
<span class="dashicons dashicons-no-alt"></span>
@@ -157,7 +186,8 @@ class="pro-label">Agency plan</span></h3>
157186
</div>
158187

159188
<div class="cta">
160-
<a href="<?php echo esc_url( tsdk_translate_link( tsdk_utmify(FEEDZY_UPSELL_LINK,'viewall','freevspro'), 'query' ) ) ; ?>" class="btn btn-block btn-primary btn-lg" target="_blank">View
161-
all Premium features</a>
189+
<a href="<?php echo esc_url( tsdk_translate_link( tsdk_utmify(FEEDZY_UPSELL_LINK,'viewall','freevspro'), 'query' ) ) ; ?>" class="btn btn-block btn-primary btn-lg" target="_blank">
190+
<?php esc_html_e( 'View all Premium features', 'feedzy-rss-feeds' ); ?>
191+
</a>
162192
</div>
163193
</div>

0 commit comments

Comments
 (0)