-
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.✎ -
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. ✏
-
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
-
jjj333_p (any pronouns)
(tbf im not entirely sure how it would work, just thinking out loud mostly)
-
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)
-
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)
-
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 ↺
-
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
-
jjj333_p (any pronouns)
(like you could click it to jump and whatnot)✎ -
jjj333_p (any pronouns)
(like you could still click it to jump and whatnot) ✏
-
singpolyma
You can do whatever you want but if it's in the fallback range I expect that to be redundant
-
jjj333_p (any pronouns)
i guess if present it would be instead of displaying the content from the message we have
-
jjj333_p (any pronouns)
idk it might not stick, its just an idea i was playing with
-
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)
-
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 ↺
-
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" ↺
-
projectmoon
That would be pretty funny. And is actuslly a good point
-
projectmoon
I understand the idea behind the peer translation. But would need some kind of signing mechanism?
-
rsdg
Is this XEP simply meant to avoid delays in translation? I’m having trouble understanding the use case.
-
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 ? ↺
-
rsdg
Broadcasting translation results saves cost for others, but I don't see any other point to it.
-
projectmoon
It would have to be signed by a key both trust, but that defeats the point of a decentralized translation
-
projectmoon
Maybe makes sense if a server translates public mucs, but that's already a srandard
-
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 ↺
-
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. ↺
-
moparisthebest
yep, and also radio takes a lot of phone battery, conceivably more than a cpu translating on-device
-
moparisthebest
a decade ago on-device translation didn't exist so it made sense then
-
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.
-
leke
Just add an "Always translate [lang] to [lang]" option, like in Chrome or Firefox. Enabling it would auto-request the translation.
-
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. ↺
-
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? ↺
-
stevfouk
> Translation providers in E2E encryption? Yes, we put multiple bodies into the SCE envelope of Monocles PQ OMEMO2 to serve as translation results. ↺
-
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?
-
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. ↺
-
arne-bruen
Sorry, maybe I misunderstand it, but isn't this against the concept of E2EE?
-
arne-bruen
Anyway happy to see someone else is implementing the PQ OMEMO2
-
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.
-
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…
-
leke
Which XMPP client is currently the most mature and worth using as a reference?
-
rsdg
Perhaps it could be set based on the language of the user’s device.
-
singpolyma
What what features?
-
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 ↺
-
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 ↺
-
leke
It looks like this is a private/internal XEP, so it shouldn't be sent here.
-
moparisthebest
I mean the author sent it, presumably because they wanted feedback, seems reasonable before submitting it
-
moparisthebest
> Anyway happy to see someone else is implementing the PQ OMEMO2 arne-bruen: speaking of why haven't you submitted a XEP yet ↺
-
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?
-
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 ↺
-
moparisthebest
why not ? "happy to see someone else implementing" implied differently to me
-
arne-bruen
It needs several inorovements regarding the mentioning of Libsignal also I didn't have the time yet to prepare yet✎ -
arne-bruen
It needs several improvements regarding the mentioning of Libsignal also I didn't have the time yet to prepare it ✏
-
arne-bruen
Though the basis is ready I think
-
moparisthebest
submitting a protoxep isn't the last step, you can make improvements after, but nice
-
arne-bruen
Right, I'll try to find time in the coming week
-
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.
-
XEPs Bot
XEP-0171: *Language Translation* (Stable, last revised 2015-10-15, v1.1.1) https://xmpp.org/extensions/xep-0171.html
-
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 ↺
-
rsdg
It seems this is a very complex issue....
- rsdg retracted a previous message, but it's unsupported by your client.
-
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 ) ↺
-
XEPs Bot
XEP-0066: *Out of Band Data* (Stable, last revised 2026-07-08, v1.6) https://xmpp.org/extensions/xep-0066.html