From 0da547f3b5204181425f72b3fd64bb86b9d39af4 Mon Sep 17 00:00:00 2001 From: Fabian Steeg Date: Tue, 12 Sep 2023 14:39:28 +0200 Subject: [PATCH] Move language-related subsections into common i18n section (#125) --- draft/index.html | 57 +++++++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/draft/index.html b/draft/index.html index fbdba57..a643380 100644 --- a/draft/index.html +++ b/draft/index.html @@ -459,17 +459,6 @@

Cross-Origin Access

enables older web-based clients to access the service from a different domain.

-
-

Language Selection

-

- Following [[RFC9110]], services SHOULD use the Accept-Language header to let clients select the language in which user-facing text is returned. - They SHOULD use the Content-Language in their responses to expose the language each response is returned in. -

-

- Examples of user-facing text in service responses are: the name of the service and the name of property configuration fields in the manifest, the name and description of entities, types and properties, - the contents of the entity preview pages, and the documentation linked in the manifest. -

-

Error Handling and Rate-limiting

@@ -916,6 +905,36 @@

Data Extension Responses

+
+

Internationalization Considerations

+
+

Language Selection

+

+ Following [[RFC9110]], services SHOULD use the Accept-Language header to let clients select the language in which user-facing text is returned. + They SHOULD use the Content-Language in their responses to expose the language each response is returned in. +

+

+ Examples of user-facing text in service responses are: the name of the service and the name of property configuration fields in the manifest, the name and description of entities, types and properties, + the contents of the entity preview pages, and the documentation linked in the manifest. +

+
+
+

Text-processing language

+ +

All objects used in this protocol (entities, types, properties, queries, candidates, features, etc.) MAY declare an explicit + text-processing languge in a lang field. The lang value MUST be a single well-formed [[BCP 47]] language tag. This text-processing languge applies to the natural language fields of the object: name, description, + query (for reconciliation queries), v and str (for property values). Nested objects inherit the text-processing language of their parent, and can override it by setting their own lang value + (see example below). Client and service implementors SHOULD consider the text-processing languge to ensure correct processing of natural language content.

+ +

In the following example, we first set the text-processing language for a reconciliation query to en, which is inherited by the first property, and overridden in the second property with zh-Hant:

+ +

+


+        

+ +

If no explicit text-processing language is given, the metadata language (the language of the intended audience) provided first (see service definition) is considered the default text-processing language.

+
+

Accessibility Considerations

@@ -945,22 +964,6 @@

Content semantics

be modified by third-party tools to enhance accessibility.

-
-

Text-processing language

- -

All objects used in this protocol (entities, types, properties, queries, candidates, features, etc.) MAY declare an explicit - text-processing languge in a lang field. The lang value MUST be a single well-formed [[BCP 47]] language tag. This text-processing languge applies to the natural language fields of the object: name, description, - query (for reconciliation queries), v and str (for property values). Nested objects inherit the text-processing language of their parent, and can override it by setting their own lang value - (see example below). Client and service implementors SHOULD consider the text-processing languge to ensure correct processing of natural language content.

- -

In the following example, we first set the text-processing language for a reconciliation query to en, which is inherited by the first property, and overridden in the second property with zh-Hant:

- -

-


-        

- -

If no explicit text-processing language is given, the metadata language (the language of the intended audience) provided first (see service definition) is considered the default text-processing language.

-

Security Considerations