[Standards] [XEP-0384] OMEMO: xml:lang + max_items

Goffi goffi at goffi.org
Fri Jul 27 17:21:22 UTC 2018

Le vendredi 27 juillet 2018, 17:24:27 CEST Peter Saint-Andre a écrit :
> On 7/27/18 8:03 AM, Goffi wrote:
> > Hello,
> > 
> > I'm currently working on OMEMO implementation in Salut à Toi thanks to
> > the work of Syndace (https://github.com/Syndace/python-omemo), and I
> > have two issues with it:
> > 
> > - SàT is using xml:lang attribute, and I don't see a way to specify it
> > with OMEMO, how should I do? What are business rules when several
> > bodies are available (I know it's not common, but it's allowed by
> > RFCs)?
> Could you describe in more detail what you're trying to accomplish?
> Section 5.2.3 of RFC 6121 talks about xml:lang for message bodies, but
> perhaps you need more information.
> Peter

An (animated) picture worth thousand words :)


The experimental language detection put aside, I'm using xml:lang here to 
display the language used, and this allow language filtering, which is 
really useful in a multilingual room. This data can also be used to propose 
translation, and probably other neat features.

With OMEMO I'm loosing the xml:lang (the <body> disappear), and I'm not 
sure where I could put it (I think this information should be encrypted 


More information about the Standards mailing list