-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Error message should have given better error message on what is wrong at least if there is any minimum #3737
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
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
The minimum interval is depending on a setting: gitea/routers/web/repo/setting.go Lines 190 to 203 in 73382d2
and gitea/routers/web/repo/setting.go Lines 319 to 324 in 73382d2
The translation key is gitea/options/locale/locale_en-US.ini Line 864 in 73382d2
I don't know, how to inject a value (the configured minimum interval) there. |
Expecting users to guess the minimum mirror interval appears a little unkind. In this PR we simply change the locale string to include the minimum interval. This will of course be affected by our current localization framework but... we can fix that else where. This PR also includes some fixes for error handling on the settings page as previously the mirror block amongst others would simply disappear on error. Fix go-gitea#3737 Signed-off-by: Andrew Thornton <[email protected]>
* Ensure minimum mirror interval is reported on settings page Expecting users to guess the minimum mirror interval appears a little unkind. In this PR we simply change the locale string to include the minimum interval. This will of course be affected by our current localization framework but... we can fix that else where. This PR also includes some fixes for error handling on the settings page as previously the mirror block amongst others would simply disappear on error. Fix #3737 Signed-off-by: Andrew Thornton <[email protected]> * Update options/locale/locale_en-US.ini Co-authored-by: Gusted <[email protected]> * placate lint Signed-off-by: Andrew Thornton <[email protected]> * Update options/locale/locale_en-US.ini Co-authored-by: wxiaoguang <[email protected]> Co-authored-by: Gusted <[email protected]> Co-authored-by: wxiaoguang <[email protected]> Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: techknowlogick <[email protected]>
Thanks, @zeripath |
…#19895) * Ensure minimum mirror interval is reported on settings page Expecting users to guess the minimum mirror interval appears a little unkind. In this PR we simply change the locale string to include the minimum interval. This will of course be affected by our current localization framework but... we can fix that else where. This PR also includes some fixes for error handling on the settings page as previously the mirror block amongst others would simply disappear on error. Fix go-gitea#3737 Signed-off-by: Andrew Thornton <[email protected]> * Update options/locale/locale_en-US.ini Co-authored-by: Gusted <[email protected]> * placate lint Signed-off-by: Andrew Thornton <[email protected]> * Update options/locale/locale_en-US.ini Co-authored-by: wxiaoguang <[email protected]> Co-authored-by: Gusted <[email protected]> Co-authored-by: wxiaoguang <[email protected]> Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: techknowlogick <[email protected]>
[x]
):https://gist.github.com/boskiv/cffeafcba8dc8b46fa7e095266f1ef25
Description
Changing mirror interval to
5m
, raise non-informal messageMinimum available interval
10m
Screenshots
The text was updated successfully, but these errors were encountered: