diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index de0d26d647..1f778d329b 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1936,18 +1936,23 @@ settings.update_hook_success = The webhook has been updated. settings.delete_webhook = Remove Webhook settings.recent_deliveries = Recent Deliveries settings.hook_type = Hook Type -settings.add_slack_hook_desc = Integrate Slack into your repository. settings.slack_token = Token settings.slack_domain = Domain settings.slack_channel = Channel -settings.add_discord_hook_desc = Integrate Discord into your repository. -settings.add_dingtalk_hook_desc = Integrate Dingtalk into your repository. -settings.add_telegram_hook_desc = Integrate Telegram into your repository. -settings.add_matrix_hook_desc = Integrate Matrix into your repository. -settings.add_msteams_hook_desc = Integrate Microsoft Teams into your repository. -settings.add_feishu_hook_desc = Integrate Feishu into your repository. -settings.add_Wechat_hook_desc = Integrate Wechatwork into your repository. -settings.add_packagist_hook_desc = Integrate Packagist into your repository. +settings.add_web_hook_desc = Integrate %s into your repository. +settings.web_hook_name_gitea = Gitea +settings.web_hook_name_gogs = Gogs +settings.web_hook_name_slack = Slack +settings.web_hook_name_discord = Discord +settings.web_hook_name_dingtalk = DingTalk +settings.web_hook_name_telegram = Telegram +settings.web_hook_name_matrix = Matrix +settings.web_hook_name_msteams = Microsoft Teams +settings.web_hook_name_feishu_or_larksuite = Feishu / Lark Suite +settings.web_hook_name_feishu = Feishu +settings.web_hook_name_larksuite = Lark Suite +settings.web_hook_name_wechatwork = WeCom (Wechat Work) +settings.web_hook_name_packagist = Packagist settings.packagist_username = Packagist username settings.packagist_api_token = API token settings.packagist_package_url = Packagist package URL diff --git a/templates/repo/settings/webhook/base_list.tmpl b/templates/repo/settings/webhook/base_list.tmpl index f16c43bad6..b1a3771bdb 100644 --- a/templates/repo/settings/webhook/base_list.tmpl +++ b/templates/repo/settings/webhook/base_list.tmpl @@ -5,37 +5,37 @@
diff --git a/templates/repo/settings/webhook/dingtalk.tmpl b/templates/repo/settings/webhook/dingtalk.tmpl index 7a82c03eb4..04c63791d8 100644 --- a/templates/repo/settings/webhook/dingtalk.tmpl +++ b/templates/repo/settings/webhook/dingtalk.tmpl @@ -1,5 +1,5 @@ {{if eq .HookType "dingtalk"}} -{{.i18n.Tr "repo.settings.add_dingtalk_hook_desc" "https://dingtalk.com" | Str2html}}
+{{.i18n.Tr "repo.settings.add_web_hook_desc" "https://dingtalk.com" (.i18n.Tr "repo.settings.web_hook_name_dingtalk") | Str2html}}