nextcloud/richdocuments

Language Parameter Not Provided To Collabora Conversion API

開放

#5,165 建立於 2025年11月12日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (145 個分叉)auto 404
1. to developbuggood first issue

倉庫指標

星標
 (452 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Please update me when this is fixed, as it annoyed users in my cloud env - with me being unable to fix it without studying all the code and APIs.

copy from issue: https://github.com/CollaboraOnline/online/issues/12773

I think its a bug or smth like that.
Where does collabora pull the language and locale for nextcloud folder view -> right click -> save as pdf from? 
Seemingly, no language or locale setting works!
Your forum is so utterly broken, one is unable to even post images or links properly.


how to test?

1. open test.xlsx
3. go to insert & click on header/footer
5. put the datetime top right (right area); custom format
7. you see the format as your set language in nextcloud! keep that in mind
9. now close the document, click right click on it in nextcloud folder view and click on save as → export as pdf
11. Check the exported pdf’s date (click on it for preview). It shows the wrong date format

https://forum.collaboraonline.com/t/asap-language-settings-calc-documents-xslx-save-as-pdf-locale-setting/3990

Version is v24.04.10.1.1 collabora/code

answer by maintainers (?)

Collabora Online's [Conversion API](https://sdk.collaboraonline.com/docs/conversion_api.html) can take language parameter. But Nextcloud's richdocuments app does not send it.
This works as expected.

curl -k -F "data=@datum.xlsx" -F "lang=de-DE" http://localhost:9980/cool/convert-to/pdf > datum.pdf
So this is a richdocuments bug after all.
cc @elzody

by @timar see https://github.com/CollaboraOnline/online/issues/12773#issuecomment-3291759719

貢獻者指南