- From: Harry Halpin <hhalpin@w3.org>
- Date: Thu, 22 Oct 2015 13:46:20 -0400
- To: James M Snell <jasnell@gmail.com>, Ben <ben@thatmustbe.me>
- CC: Sandro Hawke <sandro@w3.org>, Social Web Working Group <public-socialweb@w3.org>, ishida@w3.org
[cc'ing Richard Ishida] On 10/22/2015 10:27 AM, James M Snell wrote: > Hmm... I'd be far more inclined just to keep the existing language map > mechanism. > > It's unfortunate that JSON-LD does not provide an easier way of > establishing the document's default language without reliance on the > @context The problem as I understand it is that most modern programming languages that can simply input JSON into objects won't read @context very well without a bit of special processing due to the '@' symbol. How the '@' symbol got into the JSON-LD spec to begin with, I have no idea. However, off the top of my head there's no reason why we can't just say in AS2.0 that we can look at the @language in @context but if there's no @context, just look at a "language" tag. That's typically how I've seen it in the wild and a lot more intuitive than @context and @language for non-JSON-LD parsers (i.e. the majority of parsers). One of the few advantages of XML in this space over JSON was better defined internationalization. cheers, harry > > On Thu, Oct 22, 2015 at 7:13 AM, Ben <ben@thatmustbe.me> wrote: >> The most pertinent piece is the Language section. >> Based on that I would say that the <property>Map, etc is the wrong way to go. >> There is actually nothing that says about giving multiple languages at >> the same time to any piece of data, just that you label and can >> request certain languages. >> >> for example something like this.. >> { >> ... >> "@lang": "en", >> displayName: { >> "@lang": "jp", >> "text": "nihongo de posuto" >> } >> "content": "I made the title in japanese!" >> .... >> } >> It would also effect the API in that there should be an option to >> submit a preference of language, >> though there really is no requirement to actually respond in the >> preferred language. >> >> On Thu, Oct 22, 2015 at 8:50 AM, Sandro Hawke <sandro@w3.org> wrote: >>> There's finally a first draft of W3C expertise on how to design technologies >>> which are suitably international >>> >>> http://www.w3.org/International/techniques/developing-specs-dynamic >>> >>> It would be splendid for someone to go through this thinking of AS2. >>> >>> -- Sandro >>>
Received on Thursday, 22 October 2015 17:46:31 UTC