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

未关闭
#196 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
php
领域
backend

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
PHP
星标
156
派生
37
平均合并
23 小时 51 分钟
30 天内合并 PR
2

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CollaboraOnline/richdocumentscode 的其他 Issue

查看 CollaboraOnline/richdocumentscode 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。