Missing/Erroneous i18n key #2499

Closed
opened 2025-11-02 04:38:37 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @Etzelia on GitHub (Nov 6, 2018).

  • Gitea version (or commit ref): 078c404
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Create any project on https://try.gitea.io with a README.
When you edit the README (or any other .md file is my guess), the editor shows an un-transformed i18n key.

This link shows the offending key.
I also noticed that the "Preview Changes" tab shows nothing, even if the source is altered.

Since this is a Github clone, my guess is it should look like this

Originally created by @Etzelia on GitHub (Nov 6, 2018). - Gitea version (or commit ref): 078c404 - Git version: - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ## Description Create any project on https://try.gitea.io with a README. When you edit the README (or any other .md file is my guess), the editor shows an un-transformed i18n key. [This link](http://prntscr.com/lf85ig) shows the offending key. I also noticed that the "Preview Changes" tab shows nothing, even if the source is altered. Since this is a Github clone, my guess is it should look [like this](http://prntscr.com/lf8afe)
GiteaMirror added the type/bug label 2025-11-02 04:38:37 -06:00
Author
Owner

@Etzelia commented on GitHub (Nov 6, 2018):

Looks like the issue is here
The first anchor should use the i18n from the second anchor and the second anchor should be removed.

EDIT: I was too quick to make conclusions. Seems that would only work for markdown files. Other files use the other tab. I'll wait for some feedback from people who know it better than I.

@Etzelia commented on GitHub (Nov 6, 2018): Looks like the issue is [here](https://github.com/go-gitea/gitea/blob/master/templates/repo/editor/edit.tmpl#L33-L34) The first anchor should use the i18n from the second anchor and the second anchor should be removed. EDIT: I was too quick to make conclusions. Seems that would only work for markdown files. Other files use the other tab. I'll wait for some feedback from people who know it better than I.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2499