-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds Presentation Receiver status. #53
Conversation
Regarding a locale, it looks almost good to me! Locales of display's friendly name and presentation title are very helpful to display them properly. On the other hand, I wonder if the By the way, I suppose that each locale field could have variable length. In most cases, a locale string is very short like |
Good point. I remember we discussed passing locale information with application messages, and deciding on leaving it up to the application, as it knows best which messages need a locale and what that locale is. In the future, we could add an API like For now, I'll remove
The BCP-47 spec doesn't seem to limit the length because of arbitrary variant strings that can be appended to the two letter codes. 64 characters captured all examples from the spec, but I didn't research this deeply. We could restrict to a subset of BCP-47 if we want to ensure shorter codes. Maybe the i18n WG would have some advice for us on this. |
I agree with that idea.
Okay. I just wanted to confirm the reason of 64 characters. Regarding the length, BCP-47 describes Length Considerations and indicates several examples and recommendations, e.g.:
Absolutely. |
It was a best guess, and turns out to be consistent with the length guidelines in RFC4646. In general, I'm using fixed length fields to constrain the message format when possible to simplify the code that constructs and parses these messages. If there's a need for language tags longer than 64 characters we can convert it to a variable length string (with a 16-bit length field). I'll add a TODO with a followup issue to research this more and/or request input from the i18n group when ready. |
Addresses Issue #11: Presentation API control protocol
Defines Presentation Reciever Status, the last message in the Presentation API control protocol.
Application Message: