Skip to content

Commit d8e704b

Browse files
fix: correct typos, improve text formatting, styling and loading
1 parent 3e29a3f commit d8e704b

14 files changed

+66
-53
lines changed

css/settings.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,7 @@ span.error-message .components-external-link .components-visually-hidden{
18011801
}
18021802
.fz-action-btn button {
18031803
display: flex;
1804-
width: 131px;
1804+
min-width: 131px;
18051805
height: 44px;
18061806
padding: 12px 18px;
18071807
justify-content: space-between;

includes/abstract/feedzy-rss-feeds-admin-abstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ protected function check_valid_source( $url, $cache, $source_type = 'xml' ) {
10041004
)
10051005
);
10061006
if ( ! empty( $amazon_products->get_errors() ) ) {
1007-
$amazon_api_errors['source_type'] = __( '[Amazon Product Advertising API] ', 'feedzy-rss-feeds' );
1007+
$amazon_api_errors['source_type'] = '[' . __( 'Amazon Product Advertising API', 'feedzy-rss-feeds' ) . ']';
10081008
$amazon_api_errors['source'] = array( $url );
10091009
$amazon_api_errors['errors'] = $amazon_products->get_errors();
10101010
update_post_meta( $post_id, '__transient_feedzy_invalid_source_errors', $amazon_api_errors );

includes/admin/feedzy-rss-feeds-admin.php

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ public function enqueue_styles_admin() {
213213
)
214214
);
215215

216+
wp_set_script_translations( $this->plugin_name . '_action_popup', 'feedzy-rss-feeds' );
217+
216218
$asset_file = include FEEDZY_ABSPATH . '/build/conditions/index.asset.php';
217219
wp_enqueue_script( $this->plugin_name . '_conditions', FEEDZY_ABSURL . 'build/conditions/index.js', array_merge( $asset_file['dependencies'], array( 'wp-editor', 'wp-api' ) ), $asset_file['version'], true );
218220

@@ -235,6 +237,8 @@ public function enqueue_styles_admin() {
235237

236238
wp_enqueue_style( 'wp-block-editor' );
237239

240+
wp_set_script_translations( $this->plugin_name . '_conditions', 'feedzy-rss-feeds' );
241+
238242
$this->register_survey();
239243
}
240244
if ( ! defined( 'TI_CYPRESS_TESTING' ) && ( 'edit' !== $screen->base && 'feedzy_imports' === $screen->post_type && feedzy_show_import_tour() ) ) {
@@ -661,15 +665,15 @@ public function add_feedzy_post_type_metaboxes() {
661665
* Render RN upsell metabox.
662666
*/
663667
public function render_upsell_rn() {
664-
echo '<strong>Get access to more features.</strong>';
668+
echo '<strong>' . esc_html__( 'Get access to more features.', 'feedzy-rss-feeds' ) . '</strong>';
665669
echo '<ul>
666-
<li>- Auto add referral parameters to links</li>
667-
<li>- Full Text Import</li>
668-
<li>- Parahrase content</li>
669-
<li>- Translate content</li>
670-
<li>- Elementor Templates support</li>
670+
<li>- ' . esc_html__( 'Auto add referral parameters to links', 'feedzy-rss-feeds' ) . '</li>
671+
<li>- ' . esc_html__( 'Full Text Import', 'feedzy-rss-feeds' ) . '</li>
672+
<li>- ' . esc_html__( 'Paraphrase content', 'feedzy-rss-feeds' ) . '</li>
673+
<li>- ' . esc_html__( 'Translate content', 'feedzy-rss-feeds' ) . '</li>
674+
<li>- ' . esc_html__( 'Elementor Templates support', 'feedzy-rss-feeds' ) . '</li>
671675
</ul>';
672-
echo '<a class="button button-primary " href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'metabox', 'new-category' ) ) ) . '" target="_blank">View more details</a>';
676+
echo '<a class="button button-primary " href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'metabox', 'new-category' ) ) ) . '" target="_blank">' . esc_html__( 'View more details', 'feedzy-rss-feeds' ) . '</a>';
673677
}
674678

675679
/**
@@ -1693,7 +1697,7 @@ private function setup_wizard_subscribe_process() {
16931697
$response = array(
16941698
'status' => 1,
16951699
'redirect_to' => add_query_arg( 'post_type', 'feedzy_imports', admin_url( 'edit.php' ) ),
1696-
'message' => __( 'Redirecting to feedzy dashboard', 'feedzy-rss-feeds' ),
1700+
'message' => __( 'Redirecting to Feedzy dashboard', 'feedzy-rss-feeds' ),
16971701
);
16981702
}
16991703
} elseif ( 'shortcode' === $integrate_with ) {
@@ -1708,7 +1712,7 @@ private function setup_wizard_subscribe_process() {
17081712
$response = array(
17091713
'status' => 1,
17101714
'redirect_to' => add_query_arg( 'post_type', 'feedzy_imports', admin_url( 'edit.php' ) ),
1711-
'message' => __( 'Redirecting to feedzy dashboard', 'feedzy-rss-feeds' ),
1715+
'message' => __( 'Redirecting to Feedzy dashboard', 'feedzy-rss-feeds' ),
17121716
);
17131717
}
17141718
} elseif ( 'page_builder' === $integrate_with ) {
@@ -2120,15 +2124,15 @@ public function get_lang_list() {
21202124
'ars_Arab' => __( 'Najdi Arabic', 'feedzy-rss-feeds' ),
21212125
'ary_Arab' => __( 'Moroccan Arabic', 'feedzy-rss-feeds' ),
21222126
'arz_Arab' => __( 'Egyptian Arabic', 'feedzy-rss-feeds' ),
2123-
'asm_Beng' => __( 'Assamese ', 'feedzy-rss-feeds' ),
2127+
'asm_Beng' => __( 'Assamese', 'feedzy-rss-feeds' ),
21242128
'ast_Latn' => __( 'Asturian', 'feedzy-rss-feeds' ),
21252129
'awa_Deva' => __( 'Awadhi', 'feedzy-rss-feeds' ),
21262130
'ayr_Latn' => __( 'Central Aymara', 'feedzy-rss-feeds' ),
21272131
'azb_Arab' => __( 'South Azerbaijani', 'feedzy-rss-feeds' ),
21282132
'azj_Latn' => __( 'North Azerbaijani', 'feedzy-rss-feeds' ),
21292133
'bak_Cyrl' => __( 'Bashkir', 'feedzy-rss-feeds' ),
21302134
'bam_Latn' => __( 'Bambara', 'feedzy-rss-feeds' ),
2131-
'ban_Latn' => __( 'Balinese ', 'feedzy-rss-feeds' ),
2135+
'ban_Latn' => __( 'Balinese', 'feedzy-rss-feeds' ),
21322136
'bel_Cyrl' => __( 'Belarusian', 'feedzy-rss-feeds' ),
21332137
'bem_Latn' => __( 'Bemba', 'feedzy-rss-feeds' ),
21342138
'ben_Beng' => __( 'Bengali', 'feedzy-rss-feeds' ),
@@ -2168,7 +2172,7 @@ public function get_lang_list() {
21682172
'glg_Latn' => __( 'Galician', 'feedzy-rss-feeds' ),
21692173
'grn_Latn' => __( 'Guarani', 'feedzy-rss-feeds' ),
21702174
'guj_Gujr' => __( 'Gujarati', 'feedzy-rss-feeds' ),
2171-
'hat_Latn' => __( 'Haitian Creole ', 'feedzy-rss-feeds' ),
2175+
'hat_Latn' => __( 'Haitian Creole', 'feedzy-rss-feeds' ),
21722176
'hau_Latn' => __( 'Hausa', 'feedzy-rss-feeds' ),
21732177
'heb_Hebr' => __( 'Hebrew', 'feedzy-rss-feeds' ),
21742178
'hin_Deva' => __( 'Hindi', 'feedzy-rss-feeds' ),
@@ -2187,7 +2191,7 @@ public function get_lang_list() {
21872191
'kac_Latn' => __( 'Jingpho', 'feedzy-rss-feeds' ),
21882192
'kam_Latn' => __( 'Kamba', 'feedzy-rss-feeds' ),
21892193
'kan_Knda' => __( 'Kannada', 'feedzy-rss-feeds' ),
2190-
'kas_Arab' => __( 'Kashmiri Arab)', 'feedzy-rss-feeds' ),
2194+
'kas_Arab' => __( 'Kashmiri Arab', 'feedzy-rss-feeds' ),
21912195
'kas_Deva' => __( 'Kashmiri Devanagari', 'feedzy-rss-feeds' ),
21922196
'kat_Geor' => __( 'Georgian', 'feedzy-rss-feeds' ),
21932197
'knc_Arab' => __( 'Central Kanuri Arab', 'feedzy-rss-feeds' ),
@@ -2288,7 +2292,7 @@ public function get_lang_list() {
22882292
'tso_Latn' => __( 'Tsonga', 'feedzy-rss-feeds' ),
22892293
'tuk_Latn' => __( 'Turkmen', 'feedzy-rss-feeds' ),
22902294
'tum_Latn' => __( 'Tumbuka', 'feedzy-rss-feeds' ),
2291-
'tur_Latn' => __( 'Turkish ', 'feedzy-rss-feeds' ),
2295+
'tur_Latn' => __( 'Turkish', 'feedzy-rss-feeds' ),
22922296
'twi_Latn' => __( 'Twi', 'feedzy-rss-feeds' ),
22932297
'tzm_Tfng' => __( 'Central Atlas Tamazight', 'feedzy-rss-feeds' ),
22942298
'uig_Arab' => __( 'Uyghur', 'feedzy-rss-feeds' ),

includes/admin/feedzy-rss-feeds-import.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3485,7 +3485,7 @@ public function add_import_export_section() {
34853485
<script type="template/text" id="fz_import_field_section">
34863486
<div class="fz-import-field hidden">
34873487
<form method="post" enctype="multipart/form-data" action="<?php echo esc_url( add_query_arg( array( 'action' => 'fz_import_job' ), admin_url( 'admin.php' ) ) ); ?>">
3488-
<h4> <?php esc_html_e( 'Choose the inport job .json file to import.', 'feedzy-rss-feeds' ); ?></h4>
3488+
<h4> <?php esc_html_e( 'Choose the import job .json file to import.', 'feedzy-rss-feeds' ); ?></h4>
34893489
<?php wp_nonce_field( 'fz_import_job' ); ?>
34903490
<input type="file" accept=".json" name="fz_import" required>
34913491
<button type="submit" class="button button-primary"><?php esc_html_e( 'Import', 'feedzy-rss-feeds' ); ?></button>

includes/admin/feedzy-rss-feeds-ui-lang.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ public static function get_form_elements() {
366366
),
367367
),
368368
'keywords_ban' => array(
369-
'label' => __( 'Exclude items if selected field contains specific keyword(s) (Use comma(,) and plus(+) keyword). ', 'feedzy-rss-feeds' ),
369+
'label' => __( 'Exclude items if selected field contains specific keyword(s) (Use comma(,) and plus(+) keyword).', 'feedzy-rss-feeds' ),
370370
'placeholder' => __( '(eg: politics, gossip + stock etc.)', 'feedzy-rss-feeds' ),
371371
'type' => 'text',
372372
'value' => '',

includes/elementor/widgets/register-widget.php

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ protected function register_controls() { // phpcs:ignore PSR2.Methods.MethodDecl
243243
'fz-filter-from-dt',
244244
array(
245245
'label_block' => true,
246-
'label' => __( 'Filter items by time range, from: ', 'feedzy-rss-feeds' ),
246+
'label' => __( 'Filter items by time range, from:', 'feedzy-rss-feeds' ) . ' ',
247247
'type' => 'date_time_local',
248248
'classes' => $this->upsell_class(),
249249
'separator' => 'before',
@@ -253,7 +253,7 @@ protected function register_controls() { // phpcs:ignore PSR2.Methods.MethodDecl
253253
'fz-filter-to-dt',
254254
array(
255255
'label_block' => true,
256-
'label' => __( 'To ', 'feedzy-rss-feeds' ),
256+
'label' => __( 'To', 'feedzy-rss-feeds' ) . ' ',
257257
'type' => 'date_time_local',
258258
'classes' => $this->upsell_class(),
259259
)
@@ -468,14 +468,11 @@ protected function register_controls() { // phpcs:ignore PSR2.Methods.MethodDecl
468468
'label' => __( 'Display additional meta fields (author, date, time or categories)', 'feedzy-rss-feeds' ),
469469
'label_block' => true,
470470
'type' => Controls_Manager::TEXT,
471-
'description' => wp_sprintf(
472-
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
473-
__(
474-
'You can add multiple tags at once, by separating them with commas.%1$s View documentation here %2$s .', 'feedzy-rss-feeds'
475-
),
476-
'<a target="_blank" href="' . esc_url( 'https://docs.themeisle.com/article/1089-how-to-display-author-date-or-time-from-the-feed' ) . '">',
477-
'</a>'
478-
),
471+
'description' => __( 'You can add multiple tags at once, by separating them with commas.', 'feedzy-rss-feeds' )
472+
. ' '
473+
. '<a target="_blank" href="' . esc_url( 'https://docs.themeisle.com/article/1089-how-to-display-author-date-or-time-from-the-feed' ) . '">'
474+
. __( 'View documentation here.', 'feedzy-rss-feeds' )
475+
. '</a>',
479476
)
480477
);
481478
$this->add_control(
@@ -485,14 +482,13 @@ protected function register_controls() { // phpcs:ignore PSR2.Methods.MethodDecl
485482
'placeholder' => __( '(eg: source)', 'feedzy-rss-feeds' ),
486483
'label_block' => true,
487484
'type' => Controls_Manager::TEXT,
488-
'description' => wp_sprintf(
489-
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
490-
__(
491-
'You can find more info about available meta field values here.%1$s View documentation here %2$s .', 'feedzy-rss-feeds'
492-
),
493-
'<a target="_blank" href="' . esc_url( 'https://docs.themeisle.com/article/1089-how-to-display-author-date-or-time-from-the-feed' ) . '">',
494-
'</a>'
495-
),
485+
// translators: this followed by sentence: View documentation here.
486+
'description' => __( 'You can find more info about available meta field values here.', 'feedzy-rss-feeds' )
487+
. ' '
488+
. '<a target="_blank" href="' . esc_url( 'https://docs.themeisle.com/article/1089-how-to-display-author-date-or-time-from-the-feed' ) . '">'
489+
// translators: this sentence is wrapped with a link tag.
490+
. __( 'View documentation here.', 'feedzy-rss-feeds' )
491+
. '</a>',
496492
)
497493
);
498494
$this->add_control(

includes/views/amazon-product-advertising-view.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
$content = __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
88
$content .= wp_sprintf(
9-
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag
9+
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
1010
__( 'Unlock more powerful features, by %1$s upgrading to Feedzy Pro %2$s', 'feedzy-rss-feeds' ),
1111
'<a href="' . esc_url( $upgrade_url ) . '" target="_blank">',
1212
'</a>'

includes/views/import-metabox-edit.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class="dashicons dashicons-arrow-down-alt2"></span>
9494
<input type="text" id="feedzy-source-tags" name="feedzy_meta_data[source]" class="fz-tagify--outside" value="<?php echo esc_attr( $source ); ?>" />
9595
</div>
9696
<div class="cta-text pt-8">
97-
<a href="<?php echo esc_url( 'https://docs.themeisle.com/article/799-how-to-find-feed-url-for-feedzy-rss-feeds' ); ?>" target="_blank"><?php esc_html_e( 'How do I find an RSS feed URL? ', 'feedzy-rss-feeds' ); ?></a>
97+
<a href="<?php echo esc_url( 'https://docs.themeisle.com/article/799-how-to-find-feed-url-for-feedzy-rss-feeds' ); ?>" target="_blank"><?php esc_html_e( 'How do I find an RSS feed URL?', 'feedzy-rss-feeds' ); ?></a>
9898
</div>
9999
</div>
100100
</div>
@@ -304,7 +304,7 @@ class="dashicons dashicons-arrow-down-alt2"></span>
304304
</div>
305305
<div class="fz-right">
306306
<div class="fz-form-group">
307-
<label class="form-label"><?php esc_html_e( 'The date for the generated post. ', 'feedzy-rss-feeds' ); ?></label>
307+
<label class="form-label"><?php esc_html_e( 'The date for the generated post.', 'feedzy-rss-feeds' ); ?></label>
308308
<div class="fz-input-group">
309309
<div class="fz-input-group-left">
310310
<div class="fz-group">
@@ -864,7 +864,7 @@ class="btn btn-ghost"><?php esc_html_e( 'Clone Import', 'feedzy-rss-feeds' ); ?>
864864
</div>
865865
<div class="fz-right">
866866
<button type="button" id="preflight" name="check" class="btn btn-ghost" value="Check"
867-
title="<?php esc_html_e( 'Click to see what items will be imported from the source, according to the filters specified', 'feedzy-rss-feeds' ); ?>"><?php esc_html_e( 'Preview Import', 'feedzy-rss-feeds' ); ?></button>
867+
title="<?php esc_html_e( 'Click to see what items will be imported from the source, according to the filters specified', 'feedzy-rss-feeds' ); ?>"><?php esc_html_e( 'Preview Import', 'feedzy-rss-feeds' ); ?></button>
868868
<?php
869869
if ( 'publish' === $post_status ) {
870870
?>

includes/views/openai-view.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,14 @@
2525
<label class="form-label"><?php esc_html_e( 'The OpenAI model:', 'feedzy-rss-feeds' ); ?></label>
2626
<div class="help-text pb-8">
2727
<?php
28-
// translators: %1$s: OpenAI pricing url, %2$s: link text.
29-
echo wp_kses_post( sprintf( __( 'OpenAI API models <a href="%1$s" target="_blank">%2$s</a>', 'feedzy-rss-feeds' ), esc_url( 'https://openai.com/api/pricing/' ), __( 'Pricing', 'feedzy-rss-feeds' ) ) );
28+
echo wp_kses_post(
29+
sprintf(
30+
// translators: %1$s: OpenAI pricing url, %2$s: link text.
31+
__( 'OpenAI API models <a href="%1$s" target="_blank">%2$s</a>', 'feedzy-rss-feeds' ),
32+
esc_url( 'https://openai.com/api/pricing/' ),
33+
__( 'Pricing', 'feedzy-rss-feeds' )
34+
)
35+
);
3036
?>
3137
</div>
3238
<div class="fz-input-group">

includes/views/spinnerchief-view.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<div class="upgrade-alert mb-24">
44
<?php
55
echo wp_kses_post(
6-
wp_sprintf(
7-
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag
8-
__( 'You\'re using Feedzy Lite. Unlock more powerful features, by %1$s upgrading to Feedzy Pro %2$s', 'feedzy-rss-feeds' ),
6+
__( 'You\'re using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ' . wp_sprintf(
7+
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
8+
__( 'Unlock more powerful features, by %1$s upgrading to Feedzy Pro %2$s', 'feedzy-rss-feeds' ),
99
'<a target="_blank" href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'spinnerchief' ) ) ) . '">',
1010
'</a>'
1111
)

0 commit comments

Comments
 (0)