diff --git a/options/locale/locale_en-US.json b/options/locale/locale_en-US.json index 1abfe647c81..1ed99f724bc 100644 --- a/options/locale/locale_en-US.json +++ b/options/locale/locale_en-US.json @@ -105,6 +105,7 @@ "copy_error": "Copy failed", "copy_type_unsupported": "This file type cannot be copied", "copy_filename": "Copy filename", + "copy_output": "Copy output", "write": "Write", "preview": "Preview", "loading": "Loading…", diff --git a/templates/base/head_script.tmpl b/templates/base/head_script.tmpl index 1f21c5bee53..1a59f87317e 100644 --- a/templates/base/head_script.tmpl +++ b/templates/base/head_script.tmpl @@ -19,13 +19,13 @@ If you introduce mistakes in it, Gitea JavaScript code wouldn't run correctly. sharedWorkerUri: '{{AssetURI "js/eventsource.sharedworker.js"}}', {{/* this global i18n object should only contain general texts. for specialized texts, it should be provided inside the related modules by: (1) API response (2) HTML data-attribute (3) PageData */}} i18n: { - copy_success: {{ctx.Locale.Tr "copy_success"}}, - copy_error: {{ctx.Locale.Tr "copy_error"}}, error_occurred: {{ctx.Locale.Tr "error.occurred"}}, remove_label_str: {{ctx.Locale.Tr "remove_label_str"}}, modal_confirm: {{ctx.Locale.Tr "modal.confirm"}}, modal_cancel: {{ctx.Locale.Tr "modal.cancel"}}, more_items: {{ctx.Locale.Tr "more_items"}}, + copy_success: {{ctx.Locale.Tr "copy_success"}}, + copy_error: {{ctx.Locale.Tr "copy_error"}}, }, }; {{/* in case some pages don't render the pageData, we make sure it is an object to prevent null access */}} diff --git a/templates/repo/actions/view_component.tmpl b/templates/repo/actions/view_component.tmpl index 827c04d1852..95fb1522466 100644 --- a/templates/repo/actions/view_component.tmpl +++ b/templates/repo/actions/view_component.tmpl @@ -36,6 +36,7 @@ data-locale-show-log-seconds="{{ctx.Locale.Tr "show_log_seconds"}}" data-locale-show-full-screen="{{ctx.Locale.Tr "show_full_screen"}}" data-locale-download-logs="{{ctx.Locale.Tr "download_logs"}}" + data-locale-copy-output="{{ctx.Locale.Tr "copy_output"}}" data-locale-logs-always-auto-scroll="{{ctx.Locale.Tr "actions.logs.always_auto_scroll"}}" data-locale-logs-always-expand-running="{{ctx.Locale.Tr "actions.logs.always_expand_running"}}" > diff --git a/templates/repo/issue/view_content/context_menu.tmpl b/templates/repo/issue/view_content/context_menu.tmpl index e28d20a2716..d3c2f8932e4 100644 --- a/templates/repo/issue/view_content/context_menu.tmpl +++ b/templates/repo/issue/view_content/context_menu.tmpl @@ -3,13 +3,13 @@ {{svg "octicon-kebab-horizontal"}}