Add missing language variables

Co-authored-by: Michael Barz <mbarz@owncloud.com>
Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
Christian Richter
2024-07-11 15:12:38 +02:00
committed by Michael Barz
parent 0ce6a01874
commit c3ae99dea2
@@ -152,9 +152,14 @@ func (s *Service) OpenInApp(
return "", err
}
lang := utils.ReadPlainFromOpaque(req.GetOpaque(), "lang")
q := u.Query()
q.Add("WOPISrc", wopiSrcURL.String())
q.Add("dchat", "1")
q.Add("ui", lang) // OnlyOffice
q.Add("lang", lang) // Collabora, Impact on the default document language of OnlyOffice
q.Add("UI_LLCC", lang) // Office365
qs := q.Encode()
u.RawQuery = qs