jdev - 2026-11-01


  1. stevfouk

    https://github.com/resonchat-org/resonchat/blob/main/docs/12-peertrans.md ResonChat is currently implementing Peer Message Translation as a supplement to Message Translation (XEP-0171), specifically for use by bots translating content within mucs. If a client does not support the integrated display of peer-translated messages, the translation will appear as a reply to the original message; if the client does support it, the translation will be displayed directly beneath the original message. ✎

  2. stevfouk

    https://github.com/resonchat-org/resonchat/blob/main/docs/12-peertrans.md ResonChat is currently implementing Peer Message Translation as a supplement to Language Translation (XEP-0171), specifically for use by bots translating content within mucs. If a client does not support the integrated display of peer-translated messages, the translation will appear as a reply to the original message; if the client does support it, the translation will be displayed directly beneath the original message. ✏

  3. jjj333_p (any pronouns)

    im reading the message replies xep, and it says that if you display the message reply you should remove the fallback and not display it. however there could be a a case made for displaying the fallback in a special way if available, similar to how telegram lets you reply to a specific section of a message. I'm not sure if the wording forbids this or not (i know realistically its probably fine, but i dont wanna overtly break compliance) https://xmpp.org/extensions/xep-0461.html#compat:~:text=The%20receiving%20client%20SHOULD%20NOT%20display%20the%20compatibility%20fallback%20if%20it%20renders%20the%20referenced%20message%20alongside%20the%20reply%20in%20some%20way%2E

  4. jjj333_p (any pronouns)

    (tbf im not entirely sure how it would work, just thinking out loud mostly)

  5. jjj333_p (any pronouns)

    in either case i plan to similarly to signal display the reply fallback as a reply with a message not found indicator similar to signal (usually happens in the case of dissapearing messages)

  6. jjj333_p (any pronouns)

    i'm also thinking about positioning where the reply shows up in the message based on where the fallback range is, so you could maybe reply in the middle of your message (this may not stick, im just playing rn)

  7. singpolyma

    > im reading the message replies xep, and it says that if you display the message reply you should remove the fallback and not display it. however there could be a a case made for displaying the fallback in a special way if available, similar to how telegram lets you reply to a specific section of a message. I'm not sure if the wording forbids this or not (i know realistically its probably fine, but i dont wanna overtly break compliance) > https://xmpp.org/extensions/xep-0461.html#compat:~:text=The%20receiving%20client%20SHOULD%20NOT%20display%20the%20compatibility%20fallback%20if%20it%20renders%20the%20referenced%20message%20alongside%20the%20reply%20in%20some%20way%2E That wouldn't be a fallback then, but a quote ↺

  8. jjj333_p (any pronouns)

    perhaps, i guess im asking can the fallback range be used as a quote but dressed up as a reply basically

  9. jjj333_p (any pronouns)

    (like you could click it to jump and whatnot) ✎

  10. jjj333_p (any pronouns)

    (like you could still click it to jump and whatnot) ✏

  11. singpolyma

    You can do whatever you want but if it's in the fallback range I expect that to be redundant

  12. jjj333_p (any pronouns)

    i guess if present it would be instead of displaying the content from the message we have

  13. jjj333_p (any pronouns)

    idk it might not stick, its just an idea i was playing with

  14. theTedd

    The intent of hiding the fallback text is that a supporting client will already be showing a preview of the original message, so showing that content yet again is redundant (the fallback is there so that non-supporting clients still display some context)

  15. singpolyma

    > i guess if present it would be instead of displaying the content from the message we have I'll admit one of my clients does do this ↺

  16. moparisthebest

    > https://github.com/resonchat-org/resonchat/blob/main/docs/12-peertrans.md ResonChat is currently implementing Peer Message Translation as a supplement to Language Translation (XEP-0171), specifically for use by bots translating content within mucs. If a client does not support the integrated display of peer-translated messages, the translation will appear as a reply to the original message; if the client does support it, the translation will be displayed directly beneath the original message. stevfouk: you don't see any abuse potential here? > Any participant MAY publish a translation of a prior message. > Supporting receivers MUST attach a valid peertrans to the replied-to message. like if I send translations for all your messages as "butts" ↺

  17. projectmoon

    That would be pretty funny. And is actuslly a good point

  18. projectmoon

    I understand the idea behind the peer translation. But would need some kind of signing mechanism?

  19. rsdg

    Is this XEP simply meant to avoid delays in translation? I’m having trouble understanding the use case.

  20. moparisthebest

    > I understand the idea behind the peer translation. But would need some kind of signing mechanism? signing can prove that a certain key signed it, but how does that help here ? ↺

  21. rsdg

    Broadcasting translation results saves cost for others, but I don't see any other point to it.

  22. projectmoon

    It would have to be signed by a key both trust, but that defeats the point of a decentralized translation

  23. projectmoon

    Maybe makes sense if a server translates public mucs, but that's already a srandard

  24. moparisthebest

    > Broadcasting translation results saves cost for others, but I don't see any other point to it. not really, mobile data is way more expensive for me than translating locally whenever I want ↺

  25. rsdg

    > not really, mobile data is way more expensive for me than translating locally whenever I want Receiving these broadcasts still consumes bandwidth, and you might end up receiving many translation messages that you don't actually need. For instance, you might only need a translation in German, but you'll still be sent versions in English, French, and Spanish. ↺

  26. moparisthebest

    yep, and also radio takes a lot of phone battery, conceivably more than a cpu translating on-device

  27. moparisthebest

    a decade ago on-device translation didn't exist so it made sense then

  28. stevfouk

    Peer translation is designed for private translation in resource-constrained scenarios. Translation providers are treated as fully trusted entities and, as such, participate in PQ OMEMO2 encryption. Typically, these providers consist of locally deployed LLMs. It should not be assumed that everyone have the resources to host such heavy services. Furthermore, the broadcast allows professional translators to correct mistakes, ensuring that everyone sees consistent and accurate translation. This automation also saves you the time of having to manually request translations.

  29. leke

    Just add an "Always translate [lang] to [lang]" option, like in Chrome or Firefox. Enabling it would auto-request the translation.

  30. stevfouk

    > I understand the idea behind the peer translation. But would need some kind of signing mechanism? This can only be resolved by admins kicking out such participants. In addition, you can configure ResonChat to trust only bots with admin affiliations, while ignoring translations provided by other participants. ↺

  31. arne-bruen

    > Peer translation is designed for private translation in resource-constrained scenarios. Translation providers are treated as fully trusted entities and, as such, participate in PQ OMEMO2 encryption. Typically, these providers consist of locally deployed LLMs. It should not be assumed that everyone have the resources to host such heavy services. > > Furthermore, the broadcast allows professional translators to correct mistakes, ensuring that everyone sees consistent and accurate translation. This automation also saves you the time of having to manually request translations. Translation providers in E2E encryption? ↺

  32. stevfouk

    > Translation providers in E2E encryption? Yes, we put multiple bodies into the SCE envelope of Monocles PQ OMEMO2 to serve as translation results. ↺

  33. arne-bruen

    So you are sending the translations from the client with PQ OMEMO2? Otherwise I would assume you would need to break the E2EE for a translation provider?

  34. stevfouk

    > So you are sending the translations from the client with PQ OMEMO2? Otherwise I would assume you would need to break the E2EE for a translation provider? Yes, we plan to add PQ OMEMO2 support to our bot for sending translations in E2EE. ResonChat has partial support for PQ OMEMO2 but contains some bugs; the bot has currently only been tested using plaintext. ↺

  35. arne-bruen

    Sorry, maybe I misunderstand it, but isn't this against the concept of E2EE?

  36. arne-bruen

    Anyway happy to see someone else is implementing the PQ OMEMO2

  37. stevfouk

    Isn't OMEMO in MUCs against the concept of E2EE to a certain extent? If translation is must for conversation participants, this may be the most compatible with E2EE, or you might have to let Google know what you said.

  38. alexkurisu

    >> So you are sending the translations from the client with PQ OMEMO2? Otherwise I would assume you would need to break the E2EE for a translation provider? > Yes, we plan to add PQ OMEMO2 support to our bot for sending translations in E2EE. ResonChat has partial support for PQ OMEMO2 but contains some bugs; the bot has currently only been tested using plaintext. Does it use `xml:lang` correctly? I have never seen a client that properly supports those…

  39. leke

    Which XMPP client is currently the most mature and worth using as a reference?

  40. rsdg

    Perhaps it could be set based on the language of the user’s device.

  41. singpolyma

    What what features?

  42. moparisthebest

    > Peer translation is designed for private translation in resource-constrained scenarios. Translation providers are treated as fully trusted entities and, as such, participate in PQ OMEMO2 encryption. Typically, these providers consist of locally deployed LLMs. It should not be assumed that everyone have the resources to host such heavy services. > > Furthermore, the broadcast allows professional translators to correct mistakes, ensuring that everyone sees consistent and accurate translation. This automation also saves you the time of having to manually request translations. stevfouk: you seem to have the misconception that translating locally requires anything but a CPU that everything has ? literally a 20 year old CPU is plenty ↺

  43. moparisthebest

    >> I understand the idea behind the peer translation. But would need some kind of signing mechanism? > This can only be resolved by admins kicking out such participants. In addition, you can configure ResonChat to trust only bots with admin affiliations, while ignoring translations provided by other participants. and admins can know about bad/malicious translations how? and then of course since this says the UI MUST combine them into the original message they have no way to see sender or ban them frankly you don't seem to have thought this through ↺

  44. leke

    It looks like this is a private/internal XEP, so it shouldn't be sent here.

  45. moparisthebest

    I mean the author sent it, presumably because they wanted feedback, seems reasonable before submitting it

  46. moparisthebest

    > Anyway happy to see someone else is implementing the PQ OMEMO2 arne-bruen: speaking of why haven't you submitted a XEP yet ↺

  47. kuyuhi

    it might be somewhat offtopic in xsf@ if there's no intent to submit, but i see no reason it couldn't go here since it _is_ about xmpp development, and private extensions are explicitly supported by the protocol, no?

  48. arne-bruen

    > Anyway happy to see someone else is implementing the PQ OMEMO2 > > arne-bruen: speaking of why haven't you submitted a XEP yet It's not ready yet ↺

  49. moparisthebest

    why not ? "happy to see someone else implementing" implied differently to me

  50. arne-bruen

    It needs several inorovements regarding the mentioning of Libsignal also I didn't have the time yet to prepare yet ✎

  51. arne-bruen

    It needs several improvements regarding the mentioning of Libsignal also I didn't have the time yet to prepare it ✏

  52. arne-bruen

    Though the basis is ready I think

  53. moparisthebest

    submitting a protoxep isn't the last step, you can make improvements after, but nice

  54. arne-bruen

    Right, I'll try to find time in the coming week

  55. leke

    How do you view the requirement in the current XEP-0171 language capability declaration to list each source language → target language pair one by one? Modern translators support mutual translation among 100 languages, which would require 10,000 XML entries.

  56. XEPs Bot

    XEP-0171: *Language Translation* (Stable, last revised 2015-10-15, v1.1.1) https://xmpp.org/extensions/xep-0171.html

  57. arne-bruen

    > submitting a protoxep isn't the last step, you can make improvements after, but nice Someone already reviewed it and couldn't find any gaps but another check could help ↺

  58. rsdg

    It seems this is a very complex issue....

  59. rsdg retracted a previous message, but it's unsupported by your client.

  60. jjj333_p (any pronouns)

    > Which XMPP client is currently the most mature and worth using as a reference? > leke, typically whichever one has the feature you want to implement, preferably with the interpretation of the xep you agree with (looking at you gajim xep0066 ) ↺

  61. XEPs Bot

    XEP-0066: *Out of Band Data* (Stable, last revised 2026-07-08, v1.6) https://xmpp.org/extensions/xep-0066.html