Skip to content

Commit 7f7d490

Browse files
fix: translate string for documentation tab
1 parent aa96caf commit 7f7d490

File tree

1 file changed

+30
-19
lines changed

1 file changed

+30
-19
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>

0 commit comments

Comments
 (0)