Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

RC 34.1.0-01: Duplicated wording in creation menu — "New" prefix + creator name produces "New New document" ("Neu Neues Dokument")

未关闭 适合新手
#17,354 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@ChristianTannheimer 已经在做这个了。

开始于 2026年7月20日。

  • #17355 来自 @ChristianTannheimer —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
85/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
冷清
技术栈
kotlin
领域
mobile

调研方向

从 OCFileListBottomSheetDialog.kt 中 Direct Editing 创建按钮的 buttonText 构造处开始,然后检查相关的 create_new 和 editor_placeholder 字符串。使用基于 ONLYOFFICE 的 connector 以德语重现 Files 视图菜单,并确认生成的标签不再重复服务器提供的创建者名称,同时单独的类型名称仍会获得预期的前缀。

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

描述

0. Needs triage bug
⚠️ Before posting ⚠️
  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.
Steps to reproduce
  1. Nextcloud 34.0.1 server with an ONLYOFFICE-based connector (reproduced with EuroOffice connector 11.0.1 and official ONLYOFFICE connector 10.1.2).
  2. Android app RC 34.1.0-01, German locale.
  3. Files view → tap "+" ("Hinzufügen zu Nextcloud").
Expected behaviour

Either use the server-provided label as-is ("Neues Dokument"), or apply the prefix only to bare type names ("Textdokument" → "Neu: Textdokument"). A separator ("Neu: …") would also avoid the duplication gracefully for languages where the label already contains "New".

Actual behaviour

Menu entries read (German):

  • "Neu Neues Dokument"
  • "Neu Neue Tabelle"
  • "Neu Neue Präsentation"
  • "Neu Textdokument"
  • "Neu Whiteboard"

The connector's template-type labels are already full names ("Neues Dokument" = "New document"), and the app prepends its own "Neu"/"New" prefix, resulting in "New New document".

Android version

16

Device brand and model

Samsung Galaxy S25+

Stock or custom OS?

Stock

Nextcloud android app version

34.0.1

Nextcloud server version

34.0.1

Using a reverse proxy?

Yes

Android logs

No response

Server error logs

Additional information

Code pointer

The duplication comes from OCFileListBottomSheetDialog.kt, where the button label for Direct Editing creators is built as:

val buttonText = String.format(
    fileActivity.getString(R.string.editor_placeholder),
    fileActivity.getString(R.string.create_new),
    creator.name
)

create_new ("New"/"Neu") is prepended to the server-provided creator.name, which for the ONLYOFFICE-based connectors is already a full phrase ("Neues Dokument" = "New document") — producing "Neu Neues Dokument" / "New New document". (Unchanged between stable-34.0.1 and rc-34.1.0-01; the RC's rework of checkTemplateVisibility() correctly hides the previously broken static template entries, thanks for that.)

  • Connectors: EuroOffice 11.0.1 / ONLYOFFICE 10.1.2 — wording issue identical with both
  • Locale: de_DE / de_AT

Happy to provide screenshots of both stable and RC menus.

A pull request with a proposed fix follows.

Image Image
主要语言
Kotlin
星标
5.6k
派生
2k
平均合并
2 天 18 小时
30 天内合并 PR
111

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

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

nextcloud/android 的其他 Issue

查看 nextcloud/android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

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