Closed nichtich closed 9 years ago
PAIA is an interface and not a GUI. All messages, as in HTTP, should be in English and the client should provide a translation.
We should have a look at common error types (#33) before further decision.
Possibly language dependent fields in PAIA are limited to:
doc.about
textual description of the documentdoc.error
error message, for instance if a request was rejectedpatron.name
full name of the patronpatron.address
freeform address of the patrondoc.storage
Requested pickup location (but there is also doc.storageid)fee.about
textual information about the feefee.feetype
textual description of the type of fee (may be renamed, see #44)error_description
Human-readable error description (in request errors)After thinking more about this I decided to refer to good old Content-Negotiation (PAIA 1.0.8): https://github.com/gbv/paia/commit/143f118f87bdf7f931d77aee50a6d43efbb06b43
@JonathanRowell Translations provided by clients are only possible based on identifiers such as the error
field of request errors. We don't have such identifiers for document errors, so I opened #45
should be localized by the HTTP accept-language header or sent in a default language.