• Resolved Alex Lion (阿力獅)

    (@alexclassroom)


    One plugin, unique text domain, so I modified so code as the follows.

    If there is a public GitHub repository for this plugin, please let me know and I will submit a PR for these I18N issues.

    app\Admin.php, Line 136 and 137

    <h3><?php _e( 'Congratulations! You\'re almost there.. ??</img>', 'image-sizes' ); ?></h3>
    <p><?php printf( __( 'Thanks for installing <strong>%1$s</strong>. In order to stop unnecessary image sizes from generating, you need disable them first.', 'image-sizes' ), $this->name ); ?></p>

    app\Wizard.php

    Line 59

    'label'			=> __( 'Welcome', 'image-sizes' ),

    Line 67

    'label'			=> __( 'Disable Thumbnails', 'image-sizes' ),

    Line 72

    'label'			=> __( 'Complete', 'image-sizes' ),

    vendor\codexpert\plugin\src\Deactivator.php

    Line 83

    <?php printf( __( 'We\'re so sorry to see you go, %s!', 'image-sizes' ), $user->display_name ); ?>

    Line 85

    <p class="cx-heading"><?php _e( 'Would you mind telling us why you are deactivating so we can improve it? ??</img>', 'image-sizes' ) ?></p>

    Line 105

    <a href="" class="button cx-plugin-dsm-skip-btn"><?php _e( 'Skip & Deactivate', 'image-sizes' ) ?></a>

    Line 107

    <button class="button cx-plugin-dsm-btn cx-plugin-dsm-close"><?php _e( 'Cancel', 'image-sizes' ) ?></button>

    Line 109

    <button class="button button-primary cx-plugin-dsm-btn cx-plugin-dsm-submit" type="submit"><?php _e( 'Submit & Deactivate', 'image-sizes' ) ?></button>

    Line 115

    <p class="cx-desc cx-consent-label" data-desc="<?php _e( 'It includes your name, email, site URL and the input you give here.', 'image-sizes' ); ?>"><?php _e( 'What data we collect', 'image-sizes' ); ?></p>

    Line 142

    wp_send_json( [ 'status' => 1, 'message' => __( 'Plugin deactivated', 'image-sizes' ) ] );

    vendor\codexpert\plugin\src\Fields.php

    Line 121 and 122

    $submit_button = isset( $section['submit_button'] ) ? $section['submit_button'] : __( 'Save Settings', 'image-sizes' );
    $reset_button = isset( $section['reset_button'] ) ? $section['reset_button'] : __( 'Reset Default', 'image-sizes' );

    Line 284

    return __( 'Invalid field type', 'image-sizes' );

    Line 515 and 516

    $upload_button	= isset( $field['upload_button'] ) ? $field['upload_button'] : __( 'Choose File', 'image-sizes' );$select_button	= isset( $field['select_button'] ) ? $field['select_button'] : __( 'Select', 'image-sizes' );

    Line 136

    $notice .= '<p>' . sprintf( __( '<strong>ALERT:</strong> In order to enjoy the features of <strong>%1$s</strong>, you need to activate the license first. Sorry, but the plugin won\'t work without activation! Please <a href="%2$s">activate it now</a>.', 'image-sizes' ), $this->name, $this->get_activation_url() ) . '</p>';

    Line 145

    $notice .= '<p>' . sprintf( __( '<strong>ALERT:</strong> Your license for <strong>%1$s</strong> is about to expire in <strong>%2$s</strong>. The plugin will stop working without a valid license key. <a href="%3$s">Renew your license</a> now and get a special <strong>%4$s discount</strong>!', 'image-sizes' ), $this->name, human_time_diff( $expiry, time() ), $this->get_renewal_url(), '20%' ) . '</p>';

    Line 154

    $notice .= '<p>' . sprintf( __( '<strong>WARNING:</strong> It looks like <strong>%1$s</strong> can\'t connect to our server and is unable to receive updates! The plugin might stop working if it\'s not connected. <a href="%2$s">Reconnect Now</a>.', 'image-sizes' ), $this->name, $this->get_deactivation_url() ) . '</p>';

    Line 165

    $activate_label	= apply_filters( "{$this->slug}_activate_label", __( 'Activate', 'image-sizes' ), $this->plugin );

    Line 167 and 168

    $html .= '<p class="cx-desc">' . sprintf( __( 'Thanks for installing <strong>%1$s</strong> ??</img>', 'image-sizes' ), $this->name ) . '</p>';
    $html .= '<p class="cx-desc">' . __( 'In order to make the plugin work, you need to activate the license by clicking the button below. Please reach out to us if you need any help.', 'image-sizes' ) . '</p>';

    Line 174

    $deactivate_label	= apply_filters( "{$this->slug}_deactivate_label", __( 'Deactivate', 'image-sizes' ), $this->plugin );

    Line 177

    $html .= '<p class="cx-desc">' . sprintf( __( 'Congratulations! Your license for <strong>%s</strong> is activated. ??</img>', 'image-sizes' ), $this->name ) . '</p>';

    Line 181

    $html .= '<p class="cx-info">' . sprintf( __( 'Name: %s', 'image-sizes' ), $license_meta->customer_name ) . '</p>';

    Line 185

    $html .= '<p class="cx-info">' . sprintf( __( 'Email: %s', 'image-sizes' ), $license_meta->customer_email ) . '</p>';

    Line 189

    $html .= '<p class="cx-info">' . sprintf( __( 'Order ID: %s', 'image-sizes' ), $license_meta->payment_id ) . '</p>';

    Line 192

    $html .= '<p class="cx-info">' . sprintf( __( 'Expiry: %s', 'image-sizes' ), $this->get_license_expiry() ) . '</p>';

    Line 194

    $html .= '<p class="cx-info">' . __( 'You can deactivate the license by clicking the button below.', 'image-sizes' ) . '</p>';

    Line 238

    'message'	=> __( 'Something is wrong', 'image-sizes' ),

    Line 256

    $_response['message'] = is_wp_error( $response ) ? $response->get_error_message() : __( 'An error occurred, please try again.', 'image-sizes' );

    Line 268

    __( 'Your license key expired on %s.', 'image-sizes' ),

    Line 276

    $_response['message'] = __( 'Your license key has been disabled.', 'image-sizes' );

    Line 281

    $_response['message'] = __( 'Invalid license.', 'image-sizes' );

    Line 287

    $_response['message'] = __( 'Your license is not active for this URL.', 'image-sizes' );

    Line 292

    $_response['message'] = sprintf( __( 'This appears to be an invalid license key for %s.', 'image-sizes' ), $item_name );

    Line 297

    $_response['message'] = __( 'Your license key has reached its activation limit.', 'image-sizes' );

    Line 302

    $_response['message'] = __( 'An error occurred, please try again.', 'image-sizes' );

    Line 321

    $_response['message']	= __( 'License activated', 'image-sizes' );

    Line 254

    $_response['message']	= __( 'License valid', 'image-sizes' );

    Line 359

    $_response['message']	= __( 'License invalid', 'image-sizes' );

    \vendor\codexpert\plugin\src\Metabox.php, Line 33

    'label'			=> __( 'Metabox', 'image-sizes' ),

    vendor\codexpert\plugin\src\Notice.php

    Line 48

    $notice = '<p>' . sprintf( __( '<strong>%s</strong> requires <i>WordPress version %s</i> or higher. You have <i>version %s</i> installed.', 'image-sizes' ), $this->name, $this->plugin['min_wp'], get_bloginfo( 'version' ) ) . '</p>';

    Line 53

    $notice = '<p>' . sprintf( __( '<strong>%s</strong> requires <i>PHP version %s</i> or higher. You have <i>version %s</i> installed.', 'image-sizes' ), $this->name, $this->plugin['min_php'], PHP_VERSION ) . '</p>';

    Line 69

    $button_text = array_key_exists( $plugin, $installed_plugins ) ? __( 'Activate', 'image-sizes' ) : __( 'Install', 'image-sizes' );

    Line 72

    $notice = '<p>' . sprintf( __( '<strong>ALERT:</strong> In order to <strong>%1$s</strong> run properly, <strong>%2$s</strong> needs to be activated. <a href="%3$s">%4$s %2$s Now</a>.', 'image-sizes' ), $this->name, $plugin_name, $action_link, $button_text ) . '</p>';

    vendor\codexpert\plugin\src\Settings.php

    Line 33

    'label'			=> __( 'Settings', 'image-sizes' ),

    Line 73

    wp_send_json( array( 'status' => 0, 'message' => __( 'Unauthorized!', 'image-sizes' ) ) );

    Line 83

    wp_send_json( apply_filters( 'cx-settings-response', array( 'status' => -1, 'message' => __( 'Ignored', 'image-sizes' ) ), $this->sanitize( $_POST, 'array' ) ) );

    Line 96

    wp_send_json( apply_filters( 'cx-settings-response', array( 'status' => 1, 'message' => __( 'Settings Saved!', 'image-sizes' ), 'page_load' => $page_load ), $posted_data ) );

    Line 101

    wp_send_json( array( 'status' => 0, 'message' => __( 'Unauthorized!', 'image-sizes' ) ) );

    Line 110

    wp_send_json( apply_filters( 'cx-settings-response', array( 'status' => -1, 'message' => __( 'Ignored', 'image-sizes' ) ), $posted_data ) );

    Line 117

    wp_send_json( apply_filters( 'cx-settings-response', array( 'status' => 1, 'message' => __( 'Settings Reset!', 'image-sizes' ) ), $posted_data ) );

    vendor\codexpert\plugin\src\Setup.php

    Line 78

    <title><?php printf( __( '%s &rsaquo; Setup Wizard', 'image-sizes' ), $this->name ); ?></title>

    Line 178 and 179

    $prev_text 		= isset( $config['prev_text'] ) ? $config['prev_text'] : __( 'Previous', 'image-sizes' );
    										$next_text		= $current_step == $next_step ? __( 'Finish', 'image-sizes' ) : ( isset( $config['next_text'] ) ? $config['next_text'] : __( 'Next', 'image-sizes' ) );

    vendor\codexpert\plugin\src\Survey.php, Line 36 to 38

    $this->notice_heading = '<h3>' . sprintf( __( 'Thanks for using \'<strong>%s</strong>\'', 'image-sizes' ), $this->name ) . '</h3>';
    $this->notice_message = '<p> ' . __( 'We want to know what type of sites use this plugin. Users\' satisfaction is our first priority and we\'re continuously working on it. This is why we need some information so that we can improve it even more.<br />Help us with your site URL and a few basic information. It doesn\'t include your password or any secret data. Would you like to help us?', 'image-sizes' ) . '</p>';
    $this->notice_button_text = __( 'Okay. Don\'t bother me again!', 'image-sizes' );

    vendor\codexpert\plugin\src\Update.php

    Line 167

    $plugin_meta['check'] = '<a href="' . add_query_arg( 'cx-recheck', $this->slug, admin_url( 'plugins.php' ) ) . '">' . __( 'Check for update', 'image-sizes' ) . '</a>';

    Line 264

    __( 'There is a new version of %1$s available. %2$sView version %3$s details%4$s.', 'image-sizes' ),

    Line 272

    __( 'There is a new version of %1$s available. %2$sView version %3$s details%4$s or %5$supdate now%6$s.', 'image-sizes' ),

    Line 510

    wp_die( __( 'You do not have permission to install plugin updates', 'image-sizes' ), __( 'Error', 'image-sizes' ), array( 'response' => 403 ) );

    vendor\codexpert\plugin\src\Widget.php

    Line 45

    wp_add_dashboard_widget( 'cx-overview', __( 'WordPress Blogs & Tutorials', 'image-sizes' ), [ $this, 'callback_dashboard_widget' ] );

    Line 73

    'label'		=> __( 'Our Plugins', 'image-sizes' ),

    Line 78

    'label'		=> __( 'Blog', 'image-sizes' ),

    Line 85

    $_has_icon = ( $link['target'] == '_blank' ) ? '<span class="screen-reader-text">' . __( '(opens in a new tab)', 'image-sizes' ) . '</span> <span aria-hidden="true" class="dashicons dashicons-external"></span>' : '';

    views\wizard\welcome.php, Line 12 to 14

    <p class="cx-wizard-sub">' . sprintf(__( 'You can easily save up your space and make your website faster with %1$sThumbPress%2$s.', 'image-sizes' ),'<span class="cx-wizard-sub-span">','</span>') . '</p>
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Md.Mustakim Ahmed

    (@mustakim5)

    Hi @alexclassroom

    Thanks for the heads up.

    We have already released a newer version of the plugin ThumbPress (4.0.3). Please update the plugin to the latest version.

    If you have any more queries please reach out to our support.

    Thank you!

    Thread Starter Alex Lion (阿力獅)

    (@alexclassroom)

    The above I18N issues are not fixed.

    If possible, please let me know this plugin’s GitHub repository so that I can submit a PR for these issues.

    Plugin Support Md.Mustakim Ahmed

    (@mustakim5)

    Hi@alexclassroom

    Sorry for the late reply.

    We have released another new version of the ThumbPress(4.0.4).

    Please update the plugin and don’t forget to take a backup before updating the plugin.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Improve I18N Issues (Based on 4.0.2)’ is closed to new replies.