Plugin Directory

Changeset 3346255


Ignore:
Timestamp:
08/18/2025 09:02:41 AM (6 months ago)
Author:
razvan.mo
Message:

tagging version 2.9.23

Location:
translatepress-multilingual
Files:
22 edited
1 copied

Legend:

Unmodified
Added
Removed
  • translatepress-multilingual/tags/2.9.23/class-translate-press.php

    r3333369 r3346255  
    7070        define( 'TRP_PLUGIN_BASE', plugin_basename( __DIR__ . '/index.php' ) );
    7171        define( 'TRP_PLUGIN_SLUG', 'translatepress-multilingual' );
    72         define( 'TRP_PLUGIN_VERSION', '2.9.22' );
     72        define( 'TRP_PLUGIN_VERSION', '2.9.23' );
    7373
    7474        wp_cache_add_non_persistent_groups(array('trp'));
  • translatepress-multilingual/tags/2.9.23/includes/class-edd-sl-plugin-updater.php

    r3333369 r3346255  
    220220                        '</a>'
    221221                    );
     222
     223                    // get license status
     224                    $license_status = get_option( 'trp_license_status' );
     225                    if( !empty($license_status)  ) {
     226                        $license_state = trp_get_license_status();
     227                        if( $license_state === 'expired' ) {
     228                            printf(
     229                                __('To enable updates, your licence needs to be renewed. Please go to the %1$sTranslatePress Account%2$s page and login to renew.', 'translatepress-multilingual'), //phpcs:ignore
     230                                '<a target="_blank" href="https://translatepress.com/account/?utm_source=wp-plugins-page&utm_medium=client-site&utm_campaign=expired-license">',
     231                                '</a>'
     232                            );
     233                        }
     234                        elseif( $license_state !== 'valid' ){
     235                            printf(
     236                                __('To enable updates, please go to the %1$slicense page%2$s and check that you have a valid license.', 'translatepress-multilingual'), //phpcs:ignore
     237                                esc_url( admin_url( 'admin.php?page=trp_license_key' ) ),
     238                                '</a>'
     239                            );
     240                        }
     241
     242                    }
     243                    else{
     244                        printf(
     245                            __('To enable updates, please %1$senter your license key%2$s. Need a license key? %3$sPurchase one now%4$s.', 'translatepress-multilingual'), //phpcs:ignore
     246                            esc_url( admin_url( 'admin.php?page=trp_license_key' ) ),
     247                            '</a>',
     248                            '<a target="_blank" href="https://translatepress.com/pricing/?utm_source=wp-plugins-page&utm_medium=client-site&utm_campaign=pro-no-active-license">',
     249                            '</a>'
     250                        );
     251                    }
     252
     253
     254
     255
    222256                } else {
    223257                    printf(
     
    794828
    795829                                    $message[] = __( 'Your license key has reached its activation limit.', 'translatepress-multilingual' );
     830                                    if( !empty( $license_data->item_name ) && urldecode( $license_data->item_name ) !== 'TranslatePress Developer' )
     831                                        $message[] = sprintf( __( 'Upgrade your plan to add more sites. %1$sUpgrade now%2$s', 'translatepress-multilingual' ), '<a href="https://translatepress.com/account/?utm_source=wp-dashboard&utm_medium=client-site&utm_campaign=activation-limit" target="_blank" class="button-primary">', '</a>' );
    796832                                    break;
    797833                                case 'website_already_on_free_license':
  • translatepress-multilingual/tags/2.9.23/includes/class-plugin-notices.php

    r3332983 r3346255  
    172172     *
    173173     */
    174     public function add_notification( $notification_id = '', $notification_message = '', $notification_class = 'update-nag', $count_in_menu = true, $count_in_submenu = array(), $show_in_all_backend = false, $non_dismissable = false ) {
     174    public function add_notification( $notification_id = '', $notification_message = '', $notification_class = 'update-nag', $count_in_menu = true, $count_in_submenu = array(), $show_in_all_backend = false, $force_show = false ) {
    175175
    176176        if( empty( $notification_id ) )
     
    179179        if( empty( $notification_message ) )
    180180            return;
    181 
    182         global $current_user;
    183181
    184182        /**
    185183         * added a $show_in_all_backend argument in version 1.4.6  that allows some notifications to be displayed on all the pages not just the plugin pages
    186184         * we needed it for license notifications
     185         *
     186         * if you want a notification that is non-dismissable on is_plugin_page() dismissable on the rest of the pages, simply do the verification where
     187         * TRP_Plugin_Notifications->add_notification() is called
     188         *
    187189         */
    188         $force_show = false;
    189         if( get_user_meta( $current_user->ID, $notification_id . '_dismiss_notification' ) ) {
    190             if( !$non_dismissable && !($this->is_plugin_page() && $show_in_all_backend) ){
    191                 return;
    192             }
    193             else{
    194                 $force_show = true; //if $show_in_all_backend is true, then we ignore the dismiss on plugin pages, but on the rest of the pages it can be dismissed
    195             }
    196         }
    197190
    198191        $this->notifications[$notification_id] = array(
     
    348341            $notification_id = 'trp_invalid_license';
    349342            $message = '<p style="padding-right:30px;">';
    350             $message .= sprintf( __('Your <strong>TranslatePress</strong> license key is invalid or missing. <br/>Please %1$sregister your copy%2$s to receive access to automatic updates and support. Need a license key? %3$sPurchase one now%4$s' , 'translatepress-multilingual' ), "<a href='". admin_url('/admin.php?page=trp_license_key') ."'>", "</a>", "<a href='https://translatepress.com/pricing/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-SN-Purchase' target='_blank' class='button-primary'>", "</a>" );
     343            $message .= sprintf( __('Your <strong>TranslatePress</strong> license is missing or invalid. <br/>Please %1$sregister your copy%2$s to enable automatic website translation via TranslatePress AI, premium addons, automatic updates and support. Need a license key? %3$sPurchase one now%4$s' , 'translatepress-multilingual' ), "<a href='". admin_url('/admin.php?page=trp_license_key') ."'>", "</a>", "<a href='https://translatepress.com/pricing/?utm_source=wp-dashboard&utm_medium=client-site&utm_campaign=pro-no-active-license' target='_blank' class='button-primary'>", "</a>" );
    351344            if ( !$notifications->is_plugin_page() ) {
    352345                //make sure to use the trp_dismiss_admin_notification arg
     
    377370                    $license_detail->error == 'key_mismatch'
    378371                )
    379                     $message .= sprintf( __('Your <strong>TranslatePress</strong> license key is invalid or missing. <br/>Please %1$sregister your copy%2$s to receive access to automatic updates and support. Need a license key? %3$sPurchase one now%4$s' , 'translatepress-multilingual' ), "<a href='". admin_url('/admin.php?page=trp_license_key') ."'>", "</a>", "<a href='https://translatepress.com/pricing/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-SN-Purchase' target='_blank' class='button-primary'>", "</a>" );
     372                    $message .= sprintf( __('Your <strong>TranslatePress</strong> license is missing or invalid. <br/>Please %1$sregister your copy%2$s to enable automatic website translation via TranslatePress AI, premium addons, automatic updates and support. Need a license key? %3$sPurchase one now%4$s' , 'translatepress-multilingual' ), "<a href='". admin_url('/admin.php?page=trp_license_key') ."'>", "</a>", "<a href='https://translatepress.com/pricing/?utm_source=wp-dashboard&utm_medium=client-site&utm_campaign=pro-no-active-license' target='_blank' class='button-primary'>", "</a>" );
    380373                elseif( $license_detail->error == 'site_inactive' )
    381374                    $message .= __( 'Your license is disabled for this URL. Re-enable it from <a target="_blank" href="https://translatepress.com/account/">https://translatepress.com/account</a> -> Manage Sites.', 'translatepress-multilingual' );
     
    385378                    $message .= sprintf( __('License key mismatch. The license you entered doesn’t match the <strong>%1$s</strong> version you have installed. <br/>Please check that you’ve installed the correct version for your license from your %2$sTranslatePress account%3$s.' , 'translatepress-multilingual' ), $tp_product_name, "<a href='https://translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-License-Check' target='_blank' >", "</a>" );
    386379                elseif( $license_detail->error == 'expired' )
    387                     $message .= sprintf( __('Your <strong>TranslatePress</strong> license has expired. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to product downloads, automatic updates and support. %3$sRenew now %4$s' , 'translatepress-multilingual' ), "<a href='https://www.translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-Renewal' target='_blank'>", "</a>", "<a href='https://www.translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-Renewal' target='_blank' class='button-primary'>", "</a>" );
     380                    $message .= sprintf( __('Your <strong>TranslatePress</strong> license has expired. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to automatic translations via TranslatePress AI, premium addons, product downloads, and automatic updates. %3$sRenew now %4$s' , 'translatepress-multilingual' ), "<a href='https://translatepress.com/account/?utm_source=wp-dashboard&utm_medium=client-site&utm_campaign=expired-license' target='_blank'>", "</a>", "<a href='https://translatepress.com/account/?utm_source=wp-dashboard&utm_medium=client-site&utm_campaign=expired-license' target='_blank' class='button-primary'>", "</a>" );
    388381                else {
    389382                    $license_error = __("Error: ", "translatepress-multilingual");
     
    415408                        /* this must be unique */
    416409                        $notification_id = 'trp_will_expire_license';
    417                         $message = '<p style="padding-right:30px;">' . sprintf( __( 'Your <strong>TranslatePress</strong> license will expire on %1$s. Please %2$sRenew Your Licence%3$s to continue receiving access to product downloads, automatic updates and support.', 'translatepress-multilingual'), date_i18n( get_option( 'date_format' ), strtotime( $license_detail->expires, current_time( 'timestamp' ) ) ), '<a href="https://translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-Renewal" target="_blank">', '</a>'). '</p>';
     410                        $message = '<p style="padding-right:30px;">' . sprintf( __( 'Your <strong>TranslatePress</strong> license will expire on %1$s. Please %2$sRenew Your Licence%3$s to continue receiving access to automatic translations via TP AI, premium addons, product downloads and automatic updates. %4$sRenew Now%5$s', 'translatepress-multilingual'), date_i18n( get_option( 'date_format' ), strtotime( $license_detail->expires, current_time( 'timestamp' ) ) ), '<a href="https://translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-Renewal" target="_blank">', '</a>', "<a href='https://translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-Renewal' target='_blank' class='button-primary'>", "</a>"). '</p>';
    418411
    419412                        if ( !$notifications->is_plugin_page() ) {
     
    425418                        }
    426419                        if (!isset($_GET['trp_sl_activation'])) {
    427                             $notifications->add_notification($notification_id, $message, 'trp-notice notice notice-info is-dismissible', true, array('translate-press'), $force_show);
     420                            $notifications->add_notification($notification_id, $message, 'trp-notice notice notice-info is-dismissible', true, array('translate-press'), false, $force_show);
    428421                        }
    429422                    }
     
    432425        }
    433426
    434         // If the license is invalid and the translation engine is DeepL, show a notification
    435         if ( isset( $this->settings['trp_machine_translation_settings']['translation-engine'] ) && $this->settings['trp_machine_translation_settings']['translation-engine'] === 'deepl' ) {
    436             $notification_id = 'trp_deepl_invalid_license';
    437             $message = '';
    438 
    439             if( empty( $license_status ) ){
     427        // If the license is invalid and the translation engine is DeepL or TP AI, show a notification only on the paid versions
     428        if( !in_array( 'TranslatePress', $trp->tp_product_name ) ) {
     429            if (isset($this->settings['trp_machine_translation_settings']['machine-translation']) && $this->settings['trp_machine_translation_settings']['machine-translation'] === 'yes') {
     430                if (isset($this->settings['trp_machine_translation_settings']['translation-engine']) && ($this->settings['trp_machine_translation_settings']['translation-engine'] === 'deepl' || $this->settings['trp_machine_translation_settings']['translation-engine'] === 'mtapi')) {
     431
     432                    $message = '';
     433                    $force_show = true;
     434
     435                    if ($this->settings['trp_machine_translation_settings']['translation-engine'] === 'deepl')
     436                        $engine_name = 'DeepL';
     437                    else
     438                        $engine_name = 'TranslatePress AI';
     439
     440                    if (empty($license_status)) {
     441                        $notification_id = 'trp_' . $this->settings['trp_machine_translation_settings']['translation-engine'] . '_missing_license';
     442                        $message = '<p style="padding-right:30px;">';
     443                        $message .= sprintf(
     444                            __('Please %1$senter%2$s your license key to enable %3$s automatic translation.', 'translatepress-multilingual'),
     445                            '<a href="' . admin_url('/admin.php?page=trp_license_key') . '">',
     446                            '</a>',
     447                            $engine_name
     448                        );
     449
     450                        if (!$notifications->is_plugin_page()) {
     451                            //make sure to use the trp_dismiss_admin_notification arg
     452                            $message .= '<a style="text-decoration: none;z-index:100;" href="' . add_query_arg(array('trp_dismiss_admin_notification' => $notification_id)) . '" type="button" class="notice-dismiss"><span class="screen-reader-text">' . esc_html__('Dismiss this notice.', 'translatepress-multilingual') . '</span></a>';
     453                            $force_show = false;
     454                        } else {
     455                            $force_show = true; //ignore dismissal on own plugin pages
     456                        }
     457
     458                        $message .= '</p>';
     459                    } elseif ($license_status !== 'valid') {
     460                        $notification_id = 'trp_' . $this->settings['trp_machine_translation_settings']['translation-engine'] . '_invalid_license';
     461                        $message = '<p style="padding-right:30px;">';
     462                        $message .= sprintf(
     463                            __('%1$s automatic translation requires an active license. Please %2$srenew%3$s your license or purchase a new one %4$shere%5$s.', 'translatepress-multilingual'),
     464                            $engine_name,
     465                            '<a href="https://translatepress.com/account/?utm_source=tp-automatic-translation&utm_medium=client-site&utm_campaign=expired-license">',
     466                            '</a>',
     467                            '<a href="https://translatepress.com/pricing/?utm_source=tp-automatic-translation&utm_medium=client-site&utm_campaign=deepl" target="_blank">',
     468                            '</a>'
     469                        );
     470
     471                        if (!$notifications->is_plugin_page()) {
     472                            //make sure to use the trp_dismiss_admin_notification arg
     473                            $message .= '<a style="text-decoration: none;z-index:100;" href="' . add_query_arg(array('trp_dismiss_admin_notification' => $notification_id)) . '" type="button" class="notice-dismiss"><span class="screen-reader-text">' . esc_html__('Dismiss this notice.', 'translatepress-multilingual') . '</span></a>';
     474                            $force_show = false;
     475                        } else {
     476                            $force_show = true; //ignore dismissal on own plugin pages
     477                        }
     478                        $message .= '</p>';
     479                    }
     480
     481                    if (!empty($message))
     482                        $notifications->add_notification($notification_id, $message, 'trp-notice notice error', true, array('translate-press'), true, $force_show);
     483                }
     484            }
     485        }
     486
     487        /*
     488         * Non-free license low quota notification
     489         */
     490        if ( !empty($license_details) && !$is_demosite && !$free_version && $license_status === 'valid' ) {
     491            // Use cached quota that's updated during translation operations
     492            $cached_quota = get_transient('trp_mtapi_cached_quota');
     493            if ( $cached_quota !== false && is_numeric($cached_quota) && $cached_quota > 0 && $cached_quota < 25000 ) {
     494                $notification_id = 'trp_low_quota_warning';
    440495                $message = '<p style="padding-right:30px;">';
    441                 $message .= sprintf(
    442                     __('Please %1$senter%2$s your license key to enable DeepL automatic translation.', 'translatepress-multilingual'),
    443                     '<a href="' . admin_url('/admin.php?page=trp_license_key') . '">',
     496                $message .= sprintf( 
     497                    __('You have less than 5,000 TranslatePress AI words remaining. To continue automatically translating your website, please %spurchase additional AI words at a discount from your account%s.', 'translatepress-multilingual'),
     498                    '<a href="https://translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=lowquota&utm_campaign=TP-License-Check" target="_blank">',
    444499                    '</a>'
    445500                );
     501                $message .= '<a style="text-decoration: none;z-index:100;" href="' . add_query_arg( array( 'trp_dismiss_admin_notification' => $notification_id ) ) . '" type="button" class="notice-dismiss"><span class="screen-reader-text">' . esc_html__( 'Dismiss this notice.', 'translatepress-multilingual' ) . '</span></a>';
    446502                $message .= '</p>';
    447             }
    448             elseif( $license_status !== 'valid' ) {
    449                 $message = '<p style="padding-right:30px;">';
    450                 $message .= sprintf(
    451                     __('DeepL automatic translation requires an active license. Please %1$srenew%2$s your license or purchase a new one %3$shere%4$s.', 'translatepress-multilingual'),
    452                     '<a href="https://translatepress.com/account/?utm_source=tp-automatic-translation&utm_medium=client-site&utm_campaign=expired-license">',
    453                     '</a>',
    454                     '<a href="https://translatepress.com/pricing/?utm_source=tp-automatic-translation&utm_medium=client-site&utm_campaign=deepl">',
    455                     '</a>'
    456                 );
    457                 $message .= '</p>';
    458             }
    459 
    460             if( !empty( $message ) )
    461                 $notifications->add_notification($notification_id, $message, 'trp-notice notice error', true, array('translate-press'), true, true);
     503               
     504                $notifications->add_notification( $notification_id, $message, 'trp-notice notice notice-warning', true, array('translate-press'), true, false );
     505            }
    462506        }
    463507
     
    491535                    $message .= sprintf( __('This website is already activated under a free license. Each website can only use one free license. Please upgrade to a premium plan for more TranslatePress AI words from %1$s your account %2$s.' , 'translatepress-multilingual' ),  "<a href='https://translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-License-Check' target='_blank' class='button-primary' >", "</a>" );
    492536                elseif( $license_detail->error == 'expired' )
    493                     $message .= sprintf( __('Your <strong>TranslatePress</strong> license has expired. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to product downloads, automatic updates and support. %3$sRenew now %4$s' , 'translatepress-multilingual' ), "<a href='https://www.translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-Renewal' target='_blank'>", "</a>", "<a href='https://www.translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-Renewal' target='_blank' class='button-primary'>", "</a>" );
     537                    $message .= sprintf( __('Your <strong>TranslatePress</strong> license has expired. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to automatic translations via TranslatePress AI, premium addons, product downloads, and automatic updates. %3$sRenew now %4$s' , 'translatepress-multilingual' ), "<a href='https://translatepress.com/account/?utm_source=wp-dashboard&utm_medium=client-site&utm_campaign=expired-license' target='_blank'>", "</a>", "<a href='https://translatepress.com/account/?utm_source=wp-dashboard&utm_medium=client-site&utm_campaign=expired-license' target='_blank' class='button-primary'>", "</a>" );
    494538                else {
    495539                    $license_error = __(" Error: ", "translatepress-multilingual");
     
    568612        $trp = TRP_Translate_Press::get_trp_instance();
    569613        $machine_translator = $trp->get_component( 'machine_translator' );
    570         $correct_key = $machine_translator->is_correct_api_key();
    571614
    572615        if ($machine_translator != null ) {
     616            $correct_key = $machine_translator->is_correct_api_key();
    573617            if ( apply_filters( 'trp_mt_available_supported_languages_show_notice', true, $this->settings['translation-languages'], $this->settings ) &&
    574618                'yes' === $this->settings['trp_machine_translation_settings']['machine-translation'] &&
  • translatepress-multilingual/tags/2.9.23/includes/class-translation-manager.php

    r3301577 r3346255  
    227227            if ( $license_status != 'valid' && $license_status != 'free-version' ) {
    228228                $translatepress_product = ( defined( 'TRANSLATE_PRESS' ) ) ? TRANSLATE_PRESS : "TranslatePress";
     229                $purchase_text = '';
    229230                switch ( $license_status ) {
    230231                    case 'expired':
     
    237238                                $link         = 'https://translatepress.com/account/?utm_source=tpeditor&utm_medium=clientsite&utm_campaign=BF-2024';
    238239                            } else {
    239                                 $instructions = esc_html__( 'Please renew your license to continue receiving access to product downloads, automatic updates and support.', 'translatepress-multilingual' );
     240                                $instructions = esc_html__( 'Please renew your license to continue receiving access to TranslatePress AI, premium addons, automatic updates and support.', 'translatepress-multilingual' );
    240241                                $button       = esc_html__( 'Renew Now', 'translatepress-multilingual' );
    241242                                $link         = 'https://translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpeditor&utm_campaign=TP-Renewal';
     
    247248                        {
    248249                            $status_text  = wp_kses( sprintf( __( 'Your %s license was <span class="trp-license-status-emphasized">refunded</span>.', 'translatepress-multilingual' ), '<strong>' . $translatepress_product . '</strong>' ), array( 'strong' => array(),'span' => array( 'class' => array() ) ) );
    249                             $instructions = esc_html__( 'Please purchase a new license to continue receiving access to product downloads, automatic updates and support.', 'translatepress-multilingual' );
     250                            $instructions = esc_html__( 'Please purchase a new license to continue receiving access to TranslatePress AI, premium addons, automatic updates and support.', 'translatepress-multilingual' );
    250251                            $button       = esc_html__( 'Purchase a new license', 'translatepress-multilingual' );
    251252                            $link = 'https://translatepress.com/pricing/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpeditor&utm_campaign=TP-Refund';
     
    259260                    default:
    260261                        {
    261                             $status_text  = wp_kses( sprintf( __( 'Your %s license is <span class="trp-license-status-emphasized">empty or incorrect</span>.', 'translatepress-multilingual' ), '<strong>' . $translatepress_product . '</strong>' ), array( 'strong' => array(),'span' => array( 'class' => array() ) ) );
    262                             $instructions = esc_html__( 'Please enter a valid license to continue receiving access to product downloads, automatic updates and support.', 'translatepress-multilingual' );
     262                            $status_text  = wp_kses( sprintf( __( 'Your %s license is <span class="trp-license-status-emphasized">missing or invalid</span>.', 'translatepress-multilingual' ), '<strong>' . $translatepress_product . '</strong>' ), array( 'strong' => array(),'span' => array( 'class' => array() ) ) );
     263                            $instructions = sprintf( esc_html__( 'Please enter a valid license to get access to TranslatePress AI, premium addons, automatic updates and support. Need a license key? %1$sPurchase one now%2$s', 'translatepress-multilingual' ), '<a href="https://translatepress.com/pricing/?utm_source=tp-editor&utm_medium=client-site&utm_campaign=pro-no-active-license" target="_blank">', '</a>' );
    263264                            $button       = esc_html__( 'Enter a valid license', 'translatepress-multilingual' );
    264265                            $link         = admin_url( 'admin.php?page=trp_license_key' );
  • translatepress-multilingual/tags/2.9.23/includes/functions.php

    r3288239 r3346255  
    770770}
    771771
     772/**
     773 * Function that returns the license status of the TranslatePress plugin.
     774 * @return string
     775 */
    772776function trp_get_license_status(){
    773777    $license_details = get_option( 'trp_license_details' );
  • translatepress-multilingual/tags/2.9.23/includes/gettext/class-gettext-manager.php

    r3288239 r3346255  
    8585        if ( $is_ajax_on_frontend || apply_filters( 'trp_apply_gettext_early', false ) ) {
    8686            add_action( 'wp_loaded', array( $this, 'apply_gettext_filter' ) );
    87         } else {//otherwise start from the wp_head hook
     87        } else if ( function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() ){ //if we have a block theme we need to start from template_redirect hook
     88            add_action( 'template_redirect', array( $this, 'apply_gettext_filter' ), 10 );
     89        }
     90        else {//otherwise start from the wp_head hook
    8891            add_action( 'wp_head', array( $this, 'apply_gettext_filter' ), 100 );
    8992        }
  • translatepress-multilingual/tags/2.9.23/includes/mtapi/functions.php

    r3328103 r3346255  
    1313function trp_mtapi_add_settings( $mt_settings ){
    1414    require_once("class-mtapi-customer.php");
    15     //$trp = TRP_Translate_Press::get_trp_instance();
    1615
    1716    $license = get_option('trp_license_key');
     
    2322    $translatepress_version_name = (defined('TRANSLATE_PRESS')) ? TRANSLATE_PRESS : 'TranslatePress';
    2423
    25     //dd($status);
    26     //dd(array($license, $status, $details));
    2724    if ($status === false) : ?>
    2825
     
    4441                </span>
    4542            </div>
    46 <?php if ($translatepress_version_name == 'TranslatePress') :
    47             ?>
    48             <span class="trp-secondary-text trp-get-free-license-text">
    49                 <?php esc_html_e('In order to enable Automatic Translation using TranslatePress AI, you need a license key by creating a free account.', 'translatepress-multilingual'); ?>
    50             </span>
    51 <?php endif;?>
     43            <?php if ($translatepress_version_name == 'TranslatePress') : ?>
     44                <span class="trp-secondary-text trp-get-free-license-text">
     45                    <?php esc_html_e('In order to enable Automatic Translation using TranslatePress AI, you need a license key by creating a free account.', 'translatepress-multilingual'); ?>
     46                </span>
     47            <?php endif;?>
    5248            <div class="trp-automatic-translation-get-license-buttons">
    53 <?php if ( $translatepress_version_name == 'TranslatePress' ) : ?>
     49            <?php if ( $translatepress_version_name == 'TranslatePress' ) : ?>
    5450                <a href="<?php echo esc_url( 'https://translatepress.com/ai-free/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettingsAT&utm_campaign=tpaifree' ) ?>" class="trp-get-free-license-link trp-get-free-license-button button-primary" target="_blank" id="trp-enter-license-button">
    5551                    <?php esc_html_e( 'Create your Free Account', 'translatepress-multilingual' ); ?>
     
    5753
    5854                <span class="trp-secondary-text trp-text-auto"><?php esc_html_e(' or ', 'translatepress-multilingual'); ?></span>
    59 <?php endif;?>
    60                 <a href="<?php echo esc_url( admin_url('admin.php?page=trp_license_key') ) ?>" class="trp-enter-license-link trp-get-free-license-button trp-button-secondary" id="trp-enter-license-button">
    61                         <?php esc_html_e( 'Enter your license key', 'translatepress-multilingual' ); ?>
    62                 </a>
     55            <?php endif;?>
     56            <a href="<?php echo esc_url( admin_url('admin.php?page=trp_license_key') ) ?>" class="trp-enter-license-link trp-get-free-license-button trp-button-secondary" id="trp-enter-license-button">
     57                    <?php esc_html_e( 'Enter your license key', 'translatepress-multilingual' ); ?>
     58            </a>
     59            <?php if ( $translatepress_version_name != 'TranslatePress' ) : ?>
     60                <span class="trp-secondary-text trp-text-auto"><?php printf( esc_html__(' Or %1$spurchase one here%2$s', 'translatepress-multilingual'), '<a href="https://translatepress.com/pricing/?utm_source=tp-automatic-translation&utm_medium=client-site&utm_campaign=tp-ai" target="_blank">', '</a>' ); ?></span>
     61            <?php endif;?>
    6362
    6463            </div>
  • translatepress-multilingual/tags/2.9.23/index.php

    r3333369 r3346255  
    44Plugin URI: https://translatepress.com/
    55Description: Experience a better way of translating your WordPress site using a visual front-end translation editor, with full support for WooCommerce and site builders.
    6 Version: 2.9.22
     6Version: 2.9.23
    77Author: Cozmoslabs, Razvan Mocanu, Madalin Ungureanu, Cristophor Hurduban
    88Author URI: https://cozmoslabs.com/
     
    1111License: GPL2
    1212WC requires at least: 2.5.0
    13 WC tested up to: 10.0.4
     13WC tested up to: 10.1.0
    1414
    1515== Copyright ==
  • translatepress-multilingual/tags/2.9.23/languages/translatepress-multilingual.catalog.php

    r3332983 r3346255  
    1818<?php __("There is a new version of %1$s available. %2$sView version %3$s details%4$s or %5$supdate now%6$s.", "translatepress-multilingual"); ?>
    1919<?php __("There is a new version of %1$s available. %2$sView version %3$s details%4$s.", "translatepress-multilingual"); ?>
     20<?php __("To enable updates, please %1$senter your license key%2$s. Need a license key? %3$sPurchase one now%4$s.", "translatepress-multilingual"); ?>
     21<?php __("To enable updates, please go to the %1$slicense page%2$s and check that you have a valid license.", "translatepress-multilingual"); ?>
     22<?php __("To enable updates, your licence needs to be renewed. Please go to the %1$sTranslatePress Account%2$s page and login to renew.", "translatepress-multilingual"); ?>
    2023<?php __("You do not have permission to install plugin updates", "translatepress-multilingual"); ?>
    2124<?php __("Error", "translatepress-multilingual"); ?>
     
    2629<?php __("<p><strong>License key mismatch.</strong> The license you entered doesn’t match the TranslatePress version you have installed.</p><p>Please check that you’ve installed the correct version for your license from your TranslatePress account.</p>", "translatepress-multilingual"); ?>
    2730<?php __("Your license key has reached its activation limit.", "translatepress-multilingual"); ?>
     31<?php __("Upgrade your plan to add more sites. %1$sUpgrade now%2$s", "translatepress-multilingual"); ?>
    2832<?php __("This website is already activated under a free license. Each website can only use one free license.", "translatepress-multilingual"); ?>
    2933<?php __("An error occurred, please try again.", "translatepress-multilingual"); ?>
     
    7579<?php __("Please enter your Google Translate key.", "translatepress-multilingual"); ?>
    7680<?php __("Please enter your DeepL API key.", "translatepress-multilingual"); ?>
    77 <?php __("Your <strong>TranslatePress</strong> license key is invalid or missing. <br/>Please %1$sregister your copy%2$s to receive access to automatic updates and support. Need a license key? %3$sPurchase one now%4$s", "translatepress-multilingual"); ?>
    78 <?php __("Your <strong>TranslatePress</strong> license will expire on %1$s. Please %2$sRenew Your Licence%3$s to continue receiving access to product downloads, automatic updates and support.", "translatepress-multilingual"); ?>
     81<?php __("Your <strong>TranslatePress</strong> license is missing or invalid. <br/>Please %1$sregister your copy%2$s to enable automatic website translation via TranslatePress AI, premium addons, automatic updates and support. Need a license key? %3$sPurchase one now%4$s", "translatepress-multilingual"); ?>
     82<?php __("Your <strong>TranslatePress</strong> license will expire on %1$s. Please %2$sRenew Your Licence%3$s to continue receiving access to automatic translations via TP AI, premium addons, product downloads and automatic updates. %4$sRenew Now%5$s", "translatepress-multilingual"); ?>
    7983<?php __("Error: ", "translatepress-multilingual"); ?>
    8084<?php __("Something went wrong, please try again.", "translatepress-multilingual"); ?>
    81 <?php __("Your <strong>TranslatePress</strong> license has expired. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to product downloads, automatic updates and support. %3$sRenew now %4$s", "translatepress-multilingual"); ?>
     85<?php __("Your <strong>TranslatePress</strong> license has expired. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to automatic translations via TranslatePress AI, premium addons, product downloads, and automatic updates. %3$sRenew now %4$s", "translatepress-multilingual"); ?>
    8286<?php __("License key mismatch. The license you entered doesn’t match the <strong>%1$s</strong> version you have installed. <br/>Please check that you’ve installed the correct version for your license from your %2$sTranslatePress account%3$s.", "translatepress-multilingual"); ?>
    8387<?php __("You have reached the activation limit for your <strong>%1$s</strong> license. <br/>Manage your active sites from %2$s your account %3$s.", "translatepress-multilingual"); ?>
    8488<?php __("Your license is disabled for this URL. Re-enable it from <a target=\"_blank\" href=\"https://translatepress.com/account/\">https://translatepress.com/account</a> -> Manage Sites.", "translatepress-multilingual"); ?>
    85 <?php __("DeepL automatic translation requires an active license. Please %1$srenew%2$s your license or purchase a new one %3$shere%4$s.", "translatepress-multilingual"); ?>
    86 <?php __("Please %1$senter%2$s your license key to enable DeepL automatic translation.", "translatepress-multilingual"); ?>
     89<?php __("%1$s automatic translation requires an active license. Please %2$srenew%3$s your license or purchase a new one %4$shere%5$s.", "translatepress-multilingual"); ?>
     90<?php __("Please %1$senter%2$s your license key to enable %3$s automatic translation.", "translatepress-multilingual"); ?>
     91<?php __("You have less than 5,000 TranslatePress AI words remaining. To continue automatically translating your website, please %spurchase additional AI words at a discount from your account%s.", "translatepress-multilingual"); ?>
    8792<?php __(" Error: ", "translatepress-multilingual"); ?>
    8893<?php __("This website is already activated under a free license. Each website can only use one free license. Please upgrade to a premium plan for more TranslatePress AI words from %1$s your account %2$s.", "translatepress-multilingual"); ?>
     
    205210<?php __("Search for any text in this page in the dropdown.", "translatepress-multilingual"); ?>
    206211<?php __("Your %s license has <span class=\"trp-license-status-emphasized\">expired</span>.", "translatepress-multilingual"); ?>
    207 <?php __("Please renew your license to continue receiving access to product downloads, automatic updates and support.", "translatepress-multilingual"); ?>
     212<?php __("Please renew your license to continue receiving access to TranslatePress AI, premium addons, automatic updates and support.", "translatepress-multilingual"); ?>
    208213<?php __("Renew Now", "translatepress-multilingual"); ?>
    209214<?php __("<strong>This Black Friday, renew your license at a special price</strong> to continue receiving access to product downloads, automatic updates, and support.", "translatepress-multilingual"); ?>
    210215<?php __("Get Deal", "translatepress-multilingual"); ?>
    211216<?php __("Your %s license was <span class=\"trp-license-status-emphasized\">refunded</span>.", "translatepress-multilingual"); ?>
    212 <?php __("Please purchase a new license to continue receiving access to product downloads, automatic updates and support.", "translatepress-multilingual"); ?>
     217<?php __("Please purchase a new license to continue receiving access to TranslatePress AI, premium addons, automatic updates and support.", "translatepress-multilingual"); ?>
    213218<?php __("Purchase a new license", "translatepress-multilingual"); ?>
    214 <?php __("Your %s license is <span class=\"trp-license-status-emphasized\">empty or incorrect</span>.", "translatepress-multilingual"); ?>
    215 <?php __("Please enter a valid license to continue receiving access to product downloads, automatic updates and support.", "translatepress-multilingual"); ?>
     219<?php __("Your %s license is <span class=\"trp-license-status-emphasized\">missing or invalid</span>.", "translatepress-multilingual"); ?>
     220<?php __("Please enter a valid license to get access to TranslatePress AI, premium addons, automatic updates and support. Need a license key? %1$sPurchase one now%2$s", "translatepress-multilingual"); ?>
    216221<?php __("Enter a valid license", "translatepress-multilingual"); ?>
    217222<?php __("Slugs", "translatepress-multilingual"); ?>
     
    574579<?php __(" or ", "translatepress-multilingual"); ?>
    575580<?php __("Enter your license key", "translatepress-multilingual"); ?>
     581<?php __(" Or %1$spurchase one here%2$s", "translatepress-multilingual"); ?>
    576582<?php __("Your free account includes: ", "translatepress-multilingual"); ?>
    577583<?php __("Get more AI Tokens and unlock all AI features with TranslatePress Pro.", "translatepress-multilingual"); ?>
  • translatepress-multilingual/tags/2.9.23/languages/translatepress-multilingual.pot

    r3333369 r3346255  
    77"Content-Type: text/plain; charset=UTF-8\n"
    88"Content-Transfer-Encoding: 8bit\n"
    9 "POT-Creation-Date: 2025-07-24 08:29+0000\n"
     9"POT-Creation-Date: 2025-08-18 08:19+0000\n"
    1010"X-Poedit-Basepath: ..\n"
    1111"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
     
    7979msgstr ""
    8080
    81 #: includes/class-edd-sl-plugin-updater.php:224
     81#: includes/class-edd-sl-plugin-updater.php:258
    8282msgid "There is a new version of %1$s available. %2$sView version %3$s details%4$s or %5$supdate now%6$s."
    8383msgstr ""
     
    8787msgstr ""
    8888
    89 #: includes/class-edd-sl-plugin-updater.php:418
     89#: includes/class-edd-sl-plugin-updater.php:245
     90msgid "To enable updates, please %1$senter your license key%2$s. Need a license key? %3$sPurchase one now%4$s."
     91msgstr ""
     92
     93#: includes/class-edd-sl-plugin-updater.php:236
     94msgid "To enable updates, please go to the %1$slicense page%2$s and check that you have a valid license."
     95msgstr ""
     96
     97#: includes/class-edd-sl-plugin-updater.php:229
     98msgid "To enable updates, your licence needs to be renewed. Please go to the %1$sTranslatePress Account%2$s page and login to renew."
     99msgstr ""
     100
     101#: includes/class-edd-sl-plugin-updater.php:452
    90102msgid "You do not have permission to install plugin updates"
    91103msgstr ""
    92104
    93 #: includes/class-edd-sl-plugin-updater.php:418
     105#: includes/class-edd-sl-plugin-updater.php:452
    94106msgid "Error"
    95107msgstr ""
    96108
    97 #: includes/class-edd-sl-plugin-updater.php:776
     109#: includes/class-edd-sl-plugin-updater.php:810
    98110msgid "Your license key expired on %s."
    99111msgstr ""
    100112
    101 #: includes/class-edd-sl-plugin-updater.php:781
     113#: includes/class-edd-sl-plugin-updater.php:815
    102114msgid "Your license key has been disabled."
    103115msgstr ""
    104116
    105 #: includes/class-edd-sl-plugin-updater.php:784
     117#: includes/class-edd-sl-plugin-updater.php:818
    106118msgid "Your TranslatePress license key is invalid or missing."
    107119msgstr ""
    108120
    109 #: includes/class-edd-sl-plugin-updater.php:788
     121#: includes/class-edd-sl-plugin-updater.php:822
    110122msgid "Your license key is disabled for this URL. Re-enable it from <a target=\"_blank\" href=\"https://translatepress.com/account/\">https://translatepress.com/account</a> -> Manage Sites."
    111123msgstr ""
    112124
    113 #: includes/class-edd-sl-plugin-updater.php:791
     125#: includes/class-edd-sl-plugin-updater.php:825
    114126msgid "<p><strong>License key mismatch.</strong> The license you entered doesn’t match the TranslatePress version you have installed.</p><p>Please check that you’ve installed the correct version for your license from your TranslatePress account.</p>"
    115127msgstr ""
    116128
    117 #: includes/class-edd-sl-plugin-updater.php:795
     129#: includes/class-edd-sl-plugin-updater.php:829
    118130msgid "Your license key has reached its activation limit."
    119131msgstr ""
    120132
    121 #: includes/class-edd-sl-plugin-updater.php:798
     133#: includes/class-edd-sl-plugin-updater.php:831
     134msgid "Upgrade your plan to add more sites. %1$sUpgrade now%2$s"
     135msgstr ""
     136
     137#: includes/class-edd-sl-plugin-updater.php:834
    122138msgid "This website is already activated under a free license. Each website can only use one free license."
    123139msgstr ""
    124140
    125 #: includes/class-edd-sl-plugin-updater.php:801, includes/class-edd-sl-plugin-updater.php:765, includes/class-edd-sl-plugin-updater.php:875
     141#: includes/class-edd-sl-plugin-updater.php:837, includes/class-edd-sl-plugin-updater.php:799, includes/class-edd-sl-plugin-updater.php:911
    126142msgid "An error occurred, please try again."
    127143msgstr ""
    128144
    129 #: includes/class-edd-sl-plugin-updater.php:834
     145#: includes/class-edd-sl-plugin-updater.php:870
    130146msgid "You have successfully activated your license"
    131147msgstr ""
     
    199215msgstr ""
    200216
    201 #: includes/class-error-manager.php:170, includes/class-plugin-notices.php:353, includes/class-plugin-notices.php:421, includes/class-plugin-notices.php:397, includes/class-plugin-notices.php:503, includes/class-plugin-notices.php:559, includes/class-plugin-notices.php:585, includes/class-plugin-notices.php:633, includes/class-plugin-notices.php:618, includes/class-reviews.php:123, includes/class-reviews.php:126, includes/class-upgrade.php:1035, add-ons-advanced/seo-pack/class-seo-pack.php:810
     217#: includes/class-error-manager.php:170, includes/class-plugin-notices.php:346, includes/class-plugin-notices.php:414, includes/class-plugin-notices.php:390, includes/class-plugin-notices.php:473, includes/class-plugin-notices.php:452, includes/class-plugin-notices.php:501, includes/class-plugin-notices.php:547, includes/class-plugin-notices.php:603, includes/class-plugin-notices.php:629, includes/class-plugin-notices.php:677, includes/class-plugin-notices.php:662, includes/class-reviews.php:123, includes/class-reviews.php:126, includes/class-upgrade.php:1035, add-ons-advanced/seo-pack/class-seo-pack.php:810
    202218msgid "Dismiss this notice."
    203219msgstr ""
     
    315331msgstr ""
    316332
    317 #: includes/class-plugin-notices.php:350, includes/class-plugin-notices.php:379
    318 msgid "Your <strong>TranslatePress</strong> license key is invalid or missing. <br/>Please %1$sregister your copy%2$s to receive access to automatic updates and support. Need a license key? %3$sPurchase one now%4$s"
    319 msgstr ""
    320 
    321 #: includes/class-plugin-notices.php:417
    322 msgid "Your <strong>TranslatePress</strong> license will expire on %1$s. Please %2$sRenew Your Licence%3$s to continue receiving access to product downloads, automatic updates and support."
    323 msgstr ""
    324 
    325 #: includes/class-plugin-notices.php:389
     333#: includes/class-plugin-notices.php:343, includes/class-plugin-notices.php:372
     334msgid "Your <strong>TranslatePress</strong> license is missing or invalid. <br/>Please %1$sregister your copy%2$s to enable automatic website translation via TranslatePress AI, premium addons, automatic updates and support. Need a license key? %3$sPurchase one now%4$s"
     335msgstr ""
     336
     337#: includes/class-plugin-notices.php:410
     338msgid "Your <strong>TranslatePress</strong> license will expire on %1$s. Please %2$sRenew Your Licence%3$s to continue receiving access to automatic translations via TP AI, premium addons, product downloads and automatic updates. %4$sRenew Now%5$s"
     339msgstr ""
     340
     341#: includes/class-plugin-notices.php:382
    326342msgid "Error: "
    327343msgstr ""
    328344
    329 #: includes/class-plugin-notices.php:393, includes/class-plugin-notices.php:499
     345#: includes/class-plugin-notices.php:386, includes/class-plugin-notices.php:543
    330346msgid "Something went wrong, please try again."
    331347msgstr ""
    332348
    333 #: includes/class-plugin-notices.php:387, includes/class-plugin-notices.php:493
    334 msgid "Your <strong>TranslatePress</strong> license has expired. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to product downloads, automatic updates and support. %3$sRenew now %4$s"
    335 msgstr ""
    336 
    337 #: includes/class-plugin-notices.php:385, includes/class-plugin-notices.php:489
     349#: includes/class-plugin-notices.php:380, includes/class-plugin-notices.php:537
     350msgid "Your <strong>TranslatePress</strong> license has expired. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to automatic translations via TranslatePress AI, premium addons, product downloads, and automatic updates. %3$sRenew now %4$s"
     351msgstr ""
     352
     353#: includes/class-plugin-notices.php:378, includes/class-plugin-notices.php:533
    338354msgid "License key mismatch. The license you entered doesn’t match the <strong>%1$s</strong> version you have installed. <br/>Please check that you’ve installed the correct version for your license from your %2$sTranslatePress account%3$s."
    339355msgstr ""
    340356
    341 #: includes/class-plugin-notices.php:383, includes/class-plugin-notices.php:487
     357#: includes/class-plugin-notices.php:376, includes/class-plugin-notices.php:531
    342358msgid "You have reached the activation limit for your <strong>%1$s</strong> license. <br/>Manage your active sites from %2$s your account %3$s."
    343359msgstr ""
    344360
    345 #: includes/class-plugin-notices.php:381, includes/class-plugin-notices.php:485
     361#: includes/class-plugin-notices.php:374, includes/class-plugin-notices.php:529
    346362msgid "Your license is disabled for this URL. Re-enable it from <a target=\"_blank\" href=\"https://translatepress.com/account/\">https://translatepress.com/account</a> -> Manage Sites."
    347363msgstr ""
    348364
    349 #: includes/class-plugin-notices.php:451
    350 msgid "DeepL automatic translation requires an active license. Please %1$srenew%2$s your license or purchase a new one %3$shere%4$s."
    351 msgstr ""
    352 
    353 #: includes/class-plugin-notices.php:442
    354 msgid "Please %1$senter%2$s your license key to enable DeepL automatic translation."
    355 msgstr ""
    356 
    357 #: includes/class-plugin-notices.php:495
     365#: includes/class-plugin-notices.php:463
     366msgid "%1$s automatic translation requires an active license. Please %2$srenew%3$s your license or purchase a new one %4$shere%5$s."
     367msgstr ""
     368
     369#: includes/class-plugin-notices.php:444
     370msgid "Please %1$senter%2$s your license key to enable %3$s automatic translation."
     371msgstr ""
     372
     373#: includes/class-plugin-notices.php:497
     374msgid "You have less than 5,000 TranslatePress AI words remaining. To continue automatically translating your website, please %spurchase additional AI words at a discount from your account%s."
     375msgstr ""
     376
     377#: includes/class-plugin-notices.php:539
    358378msgid " Error: "
    359379msgstr ""
    360380
    361 #: includes/class-plugin-notices.php:491
     381#: includes/class-plugin-notices.php:535
    362382msgid "This website is already activated under a free license. Each website can only use one free license. Please upgrade to a premium plan for more TranslatePress AI words from %1$s your account %2$s."
    363383msgstr ""
    364384
    365 #: includes/class-plugin-notices.php:483
     385#: includes/class-plugin-notices.php:527
    366386msgid "You do not have a valid license for <strong>TranslatePress</strong>. %1$sGet one for free%2$s to get access to TranslatePress AI."
    367387msgstr ""
    368388
    369 #: includes/class-plugin-notices.php:556
     389#: includes/class-plugin-notices.php:600
    370390msgid "The daily quota for machine translation characters exceeded. Please check the <strong>TranslatePress -> <a href=\"%s\">Automatic Translation</a></strong> page for more information."
    371391msgstr ""
    372392
    373 #: includes/class-plugin-notices.php:582
     393#: includes/class-plugin-notices.php:626
    374394msgid "One or more languages are unsupported by the automatic translation provider. Please check the <strong>TranslatePress -> <a href=\"%s\">Automatic Translation</a></strong> page for more information."
    375395msgstr ""
     
    515535msgstr ""
    516536
    517 #: includes/class-settings.php:636, includes/class-translation-manager.php:533, add-ons-pro/translator-accounts/includes/class-translator-accounts.php:156
     537#: includes/class-settings.php:636, includes/class-translation-manager.php:534, add-ons-pro/translator-accounts/includes/class-translator-accounts.php:156
    518538msgid "Translate Site"
    519539msgstr ""
     
    527547msgstr ""
    528548
    529 #: includes/class-settings.php:693, includes/class-translation-manager.php:565
     549#: includes/class-settings.php:693, includes/class-translation-manager.php:566
    530550msgid "Settings"
    531551msgstr ""
     
    833853msgstr ""
    834854
    835 #: includes/class-translation-manager.php:232
     855#: includes/class-translation-manager.php:233
    836856msgid "Your %s license has <span class=\"trp-license-status-emphasized\">expired</span>."
    837857msgstr ""
    838858
    839 #: includes/class-translation-manager.php:239
    840 msgid "Please renew your license to continue receiving access to product downloads, automatic updates and support."
    841 msgstr ""
    842 
    843859#: includes/class-translation-manager.php:240
     860msgid "Please renew your license to continue receiving access to TranslatePress AI, premium addons, automatic updates and support."
     861msgstr ""
     862
     863#: includes/class-translation-manager.php:241
    844864msgid "Renew Now"
    845865msgstr ""
    846866
    847 #: includes/class-translation-manager.php:235
     867#: includes/class-translation-manager.php:236
    848868msgid "<strong>This Black Friday, renew your license at a special price</strong> to continue receiving access to product downloads, automatic updates, and support."
    849869msgstr ""
    850870
    851 #: includes/class-translation-manager.php:236
     871#: includes/class-translation-manager.php:237
    852872msgid "Get Deal"
    853873msgstr ""
    854874
    855 #: includes/class-translation-manager.php:248
     875#: includes/class-translation-manager.php:249
    856876msgid "Your %s license was <span class=\"trp-license-status-emphasized\">refunded</span>."
    857877msgstr ""
    858878
    859 #: includes/class-translation-manager.php:249
    860 msgid "Please purchase a new license to continue receiving access to product downloads, automatic updates and support."
    861 msgstr ""
    862 
    863879#: includes/class-translation-manager.php:250
     880msgid "Please purchase a new license to continue receiving access to TranslatePress AI, premium addons, automatic updates and support."
     881msgstr ""
     882
     883#: includes/class-translation-manager.php:251
    864884msgid "Purchase a new license"
    865885msgstr ""
    866886
    867 #: includes/class-translation-manager.php:261
    868 msgid "Your %s license is <span class=\"trp-license-status-emphasized\">empty or incorrect</span>."
    869 msgstr ""
    870 
    871887#: includes/class-translation-manager.php:262
    872 msgid "Please enter a valid license to continue receiving access to product downloads, automatic updates and support."
     888msgid "Your %s license is <span class=\"trp-license-status-emphasized\">missing or invalid</span>."
    873889msgstr ""
    874890
    875891#: includes/class-translation-manager.php:263
     892msgid "Please enter a valid license to get access to TranslatePress AI, premium addons, automatic updates and support. Need a license key? %1$sPurchase one now%2$s"
     893msgstr ""
     894
     895#: includes/class-translation-manager.php:264
    876896msgid "Enter a valid license"
    877897msgstr ""
    878898
    879 #: includes/class-translation-manager.php:319, includes/string-translation/class-string-translation.php:373, add-ons-advanced/seo-pack/includes/string-translation/class-string-translation-seo.php:17, add-ons-advanced/seo-pack-legacy/includes/string-translation/class-string-translation-seo.php:16
     899#: includes/class-translation-manager.php:320, includes/string-translation/class-string-translation.php:373, add-ons-advanced/seo-pack/includes/string-translation/class-string-translation-seo.php:17, add-ons-advanced/seo-pack-legacy/includes/string-translation/class-string-translation-seo.php:16
    880900msgid "Slugs"
    881901msgstr ""
    882902
    883 #: includes/class-translation-manager.php:320
     903#: includes/class-translation-manager.php:321
    884904msgid "Meta Information"
    885905msgstr ""
    886906
    887 #: includes/class-translation-manager.php:321
     907#: includes/class-translation-manager.php:322
    888908msgid "String List"
    889909msgstr ""
    890910
    891 #: includes/class-translation-manager.php:322
     911#: includes/class-translation-manager.php:323
    892912msgid "Gettext Strings"
    893913msgstr ""
    894914
    895 #: includes/class-translation-manager.php:323
     915#: includes/class-translation-manager.php:324
    896916msgid "Images"
    897917msgstr ""
    898918
    899 #: includes/class-translation-manager.php:324
     919#: includes/class-translation-manager.php:325
    900920msgid "Videos"
    901921msgstr ""
    902922
    903 #: includes/class-translation-manager.php:325
     923#: includes/class-translation-manager.php:326
    904924msgid "Audios"
    905925msgstr ""
    906926
    907 #: includes/class-translation-manager.php:326
     927#: includes/class-translation-manager.php:327
    908928msgid "Dynamically Added Strings"
    909929msgstr ""
    910930
    911 #: includes/class-translation-manager.php:363
     931#: includes/class-translation-manager.php:364
    912932msgid "Translation Editor"
    913933msgstr ""
    914934
    915 #: includes/class-translation-manager.php:365
     935#: includes/class-translation-manager.php:366
    916936msgid "Edit translations by visually selecting them on each site page"
    917937msgstr ""
    918938
    919 #: includes/class-translation-manager.php:369
     939#: includes/class-translation-manager.php:370
    920940msgid "String Translation"
    921941msgstr ""
    922942
    923 #: includes/class-translation-manager.php:371
     943#: includes/class-translation-manager.php:372
    924944msgid "Edit url slug translations, plugins and theme translation (emails, forms etc.)"
    925945msgstr ""
    926946
    927 #: includes/class-translation-manager.php:447
     947#: includes/class-translation-manager.php:448
    928948msgid "Current User"
    929949msgstr ""
    930950
    931 #: includes/class-translation-manager.php:448
     951#: includes/class-translation-manager.php:449
    932952msgid "Logged Out"
    933953msgstr ""
    934954
    935 #: includes/class-translation-manager.php:546, includes/class-translation-manager.php:608
     955#: includes/class-translation-manager.php:547, includes/class-translation-manager.php:609
    936956msgid "Translate Page"
    937957msgstr ""
    938958
    939 #: includes/class-translation-manager.php:606
     959#: includes/class-translation-manager.php:607
    940960msgid "Opens post in the translation editor. Post must be saved as draft or published beforehand."
    941961msgstr ""
    942962
    943 #: includes/class-translation-manager.php:720
     963#: includes/class-translation-manager.php:721
    944964msgid "Security check"
    945965msgstr ""
    946966
    947 #: includes/class-translation-manager.php:792
     967#: includes/class-translation-manager.php:793
    948968msgid "<strong>Warning:</strong> Some strings have possibly incorrectly encoded characters. This may result in breaking the queries, rendering the page untranslated in live mode. Consider revising the following strings or their method of outputting."
    949969msgstr ""
    950970
    951 #: includes/class-translation-manager.php:817, includes/class-translation-manager.php:836, includes/class-upgrade.php:370
     971#: includes/class-translation-manager.php:818, includes/class-translation-manager.php:837, includes/class-upgrade.php:370
    952972msgid "TranslatePress data update"
    953973msgstr ""
    954974
    955 #: includes/class-translation-manager.php:817, includes/class-translation-manager.php:836, includes/class-upgrade.php:370
     975#: includes/class-translation-manager.php:818, includes/class-translation-manager.php:837, includes/class-upgrade.php:370
    956976msgid "We need to update your translations database to the latest version."
    957977msgstr ""
    958978
    959 #: includes/class-translation-manager.php:818
     979#: includes/class-translation-manager.php:819
    960980msgid "Updating will allow editing translations of localized text from plugins and theme. Existing translation will still work as expected."
    961981msgstr ""
    962982
    963 #: includes/class-translation-manager.php:820, includes/class-translation-manager.php:839, includes/class-upgrade.php:371
     983#: includes/class-translation-manager.php:821, includes/class-translation-manager.php:840, includes/class-upgrade.php:371
    964984msgid "IMPORTANT: It is strongly recommended to first backup the database!\nAre you sure you want to continue?"
    965985msgstr ""
    966986
    967 #: includes/class-translation-manager.php:820, includes/class-translation-manager.php:839, includes/class-upgrade.php:371
     987#: includes/class-translation-manager.php:821, includes/class-translation-manager.php:840, includes/class-upgrade.php:371
    968988msgid "Run the updater"
    969989msgstr ""
    970990
    971 #: includes/class-translation-manager.php:837
     991#: includes/class-translation-manager.php:838
    972992msgid "Updating will allow editing translations of slugs. Existing translation will still work as expected."
    973993msgstr ""
    974994
    975 #: includes/class-translation-manager.php:892
     995#: includes/class-translation-manager.php:893
    976996msgid "Please activate the SEO Addon from <br/>WordPress -> Settings -> TranslatePress -> Addons section"
    977997msgstr ""
    978998
    979 #: includes/class-translation-manager.php:895
     999#: includes/class-translation-manager.php:896
    9801000msgid "Go to Addons"
    9811001msgstr ""
    9821002
    983 #: includes/class-translation-manager.php:910
     1003#: includes/class-translation-manager.php:911
    9841004msgid "The SEO Pack add-on allows translation of all the URL slugs:"
    9851005msgstr ""
    9861006
    987 #: includes/class-translation-manager.php:913
     1007#: includes/class-translation-manager.php:914
    9881008msgid "Taxonomy slugs"
    9891009msgstr ""
    9901010
    991 #: includes/class-translation-manager.php:916
     1011#: includes/class-translation-manager.php:917
    9921012msgid "Term slugs"
    9931013msgstr ""
    9941014
    995 #: includes/class-translation-manager.php:919
     1015#: includes/class-translation-manager.php:920
    9961016msgid "Post slugs (this includes pages and custom post types)"
    9971017msgstr ""
    9981018
    999 #: includes/class-translation-manager.php:922
     1019#: includes/class-translation-manager.php:923
    10001020msgid "Post type base slugs"
    10011021msgstr ""
    10021022
    1003 #: includes/class-translation-manager.php:925
     1023#: includes/class-translation-manager.php:926
    10041024msgid "WooCommerce slugs"
    10051025msgstr ""
    10061026
    1007 #: includes/class-translation-manager.php:930
     1027#: includes/class-translation-manager.php:931
    10081028msgid "The SEO Pack add-on is available with ALL premium versions of the plugin."
    10091029msgstr ""
    10101030
    1011 #: includes/class-translation-manager.php:933
     1031#: includes/class-translation-manager.php:934
    10121032msgid "Upgrade to Pro"
    10131033msgstr ""
     
    13971417msgstr ""
    13981418
    1399 #: partials/license-settings-page.php:124, includes/mtapi/functions.php:75
     1419#: partials/license-settings-page.php:124, includes/mtapi/functions.php:74
    14001420msgid "Access to TranslatePress AI for instant automatic translations"
    14011421msgstr ""
    14021422
    1403 #: partials/license-settings-page.php:129, includes/mtapi/functions.php:80
     1423#: partials/license-settings-page.php:129, includes/mtapi/functions.php:79
    14041424msgid "2000 AI words to translate automatically"
    14051425msgstr ""
     
    15411561msgstr ""
    15421562
    1543 #: partials/machine-translation-settings-page.php:255, includes/mtapi/functions.php:88, includes/mtapi/functions.php:188
     1563#: partials/machine-translation-settings-page.php:255, includes/mtapi/functions.php:87, includes/mtapi/functions.php:187
    15441564msgid "Upgrade now"
    15451565msgstr ""
     
    22972317msgstr ""
    22982318
    2299 #: includes/mtapi/functions.php:43
     2319#: includes/mtapi/functions.php:40, add-ons-pro/deepl/includes/class-deepl.php:194
    23002320msgid "No Active License Detected for this website."
    23012321msgstr ""
    23022322
    2303 #: includes/mtapi/functions.php:49
     2323#: includes/mtapi/functions.php:45
    23042324msgid "In order to enable Automatic Translation using TranslatePress AI, you need a license key by creating a free account."
    23052325msgstr ""
    23062326
    2307 #: includes/mtapi/functions.php:55
     2327#: includes/mtapi/functions.php:51
    23082328msgid "Create your Free Account"
    23092329msgstr ""
    23102330
    2311 #: includes/mtapi/functions.php:58
     2331#: includes/mtapi/functions.php:54
    23122332msgid " or "
    23132333msgstr ""
    23142334
    2315 #: includes/mtapi/functions.php:61
     2335#: includes/mtapi/functions.php:57, add-ons-pro/deepl/includes/class-deepl.php:199
    23162336msgid "Enter your license key"
    23172337msgstr ""
    23182338
    2319 #: includes/mtapi/functions.php:70
     2339#: includes/mtapi/functions.php:60, add-ons-pro/deepl/includes/class-deepl.php:201
     2340msgid " Or %1$spurchase one here%2$s"
     2341msgstr ""
     2342
     2343#: includes/mtapi/functions.php:69
    23202344msgid "Your free account includes: "
    23212345msgstr ""
    23222346
    2323 #: includes/mtapi/functions.php:85, includes/mtapi/functions.php:185
     2347#: includes/mtapi/functions.php:84, includes/mtapi/functions.php:184
    23242348msgid "Get more AI Tokens and unlock all AI features with TranslatePress Pro."
    23252349msgstr ""
    23262350
    2327 #: includes/mtapi/functions.php:144
     2351#: includes/mtapi/functions.php:143
    23282352msgid "You have a valid %s <strong>license</strong>."
    23292353msgstr ""
    23302354
    2331 #: includes/mtapi/functions.php:151
     2355#: includes/mtapi/functions.php:150
    23322356msgid " words remaining. "
    23332357msgstr ""
    23342358
    2335 #: includes/mtapi/functions.php:157
     2359#: includes/mtapi/functions.php:156
    23362360msgid "Recheck"
    23372361msgstr ""
    23382362
    2339 #: includes/mtapi/functions.php:161
     2363#: includes/mtapi/functions.php:160
    23402364msgid "Rechecking..."
    23412365msgstr ""
    23422366
    2343 #: includes/mtapi/functions.php:164
     2367#: includes/mtapi/functions.php:163
    23442368msgid "Done."
    23452369msgstr ""
    23462370
     2371#: includes/mtapi/functions.php:175
     2372msgid "Manage your license & quota on the %s"
     2373msgstr ""
     2374
    23472375#: includes/mtapi/functions.php:176
    2348 msgid "Manage your license & quota on the %s"
    2349 msgstr ""
    2350 
    2351 #: includes/mtapi/functions.php:177
    23522376msgid "TranslatePress.com Account Page"
    23532377msgstr ""
     
    27952819msgstr ""
    27962820
    2797 #: add-ons-advanced/seo-pack/includes/string-translation/class-option-based-strings.php:93, add-ons-advanced/seo-pack/includes/string-translation/class-string-translation-api-postslug.php:108, add-ons-advanced/seo-pack/includes/string-translation/class-string-translation-api-term.php:98
     2821#: add-ons-advanced/seo-pack/includes/string-translation/class-option-based-strings.php:97, add-ons-advanced/seo-pack/includes/string-translation/class-string-translation-api-postslug.php:108, add-ons-advanced/seo-pack/includes/string-translation/class-string-translation-api-term.php:98
    27982822msgid "(inactive)"
    27992823msgstr ""
  • translatepress-multilingual/tags/2.9.23/readme.txt

    r3333369 r3346255  
    66Tested up to: 6.8.2
    77Requires PHP: 5.6.20
    8 Stable tag: 2.9.22
     8Stable tag: 2.9.23
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    142142
    143143== Changelog ==
     144= 2.9.23 =
     145* Fixed gettext detection on WordPress block themes
     146* Improved messages and notifications in TranslatePress
     147* Add low Translation Words remaining notification for non-free licenses
     148* Fixed edge case fatal error in WP back-end
     149
    144150= 2.9.22 =
    145151* Fixed bug introduced in previous version blocking automatic translation through TP AI and Google Translate
  • translatepress-multilingual/trunk/class-translate-press.php

    r3333369 r3346255  
    7070        define( 'TRP_PLUGIN_BASE', plugin_basename( __DIR__ . '/index.php' ) );
    7171        define( 'TRP_PLUGIN_SLUG', 'translatepress-multilingual' );
    72         define( 'TRP_PLUGIN_VERSION', '2.9.22' );
     72        define( 'TRP_PLUGIN_VERSION', '2.9.23' );
    7373
    7474        wp_cache_add_non_persistent_groups(array('trp'));
  • translatepress-multilingual/trunk/includes/class-edd-sl-plugin-updater.php

    r3333369 r3346255  
    220220                        '</a>'
    221221                    );
     222
     223                    // get license status
     224                    $license_status = get_option( 'trp_license_status' );
     225                    if( !empty($license_status)  ) {
     226                        $license_state = trp_get_license_status();
     227                        if( $license_state === 'expired' ) {
     228                            printf(
     229                                __('To enable updates, your licence needs to be renewed. Please go to the %1$sTranslatePress Account%2$s page and login to renew.', 'translatepress-multilingual'), //phpcs:ignore
     230                                '<a target="_blank" href="https://translatepress.com/account/?utm_source=wp-plugins-page&utm_medium=client-site&utm_campaign=expired-license">',
     231                                '</a>'
     232                            );
     233                        }
     234                        elseif( $license_state !== 'valid' ){
     235                            printf(
     236                                __('To enable updates, please go to the %1$slicense page%2$s and check that you have a valid license.', 'translatepress-multilingual'), //phpcs:ignore
     237                                esc_url( admin_url( 'admin.php?page=trp_license_key' ) ),
     238                                '</a>'
     239                            );
     240                        }
     241
     242                    }
     243                    else{
     244                        printf(
     245                            __('To enable updates, please %1$senter your license key%2$s. Need a license key? %3$sPurchase one now%4$s.', 'translatepress-multilingual'), //phpcs:ignore
     246                            esc_url( admin_url( 'admin.php?page=trp_license_key' ) ),
     247                            '</a>',
     248                            '<a target="_blank" href="https://translatepress.com/pricing/?utm_source=wp-plugins-page&utm_medium=client-site&utm_campaign=pro-no-active-license">',
     249                            '</a>'
     250                        );
     251                    }
     252
     253
     254
     255
    222256                } else {
    223257                    printf(
     
    794828
    795829                                    $message[] = __( 'Your license key has reached its activation limit.', 'translatepress-multilingual' );
     830                                    if( !empty( $license_data->item_name ) && urldecode( $license_data->item_name ) !== 'TranslatePress Developer' )
     831                                        $message[] = sprintf( __( 'Upgrade your plan to add more sites. %1$sUpgrade now%2$s', 'translatepress-multilingual' ), '<a href="https://translatepress.com/account/?utm_source=wp-dashboard&utm_medium=client-site&utm_campaign=activation-limit" target="_blank" class="button-primary">', '</a>' );
    796832                                    break;
    797833                                case 'website_already_on_free_license':
  • translatepress-multilingual/trunk/includes/class-plugin-notices.php

    r3332983 r3346255  
    172172     *
    173173     */
    174     public function add_notification( $notification_id = '', $notification_message = '', $notification_class = 'update-nag', $count_in_menu = true, $count_in_submenu = array(), $show_in_all_backend = false, $non_dismissable = false ) {
     174    public function add_notification( $notification_id = '', $notification_message = '', $notification_class = 'update-nag', $count_in_menu = true, $count_in_submenu = array(), $show_in_all_backend = false, $force_show = false ) {
    175175
    176176        if( empty( $notification_id ) )
     
    179179        if( empty( $notification_message ) )
    180180            return;
    181 
    182         global $current_user;
    183181
    184182        /**
    185183         * added a $show_in_all_backend argument in version 1.4.6  that allows some notifications to be displayed on all the pages not just the plugin pages
    186184         * we needed it for license notifications
     185         *
     186         * if you want a notification that is non-dismissable on is_plugin_page() dismissable on the rest of the pages, simply do the verification where
     187         * TRP_Plugin_Notifications->add_notification() is called
     188         *
    187189         */
    188         $force_show = false;
    189         if( get_user_meta( $current_user->ID, $notification_id . '_dismiss_notification' ) ) {
    190             if( !$non_dismissable && !($this->is_plugin_page() && $show_in_all_backend) ){
    191                 return;
    192             }
    193             else{
    194                 $force_show = true; //if $show_in_all_backend is true, then we ignore the dismiss on plugin pages, but on the rest of the pages it can be dismissed
    195             }
    196         }
    197190
    198191        $this->notifications[$notification_id] = array(
     
    348341            $notification_id = 'trp_invalid_license';
    349342            $message = '<p style="padding-right:30px;">';
    350             $message .= sprintf( __('Your <strong>TranslatePress</strong> license key is invalid or missing. <br/>Please %1$sregister your copy%2$s to receive access to automatic updates and support. Need a license key? %3$sPurchase one now%4$s' , 'translatepress-multilingual' ), "<a href='". admin_url('/admin.php?page=trp_license_key') ."'>", "</a>", "<a href='https://translatepress.com/pricing/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-SN-Purchase' target='_blank' class='button-primary'>", "</a>" );
     343            $message .= sprintf( __('Your <strong>TranslatePress</strong> license is missing or invalid. <br/>Please %1$sregister your copy%2$s to enable automatic website translation via TranslatePress AI, premium addons, automatic updates and support. Need a license key? %3$sPurchase one now%4$s' , 'translatepress-multilingual' ), "<a href='". admin_url('/admin.php?page=trp_license_key') ."'>", "</a>", "<a href='https://translatepress.com/pricing/?utm_source=wp-dashboard&utm_medium=client-site&utm_campaign=pro-no-active-license' target='_blank' class='button-primary'>", "</a>" );
    351344            if ( !$notifications->is_plugin_page() ) {
    352345                //make sure to use the trp_dismiss_admin_notification arg
     
    377370                    $license_detail->error == 'key_mismatch'
    378371                )
    379                     $message .= sprintf( __('Your <strong>TranslatePress</strong> license key is invalid or missing. <br/>Please %1$sregister your copy%2$s to receive access to automatic updates and support. Need a license key? %3$sPurchase one now%4$s' , 'translatepress-multilingual' ), "<a href='". admin_url('/admin.php?page=trp_license_key') ."'>", "</a>", "<a href='https://translatepress.com/pricing/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-SN-Purchase' target='_blank' class='button-primary'>", "</a>" );
     372                    $message .= sprintf( __('Your <strong>TranslatePress</strong> license is missing or invalid. <br/>Please %1$sregister your copy%2$s to enable automatic website translation via TranslatePress AI, premium addons, automatic updates and support. Need a license key? %3$sPurchase one now%4$s' , 'translatepress-multilingual' ), "<a href='". admin_url('/admin.php?page=trp_license_key') ."'>", "</a>", "<a href='https://translatepress.com/pricing/?utm_source=wp-dashboard&utm_medium=client-site&utm_campaign=pro-no-active-license' target='_blank' class='button-primary'>", "</a>" );
    380373                elseif( $license_detail->error == 'site_inactive' )
    381374                    $message .= __( 'Your license is disabled for this URL. Re-enable it from <a target="_blank" href="https://translatepress.com/account/">https://translatepress.com/account</a> -> Manage Sites.', 'translatepress-multilingual' );
     
    385378                    $message .= sprintf( __('License key mismatch. The license you entered doesn’t match the <strong>%1$s</strong> version you have installed. <br/>Please check that you’ve installed the correct version for your license from your %2$sTranslatePress account%3$s.' , 'translatepress-multilingual' ), $tp_product_name, "<a href='https://translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-License-Check' target='_blank' >", "</a>" );
    386379                elseif( $license_detail->error == 'expired' )
    387                     $message .= sprintf( __('Your <strong>TranslatePress</strong> license has expired. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to product downloads, automatic updates and support. %3$sRenew now %4$s' , 'translatepress-multilingual' ), "<a href='https://www.translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-Renewal' target='_blank'>", "</a>", "<a href='https://www.translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-Renewal' target='_blank' class='button-primary'>", "</a>" );
     380                    $message .= sprintf( __('Your <strong>TranslatePress</strong> license has expired. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to automatic translations via TranslatePress AI, premium addons, product downloads, and automatic updates. %3$sRenew now %4$s' , 'translatepress-multilingual' ), "<a href='https://translatepress.com/account/?utm_source=wp-dashboard&utm_medium=client-site&utm_campaign=expired-license' target='_blank'>", "</a>", "<a href='https://translatepress.com/account/?utm_source=wp-dashboard&utm_medium=client-site&utm_campaign=expired-license' target='_blank' class='button-primary'>", "</a>" );
    388381                else {
    389382                    $license_error = __("Error: ", "translatepress-multilingual");
     
    415408                        /* this must be unique */
    416409                        $notification_id = 'trp_will_expire_license';
    417                         $message = '<p style="padding-right:30px;">' . sprintf( __( 'Your <strong>TranslatePress</strong> license will expire on %1$s. Please %2$sRenew Your Licence%3$s to continue receiving access to product downloads, automatic updates and support.', 'translatepress-multilingual'), date_i18n( get_option( 'date_format' ), strtotime( $license_detail->expires, current_time( 'timestamp' ) ) ), '<a href="https://translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-Renewal" target="_blank">', '</a>'). '</p>';
     410                        $message = '<p style="padding-right:30px;">' . sprintf( __( 'Your <strong>TranslatePress</strong> license will expire on %1$s. Please %2$sRenew Your Licence%3$s to continue receiving access to automatic translations via TP AI, premium addons, product downloads and automatic updates. %4$sRenew Now%5$s', 'translatepress-multilingual'), date_i18n( get_option( 'date_format' ), strtotime( $license_detail->expires, current_time( 'timestamp' ) ) ), '<a href="https://translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-Renewal" target="_blank">', '</a>', "<a href='https://translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-Renewal' target='_blank' class='button-primary'>", "</a>"). '</p>';
    418411
    419412                        if ( !$notifications->is_plugin_page() ) {
     
    425418                        }
    426419                        if (!isset($_GET['trp_sl_activation'])) {
    427                             $notifications->add_notification($notification_id, $message, 'trp-notice notice notice-info is-dismissible', true, array('translate-press'), $force_show);
     420                            $notifications->add_notification($notification_id, $message, 'trp-notice notice notice-info is-dismissible', true, array('translate-press'), false, $force_show);
    428421                        }
    429422                    }
     
    432425        }
    433426
    434         // If the license is invalid and the translation engine is DeepL, show a notification
    435         if ( isset( $this->settings['trp_machine_translation_settings']['translation-engine'] ) && $this->settings['trp_machine_translation_settings']['translation-engine'] === 'deepl' ) {
    436             $notification_id = 'trp_deepl_invalid_license';
    437             $message = '';
    438 
    439             if( empty( $license_status ) ){
     427        // If the license is invalid and the translation engine is DeepL or TP AI, show a notification only on the paid versions
     428        if( !in_array( 'TranslatePress', $trp->tp_product_name ) ) {
     429            if (isset($this->settings['trp_machine_translation_settings']['machine-translation']) && $this->settings['trp_machine_translation_settings']['machine-translation'] === 'yes') {
     430                if (isset($this->settings['trp_machine_translation_settings']['translation-engine']) && ($this->settings['trp_machine_translation_settings']['translation-engine'] === 'deepl' || $this->settings['trp_machine_translation_settings']['translation-engine'] === 'mtapi')) {
     431
     432                    $message = '';
     433                    $force_show = true;
     434
     435                    if ($this->settings['trp_machine_translation_settings']['translation-engine'] === 'deepl')
     436                        $engine_name = 'DeepL';
     437                    else
     438                        $engine_name = 'TranslatePress AI';
     439
     440                    if (empty($license_status)) {
     441                        $notification_id = 'trp_' . $this->settings['trp_machine_translation_settings']['translation-engine'] . '_missing_license';
     442                        $message = '<p style="padding-right:30px;">';
     443                        $message .= sprintf(
     444                            __('Please %1$senter%2$s your license key to enable %3$s automatic translation.', 'translatepress-multilingual'),
     445                            '<a href="' . admin_url('/admin.php?page=trp_license_key') . '">',
     446                            '</a>',
     447                            $engine_name
     448                        );
     449
     450                        if (!$notifications->is_plugin_page()) {
     451                            //make sure to use the trp_dismiss_admin_notification arg
     452                            $message .= '<a style="text-decoration: none;z-index:100;" href="' . add_query_arg(array('trp_dismiss_admin_notification' => $notification_id)) . '" type="button" class="notice-dismiss"><span class="screen-reader-text">' . esc_html__('Dismiss this notice.', 'translatepress-multilingual') . '</span></a>';
     453                            $force_show = false;
     454                        } else {
     455                            $force_show = true; //ignore dismissal on own plugin pages
     456                        }
     457
     458                        $message .= '</p>';
     459                    } elseif ($license_status !== 'valid') {
     460                        $notification_id = 'trp_' . $this->settings['trp_machine_translation_settings']['translation-engine'] . '_invalid_license';
     461                        $message = '<p style="padding-right:30px;">';
     462                        $message .= sprintf(
     463                            __('%1$s automatic translation requires an active license. Please %2$srenew%3$s your license or purchase a new one %4$shere%5$s.', 'translatepress-multilingual'),
     464                            $engine_name,
     465                            '<a href="https://translatepress.com/account/?utm_source=tp-automatic-translation&utm_medium=client-site&utm_campaign=expired-license">',
     466                            '</a>',
     467                            '<a href="https://translatepress.com/pricing/?utm_source=tp-automatic-translation&utm_medium=client-site&utm_campaign=deepl" target="_blank">',
     468                            '</a>'
     469                        );
     470
     471                        if (!$notifications->is_plugin_page()) {
     472                            //make sure to use the trp_dismiss_admin_notification arg
     473                            $message .= '<a style="text-decoration: none;z-index:100;" href="' . add_query_arg(array('trp_dismiss_admin_notification' => $notification_id)) . '" type="button" class="notice-dismiss"><span class="screen-reader-text">' . esc_html__('Dismiss this notice.', 'translatepress-multilingual') . '</span></a>';
     474                            $force_show = false;
     475                        } else {
     476                            $force_show = true; //ignore dismissal on own plugin pages
     477                        }
     478                        $message .= '</p>';
     479                    }
     480
     481                    if (!empty($message))
     482                        $notifications->add_notification($notification_id, $message, 'trp-notice notice error', true, array('translate-press'), true, $force_show);
     483                }
     484            }
     485        }
     486
     487        /*
     488         * Non-free license low quota notification
     489         */
     490        if ( !empty($license_details) && !$is_demosite && !$free_version && $license_status === 'valid' ) {
     491            // Use cached quota that's updated during translation operations
     492            $cached_quota = get_transient('trp_mtapi_cached_quota');
     493            if ( $cached_quota !== false && is_numeric($cached_quota) && $cached_quota > 0 && $cached_quota < 25000 ) {
     494                $notification_id = 'trp_low_quota_warning';
    440495                $message = '<p style="padding-right:30px;">';
    441                 $message .= sprintf(
    442                     __('Please %1$senter%2$s your license key to enable DeepL automatic translation.', 'translatepress-multilingual'),
    443                     '<a href="' . admin_url('/admin.php?page=trp_license_key') . '">',
     496                $message .= sprintf( 
     497                    __('You have less than 5,000 TranslatePress AI words remaining. To continue automatically translating your website, please %spurchase additional AI words at a discount from your account%s.', 'translatepress-multilingual'),
     498                    '<a href="https://translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=lowquota&utm_campaign=TP-License-Check" target="_blank">',
    444499                    '</a>'
    445500                );
     501                $message .= '<a style="text-decoration: none;z-index:100;" href="' . add_query_arg( array( 'trp_dismiss_admin_notification' => $notification_id ) ) . '" type="button" class="notice-dismiss"><span class="screen-reader-text">' . esc_html__( 'Dismiss this notice.', 'translatepress-multilingual' ) . '</span></a>';
    446502                $message .= '</p>';
    447             }
    448             elseif( $license_status !== 'valid' ) {
    449                 $message = '<p style="padding-right:30px;">';
    450                 $message .= sprintf(
    451                     __('DeepL automatic translation requires an active license. Please %1$srenew%2$s your license or purchase a new one %3$shere%4$s.', 'translatepress-multilingual'),
    452                     '<a href="https://translatepress.com/account/?utm_source=tp-automatic-translation&utm_medium=client-site&utm_campaign=expired-license">',
    453                     '</a>',
    454                     '<a href="https://translatepress.com/pricing/?utm_source=tp-automatic-translation&utm_medium=client-site&utm_campaign=deepl">',
    455                     '</a>'
    456                 );
    457                 $message .= '</p>';
    458             }
    459 
    460             if( !empty( $message ) )
    461                 $notifications->add_notification($notification_id, $message, 'trp-notice notice error', true, array('translate-press'), true, true);
     503               
     504                $notifications->add_notification( $notification_id, $message, 'trp-notice notice notice-warning', true, array('translate-press'), true, false );
     505            }
    462506        }
    463507
     
    491535                    $message .= sprintf( __('This website is already activated under a free license. Each website can only use one free license. Please upgrade to a premium plan for more TranslatePress AI words from %1$s your account %2$s.' , 'translatepress-multilingual' ),  "<a href='https://translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-License-Check' target='_blank' class='button-primary' >", "</a>" );
    492536                elseif( $license_detail->error == 'expired' )
    493                     $message .= sprintf( __('Your <strong>TranslatePress</strong> license has expired. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to product downloads, automatic updates and support. %3$sRenew now %4$s' , 'translatepress-multilingual' ), "<a href='https://www.translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-Renewal' target='_blank'>", "</a>", "<a href='https://www.translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettings&utm_campaign=TP-Renewal' target='_blank' class='button-primary'>", "</a>" );
     537                    $message .= sprintf( __('Your <strong>TranslatePress</strong> license has expired. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to automatic translations via TranslatePress AI, premium addons, product downloads, and automatic updates. %3$sRenew now %4$s' , 'translatepress-multilingual' ), "<a href='https://translatepress.com/account/?utm_source=wp-dashboard&utm_medium=client-site&utm_campaign=expired-license' target='_blank'>", "</a>", "<a href='https://translatepress.com/account/?utm_source=wp-dashboard&utm_medium=client-site&utm_campaign=expired-license' target='_blank' class='button-primary'>", "</a>" );
    494538                else {
    495539                    $license_error = __(" Error: ", "translatepress-multilingual");
     
    568612        $trp = TRP_Translate_Press::get_trp_instance();
    569613        $machine_translator = $trp->get_component( 'machine_translator' );
    570         $correct_key = $machine_translator->is_correct_api_key();
    571614
    572615        if ($machine_translator != null ) {
     616            $correct_key = $machine_translator->is_correct_api_key();
    573617            if ( apply_filters( 'trp_mt_available_supported_languages_show_notice', true, $this->settings['translation-languages'], $this->settings ) &&
    574618                'yes' === $this->settings['trp_machine_translation_settings']['machine-translation'] &&
  • translatepress-multilingual/trunk/includes/class-translation-manager.php

    r3301577 r3346255  
    227227            if ( $license_status != 'valid' && $license_status != 'free-version' ) {
    228228                $translatepress_product = ( defined( 'TRANSLATE_PRESS' ) ) ? TRANSLATE_PRESS : "TranslatePress";
     229                $purchase_text = '';
    229230                switch ( $license_status ) {
    230231                    case 'expired':
     
    237238                                $link         = 'https://translatepress.com/account/?utm_source=tpeditor&utm_medium=clientsite&utm_campaign=BF-2024';
    238239                            } else {
    239                                 $instructions = esc_html__( 'Please renew your license to continue receiving access to product downloads, automatic updates and support.', 'translatepress-multilingual' );
     240                                $instructions = esc_html__( 'Please renew your license to continue receiving access to TranslatePress AI, premium addons, automatic updates and support.', 'translatepress-multilingual' );
    240241                                $button       = esc_html__( 'Renew Now', 'translatepress-multilingual' );
    241242                                $link         = 'https://translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpeditor&utm_campaign=TP-Renewal';
     
    247248                        {
    248249                            $status_text  = wp_kses( sprintf( __( 'Your %s license was <span class="trp-license-status-emphasized">refunded</span>.', 'translatepress-multilingual' ), '<strong>' . $translatepress_product . '</strong>' ), array( 'strong' => array(),'span' => array( 'class' => array() ) ) );
    249                             $instructions = esc_html__( 'Please purchase a new license to continue receiving access to product downloads, automatic updates and support.', 'translatepress-multilingual' );
     250                            $instructions = esc_html__( 'Please purchase a new license to continue receiving access to TranslatePress AI, premium addons, automatic updates and support.', 'translatepress-multilingual' );
    250251                            $button       = esc_html__( 'Purchase a new license', 'translatepress-multilingual' );
    251252                            $link = 'https://translatepress.com/pricing/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpeditor&utm_campaign=TP-Refund';
     
    259260                    default:
    260261                        {
    261                             $status_text  = wp_kses( sprintf( __( 'Your %s license is <span class="trp-license-status-emphasized">empty or incorrect</span>.', 'translatepress-multilingual' ), '<strong>' . $translatepress_product . '</strong>' ), array( 'strong' => array(),'span' => array( 'class' => array() ) ) );
    262                             $instructions = esc_html__( 'Please enter a valid license to continue receiving access to product downloads, automatic updates and support.', 'translatepress-multilingual' );
     262                            $status_text  = wp_kses( sprintf( __( 'Your %s license is <span class="trp-license-status-emphasized">missing or invalid</span>.', 'translatepress-multilingual' ), '<strong>' . $translatepress_product . '</strong>' ), array( 'strong' => array(),'span' => array( 'class' => array() ) ) );
     263                            $instructions = sprintf( esc_html__( 'Please enter a valid license to get access to TranslatePress AI, premium addons, automatic updates and support. Need a license key? %1$sPurchase one now%2$s', 'translatepress-multilingual' ), '<a href="https://translatepress.com/pricing/?utm_source=tp-editor&utm_medium=client-site&utm_campaign=pro-no-active-license" target="_blank">', '</a>' );
    263264                            $button       = esc_html__( 'Enter a valid license', 'translatepress-multilingual' );
    264265                            $link         = admin_url( 'admin.php?page=trp_license_key' );
  • translatepress-multilingual/trunk/includes/functions.php

    r3288239 r3346255  
    770770}
    771771
     772/**
     773 * Function that returns the license status of the TranslatePress plugin.
     774 * @return string
     775 */
    772776function trp_get_license_status(){
    773777    $license_details = get_option( 'trp_license_details' );
  • translatepress-multilingual/trunk/includes/gettext/class-gettext-manager.php

    r3288239 r3346255  
    8585        if ( $is_ajax_on_frontend || apply_filters( 'trp_apply_gettext_early', false ) ) {
    8686            add_action( 'wp_loaded', array( $this, 'apply_gettext_filter' ) );
    87         } else {//otherwise start from the wp_head hook
     87        } else if ( function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() ){ //if we have a block theme we need to start from template_redirect hook
     88            add_action( 'template_redirect', array( $this, 'apply_gettext_filter' ), 10 );
     89        }
     90        else {//otherwise start from the wp_head hook
    8891            add_action( 'wp_head', array( $this, 'apply_gettext_filter' ), 100 );
    8992        }
  • translatepress-multilingual/trunk/includes/mtapi/functions.php

    r3328103 r3346255  
    1313function trp_mtapi_add_settings( $mt_settings ){
    1414    require_once("class-mtapi-customer.php");
    15     //$trp = TRP_Translate_Press::get_trp_instance();
    1615
    1716    $license = get_option('trp_license_key');
     
    2322    $translatepress_version_name = (defined('TRANSLATE_PRESS')) ? TRANSLATE_PRESS : 'TranslatePress';
    2423
    25     //dd($status);
    26     //dd(array($license, $status, $details));
    2724    if ($status === false) : ?>
    2825
     
    4441                </span>
    4542            </div>
    46 <?php if ($translatepress_version_name == 'TranslatePress') :
    47             ?>
    48             <span class="trp-secondary-text trp-get-free-license-text">
    49                 <?php esc_html_e('In order to enable Automatic Translation using TranslatePress AI, you need a license key by creating a free account.', 'translatepress-multilingual'); ?>
    50             </span>
    51 <?php endif;?>
     43            <?php if ($translatepress_version_name == 'TranslatePress') : ?>
     44                <span class="trp-secondary-text trp-get-free-license-text">
     45                    <?php esc_html_e('In order to enable Automatic Translation using TranslatePress AI, you need a license key by creating a free account.', 'translatepress-multilingual'); ?>
     46                </span>
     47            <?php endif;?>
    5248            <div class="trp-automatic-translation-get-license-buttons">
    53 <?php if ( $translatepress_version_name == 'TranslatePress' ) : ?>
     49            <?php if ( $translatepress_version_name == 'TranslatePress' ) : ?>
    5450                <a href="<?php echo esc_url( 'https://translatepress.com/ai-free/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpsettingsAT&utm_campaign=tpaifree' ) ?>" class="trp-get-free-license-link trp-get-free-license-button button-primary" target="_blank" id="trp-enter-license-button">
    5551                    <?php esc_html_e( 'Create your Free Account', 'translatepress-multilingual' ); ?>
     
    5753
    5854                <span class="trp-secondary-text trp-text-auto"><?php esc_html_e(' or ', 'translatepress-multilingual'); ?></span>
    59 <?php endif;?>
    60                 <a href="<?php echo esc_url( admin_url('admin.php?page=trp_license_key') ) ?>" class="trp-enter-license-link trp-get-free-license-button trp-button-secondary" id="trp-enter-license-button">
    61                         <?php esc_html_e( 'Enter your license key', 'translatepress-multilingual' ); ?>
    62                 </a>
     55            <?php endif;?>
     56            <a href="<?php echo esc_url( admin_url('admin.php?page=trp_license_key') ) ?>" class="trp-enter-license-link trp-get-free-license-button trp-button-secondary" id="trp-enter-license-button">
     57                    <?php esc_html_e( 'Enter your license key', 'translatepress-multilingual' ); ?>
     58            </a>
     59            <?php if ( $translatepress_version_name != 'TranslatePress' ) : ?>
     60                <span class="trp-secondary-text trp-text-auto"><?php printf( esc_html__(' Or %1$spurchase one here%2$s', 'translatepress-multilingual'), '<a href="https://translatepress.com/pricing/?utm_source=tp-automatic-translation&utm_medium=client-site&utm_campaign=tp-ai" target="_blank">', '</a>' ); ?></span>
     61            <?php endif;?>
    6362
    6463            </div>
  • translatepress-multilingual/trunk/index.php

    r3333369 r3346255  
    44Plugin URI: https://translatepress.com/
    55Description: Experience a better way of translating your WordPress site using a visual front-end translation editor, with full support for WooCommerce and site builders.
    6 Version: 2.9.22
     6Version: 2.9.23
    77Author: Cozmoslabs, Razvan Mocanu, Madalin Ungureanu, Cristophor Hurduban
    88Author URI: https://cozmoslabs.com/
     
    1111License: GPL2
    1212WC requires at least: 2.5.0
    13 WC tested up to: 10.0.4
     13WC tested up to: 10.1.0
    1414
    1515== Copyright ==
  • translatepress-multilingual/trunk/languages/translatepress-multilingual.catalog.php

    r3332983 r3346255  
    1818<?php __("There is a new version of %1$s available. %2$sView version %3$s details%4$s or %5$supdate now%6$s.", "translatepress-multilingual"); ?>
    1919<?php __("There is a new version of %1$s available. %2$sView version %3$s details%4$s.", "translatepress-multilingual"); ?>
     20<?php __("To enable updates, please %1$senter your license key%2$s. Need a license key? %3$sPurchase one now%4$s.", "translatepress-multilingual"); ?>
     21<?php __("To enable updates, please go to the %1$slicense page%2$s and check that you have a valid license.", "translatepress-multilingual"); ?>
     22<?php __("To enable updates, your licence needs to be renewed. Please go to the %1$sTranslatePress Account%2$s page and login to renew.", "translatepress-multilingual"); ?>
    2023<?php __("You do not have permission to install plugin updates", "translatepress-multilingual"); ?>
    2124<?php __("Error", "translatepress-multilingual"); ?>
     
    2629<?php __("<p><strong>License key mismatch.</strong> The license you entered doesn’t match the TranslatePress version you have installed.</p><p>Please check that you’ve installed the correct version for your license from your TranslatePress account.</p>", "translatepress-multilingual"); ?>
    2730<?php __("Your license key has reached its activation limit.", "translatepress-multilingual"); ?>
     31<?php __("Upgrade your plan to add more sites. %1$sUpgrade now%2$s", "translatepress-multilingual"); ?>
    2832<?php __("This website is already activated under a free license. Each website can only use one free license.", "translatepress-multilingual"); ?>
    2933<?php __("An error occurred, please try again.", "translatepress-multilingual"); ?>
     
    7579<?php __("Please enter your Google Translate key.", "translatepress-multilingual"); ?>
    7680<?php __("Please enter your DeepL API key.", "translatepress-multilingual"); ?>
    77 <?php __("Your <strong>TranslatePress</strong> license key is invalid or missing. <br/>Please %1$sregister your copy%2$s to receive access to automatic updates and support. Need a license key? %3$sPurchase one now%4$s", "translatepress-multilingual"); ?>
    78 <?php __("Your <strong>TranslatePress</strong> license will expire on %1$s. Please %2$sRenew Your Licence%3$s to continue receiving access to product downloads, automatic updates and support.", "translatepress-multilingual"); ?>
     81<?php __("Your <strong>TranslatePress</strong> license is missing or invalid. <br/>Please %1$sregister your copy%2$s to enable automatic website translation via TranslatePress AI, premium addons, automatic updates and support. Need a license key? %3$sPurchase one now%4$s", "translatepress-multilingual"); ?>
     82<?php __("Your <strong>TranslatePress</strong> license will expire on %1$s. Please %2$sRenew Your Licence%3$s to continue receiving access to automatic translations via TP AI, premium addons, product downloads and automatic updates. %4$sRenew Now%5$s", "translatepress-multilingual"); ?>
    7983<?php __("Error: ", "translatepress-multilingual"); ?>
    8084<?php __("Something went wrong, please try again.", "translatepress-multilingual"); ?>
    81 <?php __("Your <strong>TranslatePress</strong> license has expired. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to product downloads, automatic updates and support. %3$sRenew now %4$s", "translatepress-multilingual"); ?>
     85<?php __("Your <strong>TranslatePress</strong> license has expired. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to automatic translations via TranslatePress AI, premium addons, product downloads, and automatic updates. %3$sRenew now %4$s", "translatepress-multilingual"); ?>
    8286<?php __("License key mismatch. The license you entered doesn’t match the <strong>%1$s</strong> version you have installed. <br/>Please check that you’ve installed the correct version for your license from your %2$sTranslatePress account%3$s.", "translatepress-multilingual"); ?>
    8387<?php __("You have reached the activation limit for your <strong>%1$s</strong> license. <br/>Manage your active sites from %2$s your account %3$s.", "translatepress-multilingual"); ?>
    8488<?php __("Your license is disabled for this URL. Re-enable it from <a target=\"_blank\" href=\"https://translatepress.com/account/\">https://translatepress.com/account</a> -> Manage Sites.", "translatepress-multilingual"); ?>
    85 <?php __("DeepL automatic translation requires an active license. Please %1$srenew%2$s your license or purchase a new one %3$shere%4$s.", "translatepress-multilingual"); ?>
    86 <?php __("Please %1$senter%2$s your license key to enable DeepL automatic translation.", "translatepress-multilingual"); ?>
     89<?php __("%1$s automatic translation requires an active license. Please %2$srenew%3$s your license or purchase a new one %4$shere%5$s.", "translatepress-multilingual"); ?>
     90<?php __("Please %1$senter%2$s your license key to enable %3$s automatic translation.", "translatepress-multilingual"); ?>
     91<?php __("You have less than 5,000 TranslatePress AI words remaining. To continue automatically translating your website, please %spurchase additional AI words at a discount from your account%s.", "translatepress-multilingual"); ?>
    8792<?php __(" Error: ", "translatepress-multilingual"); ?>
    8893<?php __("This website is already activated under a free license. Each website can only use one free license. Please upgrade to a premium plan for more TranslatePress AI words from %1$s your account %2$s.", "translatepress-multilingual"); ?>
     
    205210<?php __("Search for any text in this page in the dropdown.", "translatepress-multilingual"); ?>
    206211<?php __("Your %s license has <span class=\"trp-license-status-emphasized\">expired</span>.", "translatepress-multilingual"); ?>
    207 <?php __("Please renew your license to continue receiving access to product downloads, automatic updates and support.", "translatepress-multilingual"); ?>
     212<?php __("Please renew your license to continue receiving access to TranslatePress AI, premium addons, automatic updates and support.", "translatepress-multilingual"); ?>
    208213<?php __("Renew Now", "translatepress-multilingual"); ?>
    209214<?php __("<strong>This Black Friday, renew your license at a special price</strong> to continue receiving access to product downloads, automatic updates, and support.", "translatepress-multilingual"); ?>
    210215<?php __("Get Deal", "translatepress-multilingual"); ?>
    211216<?php __("Your %s license was <span class=\"trp-license-status-emphasized\">refunded</span>.", "translatepress-multilingual"); ?>
    212 <?php __("Please purchase a new license to continue receiving access to product downloads, automatic updates and support.", "translatepress-multilingual"); ?>
     217<?php __("Please purchase a new license to continue receiving access to TranslatePress AI, premium addons, automatic updates and support.", "translatepress-multilingual"); ?>
    213218<?php __("Purchase a new license", "translatepress-multilingual"); ?>
    214 <?php __("Your %s license is <span class=\"trp-license-status-emphasized\">empty or incorrect</span>.", "translatepress-multilingual"); ?>
    215 <?php __("Please enter a valid license to continue receiving access to product downloads, automatic updates and support.", "translatepress-multilingual"); ?>
     219<?php __("Your %s license is <span class=\"trp-license-status-emphasized\">missing or invalid</span>.", "translatepress-multilingual"); ?>
     220<?php __("Please enter a valid license to get access to TranslatePress AI, premium addons, automatic updates and support. Need a license key? %1$sPurchase one now%2$s", "translatepress-multilingual"); ?>
    216221<?php __("Enter a valid license", "translatepress-multilingual"); ?>
    217222<?php __("Slugs", "translatepress-multilingual"); ?>
     
    574579<?php __(" or ", "translatepress-multilingual"); ?>
    575580<?php __("Enter your license key", "translatepress-multilingual"); ?>
     581<?php __(" Or %1$spurchase one here%2$s", "translatepress-multilingual"); ?>
    576582<?php __("Your free account includes: ", "translatepress-multilingual"); ?>
    577583<?php __("Get more AI Tokens and unlock all AI features with TranslatePress Pro.", "translatepress-multilingual"); ?>
  • translatepress-multilingual/trunk/languages/translatepress-multilingual.pot

    r3333369 r3346255  
    77"Content-Type: text/plain; charset=UTF-8\n"
    88"Content-Transfer-Encoding: 8bit\n"
    9 "POT-Creation-Date: 2025-07-24 08:29+0000\n"
     9"POT-Creation-Date: 2025-08-18 08:19+0000\n"
    1010"X-Poedit-Basepath: ..\n"
    1111"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
     
    7979msgstr ""
    8080
    81 #: includes/class-edd-sl-plugin-updater.php:224
     81#: includes/class-edd-sl-plugin-updater.php:258
    8282msgid "There is a new version of %1$s available. %2$sView version %3$s details%4$s or %5$supdate now%6$s."
    8383msgstr ""
     
    8787msgstr ""
    8888
    89 #: includes/class-edd-sl-plugin-updater.php:418
     89#: includes/class-edd-sl-plugin-updater.php:245
     90msgid "To enable updates, please %1$senter your license key%2$s. Need a license key? %3$sPurchase one now%4$s."
     91msgstr ""
     92
     93#: includes/class-edd-sl-plugin-updater.php:236
     94msgid "To enable updates, please go to the %1$slicense page%2$s and check that you have a valid license."
     95msgstr ""
     96
     97#: includes/class-edd-sl-plugin-updater.php:229
     98msgid "To enable updates, your licence needs to be renewed. Please go to the %1$sTranslatePress Account%2$s page and login to renew."
     99msgstr ""
     100
     101#: includes/class-edd-sl-plugin-updater.php:452
    90102msgid "You do not have permission to install plugin updates"
    91103msgstr ""
    92104
    93 #: includes/class-edd-sl-plugin-updater.php:418
     105#: includes/class-edd-sl-plugin-updater.php:452
    94106msgid "Error"
    95107msgstr ""
    96108
    97 #: includes/class-edd-sl-plugin-updater.php:776
     109#: includes/class-edd-sl-plugin-updater.php:810
    98110msgid "Your license key expired on %s."
    99111msgstr ""
    100112
    101 #: includes/class-edd-sl-plugin-updater.php:781
     113#: includes/class-edd-sl-plugin-updater.php:815
    102114msgid "Your license key has been disabled."
    103115msgstr ""
    104116
    105 #: includes/class-edd-sl-plugin-updater.php:784
     117#: includes/class-edd-sl-plugin-updater.php:818
    106118msgid "Your TranslatePress license key is invalid or missing."
    107119msgstr ""
    108120
    109 #: includes/class-edd-sl-plugin-updater.php:788
     121#: includes/class-edd-sl-plugin-updater.php:822
    110122msgid "Your license key is disabled for this URL. Re-enable it from <a target=\"_blank\" href=\"https://translatepress.com/account/\">https://translatepress.com/account</a> -> Manage Sites."
    111123msgstr ""
    112124
    113 #: includes/class-edd-sl-plugin-updater.php:791
     125#: includes/class-edd-sl-plugin-updater.php:825
    114126msgid "<p><strong>License key mismatch.</strong> The license you entered doesn’t match the TranslatePress version you have installed.</p><p>Please check that you’ve installed the correct version for your license from your TranslatePress account.</p>"
    115127msgstr ""
    116128
    117 #: includes/class-edd-sl-plugin-updater.php:795
     129#: includes/class-edd-sl-plugin-updater.php:829
    118130msgid "Your license key has reached its activation limit."
    119131msgstr ""
    120132
    121 #: includes/class-edd-sl-plugin-updater.php:798
     133#: includes/class-edd-sl-plugin-updater.php:831
     134msgid "Upgrade your plan to add more sites. %1$sUpgrade now%2$s"
     135msgstr ""
     136
     137#: includes/class-edd-sl-plugin-updater.php:834
    122138msgid "This website is already activated under a free license. Each website can only use one free license."
    123139msgstr ""
    124140
    125 #: includes/class-edd-sl-plugin-updater.php:801, includes/class-edd-sl-plugin-updater.php:765, includes/class-edd-sl-plugin-updater.php:875
     141#: includes/class-edd-sl-plugin-updater.php:837, includes/class-edd-sl-plugin-updater.php:799, includes/class-edd-sl-plugin-updater.php:911
    126142msgid "An error occurred, please try again."
    127143msgstr ""
    128144
    129 #: includes/class-edd-sl-plugin-updater.php:834
     145#: includes/class-edd-sl-plugin-updater.php:870
    130146msgid "You have successfully activated your license"
    131147msgstr ""
     
    199215msgstr ""
    200216
    201 #: includes/class-error-manager.php:170, includes/class-plugin-notices.php:353, includes/class-plugin-notices.php:421, includes/class-plugin-notices.php:397, includes/class-plugin-notices.php:503, includes/class-plugin-notices.php:559, includes/class-plugin-notices.php:585, includes/class-plugin-notices.php:633, includes/class-plugin-notices.php:618, includes/class-reviews.php:123, includes/class-reviews.php:126, includes/class-upgrade.php:1035, add-ons-advanced/seo-pack/class-seo-pack.php:810
     217#: includes/class-error-manager.php:170, includes/class-plugin-notices.php:346, includes/class-plugin-notices.php:414, includes/class-plugin-notices.php:390, includes/class-plugin-notices.php:473, includes/class-plugin-notices.php:452, includes/class-plugin-notices.php:501, includes/class-plugin-notices.php:547, includes/class-plugin-notices.php:603, includes/class-plugin-notices.php:629, includes/class-plugin-notices.php:677, includes/class-plugin-notices.php:662, includes/class-reviews.php:123, includes/class-reviews.php:126, includes/class-upgrade.php:1035, add-ons-advanced/seo-pack/class-seo-pack.php:810
    202218msgid "Dismiss this notice."
    203219msgstr ""
     
    315331msgstr ""
    316332
    317 #: includes/class-plugin-notices.php:350, includes/class-plugin-notices.php:379
    318 msgid "Your <strong>TranslatePress</strong> license key is invalid or missing. <br/>Please %1$sregister your copy%2$s to receive access to automatic updates and support. Need a license key? %3$sPurchase one now%4$s"
    319 msgstr ""
    320 
    321 #: includes/class-plugin-notices.php:417
    322 msgid "Your <strong>TranslatePress</strong> license will expire on %1$s. Please %2$sRenew Your Licence%3$s to continue receiving access to product downloads, automatic updates and support."
    323 msgstr ""
    324 
    325 #: includes/class-plugin-notices.php:389
     333#: includes/class-plugin-notices.php:343, includes/class-plugin-notices.php:372
     334msgid "Your <strong>TranslatePress</strong> license is missing or invalid. <br/>Please %1$sregister your copy%2$s to enable automatic website translation via TranslatePress AI, premium addons, automatic updates and support. Need a license key? %3$sPurchase one now%4$s"
     335msgstr ""
     336
     337#: includes/class-plugin-notices.php:410
     338msgid "Your <strong>TranslatePress</strong> license will expire on %1$s. Please %2$sRenew Your Licence%3$s to continue receiving access to automatic translations via TP AI, premium addons, product downloads and automatic updates. %4$sRenew Now%5$s"
     339msgstr ""
     340
     341#: includes/class-plugin-notices.php:382
    326342msgid "Error: "
    327343msgstr ""
    328344
    329 #: includes/class-plugin-notices.php:393, includes/class-plugin-notices.php:499
     345#: includes/class-plugin-notices.php:386, includes/class-plugin-notices.php:543
    330346msgid "Something went wrong, please try again."
    331347msgstr ""
    332348
    333 #: includes/class-plugin-notices.php:387, includes/class-plugin-notices.php:493
    334 msgid "Your <strong>TranslatePress</strong> license has expired. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to product downloads, automatic updates and support. %3$sRenew now %4$s"
    335 msgstr ""
    336 
    337 #: includes/class-plugin-notices.php:385, includes/class-plugin-notices.php:489
     349#: includes/class-plugin-notices.php:380, includes/class-plugin-notices.php:537
     350msgid "Your <strong>TranslatePress</strong> license has expired. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to automatic translations via TranslatePress AI, premium addons, product downloads, and automatic updates. %3$sRenew now %4$s"
     351msgstr ""
     352
     353#: includes/class-plugin-notices.php:378, includes/class-plugin-notices.php:533
    338354msgid "License key mismatch. The license you entered doesn’t match the <strong>%1$s</strong> version you have installed. <br/>Please check that you’ve installed the correct version for your license from your %2$sTranslatePress account%3$s."
    339355msgstr ""
    340356
    341 #: includes/class-plugin-notices.php:383, includes/class-plugin-notices.php:487
     357#: includes/class-plugin-notices.php:376, includes/class-plugin-notices.php:531
    342358msgid "You have reached the activation limit for your <strong>%1$s</strong> license. <br/>Manage your active sites from %2$s your account %3$s."
    343359msgstr ""
    344360
    345 #: includes/class-plugin-notices.php:381, includes/class-plugin-notices.php:485
     361#: includes/class-plugin-notices.php:374, includes/class-plugin-notices.php:529
    346362msgid "Your license is disabled for this URL. Re-enable it from <a target=\"_blank\" href=\"https://translatepress.com/account/\">https://translatepress.com/account</a> -> Manage Sites."
    347363msgstr ""
    348364
    349 #: includes/class-plugin-notices.php:451
    350 msgid "DeepL automatic translation requires an active license. Please %1$srenew%2$s your license or purchase a new one %3$shere%4$s."
    351 msgstr ""
    352 
    353 #: includes/class-plugin-notices.php:442
    354 msgid "Please %1$senter%2$s your license key to enable DeepL automatic translation."
    355 msgstr ""
    356 
    357 #: includes/class-plugin-notices.php:495
     365#: includes/class-plugin-notices.php:463
     366msgid "%1$s automatic translation requires an active license. Please %2$srenew%3$s your license or purchase a new one %4$shere%5$s."
     367msgstr ""
     368
     369#: includes/class-plugin-notices.php:444
     370msgid "Please %1$senter%2$s your license key to enable %3$s automatic translation."
     371msgstr ""
     372
     373#: includes/class-plugin-notices.php:497
     374msgid "You have less than 5,000 TranslatePress AI words remaining. To continue automatically translating your website, please %spurchase additional AI words at a discount from your account%s."
     375msgstr ""
     376
     377#: includes/class-plugin-notices.php:539
    358378msgid " Error: "
    359379msgstr ""
    360380
    361 #: includes/class-plugin-notices.php:491
     381#: includes/class-plugin-notices.php:535
    362382msgid "This website is already activated under a free license. Each website can only use one free license. Please upgrade to a premium plan for more TranslatePress AI words from %1$s your account %2$s."
    363383msgstr ""
    364384
    365 #: includes/class-plugin-notices.php:483
     385#: includes/class-plugin-notices.php:527
    366386msgid "You do not have a valid license for <strong>TranslatePress</strong>. %1$sGet one for free%2$s to get access to TranslatePress AI."
    367387msgstr ""
    368388
    369 #: includes/class-plugin-notices.php:556
     389#: includes/class-plugin-notices.php:600
    370390msgid "The daily quota for machine translation characters exceeded. Please check the <strong>TranslatePress -> <a href=\"%s\">Automatic Translation</a></strong> page for more information."
    371391msgstr ""
    372392
    373 #: includes/class-plugin-notices.php:582
     393#: includes/class-plugin-notices.php:626
    374394msgid "One or more languages are unsupported by the automatic translation provider. Please check the <strong>TranslatePress -> <a href=\"%s\">Automatic Translation</a></strong> page for more information."
    375395msgstr ""
     
    515535msgstr ""
    516536
    517 #: includes/class-settings.php:636, includes/class-translation-manager.php:533, add-ons-pro/translator-accounts/includes/class-translator-accounts.php:156
     537#: includes/class-settings.php:636, includes/class-translation-manager.php:534, add-ons-pro/translator-accounts/includes/class-translator-accounts.php:156
    518538msgid "Translate Site"
    519539msgstr ""
     
    527547msgstr ""
    528548
    529 #: includes/class-settings.php:693, includes/class-translation-manager.php:565
     549#: includes/class-settings.php:693, includes/class-translation-manager.php:566
    530550msgid "Settings"
    531551msgstr ""
     
    833853msgstr ""
    834854
    835 #: includes/class-translation-manager.php:232
     855#: includes/class-translation-manager.php:233
    836856msgid "Your %s license has <span class=\"trp-license-status-emphasized\">expired</span>."
    837857msgstr ""
    838858
    839 #: includes/class-translation-manager.php:239
    840 msgid "Please renew your license to continue receiving access to product downloads, automatic updates and support."
    841 msgstr ""
    842 
    843859#: includes/class-translation-manager.php:240
     860msgid "Please renew your license to continue receiving access to TranslatePress AI, premium addons, automatic updates and support."
     861msgstr ""
     862
     863#: includes/class-translation-manager.php:241
    844864msgid "Renew Now"
    845865msgstr ""
    846866
    847 #: includes/class-translation-manager.php:235
     867#: includes/class-translation-manager.php:236
    848868msgid "<strong>This Black Friday, renew your license at a special price</strong> to continue receiving access to product downloads, automatic updates, and support."
    849869msgstr ""
    850870
    851 #: includes/class-translation-manager.php:236
     871#: includes/class-translation-manager.php:237
    852872msgid "Get Deal"
    853873msgstr ""
    854874
    855 #: includes/class-translation-manager.php:248
     875#: includes/class-translation-manager.php:249
    856876msgid "Your %s license was <span class=\"trp-license-status-emphasized\">refunded</span>."
    857877msgstr ""
    858878
    859 #: includes/class-translation-manager.php:249
    860 msgid "Please purchase a new license to continue receiving access to product downloads, automatic updates and support."
    861 msgstr ""
    862 
    863879#: includes/class-translation-manager.php:250
     880msgid "Please purchase a new license to continue receiving access to TranslatePress AI, premium addons, automatic updates and support."
     881msgstr ""
     882
     883#: includes/class-translation-manager.php:251
    864884msgid "Purchase a new license"
    865885msgstr ""
    866886
    867 #: includes/class-translation-manager.php:261
    868 msgid "Your %s license is <span class=\"trp-license-status-emphasized\">empty or incorrect</span>."
    869 msgstr ""
    870 
    871887#: includes/class-translation-manager.php:262
    872 msgid "Please enter a valid license to continue receiving access to product downloads, automatic updates and support."
     888msgid "Your %s license is <span class=\"trp-license-status-emphasized\">missing or invalid</span>."
    873889msgstr ""
    874890
    875891#: includes/class-translation-manager.php:263
     892msgid "Please enter a valid license to get access to TranslatePress AI, premium addons, automatic updates and support. Need a license key? %1$sPurchase one now%2$s"
     893msgstr ""
     894
     895#: includes/class-translation-manager.php:264
    876896msgid "Enter a valid license"
    877897msgstr ""
    878898
    879 #: includes/class-translation-manager.php:319, includes/string-translation/class-string-translation.php:373, add-ons-advanced/seo-pack/includes/string-translation/class-string-translation-seo.php:17, add-ons-advanced/seo-pack-legacy/includes/string-translation/class-string-translation-seo.php:16
     899#: includes/class-translation-manager.php:320, includes/string-translation/class-string-translation.php:373, add-ons-advanced/seo-pack/includes/string-translation/class-string-translation-seo.php:17, add-ons-advanced/seo-pack-legacy/includes/string-translation/class-string-translation-seo.php:16
    880900msgid "Slugs"
    881901msgstr ""
    882902
    883 #: includes/class-translation-manager.php:320
     903#: includes/class-translation-manager.php:321
    884904msgid "Meta Information"
    885905msgstr ""
    886906
    887 #: includes/class-translation-manager.php:321
     907#: includes/class-translation-manager.php:322
    888908msgid "String List"
    889909msgstr ""
    890910
    891 #: includes/class-translation-manager.php:322
     911#: includes/class-translation-manager.php:323
    892912msgid "Gettext Strings"
    893913msgstr ""
    894914
    895 #: includes/class-translation-manager.php:323
     915#: includes/class-translation-manager.php:324
    896916msgid "Images"
    897917msgstr ""
    898918
    899 #: includes/class-translation-manager.php:324
     919#: includes/class-translation-manager.php:325
    900920msgid "Videos"
    901921msgstr ""
    902922
    903 #: includes/class-translation-manager.php:325
     923#: includes/class-translation-manager.php:326
    904924msgid "Audios"
    905925msgstr ""
    906926
    907 #: includes/class-translation-manager.php:326
     927#: includes/class-translation-manager.php:327
    908928msgid "Dynamically Added Strings"
    909929msgstr ""
    910930
    911 #: includes/class-translation-manager.php:363
     931#: includes/class-translation-manager.php:364
    912932msgid "Translation Editor"
    913933msgstr ""
    914934
    915 #: includes/class-translation-manager.php:365
     935#: includes/class-translation-manager.php:366
    916936msgid "Edit translations by visually selecting them on each site page"
    917937msgstr ""
    918938
    919 #: includes/class-translation-manager.php:369
     939#: includes/class-translation-manager.php:370
    920940msgid "String Translation"
    921941msgstr ""
    922942
    923 #: includes/class-translation-manager.php:371
     943#: includes/class-translation-manager.php:372
    924944msgid "Edit url slug translations, plugins and theme translation (emails, forms etc.)"
    925945msgstr ""
    926946
    927 #: includes/class-translation-manager.php:447
     947#: includes/class-translation-manager.php:448
    928948msgid "Current User"
    929949msgstr ""
    930950
    931 #: includes/class-translation-manager.php:448
     951#: includes/class-translation-manager.php:449
    932952msgid "Logged Out"
    933953msgstr ""
    934954
    935 #: includes/class-translation-manager.php:546, includes/class-translation-manager.php:608
     955#: includes/class-translation-manager.php:547, includes/class-translation-manager.php:609
    936956msgid "Translate Page"
    937957msgstr ""
    938958
    939 #: includes/class-translation-manager.php:606
     959#: includes/class-translation-manager.php:607
    940960msgid "Opens post in the translation editor. Post must be saved as draft or published beforehand."
    941961msgstr ""
    942962
    943 #: includes/class-translation-manager.php:720
     963#: includes/class-translation-manager.php:721
    944964msgid "Security check"
    945965msgstr ""
    946966
    947 #: includes/class-translation-manager.php:792
     967#: includes/class-translation-manager.php:793
    948968msgid "<strong>Warning:</strong> Some strings have possibly incorrectly encoded characters. This may result in breaking the queries, rendering the page untranslated in live mode. Consider revising the following strings or their method of outputting."
    949969msgstr ""
    950970
    951 #: includes/class-translation-manager.php:817, includes/class-translation-manager.php:836, includes/class-upgrade.php:370
     971#: includes/class-translation-manager.php:818, includes/class-translation-manager.php:837, includes/class-upgrade.php:370
    952972msgid "TranslatePress data update"
    953973msgstr ""
    954974
    955 #: includes/class-translation-manager.php:817, includes/class-translation-manager.php:836, includes/class-upgrade.php:370
     975#: includes/class-translation-manager.php:818, includes/class-translation-manager.php:837, includes/class-upgrade.php:370
    956976msgid "We need to update your translations database to the latest version."
    957977msgstr ""
    958978
    959 #: includes/class-translation-manager.php:818
     979#: includes/class-translation-manager.php:819
    960980msgid "Updating will allow editing translations of localized text from plugins and theme. Existing translation will still work as expected."
    961981msgstr ""
    962982
    963 #: includes/class-translation-manager.php:820, includes/class-translation-manager.php:839, includes/class-upgrade.php:371
     983#: includes/class-translation-manager.php:821, includes/class-translation-manager.php:840, includes/class-upgrade.php:371
    964984msgid "IMPORTANT: It is strongly recommended to first backup the database!\nAre you sure you want to continue?"
    965985msgstr ""
    966986
    967 #: includes/class-translation-manager.php:820, includes/class-translation-manager.php:839, includes/class-upgrade.php:371
     987#: includes/class-translation-manager.php:821, includes/class-translation-manager.php:840, includes/class-upgrade.php:371
    968988msgid "Run the updater"
    969989msgstr ""
    970990
    971 #: includes/class-translation-manager.php:837
     991#: includes/class-translation-manager.php:838
    972992msgid "Updating will allow editing translations of slugs. Existing translation will still work as expected."
    973993msgstr ""
    974994
    975 #: includes/class-translation-manager.php:892
     995#: includes/class-translation-manager.php:893
    976996msgid "Please activate the SEO Addon from <br/>WordPress -> Settings -> TranslatePress -> Addons section"
    977997msgstr ""
    978998
    979 #: includes/class-translation-manager.php:895
     999#: includes/class-translation-manager.php:896
    9801000msgid "Go to Addons"
    9811001msgstr ""
    9821002
    983 #: includes/class-translation-manager.php:910
     1003#: includes/class-translation-manager.php:911
    9841004msgid "The SEO Pack add-on allows translation of all the URL slugs:"
    9851005msgstr ""
    9861006
    987 #: includes/class-translation-manager.php:913
     1007#: includes/class-translation-manager.php:914
    9881008msgid "Taxonomy slugs"
    9891009msgstr ""
    9901010
    991 #: includes/class-translation-manager.php:916
     1011#: includes/class-translation-manager.php:917
    9921012msgid "Term slugs"
    9931013msgstr ""
    9941014
    995 #: includes/class-translation-manager.php:919
     1015#: includes/class-translation-manager.php:920
    9961016msgid "Post slugs (this includes pages and custom post types)"
    9971017msgstr ""
    9981018
    999 #: includes/class-translation-manager.php:922
     1019#: includes/class-translation-manager.php:923
    10001020msgid "Post type base slugs"
    10011021msgstr ""
    10021022
    1003 #: includes/class-translation-manager.php:925
     1023#: includes/class-translation-manager.php:926
    10041024msgid "WooCommerce slugs"
    10051025msgstr ""
    10061026
    1007 #: includes/class-translation-manager.php:930
     1027#: includes/class-translation-manager.php:931
    10081028msgid "The SEO Pack add-on is available with ALL premium versions of the plugin."
    10091029msgstr ""
    10101030
    1011 #: includes/class-translation-manager.php:933
     1031#: includes/class-translation-manager.php:934
    10121032msgid "Upgrade to Pro"
    10131033msgstr ""
     
    13971417msgstr ""
    13981418
    1399 #: partials/license-settings-page.php:124, includes/mtapi/functions.php:75
     1419#: partials/license-settings-page.php:124, includes/mtapi/functions.php:74
    14001420msgid "Access to TranslatePress AI for instant automatic translations"
    14011421msgstr ""
    14021422
    1403 #: partials/license-settings-page.php:129, includes/mtapi/functions.php:80
     1423#: partials/license-settings-page.php:129, includes/mtapi/functions.php:79
    14041424msgid "2000 AI words to translate automatically"
    14051425msgstr ""
     
    15411561msgstr ""
    15421562
    1543 #: partials/machine-translation-settings-page.php:255, includes/mtapi/functions.php:88, includes/mtapi/functions.php:188
     1563#: partials/machine-translation-settings-page.php:255, includes/mtapi/functions.php:87, includes/mtapi/functions.php:187
    15441564msgid "Upgrade now"
    15451565msgstr ""
     
    22972317msgstr ""
    22982318
    2299 #: includes/mtapi/functions.php:43
     2319#: includes/mtapi/functions.php:40, add-ons-pro/deepl/includes/class-deepl.php:194
    23002320msgid "No Active License Detected for this website."
    23012321msgstr ""
    23022322
    2303 #: includes/mtapi/functions.php:49
     2323#: includes/mtapi/functions.php:45
    23042324msgid "In order to enable Automatic Translation using TranslatePress AI, you need a license key by creating a free account."
    23052325msgstr ""
    23062326
    2307 #: includes/mtapi/functions.php:55
     2327#: includes/mtapi/functions.php:51
    23082328msgid "Create your Free Account"
    23092329msgstr ""
    23102330
    2311 #: includes/mtapi/functions.php:58
     2331#: includes/mtapi/functions.php:54
    23122332msgid " or "
    23132333msgstr ""
    23142334
    2315 #: includes/mtapi/functions.php:61
     2335#: includes/mtapi/functions.php:57, add-ons-pro/deepl/includes/class-deepl.php:199
    23162336msgid "Enter your license key"
    23172337msgstr ""
    23182338
    2319 #: includes/mtapi/functions.php:70
     2339#: includes/mtapi/functions.php:60, add-ons-pro/deepl/includes/class-deepl.php:201
     2340msgid " Or %1$spurchase one here%2$s"
     2341msgstr ""
     2342
     2343#: includes/mtapi/functions.php:69
    23202344msgid "Your free account includes: "
    23212345msgstr ""
    23222346
    2323 #: includes/mtapi/functions.php:85, includes/mtapi/functions.php:185
     2347#: includes/mtapi/functions.php:84, includes/mtapi/functions.php:184
    23242348msgid "Get more AI Tokens and unlock all AI features with TranslatePress Pro."
    23252349msgstr ""
    23262350
    2327 #: includes/mtapi/functions.php:144
     2351#: includes/mtapi/functions.php:143
    23282352msgid "You have a valid %s <strong>license</strong>."
    23292353msgstr ""
    23302354
    2331 #: includes/mtapi/functions.php:151
     2355#: includes/mtapi/functions.php:150
    23322356msgid " words remaining. "
    23332357msgstr ""
    23342358
    2335 #: includes/mtapi/functions.php:157
     2359#: includes/mtapi/functions.php:156
    23362360msgid "Recheck"
    23372361msgstr ""
    23382362
    2339 #: includes/mtapi/functions.php:161
     2363#: includes/mtapi/functions.php:160
    23402364msgid "Rechecking..."
    23412365msgstr ""
    23422366
    2343 #: includes/mtapi/functions.php:164
     2367#: includes/mtapi/functions.php:163
    23442368msgid "Done."
    23452369msgstr ""
    23462370
     2371#: includes/mtapi/functions.php:175
     2372msgid "Manage your license & quota on the %s"
     2373msgstr ""
     2374
    23472375#: includes/mtapi/functions.php:176
    2348 msgid "Manage your license & quota on the %s"
    2349 msgstr ""
    2350 
    2351 #: includes/mtapi/functions.php:177
    23522376msgid "TranslatePress.com Account Page"
    23532377msgstr ""
     
    27952819msgstr ""
    27962820
    2797 #: add-ons-advanced/seo-pack/includes/string-translation/class-option-based-strings.php:93, add-ons-advanced/seo-pack/includes/string-translation/class-string-translation-api-postslug.php:108, add-ons-advanced/seo-pack/includes/string-translation/class-string-translation-api-term.php:98
     2821#: add-ons-advanced/seo-pack/includes/string-translation/class-option-based-strings.php:97, add-ons-advanced/seo-pack/includes/string-translation/class-string-translation-api-postslug.php:108, add-ons-advanced/seo-pack/includes/string-translation/class-string-translation-api-term.php:98
    27982822msgid "(inactive)"
    27992823msgstr ""
  • translatepress-multilingual/trunk/readme.txt

    r3333369 r3346255  
    66Tested up to: 6.8.2
    77Requires PHP: 5.6.20
    8 Stable tag: 2.9.22
     8Stable tag: 2.9.23
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    142142
    143143== Changelog ==
     144= 2.9.23 =
     145* Fixed gettext detection on WordPress block themes
     146* Improved messages and notifications in TranslatePress
     147* Add low Translation Words remaining notification for non-free licenses
     148* Fixed edge case fatal error in WP back-end
     149
    144150= 2.9.22 =
    145151* Fixed bug introduced in previous version blocking automatic translation through TP AI and Google Translate
Note: See TracChangeset for help on using the changeset viewer.