Changeset 3346255
- Timestamp:
- 08/18/2025 09:02:41 AM (6 months ago)
- Location:
- translatepress-multilingual
- Files:
-
- 22 edited
- 1 copied
-
tags/2.9.23 (copied) (copied from translatepress-multilingual/trunk)
-
tags/2.9.23/class-translate-press.php (modified) (1 diff)
-
tags/2.9.23/includes/class-edd-sl-plugin-updater.php (modified) (2 diffs)
-
tags/2.9.23/includes/class-plugin-notices.php (modified) (10 diffs)
-
tags/2.9.23/includes/class-translation-manager.php (modified) (4 diffs)
-
tags/2.9.23/includes/functions.php (modified) (1 diff)
-
tags/2.9.23/includes/gettext/class-gettext-manager.php (modified) (1 diff)
-
tags/2.9.23/includes/mtapi/functions.php (modified) (4 diffs)
-
tags/2.9.23/index.php (modified) (2 diffs)
-
tags/2.9.23/languages/translatepress-multilingual.catalog.php (modified) (5 diffs)
-
tags/2.9.23/languages/translatepress-multilingual.pot (modified) (12 diffs)
-
tags/2.9.23/readme.txt (modified) (2 diffs)
-
trunk/class-translate-press.php (modified) (1 diff)
-
trunk/includes/class-edd-sl-plugin-updater.php (modified) (2 diffs)
-
trunk/includes/class-plugin-notices.php (modified) (10 diffs)
-
trunk/includes/class-translation-manager.php (modified) (4 diffs)
-
trunk/includes/functions.php (modified) (1 diff)
-
trunk/includes/gettext/class-gettext-manager.php (modified) (1 diff)
-
trunk/includes/mtapi/functions.php (modified) (4 diffs)
-
trunk/index.php (modified) (2 diffs)
-
trunk/languages/translatepress-multilingual.catalog.php (modified) (5 diffs)
-
trunk/languages/translatepress-multilingual.pot (modified) (12 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
translatepress-multilingual/tags/2.9.23/class-translate-press.php
r3333369 r3346255 70 70 define( 'TRP_PLUGIN_BASE', plugin_basename( __DIR__ . '/index.php' ) ); 71 71 define( 'TRP_PLUGIN_SLUG', 'translatepress-multilingual' ); 72 define( 'TRP_PLUGIN_VERSION', '2.9.2 2' );72 define( 'TRP_PLUGIN_VERSION', '2.9.23' ); 73 73 74 74 wp_cache_add_non_persistent_groups(array('trp')); -
translatepress-multilingual/tags/2.9.23/includes/class-edd-sl-plugin-updater.php
r3333369 r3346255 220 220 '</a>' 221 221 ); 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 222 256 } else { 223 257 printf( … … 794 828 795 829 $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>' ); 796 832 break; 797 833 case 'website_already_on_free_license': -
translatepress-multilingual/tags/2.9.23/includes/class-plugin-notices.php
r3332983 r3346255 172 172 * 173 173 */ 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 ) { 175 175 176 176 if( empty( $notification_id ) ) … … 179 179 if( empty( $notification_message ) ) 180 180 return; 181 182 global $current_user;183 181 184 182 /** 185 183 * 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 186 184 * 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 * 187 189 */ 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 dismissed195 }196 }197 190 198 191 $this->notifications[$notification_id] = array( … … 348 341 $notification_id = 'trp_invalid_license'; 349 342 $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>" ); 351 344 if ( !$notifications->is_plugin_page() ) { 352 345 //make sure to use the trp_dismiss_admin_notification arg … … 377 370 $license_detail->error == 'key_mismatch' 378 371 ) 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>" ); 380 373 elseif( $license_detail->error == 'site_inactive' ) 381 374 $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' ); … … 385 378 $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>" ); 386 379 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>" ); 388 381 else { 389 382 $license_error = __("Error: ", "translatepress-multilingual"); … … 415 408 /* this must be unique */ 416 409 $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>'; 418 411 419 412 if ( !$notifications->is_plugin_page() ) { … … 425 418 } 426 419 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); 428 421 } 429 422 } … … 432 425 } 433 426 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'; 440 495 $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">', 444 499 '</a>' 445 500 ); 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>'; 446 502 $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 } 462 506 } 463 507 … … 491 535 $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>" ); 492 536 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>" ); 494 538 else { 495 539 $license_error = __(" Error: ", "translatepress-multilingual"); … … 568 612 $trp = TRP_Translate_Press::get_trp_instance(); 569 613 $machine_translator = $trp->get_component( 'machine_translator' ); 570 $correct_key = $machine_translator->is_correct_api_key();571 614 572 615 if ($machine_translator != null ) { 616 $correct_key = $machine_translator->is_correct_api_key(); 573 617 if ( apply_filters( 'trp_mt_available_supported_languages_show_notice', true, $this->settings['translation-languages'], $this->settings ) && 574 618 'yes' === $this->settings['trp_machine_translation_settings']['machine-translation'] && -
translatepress-multilingual/tags/2.9.23/includes/class-translation-manager.php
r3301577 r3346255 227 227 if ( $license_status != 'valid' && $license_status != 'free-version' ) { 228 228 $translatepress_product = ( defined( 'TRANSLATE_PRESS' ) ) ? TRANSLATE_PRESS : "TranslatePress"; 229 $purchase_text = ''; 229 230 switch ( $license_status ) { 230 231 case 'expired': … … 237 238 $link = 'https://translatepress.com/account/?utm_source=tpeditor&utm_medium=clientsite&utm_campaign=BF-2024'; 238 239 } 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' ); 240 241 $button = esc_html__( 'Renew Now', 'translatepress-multilingual' ); 241 242 $link = 'https://translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpeditor&utm_campaign=TP-Renewal'; … … 247 248 { 248 249 $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' ); 250 251 $button = esc_html__( 'Purchase a new license', 'translatepress-multilingual' ); 251 252 $link = 'https://translatepress.com/pricing/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpeditor&utm_campaign=TP-Refund'; … … 259 260 default: 260 261 { 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>' ); 263 264 $button = esc_html__( 'Enter a valid license', 'translatepress-multilingual' ); 264 265 $link = admin_url( 'admin.php?page=trp_license_key' ); -
translatepress-multilingual/tags/2.9.23/includes/functions.php
r3288239 r3346255 770 770 } 771 771 772 /** 773 * Function that returns the license status of the TranslatePress plugin. 774 * @return string 775 */ 772 776 function trp_get_license_status(){ 773 777 $license_details = get_option( 'trp_license_details' ); -
translatepress-multilingual/tags/2.9.23/includes/gettext/class-gettext-manager.php
r3288239 r3346255 85 85 if ( $is_ajax_on_frontend || apply_filters( 'trp_apply_gettext_early', false ) ) { 86 86 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 88 91 add_action( 'wp_head', array( $this, 'apply_gettext_filter' ), 100 ); 89 92 } -
translatepress-multilingual/tags/2.9.23/includes/mtapi/functions.php
r3328103 r3346255 13 13 function trp_mtapi_add_settings( $mt_settings ){ 14 14 require_once("class-mtapi-customer.php"); 15 //$trp = TRP_Translate_Press::get_trp_instance();16 15 17 16 $license = get_option('trp_license_key'); … … 23 22 $translatepress_version_name = (defined('TRANSLATE_PRESS')) ? TRANSLATE_PRESS : 'TranslatePress'; 24 23 25 //dd($status);26 //dd(array($license, $status, $details));27 24 if ($status === false) : ?> 28 25 … … 44 41 </span> 45 42 </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;?> 52 48 <div class="trp-automatic-translation-get-license-buttons"> 53 <?php if ( $translatepress_version_name == 'TranslatePress' ) : ?>49 <?php if ( $translatepress_version_name == 'TranslatePress' ) : ?> 54 50 <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"> 55 51 <?php esc_html_e( 'Create your Free Account', 'translatepress-multilingual' ); ?> … … 57 53 58 54 <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;?> 63 62 64 63 </div> -
translatepress-multilingual/tags/2.9.23/index.php
r3333369 r3346255 4 4 Plugin URI: https://translatepress.com/ 5 5 Description: 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.2 26 Version: 2.9.23 7 7 Author: Cozmoslabs, Razvan Mocanu, Madalin Ungureanu, Cristophor Hurduban 8 8 Author URI: https://cozmoslabs.com/ … … 11 11 License: GPL2 12 12 WC requires at least: 2.5.0 13 WC tested up to: 10. 0.413 WC tested up to: 10.1.0 14 14 15 15 == Copyright == -
translatepress-multilingual/tags/2.9.23/languages/translatepress-multilingual.catalog.php
r3332983 r3346255 18 18 <?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"); ?> 19 19 <?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"); ?> 20 23 <?php __("You do not have permission to install plugin updates", "translatepress-multilingual"); ?> 21 24 <?php __("Error", "translatepress-multilingual"); ?> … … 26 29 <?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"); ?> 27 30 <?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"); ?> 28 32 <?php __("This website is already activated under a free license. Each website can only use one free license.", "translatepress-multilingual"); ?> 29 33 <?php __("An error occurred, please try again.", "translatepress-multilingual"); ?> … … 75 79 <?php __("Please enter your Google Translate key.", "translatepress-multilingual"); ?> 76 80 <?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 toautomatic 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"); ?> 79 83 <?php __("Error: ", "translatepress-multilingual"); ?> 80 84 <?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"); ?> 82 86 <?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"); ?> 83 87 <?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"); ?> 84 88 <?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"); ?> 87 92 <?php __(" Error: ", "translatepress-multilingual"); ?> 88 93 <?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"); ?> … … 205 210 <?php __("Search for any text in this page in the dropdown.", "translatepress-multilingual"); ?> 206 211 <?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"); ?> 208 213 <?php __("Renew Now", "translatepress-multilingual"); ?> 209 214 <?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"); ?> 210 215 <?php __("Get Deal", "translatepress-multilingual"); ?> 211 216 <?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"); ?> 213 218 <?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"); ?> 216 221 <?php __("Enter a valid license", "translatepress-multilingual"); ?> 217 222 <?php __("Slugs", "translatepress-multilingual"); ?> … … 574 579 <?php __(" or ", "translatepress-multilingual"); ?> 575 580 <?php __("Enter your license key", "translatepress-multilingual"); ?> 581 <?php __(" Or %1$spurchase one here%2$s", "translatepress-multilingual"); ?> 576 582 <?php __("Your free account includes: ", "translatepress-multilingual"); ?> 577 583 <?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 7 7 "Content-Type: text/plain; charset=UTF-8\n" 8 8 "Content-Transfer-Encoding: 8bit\n" 9 "POT-Creation-Date: 2025-0 7-24 08:29+0000\n"9 "POT-Creation-Date: 2025-08-18 08:19+0000\n" 10 10 "X-Poedit-Basepath: ..\n" 11 11 "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" … … 79 79 msgstr "" 80 80 81 #: includes/class-edd-sl-plugin-updater.php:2 2481 #: includes/class-edd-sl-plugin-updater.php:258 82 82 msgid "There is a new version of %1$s available. %2$sView version %3$s details%4$s or %5$supdate now%6$s." 83 83 msgstr "" … … 87 87 msgstr "" 88 88 89 #: includes/class-edd-sl-plugin-updater.php:418 89 #: includes/class-edd-sl-plugin-updater.php:245 90 msgid "To enable updates, please %1$senter your license key%2$s. Need a license key? %3$sPurchase one now%4$s." 91 msgstr "" 92 93 #: includes/class-edd-sl-plugin-updater.php:236 94 msgid "To enable updates, please go to the %1$slicense page%2$s and check that you have a valid license." 95 msgstr "" 96 97 #: includes/class-edd-sl-plugin-updater.php:229 98 msgid "To enable updates, your licence needs to be renewed. Please go to the %1$sTranslatePress Account%2$s page and login to renew." 99 msgstr "" 100 101 #: includes/class-edd-sl-plugin-updater.php:452 90 102 msgid "You do not have permission to install plugin updates" 91 103 msgstr "" 92 104 93 #: includes/class-edd-sl-plugin-updater.php:4 18105 #: includes/class-edd-sl-plugin-updater.php:452 94 106 msgid "Error" 95 107 msgstr "" 96 108 97 #: includes/class-edd-sl-plugin-updater.php: 776109 #: includes/class-edd-sl-plugin-updater.php:810 98 110 msgid "Your license key expired on %s." 99 111 msgstr "" 100 112 101 #: includes/class-edd-sl-plugin-updater.php: 781113 #: includes/class-edd-sl-plugin-updater.php:815 102 114 msgid "Your license key has been disabled." 103 115 msgstr "" 104 116 105 #: includes/class-edd-sl-plugin-updater.php: 784117 #: includes/class-edd-sl-plugin-updater.php:818 106 118 msgid "Your TranslatePress license key is invalid or missing." 107 119 msgstr "" 108 120 109 #: includes/class-edd-sl-plugin-updater.php: 788121 #: includes/class-edd-sl-plugin-updater.php:822 110 122 msgid "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." 111 123 msgstr "" 112 124 113 #: includes/class-edd-sl-plugin-updater.php: 791125 #: includes/class-edd-sl-plugin-updater.php:825 114 126 msgid "<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>" 115 127 msgstr "" 116 128 117 #: includes/class-edd-sl-plugin-updater.php: 795129 #: includes/class-edd-sl-plugin-updater.php:829 118 130 msgid "Your license key has reached its activation limit." 119 131 msgstr "" 120 132 121 #: includes/class-edd-sl-plugin-updater.php:798 133 #: includes/class-edd-sl-plugin-updater.php:831 134 msgid "Upgrade your plan to add more sites. %1$sUpgrade now%2$s" 135 msgstr "" 136 137 #: includes/class-edd-sl-plugin-updater.php:834 122 138 msgid "This website is already activated under a free license. Each website can only use one free license." 123 139 msgstr "" 124 140 125 #: includes/class-edd-sl-plugin-updater.php:8 01, includes/class-edd-sl-plugin-updater.php:765, includes/class-edd-sl-plugin-updater.php:875141 #: includes/class-edd-sl-plugin-updater.php:837, includes/class-edd-sl-plugin-updater.php:799, includes/class-edd-sl-plugin-updater.php:911 126 142 msgid "An error occurred, please try again." 127 143 msgstr "" 128 144 129 #: includes/class-edd-sl-plugin-updater.php:8 34145 #: includes/class-edd-sl-plugin-updater.php:870 130 146 msgid "You have successfully activated your license" 131 147 msgstr "" … … 199 215 msgstr "" 200 216 201 #: includes/class-error-manager.php:170, includes/class-plugin-notices.php:3 53, 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:810217 #: 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 202 218 msgid "Dismiss this notice." 203 219 msgstr "" … … 315 331 msgstr "" 316 332 317 #: includes/class-plugin-notices.php:3 50, includes/class-plugin-notices.php:379318 msgid "Your <strong>TranslatePress</strong> license key is invalid or missing. <br/>Please %1$sregister your copy%2$s to receive access toautomatic updates and support. Need a license key? %3$sPurchase one now%4$s"319 msgstr "" 320 321 #: includes/class-plugin-notices.php:41 7322 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:38 9333 #: includes/class-plugin-notices.php:343, includes/class-plugin-notices.php:372 334 msgid "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" 335 msgstr "" 336 337 #: includes/class-plugin-notices.php:410 338 msgid "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" 339 msgstr "" 340 341 #: includes/class-plugin-notices.php:382 326 342 msgid "Error: " 327 343 msgstr "" 328 344 329 #: includes/class-plugin-notices.php:3 93, includes/class-plugin-notices.php:499345 #: includes/class-plugin-notices.php:386, includes/class-plugin-notices.php:543 330 346 msgid "Something went wrong, please try again." 331 347 msgstr "" 332 348 333 #: includes/class-plugin-notices.php:38 7, includes/class-plugin-notices.php:493334 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:3 85, includes/class-plugin-notices.php:489349 #: includes/class-plugin-notices.php:380, includes/class-plugin-notices.php:537 350 msgid "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" 351 msgstr "" 352 353 #: includes/class-plugin-notices.php:378, includes/class-plugin-notices.php:533 338 354 msgid "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." 339 355 msgstr "" 340 356 341 #: includes/class-plugin-notices.php:3 83, includes/class-plugin-notices.php:487357 #: includes/class-plugin-notices.php:376, includes/class-plugin-notices.php:531 342 358 msgid "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." 343 359 msgstr "" 344 360 345 #: includes/class-plugin-notices.php:3 81, includes/class-plugin-notices.php:485361 #: includes/class-plugin-notices.php:374, includes/class-plugin-notices.php:529 346 362 msgid "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." 347 363 msgstr "" 348 364 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 366 msgid "%1$s automatic translation requires an active license. Please %2$srenew%3$s your license or purchase a new one %4$shere%5$s." 367 msgstr "" 368 369 #: includes/class-plugin-notices.php:444 370 msgid "Please %1$senter%2$s your license key to enable %3$s automatic translation." 371 msgstr "" 372 373 #: includes/class-plugin-notices.php:497 374 msgid "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." 375 msgstr "" 376 377 #: includes/class-plugin-notices.php:539 358 378 msgid " Error: " 359 379 msgstr "" 360 380 361 #: includes/class-plugin-notices.php: 491381 #: includes/class-plugin-notices.php:535 362 382 msgid "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." 363 383 msgstr "" 364 384 365 #: includes/class-plugin-notices.php: 483385 #: includes/class-plugin-notices.php:527 366 386 msgid "You do not have a valid license for <strong>TranslatePress</strong>. %1$sGet one for free%2$s to get access to TranslatePress AI." 367 387 msgstr "" 368 388 369 #: includes/class-plugin-notices.php: 556389 #: includes/class-plugin-notices.php:600 370 390 msgid "The daily quota for machine translation characters exceeded. Please check the <strong>TranslatePress -> <a href=\"%s\">Automatic Translation</a></strong> page for more information." 371 391 msgstr "" 372 392 373 #: includes/class-plugin-notices.php: 582393 #: includes/class-plugin-notices.php:626 374 394 msgid "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." 375 395 msgstr "" … … 515 535 msgstr "" 516 536 517 #: includes/class-settings.php:636, includes/class-translation-manager.php:53 3, add-ons-pro/translator-accounts/includes/class-translator-accounts.php:156537 #: includes/class-settings.php:636, includes/class-translation-manager.php:534, add-ons-pro/translator-accounts/includes/class-translator-accounts.php:156 518 538 msgid "Translate Site" 519 539 msgstr "" … … 527 547 msgstr "" 528 548 529 #: includes/class-settings.php:693, includes/class-translation-manager.php:56 5549 #: includes/class-settings.php:693, includes/class-translation-manager.php:566 530 550 msgid "Settings" 531 551 msgstr "" … … 833 853 msgstr "" 834 854 835 #: includes/class-translation-manager.php:23 2855 #: includes/class-translation-manager.php:233 836 856 msgid "Your %s license has <span class=\"trp-license-status-emphasized\">expired</span>." 837 857 msgstr "" 838 858 839 #: includes/class-translation-manager.php:239840 msgid "Please renew your license to continue receiving access to product downloads, automatic updates and support."841 msgstr ""842 843 859 #: includes/class-translation-manager.php:240 860 msgid "Please renew your license to continue receiving access to TranslatePress AI, premium addons, automatic updates and support." 861 msgstr "" 862 863 #: includes/class-translation-manager.php:241 844 864 msgid "Renew Now" 845 865 msgstr "" 846 866 847 #: includes/class-translation-manager.php:23 5867 #: includes/class-translation-manager.php:236 848 868 msgid "<strong>This Black Friday, renew your license at a special price</strong> to continue receiving access to product downloads, automatic updates, and support." 849 869 msgstr "" 850 870 851 #: includes/class-translation-manager.php:23 6871 #: includes/class-translation-manager.php:237 852 872 msgid "Get Deal" 853 873 msgstr "" 854 874 855 #: includes/class-translation-manager.php:24 8875 #: includes/class-translation-manager.php:249 856 876 msgid "Your %s license was <span class=\"trp-license-status-emphasized\">refunded</span>." 857 877 msgstr "" 858 878 859 #: includes/class-translation-manager.php:249860 msgid "Please purchase a new license to continue receiving access to product downloads, automatic updates and support."861 msgstr ""862 863 879 #: includes/class-translation-manager.php:250 880 msgid "Please purchase a new license to continue receiving access to TranslatePress AI, premium addons, automatic updates and support." 881 msgstr "" 882 883 #: includes/class-translation-manager.php:251 864 884 msgid "Purchase a new license" 865 885 msgstr "" 866 886 867 #: includes/class-translation-manager.php:261868 msgid "Your %s license is <span class=\"trp-license-status-emphasized\">empty or incorrect</span>."869 msgstr ""870 871 887 #: includes/class-translation-manager.php:262 872 msgid " Please enter a valid license to continue receiving access to product downloads, automatic updates and support."888 msgid "Your %s license is <span class=\"trp-license-status-emphasized\">missing or invalid</span>." 873 889 msgstr "" 874 890 875 891 #: includes/class-translation-manager.php:263 892 msgid "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" 893 msgstr "" 894 895 #: includes/class-translation-manager.php:264 876 896 msgid "Enter a valid license" 877 897 msgstr "" 878 898 879 #: includes/class-translation-manager.php:3 19, 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:16899 #: 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 880 900 msgid "Slugs" 881 901 msgstr "" 882 902 883 #: includes/class-translation-manager.php:32 0903 #: includes/class-translation-manager.php:321 884 904 msgid "Meta Information" 885 905 msgstr "" 886 906 887 #: includes/class-translation-manager.php:32 1907 #: includes/class-translation-manager.php:322 888 908 msgid "String List" 889 909 msgstr "" 890 910 891 #: includes/class-translation-manager.php:32 2911 #: includes/class-translation-manager.php:323 892 912 msgid "Gettext Strings" 893 913 msgstr "" 894 914 895 #: includes/class-translation-manager.php:32 3915 #: includes/class-translation-manager.php:324 896 916 msgid "Images" 897 917 msgstr "" 898 918 899 #: includes/class-translation-manager.php:32 4919 #: includes/class-translation-manager.php:325 900 920 msgid "Videos" 901 921 msgstr "" 902 922 903 #: includes/class-translation-manager.php:32 5923 #: includes/class-translation-manager.php:326 904 924 msgid "Audios" 905 925 msgstr "" 906 926 907 #: includes/class-translation-manager.php:32 6927 #: includes/class-translation-manager.php:327 908 928 msgid "Dynamically Added Strings" 909 929 msgstr "" 910 930 911 #: includes/class-translation-manager.php:36 3931 #: includes/class-translation-manager.php:364 912 932 msgid "Translation Editor" 913 933 msgstr "" 914 934 915 #: includes/class-translation-manager.php:36 5935 #: includes/class-translation-manager.php:366 916 936 msgid "Edit translations by visually selecting them on each site page" 917 937 msgstr "" 918 938 919 #: includes/class-translation-manager.php:3 69939 #: includes/class-translation-manager.php:370 920 940 msgid "String Translation" 921 941 msgstr "" 922 942 923 #: includes/class-translation-manager.php:37 1943 #: includes/class-translation-manager.php:372 924 944 msgid "Edit url slug translations, plugins and theme translation (emails, forms etc.)" 925 945 msgstr "" 926 946 927 #: includes/class-translation-manager.php:44 7947 #: includes/class-translation-manager.php:448 928 948 msgid "Current User" 929 949 msgstr "" 930 950 931 #: includes/class-translation-manager.php:44 8951 #: includes/class-translation-manager.php:449 932 952 msgid "Logged Out" 933 953 msgstr "" 934 954 935 #: includes/class-translation-manager.php:54 6, includes/class-translation-manager.php:608955 #: includes/class-translation-manager.php:547, includes/class-translation-manager.php:609 936 956 msgid "Translate Page" 937 957 msgstr "" 938 958 939 #: includes/class-translation-manager.php:60 6959 #: includes/class-translation-manager.php:607 940 960 msgid "Opens post in the translation editor. Post must be saved as draft or published beforehand." 941 961 msgstr "" 942 962 943 #: includes/class-translation-manager.php:72 0963 #: includes/class-translation-manager.php:721 944 964 msgid "Security check" 945 965 msgstr "" 946 966 947 #: includes/class-translation-manager.php:79 2967 #: includes/class-translation-manager.php:793 948 968 msgid "<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." 949 969 msgstr "" 950 970 951 #: includes/class-translation-manager.php:81 7, includes/class-translation-manager.php:836, includes/class-upgrade.php:370971 #: includes/class-translation-manager.php:818, includes/class-translation-manager.php:837, includes/class-upgrade.php:370 952 972 msgid "TranslatePress data update" 953 973 msgstr "" 954 974 955 #: includes/class-translation-manager.php:81 7, includes/class-translation-manager.php:836, includes/class-upgrade.php:370975 #: includes/class-translation-manager.php:818, includes/class-translation-manager.php:837, includes/class-upgrade.php:370 956 976 msgid "We need to update your translations database to the latest version." 957 977 msgstr "" 958 978 959 #: includes/class-translation-manager.php:81 8979 #: includes/class-translation-manager.php:819 960 980 msgid "Updating will allow editing translations of localized text from plugins and theme. Existing translation will still work as expected." 961 981 msgstr "" 962 982 963 #: includes/class-translation-manager.php:82 0, includes/class-translation-manager.php:839, includes/class-upgrade.php:371983 #: includes/class-translation-manager.php:821, includes/class-translation-manager.php:840, includes/class-upgrade.php:371 964 984 msgid "IMPORTANT: It is strongly recommended to first backup the database!\nAre you sure you want to continue?" 965 985 msgstr "" 966 986 967 #: includes/class-translation-manager.php:82 0, includes/class-translation-manager.php:839, includes/class-upgrade.php:371987 #: includes/class-translation-manager.php:821, includes/class-translation-manager.php:840, includes/class-upgrade.php:371 968 988 msgid "Run the updater" 969 989 msgstr "" 970 990 971 #: includes/class-translation-manager.php:83 7991 #: includes/class-translation-manager.php:838 972 992 msgid "Updating will allow editing translations of slugs. Existing translation will still work as expected." 973 993 msgstr "" 974 994 975 #: includes/class-translation-manager.php:89 2995 #: includes/class-translation-manager.php:893 976 996 msgid "Please activate the SEO Addon from <br/>WordPress -> Settings -> TranslatePress -> Addons section" 977 997 msgstr "" 978 998 979 #: includes/class-translation-manager.php:89 5999 #: includes/class-translation-manager.php:896 980 1000 msgid "Go to Addons" 981 1001 msgstr "" 982 1002 983 #: includes/class-translation-manager.php:91 01003 #: includes/class-translation-manager.php:911 984 1004 msgid "The SEO Pack add-on allows translation of all the URL slugs:" 985 1005 msgstr "" 986 1006 987 #: includes/class-translation-manager.php:91 31007 #: includes/class-translation-manager.php:914 988 1008 msgid "Taxonomy slugs" 989 1009 msgstr "" 990 1010 991 #: includes/class-translation-manager.php:91 61011 #: includes/class-translation-manager.php:917 992 1012 msgid "Term slugs" 993 1013 msgstr "" 994 1014 995 #: includes/class-translation-manager.php:9 191015 #: includes/class-translation-manager.php:920 996 1016 msgid "Post slugs (this includes pages and custom post types)" 997 1017 msgstr "" 998 1018 999 #: includes/class-translation-manager.php:92 21019 #: includes/class-translation-manager.php:923 1000 1020 msgid "Post type base slugs" 1001 1021 msgstr "" 1002 1022 1003 #: includes/class-translation-manager.php:92 51023 #: includes/class-translation-manager.php:926 1004 1024 msgid "WooCommerce slugs" 1005 1025 msgstr "" 1006 1026 1007 #: includes/class-translation-manager.php:93 01027 #: includes/class-translation-manager.php:931 1008 1028 msgid "The SEO Pack add-on is available with ALL premium versions of the plugin." 1009 1029 msgstr "" 1010 1030 1011 #: includes/class-translation-manager.php:93 31031 #: includes/class-translation-manager.php:934 1012 1032 msgid "Upgrade to Pro" 1013 1033 msgstr "" … … 1397 1417 msgstr "" 1398 1418 1399 #: partials/license-settings-page.php:124, includes/mtapi/functions.php:7 51419 #: partials/license-settings-page.php:124, includes/mtapi/functions.php:74 1400 1420 msgid "Access to TranslatePress AI for instant automatic translations" 1401 1421 msgstr "" 1402 1422 1403 #: partials/license-settings-page.php:129, includes/mtapi/functions.php: 801423 #: partials/license-settings-page.php:129, includes/mtapi/functions.php:79 1404 1424 msgid "2000 AI words to translate automatically" 1405 1425 msgstr "" … … 1541 1561 msgstr "" 1542 1562 1543 #: partials/machine-translation-settings-page.php:255, includes/mtapi/functions.php:8 8, includes/mtapi/functions.php:1881563 #: partials/machine-translation-settings-page.php:255, includes/mtapi/functions.php:87, includes/mtapi/functions.php:187 1544 1564 msgid "Upgrade now" 1545 1565 msgstr "" … … 2297 2317 msgstr "" 2298 2318 2299 #: includes/mtapi/functions.php:4 32319 #: includes/mtapi/functions.php:40, add-ons-pro/deepl/includes/class-deepl.php:194 2300 2320 msgid "No Active License Detected for this website." 2301 2321 msgstr "" 2302 2322 2303 #: includes/mtapi/functions.php:4 92323 #: includes/mtapi/functions.php:45 2304 2324 msgid "In order to enable Automatic Translation using TranslatePress AI, you need a license key by creating a free account." 2305 2325 msgstr "" 2306 2326 2307 #: includes/mtapi/functions.php:5 52327 #: includes/mtapi/functions.php:51 2308 2328 msgid "Create your Free Account" 2309 2329 msgstr "" 2310 2330 2311 #: includes/mtapi/functions.php:5 82331 #: includes/mtapi/functions.php:54 2312 2332 msgid " or " 2313 2333 msgstr "" 2314 2334 2315 #: includes/mtapi/functions.php: 612335 #: includes/mtapi/functions.php:57, add-ons-pro/deepl/includes/class-deepl.php:199 2316 2336 msgid "Enter your license key" 2317 2337 msgstr "" 2318 2338 2319 #: includes/mtapi/functions.php:70 2339 #: includes/mtapi/functions.php:60, add-ons-pro/deepl/includes/class-deepl.php:201 2340 msgid " Or %1$spurchase one here%2$s" 2341 msgstr "" 2342 2343 #: includes/mtapi/functions.php:69 2320 2344 msgid "Your free account includes: " 2321 2345 msgstr "" 2322 2346 2323 #: includes/mtapi/functions.php:8 5, includes/mtapi/functions.php:1852347 #: includes/mtapi/functions.php:84, includes/mtapi/functions.php:184 2324 2348 msgid "Get more AI Tokens and unlock all AI features with TranslatePress Pro." 2325 2349 msgstr "" 2326 2350 2327 #: includes/mtapi/functions.php:14 42351 #: includes/mtapi/functions.php:143 2328 2352 msgid "You have a valid %s <strong>license</strong>." 2329 2353 msgstr "" 2330 2354 2331 #: includes/mtapi/functions.php:15 12355 #: includes/mtapi/functions.php:150 2332 2356 msgid " words remaining. " 2333 2357 msgstr "" 2334 2358 2335 #: includes/mtapi/functions.php:15 72359 #: includes/mtapi/functions.php:156 2336 2360 msgid "Recheck" 2337 2361 msgstr "" 2338 2362 2339 #: includes/mtapi/functions.php:16 12363 #: includes/mtapi/functions.php:160 2340 2364 msgid "Rechecking..." 2341 2365 msgstr "" 2342 2366 2343 #: includes/mtapi/functions.php:16 42367 #: includes/mtapi/functions.php:163 2344 2368 msgid "Done." 2345 2369 msgstr "" 2346 2370 2371 #: includes/mtapi/functions.php:175 2372 msgid "Manage your license & quota on the %s" 2373 msgstr "" 2374 2347 2375 #: includes/mtapi/functions.php:176 2348 msgid "Manage your license & quota on the %s"2349 msgstr ""2350 2351 #: includes/mtapi/functions.php:1772352 2376 msgid "TranslatePress.com Account Page" 2353 2377 msgstr "" … … 2795 2819 msgstr "" 2796 2820 2797 #: add-ons-advanced/seo-pack/includes/string-translation/class-option-based-strings.php:9 3, 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:982821 #: 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 2798 2822 msgid "(inactive)" 2799 2823 msgstr "" -
translatepress-multilingual/tags/2.9.23/readme.txt
r3333369 r3346255 6 6 Tested up to: 6.8.2 7 7 Requires PHP: 5.6.20 8 Stable tag: 2.9.2 28 Stable tag: 2.9.23 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 142 142 143 143 == 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 144 150 = 2.9.22 = 145 151 * Fixed bug introduced in previous version blocking automatic translation through TP AI and Google Translate -
translatepress-multilingual/trunk/class-translate-press.php
r3333369 r3346255 70 70 define( 'TRP_PLUGIN_BASE', plugin_basename( __DIR__ . '/index.php' ) ); 71 71 define( 'TRP_PLUGIN_SLUG', 'translatepress-multilingual' ); 72 define( 'TRP_PLUGIN_VERSION', '2.9.2 2' );72 define( 'TRP_PLUGIN_VERSION', '2.9.23' ); 73 73 74 74 wp_cache_add_non_persistent_groups(array('trp')); -
translatepress-multilingual/trunk/includes/class-edd-sl-plugin-updater.php
r3333369 r3346255 220 220 '</a>' 221 221 ); 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 222 256 } else { 223 257 printf( … … 794 828 795 829 $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>' ); 796 832 break; 797 833 case 'website_already_on_free_license': -
translatepress-multilingual/trunk/includes/class-plugin-notices.php
r3332983 r3346255 172 172 * 173 173 */ 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 ) { 175 175 176 176 if( empty( $notification_id ) ) … … 179 179 if( empty( $notification_message ) ) 180 180 return; 181 182 global $current_user;183 181 184 182 /** 185 183 * 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 186 184 * 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 * 187 189 */ 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 dismissed195 }196 }197 190 198 191 $this->notifications[$notification_id] = array( … … 348 341 $notification_id = 'trp_invalid_license'; 349 342 $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>" ); 351 344 if ( !$notifications->is_plugin_page() ) { 352 345 //make sure to use the trp_dismiss_admin_notification arg … … 377 370 $license_detail->error == 'key_mismatch' 378 371 ) 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>" ); 380 373 elseif( $license_detail->error == 'site_inactive' ) 381 374 $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' ); … … 385 378 $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>" ); 386 379 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>" ); 388 381 else { 389 382 $license_error = __("Error: ", "translatepress-multilingual"); … … 415 408 /* this must be unique */ 416 409 $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>'; 418 411 419 412 if ( !$notifications->is_plugin_page() ) { … … 425 418 } 426 419 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); 428 421 } 429 422 } … … 432 425 } 433 426 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'; 440 495 $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">', 444 499 '</a>' 445 500 ); 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>'; 446 502 $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 } 462 506 } 463 507 … … 491 535 $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>" ); 492 536 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>" ); 494 538 else { 495 539 $license_error = __(" Error: ", "translatepress-multilingual"); … … 568 612 $trp = TRP_Translate_Press::get_trp_instance(); 569 613 $machine_translator = $trp->get_component( 'machine_translator' ); 570 $correct_key = $machine_translator->is_correct_api_key();571 614 572 615 if ($machine_translator != null ) { 616 $correct_key = $machine_translator->is_correct_api_key(); 573 617 if ( apply_filters( 'trp_mt_available_supported_languages_show_notice', true, $this->settings['translation-languages'], $this->settings ) && 574 618 'yes' === $this->settings['trp_machine_translation_settings']['machine-translation'] && -
translatepress-multilingual/trunk/includes/class-translation-manager.php
r3301577 r3346255 227 227 if ( $license_status != 'valid' && $license_status != 'free-version' ) { 228 228 $translatepress_product = ( defined( 'TRANSLATE_PRESS' ) ) ? TRANSLATE_PRESS : "TranslatePress"; 229 $purchase_text = ''; 229 230 switch ( $license_status ) { 230 231 case 'expired': … … 237 238 $link = 'https://translatepress.com/account/?utm_source=tpeditor&utm_medium=clientsite&utm_campaign=BF-2024'; 238 239 } 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' ); 240 241 $button = esc_html__( 'Renew Now', 'translatepress-multilingual' ); 241 242 $link = 'https://translatepress.com/account/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpeditor&utm_campaign=TP-Renewal'; … … 247 248 { 248 249 $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' ); 250 251 $button = esc_html__( 'Purchase a new license', 'translatepress-multilingual' ); 251 252 $link = 'https://translatepress.com/pricing/?utm_source=wpbackend&utm_medium=clientsite&utm_content=tpeditor&utm_campaign=TP-Refund'; … … 259 260 default: 260 261 { 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>' ); 263 264 $button = esc_html__( 'Enter a valid license', 'translatepress-multilingual' ); 264 265 $link = admin_url( 'admin.php?page=trp_license_key' ); -
translatepress-multilingual/trunk/includes/functions.php
r3288239 r3346255 770 770 } 771 771 772 /** 773 * Function that returns the license status of the TranslatePress plugin. 774 * @return string 775 */ 772 776 function trp_get_license_status(){ 773 777 $license_details = get_option( 'trp_license_details' ); -
translatepress-multilingual/trunk/includes/gettext/class-gettext-manager.php
r3288239 r3346255 85 85 if ( $is_ajax_on_frontend || apply_filters( 'trp_apply_gettext_early', false ) ) { 86 86 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 88 91 add_action( 'wp_head', array( $this, 'apply_gettext_filter' ), 100 ); 89 92 } -
translatepress-multilingual/trunk/includes/mtapi/functions.php
r3328103 r3346255 13 13 function trp_mtapi_add_settings( $mt_settings ){ 14 14 require_once("class-mtapi-customer.php"); 15 //$trp = TRP_Translate_Press::get_trp_instance();16 15 17 16 $license = get_option('trp_license_key'); … … 23 22 $translatepress_version_name = (defined('TRANSLATE_PRESS')) ? TRANSLATE_PRESS : 'TranslatePress'; 24 23 25 //dd($status);26 //dd(array($license, $status, $details));27 24 if ($status === false) : ?> 28 25 … … 44 41 </span> 45 42 </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;?> 52 48 <div class="trp-automatic-translation-get-license-buttons"> 53 <?php if ( $translatepress_version_name == 'TranslatePress' ) : ?>49 <?php if ( $translatepress_version_name == 'TranslatePress' ) : ?> 54 50 <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"> 55 51 <?php esc_html_e( 'Create your Free Account', 'translatepress-multilingual' ); ?> … … 57 53 58 54 <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;?> 63 62 64 63 </div> -
translatepress-multilingual/trunk/index.php
r3333369 r3346255 4 4 Plugin URI: https://translatepress.com/ 5 5 Description: 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.2 26 Version: 2.9.23 7 7 Author: Cozmoslabs, Razvan Mocanu, Madalin Ungureanu, Cristophor Hurduban 8 8 Author URI: https://cozmoslabs.com/ … … 11 11 License: GPL2 12 12 WC requires at least: 2.5.0 13 WC tested up to: 10. 0.413 WC tested up to: 10.1.0 14 14 15 15 == Copyright == -
translatepress-multilingual/trunk/languages/translatepress-multilingual.catalog.php
r3332983 r3346255 18 18 <?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"); ?> 19 19 <?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"); ?> 20 23 <?php __("You do not have permission to install plugin updates", "translatepress-multilingual"); ?> 21 24 <?php __("Error", "translatepress-multilingual"); ?> … … 26 29 <?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"); ?> 27 30 <?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"); ?> 28 32 <?php __("This website is already activated under a free license. Each website can only use one free license.", "translatepress-multilingual"); ?> 29 33 <?php __("An error occurred, please try again.", "translatepress-multilingual"); ?> … … 75 79 <?php __("Please enter your Google Translate key.", "translatepress-multilingual"); ?> 76 80 <?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 toautomatic 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"); ?> 79 83 <?php __("Error: ", "translatepress-multilingual"); ?> 80 84 <?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"); ?> 82 86 <?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"); ?> 83 87 <?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"); ?> 84 88 <?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"); ?> 87 92 <?php __(" Error: ", "translatepress-multilingual"); ?> 88 93 <?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"); ?> … … 205 210 <?php __("Search for any text in this page in the dropdown.", "translatepress-multilingual"); ?> 206 211 <?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"); ?> 208 213 <?php __("Renew Now", "translatepress-multilingual"); ?> 209 214 <?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"); ?> 210 215 <?php __("Get Deal", "translatepress-multilingual"); ?> 211 216 <?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"); ?> 213 218 <?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"); ?> 216 221 <?php __("Enter a valid license", "translatepress-multilingual"); ?> 217 222 <?php __("Slugs", "translatepress-multilingual"); ?> … … 574 579 <?php __(" or ", "translatepress-multilingual"); ?> 575 580 <?php __("Enter your license key", "translatepress-multilingual"); ?> 581 <?php __(" Or %1$spurchase one here%2$s", "translatepress-multilingual"); ?> 576 582 <?php __("Your free account includes: ", "translatepress-multilingual"); ?> 577 583 <?php __("Get more AI Tokens and unlock all AI features with TranslatePress Pro.", "translatepress-multilingual"); ?> -
translatepress-multilingual/trunk/languages/translatepress-multilingual.pot
r3333369 r3346255 7 7 "Content-Type: text/plain; charset=UTF-8\n" 8 8 "Content-Transfer-Encoding: 8bit\n" 9 "POT-Creation-Date: 2025-0 7-24 08:29+0000\n"9 "POT-Creation-Date: 2025-08-18 08:19+0000\n" 10 10 "X-Poedit-Basepath: ..\n" 11 11 "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" … … 79 79 msgstr "" 80 80 81 #: includes/class-edd-sl-plugin-updater.php:2 2481 #: includes/class-edd-sl-plugin-updater.php:258 82 82 msgid "There is a new version of %1$s available. %2$sView version %3$s details%4$s or %5$supdate now%6$s." 83 83 msgstr "" … … 87 87 msgstr "" 88 88 89 #: includes/class-edd-sl-plugin-updater.php:418 89 #: includes/class-edd-sl-plugin-updater.php:245 90 msgid "To enable updates, please %1$senter your license key%2$s. Need a license key? %3$sPurchase one now%4$s." 91 msgstr "" 92 93 #: includes/class-edd-sl-plugin-updater.php:236 94 msgid "To enable updates, please go to the %1$slicense page%2$s and check that you have a valid license." 95 msgstr "" 96 97 #: includes/class-edd-sl-plugin-updater.php:229 98 msgid "To enable updates, your licence needs to be renewed. Please go to the %1$sTranslatePress Account%2$s page and login to renew." 99 msgstr "" 100 101 #: includes/class-edd-sl-plugin-updater.php:452 90 102 msgid "You do not have permission to install plugin updates" 91 103 msgstr "" 92 104 93 #: includes/class-edd-sl-plugin-updater.php:4 18105 #: includes/class-edd-sl-plugin-updater.php:452 94 106 msgid "Error" 95 107 msgstr "" 96 108 97 #: includes/class-edd-sl-plugin-updater.php: 776109 #: includes/class-edd-sl-plugin-updater.php:810 98 110 msgid "Your license key expired on %s." 99 111 msgstr "" 100 112 101 #: includes/class-edd-sl-plugin-updater.php: 781113 #: includes/class-edd-sl-plugin-updater.php:815 102 114 msgid "Your license key has been disabled." 103 115 msgstr "" 104 116 105 #: includes/class-edd-sl-plugin-updater.php: 784117 #: includes/class-edd-sl-plugin-updater.php:818 106 118 msgid "Your TranslatePress license key is invalid or missing." 107 119 msgstr "" 108 120 109 #: includes/class-edd-sl-plugin-updater.php: 788121 #: includes/class-edd-sl-plugin-updater.php:822 110 122 msgid "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." 111 123 msgstr "" 112 124 113 #: includes/class-edd-sl-plugin-updater.php: 791125 #: includes/class-edd-sl-plugin-updater.php:825 114 126 msgid "<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>" 115 127 msgstr "" 116 128 117 #: includes/class-edd-sl-plugin-updater.php: 795129 #: includes/class-edd-sl-plugin-updater.php:829 118 130 msgid "Your license key has reached its activation limit." 119 131 msgstr "" 120 132 121 #: includes/class-edd-sl-plugin-updater.php:798 133 #: includes/class-edd-sl-plugin-updater.php:831 134 msgid "Upgrade your plan to add more sites. %1$sUpgrade now%2$s" 135 msgstr "" 136 137 #: includes/class-edd-sl-plugin-updater.php:834 122 138 msgid "This website is already activated under a free license. Each website can only use one free license." 123 139 msgstr "" 124 140 125 #: includes/class-edd-sl-plugin-updater.php:8 01, includes/class-edd-sl-plugin-updater.php:765, includes/class-edd-sl-plugin-updater.php:875141 #: includes/class-edd-sl-plugin-updater.php:837, includes/class-edd-sl-plugin-updater.php:799, includes/class-edd-sl-plugin-updater.php:911 126 142 msgid "An error occurred, please try again." 127 143 msgstr "" 128 144 129 #: includes/class-edd-sl-plugin-updater.php:8 34145 #: includes/class-edd-sl-plugin-updater.php:870 130 146 msgid "You have successfully activated your license" 131 147 msgstr "" … … 199 215 msgstr "" 200 216 201 #: includes/class-error-manager.php:170, includes/class-plugin-notices.php:3 53, 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:810217 #: 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 202 218 msgid "Dismiss this notice." 203 219 msgstr "" … … 315 331 msgstr "" 316 332 317 #: includes/class-plugin-notices.php:3 50, includes/class-plugin-notices.php:379318 msgid "Your <strong>TranslatePress</strong> license key is invalid or missing. <br/>Please %1$sregister your copy%2$s to receive access toautomatic updates and support. Need a license key? %3$sPurchase one now%4$s"319 msgstr "" 320 321 #: includes/class-plugin-notices.php:41 7322 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:38 9333 #: includes/class-plugin-notices.php:343, includes/class-plugin-notices.php:372 334 msgid "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" 335 msgstr "" 336 337 #: includes/class-plugin-notices.php:410 338 msgid "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" 339 msgstr "" 340 341 #: includes/class-plugin-notices.php:382 326 342 msgid "Error: " 327 343 msgstr "" 328 344 329 #: includes/class-plugin-notices.php:3 93, includes/class-plugin-notices.php:499345 #: includes/class-plugin-notices.php:386, includes/class-plugin-notices.php:543 330 346 msgid "Something went wrong, please try again." 331 347 msgstr "" 332 348 333 #: includes/class-plugin-notices.php:38 7, includes/class-plugin-notices.php:493334 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:3 85, includes/class-plugin-notices.php:489349 #: includes/class-plugin-notices.php:380, includes/class-plugin-notices.php:537 350 msgid "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" 351 msgstr "" 352 353 #: includes/class-plugin-notices.php:378, includes/class-plugin-notices.php:533 338 354 msgid "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." 339 355 msgstr "" 340 356 341 #: includes/class-plugin-notices.php:3 83, includes/class-plugin-notices.php:487357 #: includes/class-plugin-notices.php:376, includes/class-plugin-notices.php:531 342 358 msgid "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." 343 359 msgstr "" 344 360 345 #: includes/class-plugin-notices.php:3 81, includes/class-plugin-notices.php:485361 #: includes/class-plugin-notices.php:374, includes/class-plugin-notices.php:529 346 362 msgid "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." 347 363 msgstr "" 348 364 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 366 msgid "%1$s automatic translation requires an active license. Please %2$srenew%3$s your license or purchase a new one %4$shere%5$s." 367 msgstr "" 368 369 #: includes/class-plugin-notices.php:444 370 msgid "Please %1$senter%2$s your license key to enable %3$s automatic translation." 371 msgstr "" 372 373 #: includes/class-plugin-notices.php:497 374 msgid "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." 375 msgstr "" 376 377 #: includes/class-plugin-notices.php:539 358 378 msgid " Error: " 359 379 msgstr "" 360 380 361 #: includes/class-plugin-notices.php: 491381 #: includes/class-plugin-notices.php:535 362 382 msgid "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." 363 383 msgstr "" 364 384 365 #: includes/class-plugin-notices.php: 483385 #: includes/class-plugin-notices.php:527 366 386 msgid "You do not have a valid license for <strong>TranslatePress</strong>. %1$sGet one for free%2$s to get access to TranslatePress AI." 367 387 msgstr "" 368 388 369 #: includes/class-plugin-notices.php: 556389 #: includes/class-plugin-notices.php:600 370 390 msgid "The daily quota for machine translation characters exceeded. Please check the <strong>TranslatePress -> <a href=\"%s\">Automatic Translation</a></strong> page for more information." 371 391 msgstr "" 372 392 373 #: includes/class-plugin-notices.php: 582393 #: includes/class-plugin-notices.php:626 374 394 msgid "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." 375 395 msgstr "" … … 515 535 msgstr "" 516 536 517 #: includes/class-settings.php:636, includes/class-translation-manager.php:53 3, add-ons-pro/translator-accounts/includes/class-translator-accounts.php:156537 #: includes/class-settings.php:636, includes/class-translation-manager.php:534, add-ons-pro/translator-accounts/includes/class-translator-accounts.php:156 518 538 msgid "Translate Site" 519 539 msgstr "" … … 527 547 msgstr "" 528 548 529 #: includes/class-settings.php:693, includes/class-translation-manager.php:56 5549 #: includes/class-settings.php:693, includes/class-translation-manager.php:566 530 550 msgid "Settings" 531 551 msgstr "" … … 833 853 msgstr "" 834 854 835 #: includes/class-translation-manager.php:23 2855 #: includes/class-translation-manager.php:233 836 856 msgid "Your %s license has <span class=\"trp-license-status-emphasized\">expired</span>." 837 857 msgstr "" 838 858 839 #: includes/class-translation-manager.php:239840 msgid "Please renew your license to continue receiving access to product downloads, automatic updates and support."841 msgstr ""842 843 859 #: includes/class-translation-manager.php:240 860 msgid "Please renew your license to continue receiving access to TranslatePress AI, premium addons, automatic updates and support." 861 msgstr "" 862 863 #: includes/class-translation-manager.php:241 844 864 msgid "Renew Now" 845 865 msgstr "" 846 866 847 #: includes/class-translation-manager.php:23 5867 #: includes/class-translation-manager.php:236 848 868 msgid "<strong>This Black Friday, renew your license at a special price</strong> to continue receiving access to product downloads, automatic updates, and support." 849 869 msgstr "" 850 870 851 #: includes/class-translation-manager.php:23 6871 #: includes/class-translation-manager.php:237 852 872 msgid "Get Deal" 853 873 msgstr "" 854 874 855 #: includes/class-translation-manager.php:24 8875 #: includes/class-translation-manager.php:249 856 876 msgid "Your %s license was <span class=\"trp-license-status-emphasized\">refunded</span>." 857 877 msgstr "" 858 878 859 #: includes/class-translation-manager.php:249860 msgid "Please purchase a new license to continue receiving access to product downloads, automatic updates and support."861 msgstr ""862 863 879 #: includes/class-translation-manager.php:250 880 msgid "Please purchase a new license to continue receiving access to TranslatePress AI, premium addons, automatic updates and support." 881 msgstr "" 882 883 #: includes/class-translation-manager.php:251 864 884 msgid "Purchase a new license" 865 885 msgstr "" 866 886 867 #: includes/class-translation-manager.php:261868 msgid "Your %s license is <span class=\"trp-license-status-emphasized\">empty or incorrect</span>."869 msgstr ""870 871 887 #: includes/class-translation-manager.php:262 872 msgid " Please enter a valid license to continue receiving access to product downloads, automatic updates and support."888 msgid "Your %s license is <span class=\"trp-license-status-emphasized\">missing or invalid</span>." 873 889 msgstr "" 874 890 875 891 #: includes/class-translation-manager.php:263 892 msgid "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" 893 msgstr "" 894 895 #: includes/class-translation-manager.php:264 876 896 msgid "Enter a valid license" 877 897 msgstr "" 878 898 879 #: includes/class-translation-manager.php:3 19, 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:16899 #: 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 880 900 msgid "Slugs" 881 901 msgstr "" 882 902 883 #: includes/class-translation-manager.php:32 0903 #: includes/class-translation-manager.php:321 884 904 msgid "Meta Information" 885 905 msgstr "" 886 906 887 #: includes/class-translation-manager.php:32 1907 #: includes/class-translation-manager.php:322 888 908 msgid "String List" 889 909 msgstr "" 890 910 891 #: includes/class-translation-manager.php:32 2911 #: includes/class-translation-manager.php:323 892 912 msgid "Gettext Strings" 893 913 msgstr "" 894 914 895 #: includes/class-translation-manager.php:32 3915 #: includes/class-translation-manager.php:324 896 916 msgid "Images" 897 917 msgstr "" 898 918 899 #: includes/class-translation-manager.php:32 4919 #: includes/class-translation-manager.php:325 900 920 msgid "Videos" 901 921 msgstr "" 902 922 903 #: includes/class-translation-manager.php:32 5923 #: includes/class-translation-manager.php:326 904 924 msgid "Audios" 905 925 msgstr "" 906 926 907 #: includes/class-translation-manager.php:32 6927 #: includes/class-translation-manager.php:327 908 928 msgid "Dynamically Added Strings" 909 929 msgstr "" 910 930 911 #: includes/class-translation-manager.php:36 3931 #: includes/class-translation-manager.php:364 912 932 msgid "Translation Editor" 913 933 msgstr "" 914 934 915 #: includes/class-translation-manager.php:36 5935 #: includes/class-translation-manager.php:366 916 936 msgid "Edit translations by visually selecting them on each site page" 917 937 msgstr "" 918 938 919 #: includes/class-translation-manager.php:3 69939 #: includes/class-translation-manager.php:370 920 940 msgid "String Translation" 921 941 msgstr "" 922 942 923 #: includes/class-translation-manager.php:37 1943 #: includes/class-translation-manager.php:372 924 944 msgid "Edit url slug translations, plugins and theme translation (emails, forms etc.)" 925 945 msgstr "" 926 946 927 #: includes/class-translation-manager.php:44 7947 #: includes/class-translation-manager.php:448 928 948 msgid "Current User" 929 949 msgstr "" 930 950 931 #: includes/class-translation-manager.php:44 8951 #: includes/class-translation-manager.php:449 932 952 msgid "Logged Out" 933 953 msgstr "" 934 954 935 #: includes/class-translation-manager.php:54 6, includes/class-translation-manager.php:608955 #: includes/class-translation-manager.php:547, includes/class-translation-manager.php:609 936 956 msgid "Translate Page" 937 957 msgstr "" 938 958 939 #: includes/class-translation-manager.php:60 6959 #: includes/class-translation-manager.php:607 940 960 msgid "Opens post in the translation editor. Post must be saved as draft or published beforehand." 941 961 msgstr "" 942 962 943 #: includes/class-translation-manager.php:72 0963 #: includes/class-translation-manager.php:721 944 964 msgid "Security check" 945 965 msgstr "" 946 966 947 #: includes/class-translation-manager.php:79 2967 #: includes/class-translation-manager.php:793 948 968 msgid "<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." 949 969 msgstr "" 950 970 951 #: includes/class-translation-manager.php:81 7, includes/class-translation-manager.php:836, includes/class-upgrade.php:370971 #: includes/class-translation-manager.php:818, includes/class-translation-manager.php:837, includes/class-upgrade.php:370 952 972 msgid "TranslatePress data update" 953 973 msgstr "" 954 974 955 #: includes/class-translation-manager.php:81 7, includes/class-translation-manager.php:836, includes/class-upgrade.php:370975 #: includes/class-translation-manager.php:818, includes/class-translation-manager.php:837, includes/class-upgrade.php:370 956 976 msgid "We need to update your translations database to the latest version." 957 977 msgstr "" 958 978 959 #: includes/class-translation-manager.php:81 8979 #: includes/class-translation-manager.php:819 960 980 msgid "Updating will allow editing translations of localized text from plugins and theme. Existing translation will still work as expected." 961 981 msgstr "" 962 982 963 #: includes/class-translation-manager.php:82 0, includes/class-translation-manager.php:839, includes/class-upgrade.php:371983 #: includes/class-translation-manager.php:821, includes/class-translation-manager.php:840, includes/class-upgrade.php:371 964 984 msgid "IMPORTANT: It is strongly recommended to first backup the database!\nAre you sure you want to continue?" 965 985 msgstr "" 966 986 967 #: includes/class-translation-manager.php:82 0, includes/class-translation-manager.php:839, includes/class-upgrade.php:371987 #: includes/class-translation-manager.php:821, includes/class-translation-manager.php:840, includes/class-upgrade.php:371 968 988 msgid "Run the updater" 969 989 msgstr "" 970 990 971 #: includes/class-translation-manager.php:83 7991 #: includes/class-translation-manager.php:838 972 992 msgid "Updating will allow editing translations of slugs. Existing translation will still work as expected." 973 993 msgstr "" 974 994 975 #: includes/class-translation-manager.php:89 2995 #: includes/class-translation-manager.php:893 976 996 msgid "Please activate the SEO Addon from <br/>WordPress -> Settings -> TranslatePress -> Addons section" 977 997 msgstr "" 978 998 979 #: includes/class-translation-manager.php:89 5999 #: includes/class-translation-manager.php:896 980 1000 msgid "Go to Addons" 981 1001 msgstr "" 982 1002 983 #: includes/class-translation-manager.php:91 01003 #: includes/class-translation-manager.php:911 984 1004 msgid "The SEO Pack add-on allows translation of all the URL slugs:" 985 1005 msgstr "" 986 1006 987 #: includes/class-translation-manager.php:91 31007 #: includes/class-translation-manager.php:914 988 1008 msgid "Taxonomy slugs" 989 1009 msgstr "" 990 1010 991 #: includes/class-translation-manager.php:91 61011 #: includes/class-translation-manager.php:917 992 1012 msgid "Term slugs" 993 1013 msgstr "" 994 1014 995 #: includes/class-translation-manager.php:9 191015 #: includes/class-translation-manager.php:920 996 1016 msgid "Post slugs (this includes pages and custom post types)" 997 1017 msgstr "" 998 1018 999 #: includes/class-translation-manager.php:92 21019 #: includes/class-translation-manager.php:923 1000 1020 msgid "Post type base slugs" 1001 1021 msgstr "" 1002 1022 1003 #: includes/class-translation-manager.php:92 51023 #: includes/class-translation-manager.php:926 1004 1024 msgid "WooCommerce slugs" 1005 1025 msgstr "" 1006 1026 1007 #: includes/class-translation-manager.php:93 01027 #: includes/class-translation-manager.php:931 1008 1028 msgid "The SEO Pack add-on is available with ALL premium versions of the plugin." 1009 1029 msgstr "" 1010 1030 1011 #: includes/class-translation-manager.php:93 31031 #: includes/class-translation-manager.php:934 1012 1032 msgid "Upgrade to Pro" 1013 1033 msgstr "" … … 1397 1417 msgstr "" 1398 1418 1399 #: partials/license-settings-page.php:124, includes/mtapi/functions.php:7 51419 #: partials/license-settings-page.php:124, includes/mtapi/functions.php:74 1400 1420 msgid "Access to TranslatePress AI for instant automatic translations" 1401 1421 msgstr "" 1402 1422 1403 #: partials/license-settings-page.php:129, includes/mtapi/functions.php: 801423 #: partials/license-settings-page.php:129, includes/mtapi/functions.php:79 1404 1424 msgid "2000 AI words to translate automatically" 1405 1425 msgstr "" … … 1541 1561 msgstr "" 1542 1562 1543 #: partials/machine-translation-settings-page.php:255, includes/mtapi/functions.php:8 8, includes/mtapi/functions.php:1881563 #: partials/machine-translation-settings-page.php:255, includes/mtapi/functions.php:87, includes/mtapi/functions.php:187 1544 1564 msgid "Upgrade now" 1545 1565 msgstr "" … … 2297 2317 msgstr "" 2298 2318 2299 #: includes/mtapi/functions.php:4 32319 #: includes/mtapi/functions.php:40, add-ons-pro/deepl/includes/class-deepl.php:194 2300 2320 msgid "No Active License Detected for this website." 2301 2321 msgstr "" 2302 2322 2303 #: includes/mtapi/functions.php:4 92323 #: includes/mtapi/functions.php:45 2304 2324 msgid "In order to enable Automatic Translation using TranslatePress AI, you need a license key by creating a free account." 2305 2325 msgstr "" 2306 2326 2307 #: includes/mtapi/functions.php:5 52327 #: includes/mtapi/functions.php:51 2308 2328 msgid "Create your Free Account" 2309 2329 msgstr "" 2310 2330 2311 #: includes/mtapi/functions.php:5 82331 #: includes/mtapi/functions.php:54 2312 2332 msgid " or " 2313 2333 msgstr "" 2314 2334 2315 #: includes/mtapi/functions.php: 612335 #: includes/mtapi/functions.php:57, add-ons-pro/deepl/includes/class-deepl.php:199 2316 2336 msgid "Enter your license key" 2317 2337 msgstr "" 2318 2338 2319 #: includes/mtapi/functions.php:70 2339 #: includes/mtapi/functions.php:60, add-ons-pro/deepl/includes/class-deepl.php:201 2340 msgid " Or %1$spurchase one here%2$s" 2341 msgstr "" 2342 2343 #: includes/mtapi/functions.php:69 2320 2344 msgid "Your free account includes: " 2321 2345 msgstr "" 2322 2346 2323 #: includes/mtapi/functions.php:8 5, includes/mtapi/functions.php:1852347 #: includes/mtapi/functions.php:84, includes/mtapi/functions.php:184 2324 2348 msgid "Get more AI Tokens and unlock all AI features with TranslatePress Pro." 2325 2349 msgstr "" 2326 2350 2327 #: includes/mtapi/functions.php:14 42351 #: includes/mtapi/functions.php:143 2328 2352 msgid "You have a valid %s <strong>license</strong>." 2329 2353 msgstr "" 2330 2354 2331 #: includes/mtapi/functions.php:15 12355 #: includes/mtapi/functions.php:150 2332 2356 msgid " words remaining. " 2333 2357 msgstr "" 2334 2358 2335 #: includes/mtapi/functions.php:15 72359 #: includes/mtapi/functions.php:156 2336 2360 msgid "Recheck" 2337 2361 msgstr "" 2338 2362 2339 #: includes/mtapi/functions.php:16 12363 #: includes/mtapi/functions.php:160 2340 2364 msgid "Rechecking..." 2341 2365 msgstr "" 2342 2366 2343 #: includes/mtapi/functions.php:16 42367 #: includes/mtapi/functions.php:163 2344 2368 msgid "Done." 2345 2369 msgstr "" 2346 2370 2371 #: includes/mtapi/functions.php:175 2372 msgid "Manage your license & quota on the %s" 2373 msgstr "" 2374 2347 2375 #: includes/mtapi/functions.php:176 2348 msgid "Manage your license & quota on the %s"2349 msgstr ""2350 2351 #: includes/mtapi/functions.php:1772352 2376 msgid "TranslatePress.com Account Page" 2353 2377 msgstr "" … … 2795 2819 msgstr "" 2796 2820 2797 #: add-ons-advanced/seo-pack/includes/string-translation/class-option-based-strings.php:9 3, 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:982821 #: 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 2798 2822 msgid "(inactive)" 2799 2823 msgstr "" -
translatepress-multilingual/trunk/readme.txt
r3333369 r3346255 6 6 Tested up to: 6.8.2 7 7 Requires PHP: 5.6.20 8 Stable tag: 2.9.2 28 Stable tag: 2.9.23 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 142 142 143 143 == 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 144 150 = 2.9.22 = 145 151 * 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.