diff --git a/app/views/shared/_auto_devops_callout.html.haml b/app/views/shared/_auto_devops_callout.html.haml index 128508e954efdf235817e82b333a59acd999020c..bf1683be32de864f00bbc98886ce08b3a22faa79 100644 --- a/app/views/shared/_auto_devops_callout.html.haml +++ b/app/views/shared/_auto_devops_callout.html.haml @@ -11,5 +11,5 @@ = link_to s_('AutoDevOps|Enable in settings'), project_settings_ci_cd_path(@project, anchor: 'autodevops-settings'), class: 'btn btn-md new-gl-button js-close-callout' %button.gl-banner-close.close.js-close-callout{ type: 'button', - 'aria-label' => 'Dismiss Auto DevOps box' } + 'aria-label' => s_('AutoDevOps|Dismiss Auto DevOps box') } = icon('times', class: 'dismiss-icon', 'aria-hidden' => 'true') diff --git a/app/views/shared/_clone_panel.html.haml b/app/views/shared/_clone_panel.html.haml index 3e805189055d7c991c6e0bc8ff46681e3579b257..9ec8d3c18cd170be53cf8fd9339c40013e096a30 100644 --- a/app/views/shared/_clone_panel.html.haml +++ b/app/views/shared/_clone_panel.html.haml @@ -18,7 +18,7 @@ = http_clone_button(project) = render_if_exists 'shared/kerberos_clone_button', project: project - = text_field_tag :project_clone, default_url_to_repo(project), class: "js-select-on-focus form-control", readonly: true, aria: { label: 'Project clone URL' } + = text_field_tag :project_clone, default_url_to_repo(project), class: "js-select-on-focus form-control", readonly: true, aria: { label: _('Project clone URL') } .input-group-append = clipboard_button(target: '#project_clone', title: _("Copy URL"), class: "input-group-text btn-default btn-clipboard") diff --git a/app/views/shared/_mini_pipeline_graph.html.haml b/app/views/shared/_mini_pipeline_graph.html.haml index a1f21c2a83eb2fb6d551987008db0750b2398503..172f3d854724ec3eaf753697a927cc44b6c078f0 100644 --- a/app/views/shared/_mini_pipeline_graph.html.haml +++ b/app/views/shared/_mini_pipeline_graph.html.haml @@ -14,4 +14,4 @@ %li.js-builds-dropdown-loading.hidden .loading-container.text-center - %span.spinner{ 'aria-label': 'Loading' } + %span.spinner{ 'aria-label': _('Loading') } diff --git a/app/views/shared/_no_ssh.html.haml b/app/views/shared/_no_ssh.html.haml index fbfd4d0e9a92a4e13bf11fde99dff83b42efce43..2b04e3e1c98d15ae04266cd37d3f6efc7340b750 100644 --- a/app/views/shared/_no_ssh.html.haml +++ b/app/views/shared/_no_ssh.html.haml @@ -1,7 +1,7 @@ - if show_no_ssh_key_message? %div{ class: 'no-ssh-key-message gl-alert gl-alert-warning', role: 'alert' } = sprite_icon('warning', size: 16, css_class: 'gl-icon s16 gl-alert-icon gl-alert-icon-no-title') - %button{ class: 'gl-alert-dismiss hide-no-ssh-message', type: 'button', 'aria-label': 'Dismiss' } + %button{ class: 'gl-alert-dismiss hide-no-ssh-message', type: 'button', 'aria-label': _('Dismiss') } = sprite_icon('close', size: 16, css_class: 'gl-icon s16') .gl-alert-body = s_("MissingSSHKeyWarningLink|You won't be able to pull or push project code via SSH until you add an SSH key to your profile").html_safe diff --git a/changelogs/unreleased/22691-externelize-i18n-strings-from---app-views-shared--aria-label.yml b/changelogs/unreleased/22691-externelize-i18n-strings-from---app-views-shared--aria-label.yml new file mode 100644 index 0000000000000000000000000000000000000000..be6007eab6dde401d8b5afe18e3fd25e1f84f11b --- /dev/null +++ b/changelogs/unreleased/22691-externelize-i18n-strings-from---app-views-shared--aria-label.yml @@ -0,0 +1,5 @@ +--- +title: Externalize i18n aria-label strings from ./app/views/shared/* +merge_request: 32142 +author: Gilang Gumilar +type: changed diff --git a/locale/gitlab.pot b/locale/gitlab.pot index 90ba70c6964b25af384802274ff771e15d2e950a..1041a4119b9b2aa7cc9931d9835ff2fa069c18d4 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -2975,6 +2975,9 @@ msgstr "" msgid "AutoDevOps|Auto DevOps documentation" msgstr "" +msgid "AutoDevOps|Dismiss Auto DevOps box" +msgstr "" + msgid "AutoDevOps|Enable in settings" msgstr "" @@ -16267,6 +16270,9 @@ msgstr "" msgid "Project cannot be shared with the group it is in or one of its ancestors." msgstr "" +msgid "Project clone URL" +msgstr "" + msgid "Project configuration, including services" msgstr ""