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

Aperta
#196 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php
Ambito
backend

Direzione di ricerca

Start with the linked Collabora templates documentation and check how appdata_[instanceid]/richdocuments/empty_templates/document.ott is used. The report says replacing that template did not change the default Blank document, and adding Blank.ott created a separate template instead. Done means new blank documents use the desired language and font; the issue does not identify code files or tests to run.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
PHP
Stelle
156
Fork
37
Merge medio
23h 51m
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CollaboraOnline/richdocumentscode

Tutte le issue di CollaboraOnline/richdocumentscode

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.