Updated xx days ago displays wrong in other languages than english #859

Closed
opened 2025-11-02 03:39:17 -06:00 by GiteaMirror · 13 comments
Owner

Originally created by @watschi on GitHub (Jul 2, 2017).

Description

When switching to another language than english the last update date gets displayed wrong:
Aktualisiert vor%!(EXTRA string=%s 1 Tag)
I've tried a few different languages with the same result.

It happens in "explore" view aswell as in a repository.

Screenshots

English:
image

German:
image

Spanish (inside a repo):
image

Originally created by @watschi on GitHub (Jul 2, 2017). - Gitea version (or commit ref): f99489d5c522663cfc14b9b65539966844f3ee6b (current master) - Git version: 2.7.4 - Operating system: Ubuntu 16.04 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) https://try.gitea.io/explore/repos - [ ] No - [ ] Not relevant - Log gist: ## Description When switching to another language than english the last update date gets displayed wrong: `Aktualisiert vor%!(EXTRA string=%s 1 Tag)` I've tried a few different languages with the same result. It happens in "explore" view aswell as in a repository. ## Screenshots English: ![image](https://user-images.githubusercontent.com/26351931/27769640-d21e4706-5f2e-11e7-8548-d61271c8423f.png) German: ![image](https://user-images.githubusercontent.com/26351931/27769643-e22f269c-5f2e-11e7-9e05-6b323fe76613.png) Spanish (inside a repo): ![image](https://user-images.githubusercontent.com/26351931/27769664-6bdf6d16-5f2f-11e7-8b18-392b15d21776.png)
GiteaMirror added the modifies/translation label 2025-11-02 03:39:17 -06:00
Author
Owner

@lafriks commented on GitHub (Jul 2, 2017):

It is known issue until we update language files from crowdin. It is work in progress already

@lafriks commented on GitHub (Jul 2, 2017): It is known issue until we update language files from crowdin. It is work in progress already
Author
Owner

@bkcsoft commented on GitHub (Jul 3, 2017):

@lafriks Dont' close the issue until it's fixed. Otherwise we'll just get duplicates 😉

@bkcsoft commented on GitHub (Jul 3, 2017): @lafriks Dont' close the issue until it's fixed. Otherwise we'll just get duplicates 😉
Author
Owner

@bkcsoft commented on GitHub (Jul 3, 2017):

Should be fixed in https://github.com/go-gitea/gitea/pull/2104

@bkcsoft commented on GitHub (Jul 3, 2017): Should be fixed in https://github.com/go-gitea/gitea/pull/2104
Author
Owner

@otih commented on GitHub (Oct 13, 2017):

still open with 1.3.0-dev (a4cd4616c6):
ago%!(EXTRA string=1 year %s)

@otih commented on GitHub (Oct 13, 2017): still open with 1.3.0-dev (a4cd4616c6f8524f8eb79d6184e855b3a8164130): ago%!(EXTRA string=1 year %s)
Author
Owner

@lunny commented on GitHub (Oct 14, 2017):

@otih could you give some example on https://try.gitea.io?

@lunny commented on GitHub (Oct 14, 2017): @otih could you give some example on https://try.gitea.io?
Author
Owner

@otih commented on GitHub (Oct 14, 2017):

https://git.okoyono.de/mezzomix/buch_des_monats

@otih commented on GitHub (Oct 14, 2017): https://git.okoyono.de/mezzomix/buch_des_monats
Author
Owner

@f0086 commented on GitHub (Dec 21, 2017):

Why is this closed? The problem remains. See last post from @otih
Is there some cache to clear?
I've tried the following:

make clean
make update-translations
make build
./gitea web
@f0086 commented on GitHub (Dec 21, 2017): Why is this closed? The problem remains. See last post from @otih Is there some cache to clear? I've tried the following: ``` make clean make update-translations make build ./gitea web ```
Author
Owner

@lafriks commented on GitHub (Dec 21, 2017):

What version are you building?

@lafriks commented on GitHub (Dec 21, 2017): What version are you building?
Author
Owner

@f0086 commented on GitHub (Dec 21, 2017):

git master
I just pulled it 30 minutes ago.

Some hints to debug this would be great to isolate the problem.
(We switched our installation from gogs to gitea if that helps)

@f0086 commented on GitHub (Dec 21, 2017): git master I just pulled it 30 minutes ago. Some hints to debug this would be great to isolate the problem. (We switched our installation from gogs to gitea if that helps)
Author
Owner

@lafriks commented on GitHub (Dec 21, 2017):

That can't be... what language?

@lafriks commented on GitHub (Dec 21, 2017): That can't be... what language?
Author
Owner

@otih commented on GitHub (Dec 21, 2017):

Hi, what do you mean with "what language"? Please check the provided link: https://git.okoyono.de/mezzomix/buch_des_monats

© Gitea Version: 1.1.0+909-g515cdaa8
Go1.8.3

@otih commented on GitHub (Dec 21, 2017): Hi, what do you mean with "what language"? Please check the provided link: https://git.okoyono.de/mezzomix/buch_des_monats © Gitea Version: 1.1.0+909-g515cdaa8 Go1.8.3
Author
Owner

@lunny commented on GitHub (Dec 22, 2017):

@f0086 make update-translations is unnecessary any more.

@lunny commented on GitHub (Dec 22, 2017): @f0086 `make update-translations` is unnecessary any more.
Author
Owner

@lunny commented on GitHub (Dec 22, 2017):

And https://try.gitea.io/lunny/buch_des_monats is OK.

@lunny commented on GitHub (Dec 22, 2017): And https://try.gitea.io/lunny/buch_des_monats is OK.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#859