-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Optimize installation-page experience #32558
Conversation
* giteaofficial/main: Remove duplicate empty repo check in delete branch API (go-gitea#32569) Optimize installation-page experience (go-gitea#32558) Remove unnecessary code (go-gitea#32560) Fix a compilation error in the Gitpod environment (go-gitea#32559) Use user.FullName in Oauth2 id_token response (go-gitea#32542) Fix some places which doesn't repsect org full name setting (go-gitea#32243) Refactor push mirror find and add check for updating push mirror (go-gitea#32539) Refactor markup render system (go-gitea#32533) Refactor find forks and fix possible bugs that weak permissions check (go-gitea#32528) Use better name for userinfo structure (go-gitea#32544)
@@ -352,6 +352,7 @@ enable_update_checker = Enable Update Checker | |||
enable_update_checker_helper = Checks for new version releases periodically by connecting to gitea.io. | |||
env_config_keys = Environment Configuration | |||
env_config_keys_prompt = The following environment variables will also be applied to your configuration file: | |||
config_write_file_prompt = These configuration options will be written into: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make it translatable ,it should be These .. into: %s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lines 341 to 342 in cd598bf
{{ctx.Locale.Tr "install.config_write_file_prompt"}} <span class="ui label">{{.CustomConfFile}}</span> <button class="btn interact-fg" data-clipboard-text="{{.CustomConfFile}}">{{svg "octicon-copy" 14}}</button> | |
</div> |
I'm not sure if I understand correctly; The file path has already been changed into an element node, so it's not suitable to be passed as a placeholder to config_write_file_prompt
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{{$html := HTMLFormat `<label>%s</label>` .CustomConfFile}}
{{ctx.Locale.Tr `tip` $html}}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand the necessity of doing it this way now. I'll make the changes right away. Thank you for your reminder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you were doing i18n, then it needs to make it translatable for all languages, many languages do not use "A: b" syntax.
Otherwise, keep it in English if it doesn't matter (that's why I didn't translate it)
Thank you for @wxiaoguang's reminders and suggestions: #32558 (comment)
* giteaofficial/main: Add line-through for deleted branch on pull request view page (go-gitea#32500) Fix issue sidebar regression (go-gitea#32598) Fix PR diff review form submit (go-gitea#32596) Fix some typescript issues (go-gitea#32586) Fix GetInactiveUsers (go-gitea#32540) disable gravatar in test (go-gitea#32529) Add 'Copy path' button to file view (go-gitea#32584) Improve issue sidebar UI (go-gitea#32587) Supplement and Improvement for go-gitea#32558 (go-gitea#32585) make search box in issue sidebar dropdown list always show when scrolling (go-gitea#32576) Fix submodule parsing (go-gitea#32571) allow the actions user to login via the jwt token (go-gitea#32527) Support HTTP POST requests to `/userinfo`, aligning to OpenID Core specification (go-gitea#32578)
Highlight the path of the configuration file with a label-style emphasis and provide a quick copy button.