Verified Commit 04558711 authored by Christian Wach's avatar Christian Wach Committed by Kevin Cristiano

Make strings translatable

Signed-off-by: Kevin Cristiano's avatarKevin Cristiano <kcristiano@kcristiano.com>
parent 5cd6e666
......@@ -67,7 +67,7 @@ class Autoloader {
self::instance();
if ( ! is_readable( trailingslashit( $source_path ) ) )
return \WP_Error( 'civicrm_wp_rest_error', __( 'The source ' . $source . ' is not readable.' ) );
return \WP_Error( 'civicrm_wp_rest_error', sprintf( __( 'The source %s is not readable.', 'civicrm' ), $source ) );
self::$source_directories[] = $source_path;
......
......@@ -92,7 +92,7 @@ class Open extends Base {
return [
'$schema' => 'http://json-schema.org/draft-04/schema#',
'title' => 'civicrm/v3/open',
'description' => 'CiviCRM Open endpoint',
'description' => __( 'CiviCRM Open endpoint', 'civicrm' ),
'type' => 'object',
'required' => [ 'q' ],
'properties' => [
......
......@@ -46,10 +46,10 @@ class Rest extends Base {
public function permissions_check( $request ) {
if ( ! $this->is_valid_api_key( $request ) )
return $this->civi_rest_error( __( 'Param api_key is not valid.' ) );
return $this->civi_rest_error( __( 'Param api_key is not valid.', 'civicrm' ) );
if ( ! $this->is_valid_site_key() )
return $this->civi_rest_error( __( 'Param key is not valid.' ) );
return $this->civi_rest_error( __( 'Param key is not valid.', 'civicrm' ) );
return true;
......@@ -326,7 +326,7 @@ class Rest extends Base {
return [
'$schema' => 'http://json-schema.org/draft-04/schema#',
'title' => 'civicrm/v3/rest',
'description' => 'CiviCRM API3 WP rest endpoint wrapper',
'description' => __( 'CiviCRM API3 WP rest endpoint wrapper', 'civicrm' ),
'type' => 'object',
'required' => [ 'entity', 'action', 'params' ],
'properties' => [
......
......@@ -153,7 +153,7 @@ class Url extends Base {
return [
'$schema' => 'http://json-schema.org/draft-04/schema#',
'title' => 'civicrm_api3/v3/url',
'description' => 'CiviCRM API3 wrapper',
'description' => __( 'CiviCRM API3 wrapper', 'civicrm' ),
'type' => 'object',
'required' => [ 'qid', 'u' ],
'properties' => [
......
......@@ -139,7 +139,7 @@ class Widget extends Base {
return [
'$schema' => 'http://json-schema.org/draft-04/schema#',
'title' => 'civicrm_api3/v3/widget',
'description' => 'CiviCRM API3 wrapper',
'description' => __( 'CiviCRM API3 wrapper', 'civicrm' ),
'type' => 'object',
'required' => [ 'cpageId', 'widgetId' ],
'properties' => [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment