HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/delta/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/API/ErrorMessages.php
<?php

namespace WPML\TM\ATE\API;


class ErrorMessages {


	public static function serverUnavailable( $uuid ) {
		return [
			'header'      => self::serverUnavailableHeader(),
			'description' => self::invalidResponseDescription( $uuid ),
		];
	}

	public static function offline( $uuid ) {
		$description = _x( 'WPML needs an Internet connection to translate your site’s content. It seems that your server is not allowing external connections, or your network is temporarily down.', 'part1', 'wpml-translation-management' );
		$description .= _x( 'If this is the first time you’re seeing this message, please wait a minute and reload the page. If the problem persists, contact %1$s for help and mention that your website ID is %2$s.', 'part2', 'wpml-translation-management' );

		return [
			'header'      => __( 'Cannot Connect to the Internet', 'wpml-translation-management' ),
			'description' => sprintf( $description, self::getSupportLink(), $uuid ),
		];
	}

	public static function invalidResponse( $uuid ) {
		return [
			'header'      => __( 'WPML’s Advanced Translation Editor is not working', 'wpml-translation-management' ),
			'description' => self::invalidResponseDescription( $uuid ),
		];
	}

	public static function respondedWithError() {
		return __( "WPML's Advanced Translation Editor responded with an error", 'wpml-translation-management' );
	}

	public static function serverUnavailableHeader() {
		return __( 'WPML’s Advanced Translation Editor is not responding', 'wpml-translation-management' );
	}

	public static function invalidResponseDescription( $uuid ) {
		$description = _x( 'WPML cannot connect to the translation editor. If this is the first time you’re seeing this message, please wait a minute and reload the page.', 'part1', 'wpml-translation-management' );
		$description .= _x( 'If the problem persists, contact %1$s for help and mention that your website ID is %2$s.', 'part2', 'wpml-translation-management' );

		return sprintf( $description, self::getSupportLink(), $uuid );
	}

	public static function getSupportLink() {
		return '<a href="https://wpml.org/forums/forum/english-support/" target="_blank" rel="noreferrer">'
		       . __( 'WPML support', 'wpml-translation-management' ) . '</a>';
	}

	public static function bodyWithoutRequiredFields() {
		return __( 'The body does not contain the required fields', 'wpml-translation-management' );
	}

	public static function uuidAlreadyExists() {
		return __( 'UUID already exists', 'wpml-translation-management' );
	}
}