You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// WordPress requires that the text domain be a string (e.g. 'woocommerce-convertkit') and not a variable,
160
+
// otherwise localization won't work.
161
+
// phpcs:disable
159
162
$this->error_messages = array(
160
-
'get_all_posts_posts_per_request_bound_too_low' => 'get_all_posts(): the posts_per_request parameter must be equal to or greater than 1.',
161
-
'get_all_posts_posts_per_request_bound_too_high' => 'get_all_posts(): the posts_per_request parameter must be equal to or less than 50.',
162
-
'get_posts_page_parameter_bound_too_low' => 'get_posts(): the page parameter must be equal to or greater than 1.',
163
-
'get_posts_per_page_parameter_bound_too_low' => 'get_posts(): the per_page parameter must be equal to or greater than 1.',
164
-
'get_posts_per_page_parameter_bound_too_high' => 'get_posts(): the per_page parameter must be equal to or less than 50.',
165
-
'subscriber_authentication_send_code_email_empty' => 'subscriber_authentication_send_code(): the email parameter is empty.',
166
-
'subscriber_authentication_send_code_redirect_url_empty' => 'subscriber_authentication_send_code(): the redirect_url parameter is empty.',
167
-
'subscriber_authentication_send_code_redirect_url_invalid' => 'subscriber_authentication_send_code(): the redirect_url parameter is not a valid URL.',
168
-
'subscriber_authentication_send_code_response_token_missing' => 'subscriber_authentication_send_code(): the token parameter is missing from the API response.',
169
-
'subscriber_authentication_verify_token_empty' => 'subscriber_authentication_verify(): the token parameter is empty.',
170
-
'subscriber_authentication_verify_subscriber_code_empty' => 'subscriber_authentication_verify(): the subscriber_code parameter is empty.',
171
-
'subscriber_authentication_verify_response_error' => 'The entered code is invalid. Please try again, or click the link sent in the email.',
172
-
'profiles_signed_subscriber_id_empty' => 'profiles(): the signed_subscriber_id parameter is empty.',
173
-
'request_method_unsupported' => 'API request method %s is not supported in ConvertKit_API class.',
174
-
'request_rate_limit_exceeded' => 'ConvertKit API Error: Rate limit hit.',
175
-
'request_internal_server_error' => 'ConvertKit API Error: Internal server error.',
176
-
'request_bad_gateway' => 'ConvertKit API Error: Bad gateway.',
177
-
'response_type_unexpected' => 'ConvertKit API Error: The response is not of the expected type array.',
163
+
// get_all_posts().
164
+
'get_all_posts_posts_per_request_bound_too_low' => __( 'get_all_posts(): the posts_per_request parameter must be equal to or greater than 1.', 'convertkit' ),
165
+
'get_all_posts_posts_per_request_bound_too_high' => __( 'get_all_posts(): the posts_per_request parameter must be equal to or less than 50.', 'convertkit' ),
166
+
167
+
// get_posts().
168
+
'get_posts_page_parameter_bound_too_low' => __( 'get_posts(): the page parameter must be equal to or greater than 1.', 'convertkit' ),
169
+
'get_posts_per_page_parameter_bound_too_low' => __( 'get_posts(): the per_page parameter must be equal to or greater than 1.', 'convertkit' ),
170
+
'get_posts_per_page_parameter_bound_too_high' => __( 'get_posts(): the per_page parameter must be equal to or less than 50.', 'convertkit' ),
171
+
172
+
// subscriber_authentication_send_code().
173
+
'subscriber_authentication_send_code_email_empty' => __( 'subscriber_authentication_send_code(): the email parameter is empty.', 'convertkit' ),
174
+
'subscriber_authentication_send_code_redirect_url_empty' => __( 'subscriber_authentication_send_code(): the redirect_url parameter is empty.', 'convertkit' ),
175
+
'subscriber_authentication_send_code_redirect_url_invalid' => __( 'subscriber_authentication_send_code(): the redirect_url parameter is not a valid URL.', 'convertkit' ),
176
+
'subscriber_authentication_send_code_response_token_missing'=> __( 'subscriber_authentication_send_code(): the token parameter is missing from the API response.', 'convertkit' ),
177
+
178
+
// subscriber_authentication_verify().
179
+
'subscriber_authentication_verify_token_empty' => __( 'subscriber_authentication_verify(): the token parameter is empty.', 'convertkit' ),
180
+
'subscriber_authentication_verify_subscriber_code_empty' => __( 'subscriber_authentication_verify(): the subscriber_code parameter is empty.', 'convertkit' ),
181
+
'subscriber_authentication_verify_response_error' => __( 'The entered code is invalid. Please try again, or click the link sent in the email.', 'convertkit' ),
182
+
183
+
// profile().
184
+
'profiles_signed_subscriber_id_empty' => __( 'profiles(): the signed_subscriber_id parameter is empty.', 'convertkit' ),
185
+
186
+
// request().
187
+
/* translators: HTTP method */
188
+
'request_method_unsupported' => __( 'API request method %s is not supported in ConvertKit_API class.', 'convertkit' ),
0 commit comments