Skip to content

Avoid duplicated "New" wording for direct editing creator labels#17355

Open
ChristianTannheimer wants to merge 3 commits into
nextcloud:masterfrom
ChristianTannheimer:fix/creator-label-duplication
Open

Avoid duplicated "New" wording for direct editing creator labels#17355
ChristianTannheimer wants to merge 3 commits into
nextcloud:masterfrom
ChristianTannheimer:fix/creator-label-duplication

Conversation

@ChristianTannheimer

Copy link
Copy Markdown

Fixes #17354

Problem

ONLYOFFICE-based connectors provide full phrases as Direct Editing creator
names ("Neues Dokument" / "New document"). Prefixing the localized "New"
produces duplicated wording like "Neu Neues Dokument" / "New New document".

Solution

Only apply the prefix when the creator name does not already start with the
localized "New" (case-insensitive); otherwise use the server-provided name
as-is. Entries like "Neu Textdokument" / "Neu Whiteboard" are unaffected.

Note: this is a heuristic — for locales where the inflected "new" doesn't
share the prefix string, behavior simply falls back to the current one, so
there is no regression.

Testing

Built versionDevDebug from rc-34.1.0-01 + this change, tested on a
Samsung Galaxy S25+ against Nextcloud 34.0.1 with the EuroOffice connector
11.0.1 and the official ONLYOFFICE connector 10.1.2.

before
before

after
after

alperozturk96 and others added 3 commits July 16, 2026 15:50
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
…34.1.0-rc1

chore: version bump 34.1.0 RC1
Signed-off-by: Christian Tannheimer <chtannheimer@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants