Skip to content

The template parsing of the Sync fork prompt bar is abnormal in Chinese #33931

Closed
@imkuang

Description

@imkuang

Description

When there is a difference between the forked repo and the upstream repo, Gitea will display a Sync fork prompt.
I noticed that in some repo, there is a suspected template parsing error in the Chinese prompt, for example:

Image

If I switch the language to English the problem does not exist, I guess it might be a bug in the translation template?

Image

The problem does not seem to occur in all repositories and all branches, but I can definitely reproduce the problem by doing the following:

  1. Mirror the openwrt repo ( https://git.openwrt.org/openwrt/openwrt.git ) to an Organization
  2. Fork it to your own account
  3. Create new branch from openwrt-24.10, then you will be able to see this error on the newly created branch (remember to switch the language to Chinese)

Gitea Version

1.23.5

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Debian

How are you running Gitea?

Official Docker image

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions