Skip to content

Commit f3a66b6

Browse files
committed
Remove translatable strings from schema descriptions
Schema descriptions are not user-facing and should not be translated.
1 parent b4dd90b commit f3a66b6

5 files changed

Lines changed: 30 additions & 30 deletions

File tree

includes/controller/class-nodeinfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function register_routes() {
5454
array(
5555
'args' => array(
5656
'version' => array(
57-
'description' => __( 'The NodeInfo schema version.', 'nodeinfo' ),
57+
'description' => 'The NodeInfo schema version.',
5858
'type' => 'string',
5959
'enum' => $versions,
6060
'required' => true,

includes/controller/class-nodeinfo2.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function register_routes() {
3838
array(
3939
'args' => array(
4040
'version' => array(
41-
'description' => __( 'The NodeInfo2 schema version.', 'nodeinfo' ),
41+
'description' => 'The NodeInfo2 schema version.',
4242
'type' => 'string',
4343
'enum' => array( '1.0' ),
4444
'required' => true,
@@ -143,12 +143,12 @@ public function get_item_schema() {
143143
'type' => 'object',
144144
'properties' => array(
145145
'version' => array(
146-
'description' => __( 'The NodeInfo2 schema version.', 'nodeinfo' ),
146+
'description' => 'The NodeInfo2 schema version.',
147147
'type' => 'string',
148148
'enum' => array( '1.0' ),
149149
),
150150
'server' => array(
151-
'description' => __( 'Metadata about the server.', 'nodeinfo' ),
151+
'description' => 'Metadata about the server.',
152152
'type' => 'object',
153153
'properties' => array(
154154
'baseUrl' => array(
@@ -167,14 +167,14 @@ public function get_item_schema() {
167167
),
168168
),
169169
'protocols' => array(
170-
'description' => __( 'The protocols supported on this server.', 'nodeinfo' ),
170+
'description' => 'The protocols supported on this server.',
171171
'type' => 'array',
172172
'items' => array(
173173
'type' => 'string',
174174
),
175175
),
176176
'services' => array(
177-
'description' => __( 'Third party sites this server can connect to.', 'nodeinfo' ),
177+
'description' => 'Third party sites this server can connect to.',
178178
'type' => 'object',
179179
'properties' => array(
180180
'inbound' => array(
@@ -192,11 +192,11 @@ public function get_item_schema() {
192192
),
193193
),
194194
'openRegistrations' => array(
195-
'description' => __( 'Whether this server allows open self-registration.', 'nodeinfo' ),
195+
'description' => 'Whether this server allows open self-registration.',
196196
'type' => 'boolean',
197197
),
198198
'usage' => array(
199-
'description' => __( 'Usage statistics for this server.', 'nodeinfo' ),
199+
'description' => 'Usage statistics for this server.',
200200
'type' => 'object',
201201
'properties' => array(
202202
'users' => array(
@@ -222,7 +222,7 @@ public function get_item_schema() {
222222
),
223223
),
224224
'metadata' => array(
225-
'description' => __( 'Free form key value pairs for software specific values.', 'nodeinfo' ),
225+
'description' => 'Free form key value pairs for software specific values.',
226226
'type' => 'object',
227227
),
228228
),

includes/integration/class-nodeinfo10.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,19 @@ public static function schema( $schema ) {
7171
$schema['properties'],
7272
array(
7373
'version' => array(
74-
'description' => __( 'The NodeInfo schema version.', 'nodeinfo' ),
74+
'description' => 'The NodeInfo schema version.',
7575
'type' => 'string',
7676
),
7777
'software' => array(
78-
'description' => __( 'Metadata about server software in use.', 'nodeinfo' ),
78+
'description' => 'Metadata about server software in use.',
7979
'type' => 'object',
8080
'properties' => array(
8181
'name' => array( 'type' => 'string' ),
8282
'version' => array( 'type' => 'string' ),
8383
),
8484
),
8585
'protocols' => array(
86-
'description' => __( 'The protocols supported on this server.', 'nodeinfo' ),
86+
'description' => 'The protocols supported on this server.',
8787
'type' => 'object',
8888
'properties' => array(
8989
'inbound' => array(
@@ -97,7 +97,7 @@ public static function schema( $schema ) {
9797
),
9898
),
9999
'services' => array(
100-
'description' => __( 'Third party sites this server can connect to.', 'nodeinfo' ),
100+
'description' => 'Third party sites this server can connect to.',
101101
'type' => 'object',
102102
'properties' => array(
103103
'inbound' => array(
@@ -111,11 +111,11 @@ public static function schema( $schema ) {
111111
),
112112
),
113113
'openRegistrations' => array(
114-
'description' => __( 'Whether this server allows open self-registration.', 'nodeinfo' ),
114+
'description' => 'Whether this server allows open self-registration.',
115115
'type' => 'boolean',
116116
),
117117
'usage' => array(
118-
'description' => __( 'Usage statistics for this server.', 'nodeinfo' ),
118+
'description' => 'Usage statistics for this server.',
119119
'type' => 'object',
120120
'properties' => array(
121121
'users' => array(
@@ -131,7 +131,7 @@ public static function schema( $schema ) {
131131
),
132132
),
133133
'metadata' => array(
134-
'description' => __( 'Free form key value pairs for software specific values.', 'nodeinfo' ),
134+
'description' => 'Free form key value pairs for software specific values.',
135135
'type' => 'object',
136136
),
137137
)

includes/integration/class-nodeinfo20.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,24 +71,24 @@ public static function schema( $schema ) {
7171
$schema['properties'],
7272
array(
7373
'version' => array(
74-
'description' => __( 'The NodeInfo schema version.', 'nodeinfo' ),
74+
'description' => 'The NodeInfo schema version.',
7575
'type' => 'string',
7676
),
7777
'software' => array(
78-
'description' => __( 'Metadata about server software in use.', 'nodeinfo' ),
78+
'description' => 'Metadata about server software in use.',
7979
'type' => 'object',
8080
'properties' => array(
8181
'name' => array( 'type' => 'string' ),
8282
'version' => array( 'type' => 'string' ),
8383
),
8484
),
8585
'protocols' => array(
86-
'description' => __( 'The protocols supported on this server.', 'nodeinfo' ),
86+
'description' => 'The protocols supported on this server.',
8787
'type' => 'array',
8888
'items' => array( 'type' => 'string' ),
8989
),
9090
'services' => array(
91-
'description' => __( 'Third party sites this server can connect to.', 'nodeinfo' ),
91+
'description' => 'Third party sites this server can connect to.',
9292
'type' => 'object',
9393
'properties' => array(
9494
'inbound' => array(
@@ -102,11 +102,11 @@ public static function schema( $schema ) {
102102
),
103103
),
104104
'openRegistrations' => array(
105-
'description' => __( 'Whether this server allows open self-registration.', 'nodeinfo' ),
105+
'description' => 'Whether this server allows open self-registration.',
106106
'type' => 'boolean',
107107
),
108108
'usage' => array(
109-
'description' => __( 'Usage statistics for this server.', 'nodeinfo' ),
109+
'description' => 'Usage statistics for this server.',
110110
'type' => 'object',
111111
'properties' => array(
112112
'users' => array(
@@ -122,7 +122,7 @@ public static function schema( $schema ) {
122122
),
123123
),
124124
'metadata' => array(
125-
'description' => __( 'Free form key value pairs for software specific values.', 'nodeinfo' ),
125+
'description' => 'Free form key value pairs for software specific values.',
126126
'type' => 'object',
127127
),
128128
)

includes/integration/class-nodeinfo21.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ public static function schema( $schema ) {
7171
$schema['properties'],
7272
array(
7373
'version' => array(
74-
'description' => __( 'The NodeInfo schema version.', 'nodeinfo' ),
74+
'description' => 'The NodeInfo schema version.',
7575
'type' => 'string',
7676
),
7777
'software' => array(
78-
'description' => __( 'Metadata about server software in use.', 'nodeinfo' ),
78+
'description' => 'Metadata about server software in use.',
7979
'type' => 'object',
8080
'properties' => array(
8181
'name' => array( 'type' => 'string' ),
@@ -91,12 +91,12 @@ public static function schema( $schema ) {
9191
),
9292
),
9393
'protocols' => array(
94-
'description' => __( 'The protocols supported on this server.', 'nodeinfo' ),
94+
'description' => 'The protocols supported on this server.',
9595
'type' => 'array',
9696
'items' => array( 'type' => 'string' ),
9797
),
9898
'services' => array(
99-
'description' => __( 'Third party sites this server can connect to.', 'nodeinfo' ),
99+
'description' => 'Third party sites this server can connect to.',
100100
'type' => 'object',
101101
'properties' => array(
102102
'inbound' => array(
@@ -110,11 +110,11 @@ public static function schema( $schema ) {
110110
),
111111
),
112112
'openRegistrations' => array(
113-
'description' => __( 'Whether this server allows open self-registration.', 'nodeinfo' ),
113+
'description' => 'Whether this server allows open self-registration.',
114114
'type' => 'boolean',
115115
),
116116
'usage' => array(
117-
'description' => __( 'Usage statistics for this server.', 'nodeinfo' ),
117+
'description' => 'Usage statistics for this server.',
118118
'type' => 'object',
119119
'properties' => array(
120120
'users' => array(
@@ -130,7 +130,7 @@ public static function schema( $schema ) {
130130
),
131131
),
132132
'metadata' => array(
133-
'description' => __( 'Free form key value pairs for software specific values.', 'nodeinfo' ),
133+
'description' => 'Free form key value pairs for software specific values.',
134134
'type' => 'object',
135135
),
136136
)

0 commit comments

Comments
 (0)