RC 34.1.0-01: Duplicated wording in creation menu — "New" prefix + creator name produces "New New document" ("Neu Neues Dokument")
维护者通常 1 天内回复
评估
调研方向
从 OCFileListBottomSheetDialog.kt 中 Direct Editing 创建按钮的 buttonText 构造处开始,然后检查相关的 create_new 和 editor_placeholder 字符串。使用基于 ONLYOFFICE 的 connector 以德语重现 Files 视图菜单,并确认生成的标签不再重复服务器提供的创建者名称,同时单独的类型名称仍会获得预期的前缀。
由索引模型根据 Issue 内容生成。
描述
⚠️ 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
- Nextcloud 34.0.1 server with an ONLYOFFICE-based connector (reproduced with EuroOffice connector 11.0.1 and official ONLYOFFICE connector 10.1.2).
- Android app RC 34.1.0-01, German locale.
- 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.
- 主要语言
- Kotlin
- 星标
- 5.6k
- 派生
- 2k
- 平均合并
- 2 天 18 小时
- 30 天内合并 PR
- 111
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud/android 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 86/100
nextcloud/android#17845 · 2 条评论 ·
维护者通常 1 天内回复
-
[Bug] Lock owned by another client (e.g. Text app) cannot be unlocked from the app可能已有人在做 @falkloewert 于 4 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Modification time is not preserved when uploading MediaStore content via Android share可能已有人在做 @alperozturk96 于 28 天前认领。 未关闭3. to review bug feature: transfers
难度 2/5 1-3 小时 新手友好度 84/100
nextcloud/android#17675 · 4 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
0. Needs triage
难度 2/5 1-3 小时 新手友好度 84/100
nextcloud/android#17533 · 1 条评论 ·
维护者通常 1 天内回复
-
0. Needs triage bug
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
查看 nextcloud/android 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
lugassawan/swe-workbench#823 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 80/100
Droid-Deck/DroidDeck#1355 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
IronCoreLabs/ironcore-alloy#351 ·
-
Lovelace refine Taak
难度 2/5 1-3 小时 新手友好度 72/100
MinBZK/MijnOverheidZakelijk#1383 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
world-federation-of-advertisers/cross-media-measurement#4739 ·
维护者通常 1 天内回复