Skip to content
Snippets Groups Projects
Verified Commit 9e09c670 authored by Christian Wach's avatar Christian Wach :soccer: Committed by Kevin Cristiano
Browse files

Make strings translatable

parent 0807d75a
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ class Autoloader { ...@@ -67,7 +67,7 @@ class Autoloader {
self::instance(); self::instance();
if ( ! is_readable( trailingslashit( $source_path ) ) ) 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; self::$source_directories[] = $source_path;
......
...@@ -92,7 +92,7 @@ class Open extends Base { ...@@ -92,7 +92,7 @@ class Open extends Base {
return [ return [
'$schema' => 'http://json-schema.org/draft-04/schema#', '$schema' => 'http://json-schema.org/draft-04/schema#',
'title' => 'civicrm/v3/open', 'title' => 'civicrm/v3/open',
'description' => 'CiviCRM Open endpoint', 'description' => __( 'CiviCRM Open endpoint', 'civicrm' ),
'type' => 'object', 'type' => 'object',
'required' => [ 'q' ], 'required' => [ 'q' ],
'properties' => [ 'properties' => [
......
...@@ -46,10 +46,10 @@ class Rest extends Base { ...@@ -46,10 +46,10 @@ class Rest extends Base {
public function permissions_check( $request ) { public function permissions_check( $request ) {
if ( ! $this->is_valid_api_key( $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() ) 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; return true;
...@@ -326,7 +326,7 @@ class Rest extends Base { ...@@ -326,7 +326,7 @@ class Rest extends Base {
return [ return [
'$schema' => 'http://json-schema.org/draft-04/schema#', '$schema' => 'http://json-schema.org/draft-04/schema#',
'title' => 'civicrm/v3/rest', 'title' => 'civicrm/v3/rest',
'description' => 'CiviCRM API3 WP rest endpoint wrapper', 'description' => __( 'CiviCRM API3 WP rest endpoint wrapper', 'civicrm' ),
'type' => 'object', 'type' => 'object',
'required' => [ 'entity', 'action', 'params' ], 'required' => [ 'entity', 'action', 'params' ],
'properties' => [ 'properties' => [
......
...@@ -153,7 +153,7 @@ class Url extends Base { ...@@ -153,7 +153,7 @@ class Url extends Base {
return [ return [
'$schema' => 'http://json-schema.org/draft-04/schema#', '$schema' => 'http://json-schema.org/draft-04/schema#',
'title' => 'civicrm_api3/v3/url', 'title' => 'civicrm_api3/v3/url',
'description' => 'CiviCRM API3 wrapper', 'description' => __( 'CiviCRM API3 wrapper', 'civicrm' ),
'type' => 'object', 'type' => 'object',
'required' => [ 'qid', 'u' ], 'required' => [ 'qid', 'u' ],
'properties' => [ 'properties' => [
......
...@@ -139,7 +139,7 @@ class Widget extends Base { ...@@ -139,7 +139,7 @@ class Widget extends Base {
return [ return [
'$schema' => 'http://json-schema.org/draft-04/schema#', '$schema' => 'http://json-schema.org/draft-04/schema#',
'title' => 'civicrm_api3/v3/widget', 'title' => 'civicrm_api3/v3/widget',
'description' => 'CiviCRM API3 wrapper', 'description' => __( 'CiviCRM API3 wrapper', 'civicrm' ),
'type' => 'object', 'type' => 'object',
'required' => [ 'cpageId', 'widgetId' ], 'required' => [ 'cpageId', 'widgetId' ],
'properties' => [ 'properties' => [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment