Skip to content

Commit

Permalink
Merge pull request #983 from Codeinwp/fix/translation
Browse files Browse the repository at this point in the history
fix: missing translations
  • Loading branch information
Soare-Robert-Daniel authored Oct 28, 2024
2 parents 1373e69 + 4843865 commit e07d0ab
Show file tree
Hide file tree
Showing 7 changed files with 302 additions and 240 deletions.
49 changes: 30 additions & 19 deletions includes/layouts/feedzy-documentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
<img src="<?php echo esc_url( FEEDZY_ABSURL . 'img/feed-to-post.jpg' ); ?>" alt="">
</div>
<div class="fz-document-box-content">
<h3 class="h3">Feed to Post</h3>
<p>Learn how to convert feed items into Posts, Pages, or any custom post type.</p>
<h3 class="h3"><?php esc_html_e( 'Feed to Post', 'feedzy-rss-feeds' ); ?></h3>
<p><?php esc_html_e( 'Learn how to convert feed items into Posts, Pages, or any custom post type.', 'feedzy-rss-feeds' ); ?></p>
<div class="cta">
<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>
<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>
</div>
</div>
</div>
Expand All @@ -31,10 +31,15 @@
<img src="<?php echo esc_url( FEEDZY_ABSURL . 'img/shortcode.jpg' ); ?>" alt="">
</div>
<div class="fz-document-box-content">
<h3 class="h3">Shortcode</h3>
<p>Learn how to display feed items using the [feedzy-rss] shortcode in a few easy steps.</p>
<h3 class="h3"<?php esc_html_e( 'Shortcode', 'feedzy-rss-feeds' ); ?></h3>
<p>
<?php
// translators: %s is the shortcode [feedzy-rss]
echo sprintf( esc_html__( 'Learn how to display feed items using the %s shortcode in a few easy steps.', 'feedzy-rss-feeds' ), '[feedzy-rss]' );
?>
</p>
<div class="cta">
<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>
<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>
</div>
</div>
</div>
Expand All @@ -45,10 +50,16 @@
<img src="<?php echo esc_url( FEEDZY_ABSURL . 'img/rephrase-feeds-content.jpg' ); ?>" alt="">
</div>
<div class="fz-document-box-content">
<h3 class="h3">Rephrase Feeds content</h3>
<p>Learn how to use WordAi and SpinnerChief to rephrase RSS feeds content.</p>
<h3 class="h3"><?php esc_html_e( 'Rephrase Feeds content', 'feedzy-rss-feeds' ); ?></h3>
<p>
<?php

// translators: %1$s and %2$s are the service names (WordAi and SpinnerChief)
echo sprintf( esc_html__( 'Learn how to use %1$s and %2$s to rephrase RSS feeds content.', 'feedzy-rss-feeds' ), 'WordAi', 'SpinnerChief' );
?>
</p>
<div class="cta">
<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>
<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>
</div>
</div>
</div>
Expand All @@ -59,10 +70,10 @@
<img src="<?php echo esc_url( FEEDZY_ABSURL . 'img/validate-RSS-feed.jpg' ); ?>" alt="">
</div>
<div class="fz-document-box-content">
<h3 class="h3">How to validate a RSS feed </h3>
<p>Learn how to check if a RSS feed is valid or not in Feedzy.</p>
<h3 class="h3"><?php esc_html_e( 'How to validate a RSS feed', 'feedzy-rss-feeds' ); ?></h3>
<p><?php esc_html_e( 'Learn how to check if a RSS feed is valid or not in Feedzy.', 'feedzy-rss-feeds' ); ?></p>
<div class="cta">
<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>
<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>
</div>
</div>
</div>
Expand All @@ -73,10 +84,10 @@
<img src="<?php echo esc_url( FEEDZY_ABSURL . 'img/feedzy-demo.jpg' ); ?>" alt="">
</div>
<div class="fz-document-box-content">
<h3 class="h3">Feedzy Demo</h3>
<p>See how Feedzy can integrate with your website by browsing our examples.</p>
<h3 class="h3"><?php esc_html_e( 'Feedzy Demo', 'feedzy-rss-feeds' ); ?></h3>
<p><?php esc_html_e( 'See how Feedzy can integrate with your website by browsing our examples.', 'feedzy-rss-feeds' ); ?></p>
<div class="cta">
<a href="https://demo.themeisle.com/feedzy-rss-feeds/" class="btn btn-outline-primary" target="_blank">Learn more</a>
<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>
</div>
</div>
</div>
Expand All @@ -87,16 +98,16 @@
<img src="<?php echo esc_url( FEEDZY_ABSURL . 'img/in-feedzy.jpg' ); ?>" alt="">
</div>
<div class="fz-document-box-content">
<h3 class="h3">In Feedzy how do I...</h3>
<p>Learn some of the most popular hooks you can use with the Feedzy plugin.</p>
<h3 class="h3"><?php esc_html_e( 'In Feedzy how do I...', 'feedzy-rss-feeds' ); ?></h3>
<p><?php esc_html_e( 'Learn some of the most popular hooks you can use with the Feedzy plugin.', 'feedzy-rss-feeds' ); ?></p>
<div class="cta">
<a href="https://docs.themeisle.com/article/942-in-feedzy-how-do-i" class="btn btn-outline-primary" target="_blank">Learn more</a>
<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>
</div>
</div>
</div>
</li>
</ul>
<div class="cta">
<a href="https://docs.themeisle.com/category/712-feedzy" class="btn btn-ghost" target="blank">Open Feedzy Documentation page</a>
<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>
</div>
</div>
15 changes: 9 additions & 6 deletions includes/layouts/feedzy-improve.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
<img src="<?php echo esc_url( FEEDZY_ABSURL . 'img/improve-feedzy.png' ); ?>" alt="">
</div>
<div class="fz-left">
<h3 class="h3 pb-16">Answer a few questions to help us improve Feedzy</h3>
<p>We're always looking for suggestions to further improve Feedzy.
<?php if ( ! feedzy_is_pro() ) { ?>
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.
<?php } ?>
<h3 class="h3 pb-16"><?php esc_html_e( 'Answer a few questions to help us improve Feedzy', 'feedzy-rss-feeds' ); ?></h3>
<p>
<?php
esc_html_e( 'We\'re always looking for suggestions to further improve Feedzy.', 'feedzy-rss-feeds' );
if ( ! feedzy_is_pro() ) {
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' );
}
?>
</p>
<div class="cta">
<a href="javascript:void(0)" id="fz-feedback-btn" class="btn btn-outline-primary" role="button">Take the Survey</a>
<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>
</div>
</div>
</div>
Expand Down
110 changes: 70 additions & 40 deletions includes/layouts/feedzy-pro.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?php // phpcs:disable ?>
<div class="fz-pro-features-wrap">
<h2 class="h2">Powerful features available only with Feedzy Pro</h2>
<h2 class="h2"><?php esc_html_e( 'Powerful features available only with Feedzy Pro', 'feedzy-rss-feeds' ); ?></h2>
<div class="fz-pro-features-table mb-30">
<div class="fz-pro-features-table-header">
<ul class="fz-pro-features-table-row">
<li class="features-info">&nbsp;</li>
<li class="free">Free</li>
<li class="pro">Pro</li>
<li class="free"><?php esc_html_e( 'Free', 'feedzy-rss-feeds' ); ?></li>
<li class="pro"><?php esc_html_e( 'Pro', 'feedzy-rss-feeds' ); ?></li>
</ul>
</div>
<div class="fz-pro-features-table-body">
<ul class="fz-pro-features-table-row">
<li class="features-info">
<h3 class="h3">Import content from RSS feeds</h3>
<p>Create unlimited import routines for your RSS feeds and let them run on autopilot.</p>
<h3 class="h3"><?php esc_html_e( 'Import content from RSS feeds', 'feedzy-rss-feeds' ); ?></h3>
<p><?php esc_html_e( 'Create unlimited import routines for your RSS feeds and let them run on autopilot.', 'feedzy-rss-feeds' ); ?></p>
</li>
<li class="pro" data-label="Free">
<span class="dashicons dashicons-saved"></span>
Expand All @@ -24,8 +24,8 @@
</ul>
<ul class="fz-pro-features-table-row">
<li class="features-info">
<h3 class="h3">Pagebuilder integration</h3>
<p>Filter and display RSS feeds items directly with your favourite page builders.</p>
<h3 class="h3"><?php esc_html_e( 'Pagebuilder integration', 'feedzy-rss-feeds' ); ?></h3>
<p><?php esc_html_e( 'Filter and display RSS feeds items directly with your favourite page builders.', 'feedzy-rss-feeds' ); ?></p>
</li>

<li class="pro" data-label="Free">
Expand All @@ -37,11 +37,10 @@
</ul>
<ul class="fz-pro-features-table-row">
<li class="features-info">
<h3 class="h3">Filter by Keyword(s) or Time Range</h3>
<p>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.</p>
<h3 class="h3"><?php esc_html_e( 'Filter by Keyword(s) or Time Range', 'feedzy-rss-feeds' ); ?></h3>
<p>
<?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' ); ?>
</p>
</li>
<li class="free" data-label="Free">
<span class="dashicons dashicons-no-alt"></span>
Expand All @@ -52,10 +51,12 @@
</ul>
<ul class="fz-pro-features-table-row">
<li class="features-info">
<h3 class="h3">Multiple feed templates</h3>
<p>Choose the best template for each feed, such as standard grid layout, blog layout, online shop
layout, or
audio playback (soundcloud) layout.</p>
<h3 class="h3">
<?php esc_html_e( 'Multiple feed templates', 'feedzy-rss-feeds' ); ?>
</h3>
<p>
<?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' ); ?>
</p>
</li>
<li class="free" data-label="Free">
<span class="dashicons dashicons-no-alt"></span>
Expand All @@ -67,10 +68,12 @@

<ul class="fz-pro-features-table-row">
<li class="features-info">
<h3 class="h3">Referral/Affiliate links </h3>
<p>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.</p>
<h3 class="h3">
<?php esc_html_e( 'Referral/Affiliate links', 'feedzy-rss-feeds' ); ?>
</h3>
<p>
<?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' ); ?>
</p>
</li>
<li class="free" data-label="Free">
<span class="dashicons dashicons-no-alt"></span>
Expand All @@ -82,12 +85,12 @@

<ul class="fz-pro-features-table-row">
<li class="features-info">
<h3 class="h3">Importing the full-text content <span
class="pro-label">Developer & Agency plans</span></h3>
<p>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.
<h3 class="h3">
<?php esc_html_e( 'Importing the full-text content', 'feedzy-rss-feeds' ); ?>
<span class="pro-label"><?php esc_html_e( 'Developer & Agency plans', 'feedzy-rss-feeds' ); ?></span>
</h3>
<p>
<?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' ); ?>
</p>
</li>
<li class="free" data-label="Free">
Expand All @@ -99,9 +102,12 @@ class="pro-label">Developer & Agency plans</span></h3>
</ul>
<ul class="fz-pro-features-table-row">
<li class="features-info">
<h3 class="h3">Custom Fields <span class="pro-label">Developer & Agency plans</span></h3>
<p>Create customizable fields and fetch custom values from the feed such as date updated, rating,
etc.
<h3 class="h3">
<?php esc_html_e( 'Custom Fields', 'feedzy-rss-feeds' ); ?>
<span class="pro-label"><?php esc_html_e( 'Developer & Agency plans', 'feedzy-rss-feeds' ); ?></span>
</h3>
<p>
<?php esc_html_e( 'Create customizable fields and fetch custom values from the feed such as date updated, rating, etc.', 'feedzy-rss-feeds' ); ?>
</p>
</li>
<li class="free" data-label="Free">
Expand All @@ -113,8 +119,18 @@ class="pro-label">Developer & Agency plans</span></h3>
</ul>
<ul class="fz-pro-features-table-row">
<li class="features-info">
<h3 class="h3">OpenAI (ChatGPT) Support <span class="pro-label">Developer & Agency plans</span></h3>
<p>Using the OpenAI API integration, paraphrase, summarize, generate missing featured images, or apply your custom prompt to the imported content.
<h3 class="h3">
<?php
// translators: %s: 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', 'feedzy-rss-feeds' ) );
?>
</p>
</li>
<li class="free" data-label="Free">
Expand All @@ -126,9 +142,20 @@ class="pro-label">Developer & Agency plans</span></h3>
</ul>
<ul class="fz-pro-features-table-row">
<li class="features-info">
<h3 class="h3">WordAI & SpinnerChief integration <span class="pro-label">Agency plan</span></h3>
<p>WordAi and SpinnerChief can be used to rephrase RSS feeds when they are imported as posts in
WordPress.
<h3 class="h3">
<?php

/* translators: %s: 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', 'feedzy-rss-feeds' ), __( 'SpinnerChief', 'feedzy-rss-feeds' ) );
?>
</p>
</li>
<li class="free" data-label="Free">
Expand All @@ -141,10 +168,12 @@ class="pro-label">Developer & Agency plans</span></h3>

<ul class="fz-pro-features-table-row">
<li class="features-info">
<h3 class="h3">Access to Translation and Paraphrasing service <span
class="pro-label">Agency plan</span></h3>
<p>Paraphrase or translate content before import using the built-in service, no separate
subscription required.</p>
<h3 class="h3">
<?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>
</h3>
<p>
<?php esc_html_e( 'Paraphrase or translate content before import using the built-in service, no separate subscription required.', 'feedzy-rss-feeds' ); ?>
</p>
</li>
<li class="free" data-label="Free">
<span class="dashicons dashicons-no-alt"></span>
Expand All @@ -157,7 +186,8 @@ class="pro-label">Agency plan</span></h3>
</div>

<div class="cta">
<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
all Premium features</a>
<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">
<?php esc_html_e( 'View all Premium features', 'feedzy-rss-feeds' ); ?>
</a>
</div>
</div>
Loading

0 comments on commit e07d0ab

Please sign in to comment.