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

Offen
#196 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
25/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
php
Bereich
backend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
PHP
Sterne
156
Forks
37
Ø Merge
23 Std. 51 Min.
Gemergte PRs (30 T.)
2

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus CollaboraOnline/richdocumentscode

Alle Issues in CollaboraOnline/richdocumentscode

Ähnliche Issues

Weitere Issues zu PHP

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.