Skip to content

Translatable button #20862

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
antiuser opened this issue Aug 19, 2022 · 2 comments
Closed

Translatable button #20862

antiuser opened this issue Aug 19, 2022 · 2 comments
Labels
type/question Issue needs no code to be fixed, only a description on how to fix it yourself.

Comments

@antiuser
Copy link

Description

Hi! I have Russian language in accout setting in version 1.17.1.
Button "Go to file" not translatable and showing as 'find_file.go_to_file'.

Screenshots

Снимок экрана_2022-08-19_13-53-55

Gitea Version

1.17.1

Can you reproduce the bug on the Gitea demo site?

No

Operating System

No response

Browser Version

Google Chrome 104.0.5112.79

@antiuser antiuser added type/bug topic/ui Change the appearance of the Gitea UI labels Aug 19, 2022
@delvh
Copy link
Member

delvh commented Aug 19, 2022

  1. All our translations are managed on Crowdin.
    If you want, you can improve the translations yourself.
  2. As it appears, there is a proposed translation for this button, but no one has approved it yet.
    Perhaps you should ask in our #russian Discord channel whether someone could approve this translation.
  3. Is the default language of your server Russian? Because I don't know why else the fallback key would be shown instead of the text in the default language...

@delvh delvh closed this as completed Aug 19, 2022
@wxiaoguang
Copy link
Contributor

wxiaoguang commented Aug 19, 2022

If there is no localized translation, the default English will be used. But here the translation key seems lost? Or something else wrong?

It will be fixed by #20834 Although I do not know why the backport is merged without translation.
(sorry, the above seems not related)


Update: it seems that the English key "find_file.go_to_file" exists for 1.17

https://github.com/go-gitea/gitea/blob/release/v1.17/options/locale/locale_en-US.ini#L2286

I would suggest you to check if you are using customized locale resources and whether they are out-dated. For template, the code should be {{.i18n.Tr "repo.find_file.go_to_file"}}", see:

https://github.com/go-gitea/gitea/blob/release/v1.17/templates/repo/home.tmpl#L78

@wxiaoguang wxiaoguang added type/question Issue needs no code to be fixed, only a description on how to fix it yourself. and removed type/bug topic/ui Change the appearance of the Gitea UI labels Aug 19, 2022
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/question Issue needs no code to be fixed, only a description on how to fix it yourself.
Projects
None yet
Development

No branches or pull requests

3 participants