i18n-v3.php
2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
/**
* Yoast I18n module.
*
* @package Yoast\I18n-module
*/
/**
* This class defines a promo box and checks your translation site's API for stats about it,
* then shows them to the user.
*
* @deprecated 19.12
* @codeCoverageIgnore
* @phpcs:disable PEAR.NamingConventions.ValidClassName.Invalid
*/
class Yoast_I18n_v3 {
/**
* Class constructor.
*
* @deprecated 19.12
* @codeCoverageIgnore
*
* @param array $args Contains the settings for the class.
* @param bool $show_translation_box Whether the translation box should be shown.
*/
public function __construct( $args, $show_translation_box = true ) {
\_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
}
/**
* Returns whether the language is en_US.
*
* @deprecated 19.12
* @codeCoverageIgnore
*
* @param string $language The language to check.
*
* @return bool Returns true if the language is en_US.
*/
protected function is_default_language( $language ) {
\_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
return true;
}
/**
* Returns the i18n_promo message from the i18n_module. Returns en empty string if the promo shouldn't be shown.
*
* @deprecated 19.12
* @codeCoverageIgnore
*
* @access public
*
* @return string The i18n promo message.
*/
public function get_promo_message() {
\_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
return '';
}
/**
* Returns a button that can be used to dismiss the i18n-message.
*
* @deprecated 19.12
* @codeCoverageIgnore
*
* @access private
*
* @return string
*/
public function get_dismiss_i18n_message_button() {
\_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
return '';
}
/**
* Outputs a promo box.
*
* @deprecated 19.12
* @codeCoverageIgnore
*
* @access public
*/
public function promo() {
\_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
}
/**
* The API URL to use when requesting translation information.
*
* @deprecated 19.12
* @codeCoverageIgnore
*
* @param string $api_url The new API URL.
*/
public function set_api_url( $api_url ) {
\_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
}
}