w3c / wot-discovery

Repository for WoT discovery discussion
https://w3c.github.io/wot-discovery/
Other
20 stars 17 forks source link

Capture Answers to Internationalization Questionnaire #280

Closed mmccool closed 2 years ago

mmccool commented 2 years ago

Results of localization self-review for WoT.

Answers to short i18n review checklist (from here).

  1. [x] If the spec (or its implementation) contains any natural language text that will be read by a human (this includes error messages or other UI text, JSON strings, etc, etc),

    • Error details are related using Problem Details format (RFC7807) but in general error types are indicated with codes.
    • We depend on the mapping from the error codes and the internationalization capabilities of RFC7807.
    • Potential issues with text in errors are marked with i18n-tracker in the wot-discovery.
    • A directory can also return TDs or TD fragments as the result of a query and TDs can contain natural language, but we cover issues related to internationalization within TDs in the TD 1.1 specification (also under review).
    • One issue is that TD fragments may not retain the context, such as the default language. However this can be resolved by issuing queries that also fetch the context from the source TD.
  2. [ ] If the spec (or its implementation) allows content authors to produce typographically appealing text, either in its own right, or in association with graphics.

    Not applicable.

  3. [ ] If the spec (or its implementation) allows the user to point into text, creates text fragments, concatenates text, allows the user to select or step through text (using a cursor or other methods), etc.

    Not applicable.

    There is a mechanism to page through TDs but this is for JSON, not text.

  4. [ ] If the spec (or its implementation) allows searching or matching of text, including syntax and identifiers

    • Various query mechanisms are supported, including JSON Path, XML Path, and SPARQL.
    • We depend on mechanisms in those query standards to support internationalization.
  5. [ ] If the spec (or its implementation) sorts text

    Comments go here.

  6. [ ] If the spec (or its implementation) captures user input

    Not applicable.

  7. [x] If the spec (or its implementation) deals with time in any way that will be read by humans and/or crosses time zone boundaries

    • Time is used, but we require ISO standard time and use of the dateTime format.
    • TO DO: Check if TDs restrict dateTime further. (@mmccool to check)
  8. [ ] If the spec (or its implementation) allows any character encoding other than UTF-8.

  9. [ ] If the spec (or its implementation) defines markup.

    Not applicable.

  10. [ ] If the spec (or its implementation) deals with names, addresses, time & date formats, etc

    Only dateTime is used, as noted above.

  11. [ ] If the spec (or its implementation) describes a format or data that is likely to need localization.

    • The TD data returned is defined in separate document where localization issues are addressed.
    • Enriched TDs are defined by the current specification that add some metadata relating to time, but the localization issues are addressed as noted above through the use of dateTime.
  12. [ ] If the spec (or its implementation) makes any reference to or relies on any cultural norms

    Not applicable.

    Scans for sensitive terms, e.g. in the API definition, will be done as part of the publication process.

mmccool commented 2 years ago

The above should be turned into a PR, an md file, into publication/ver10/internationalization.md (or the like, see what the TD repo did). @mmccool to make a PR...

mmccool commented 2 years ago

Merging the above PR will close this issue. Kaz @ashimura please check that I'm putting it in the right directory, I'm using publications/3-cr, does that make sense?