CollaboraOnline / richdocumentscode

Built-in CODE Server app
https://apps.nextcloud.com/apps/richdocumentscode
Apache License 2.0
111 stars 26 forks source link

Default templates not working - blank.ott and blank.dotx #196

Open nooblag opened 1 year ago

nooblag commented 1 year ago

Posting as a suspected bug after this discussion on forum: https://help.nextcloud.com/t/how-to-set-default-language-for-all-collabora-nextcloud-office-files/142762

I am trying to change default template files so that the dictionary/language and default font we desire is set in all new documents.

We have this set in the Nextcloud config.php:

        "default_phone_region": "AU",
        "default_locale": "en_AU",
        "force_locale": "en_AU",
        "default_language": "en",
        "force_language": "en",

It works great. However, Collabora doesn’t seem to follow this, nor is the AU language even available. It always defaults to American English:

de7aaa8c244ee1690167ee772340b8958d9a491e

So I tried adding a Blank.ott file with our desired language and font set in Settings > Office, which appears as a template but does not overwrite the default. "Blank" still appears, as well as our desired "Blank":

e69ad878cb78ae61c5fff3ecc9b38fe2d53e61f9

After more searching, I found the Collabora documentation which states to replace document.ott with our desired template in appdata_[instanceid]/richdocuments/empty_templates/ but that didn’t work either unfortunately. The Blank template does not pick up our desired language and default font in this case either.

We are using Collabora Online - Built-in CODE Server version 22.5.401 and Nextcloud Office 6.1.1 on Nextcloud 24.0.3.

nemphys commented 1 year ago

Same here, any help would be appreciated.