Commit b639d939 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch 'ee-twang2218/gitlab-ce-i18n-extract-app/views/search' into 'master'

[EE] i18n: externalize strings from 'app/views/search'

See merge request gitlab-org/gitlab-ee!9113
parents 6e54f823 9be9787d
...@@ -6,91 +6,91 @@ ...@@ -6,91 +6,91 @@
- if project_search_tabs?(:blobs) - if project_search_tabs?(:blobs)
%li{ class: active_when(@scope == 'blobs') } %li{ class: active_when(@scope == 'blobs') }
= link_to search_filter_path(scope: 'blobs') do = link_to search_filter_path(scope: 'blobs') do
Code = _("Code")
%span.badge.badge-pill %span.badge.badge-pill
= @search_results.blobs_count = @search_results.blobs_count
- if project_search_tabs?(:issues) - if project_search_tabs?(:issues)
%li{ class: active_when(@scope == 'issues') } %li{ class: active_when(@scope == 'issues') }
= link_to search_filter_path(scope: 'issues') do = link_to search_filter_path(scope: 'issues') do
Issues = _("Issues")
%span.badge.badge-pill %span.badge.badge-pill
= limited_count(@search_results.limited_issues_count) = limited_count(@search_results.limited_issues_count)
- if project_search_tabs?(:merge_requests) - if project_search_tabs?(:merge_requests)
%li{ class: active_when(@scope == 'merge_requests') } %li{ class: active_when(@scope == 'merge_requests') }
= link_to search_filter_path(scope: 'merge_requests') do = link_to search_filter_path(scope: 'merge_requests') do
Merge requests = _("Merge requests")
%span.badge.badge-pill %span.badge.badge-pill
= limited_count(@search_results.limited_merge_requests_count) = limited_count(@search_results.limited_merge_requests_count)
- if project_search_tabs?(:milestones) - if project_search_tabs?(:milestones)
%li{ class: active_when(@scope == 'milestones') } %li{ class: active_when(@scope == 'milestones') }
= link_to search_filter_path(scope: 'milestones') do = link_to search_filter_path(scope: 'milestones') do
Milestones = _("Milestones")
%span.badge.badge-pill %span.badge.badge-pill
= limited_count(@search_results.limited_milestones_count) = limited_count(@search_results.limited_milestones_count)
- if project_search_tabs?(:notes) - if project_search_tabs?(:notes)
%li{ class: active_when(@scope == 'notes') } %li{ class: active_when(@scope == 'notes') }
= link_to search_filter_path(scope: 'notes') do = link_to search_filter_path(scope: 'notes') do
Comments = _("Comments")
%span.badge.badge-pill %span.badge.badge-pill
= limited_count(@search_results.limited_notes_count) = limited_count(@search_results.limited_notes_count)
- if project_search_tabs?(:wiki) - if project_search_tabs?(:wiki)
%li{ class: active_when(@scope == 'wiki_blobs') } %li{ class: active_when(@scope == 'wiki_blobs') }
= link_to search_filter_path(scope: 'wiki_blobs') do = link_to search_filter_path(scope: 'wiki_blobs') do
Wiki = _("Wiki")
%span.badge.badge-pill %span.badge.badge-pill
= @search_results.wiki_blobs_count = @search_results.wiki_blobs_count
- if project_search_tabs?(:commits) - if project_search_tabs?(:commits)
%li{ class: active_when(@scope == 'commits') } %li{ class: active_when(@scope == 'commits') }
= link_to search_filter_path(scope: 'commits') do = link_to search_filter_path(scope: 'commits') do
Commits = _("Commits")
%span.badge.badge-pill %span.badge.badge-pill
= @search_results.commits_count = @search_results.commits_count
- elsif @show_snippets - elsif @show_snippets
%li{ class: active_when(@scope == 'snippet_blobs') } %li{ class: active_when(@scope == 'snippet_blobs') }
= link_to search_filter_path(scope: 'snippet_blobs', snippets: true, group_id: nil, project_id: nil) do = link_to search_filter_path(scope: 'snippet_blobs', snippets: true, group_id: nil, project_id: nil) do
Snippet Contents = _("Snippet Contents")
%span.badge.badge-pill %span.badge.badge-pill
= @search_results.snippet_blobs_count = @search_results.snippet_blobs_count
%li{ class: active_when(@scope == 'snippet_titles') } %li{ class: active_when(@scope == 'snippet_titles') }
= link_to search_filter_path(scope: 'snippet_titles', snippets: true, group_id: nil, project_id: nil) do = link_to search_filter_path(scope: 'snippet_titles', snippets: true, group_id: nil, project_id: nil) do
Titles and Filenames = _("Titles and Filenames")
%span.badge.badge-pill %span.badge.badge-pill
= @search_results.snippet_titles_count = @search_results.snippet_titles_count
- else - else
%li{ class: active_when(@scope == 'projects') } %li{ class: active_when(@scope == 'projects') }
= link_to search_filter_path(scope: 'projects') do = link_to search_filter_path(scope: 'projects') do
Projects = _("Projects")
%span.badge.badge-pill %span.badge.badge-pill
= limited_count(@search_results.limited_projects_count) = limited_count(@search_results.limited_projects_count)
%li{ class: active_when(@scope == 'issues') } %li{ class: active_when(@scope == 'issues') }
= link_to search_filter_path(scope: 'issues') do = link_to search_filter_path(scope: 'issues') do
Issues = _("Issues")
%span.badge.badge-pill %span.badge.badge-pill
= limited_count(@search_results.limited_issues_count) = limited_count(@search_results.limited_issues_count)
%li{ class: active_when(@scope == 'merge_requests') } %li{ class: active_when(@scope == 'merge_requests') }
= link_to search_filter_path(scope: 'merge_requests') do = link_to search_filter_path(scope: 'merge_requests') do
Merge requests = _("Merge requests")
%span.badge.badge-pill %span.badge.badge-pill
= limited_count(@search_results.limited_merge_requests_count) = limited_count(@search_results.limited_merge_requests_count)
%li{ class: active_when(@scope == 'milestones') } %li{ class: active_when(@scope == 'milestones') }
= link_to search_filter_path(scope: 'milestones') do = link_to search_filter_path(scope: 'milestones') do
Milestones = _("Milestones")
%span.badge.badge-pill %span.badge.badge-pill
= limited_count(@search_results.limited_milestones_count) = limited_count(@search_results.limited_milestones_count)
- if Gitlab::CurrentSettings.elasticsearch_search? - if Gitlab::CurrentSettings.elasticsearch_search?
%li{ class: active_when(@scope == 'blobs') } %li{ class: active_when(@scope == 'blobs') }
= link_to search_filter_path(scope: 'blobs') do = link_to search_filter_path(scope: 'blobs') do
Code = _("Code")
%span.badge.badge-pill %span.badge.badge-pill
= limited_count(@search_results.blobs_count) = limited_count(@search_results.blobs_count)
%li{ class: active_when(@scope == 'commits') } %li{ class: active_when(@scope == 'commits') }
= link_to search_filter_path(scope: 'commits') do = link_to search_filter_path(scope: 'commits') do
Commits = _("Commits")
%span.badge.badge-pill %span.badge.badge-pill
= limited_count(@search_results.commits_count) = limited_count(@search_results.commits_count)
%li{ class: active_when(@scope == 'wiki_blobs') } %li{ class: active_when(@scope == 'wiki_blobs') }
= link_to search_filter_path(scope: 'wiki_blobs') do = link_to search_filter_path(scope: 'wiki_blobs') do
Wiki = _("Wiki")
%span.badge.badge-pill %span.badge.badge-pill
= limited_count(@search_results.wiki_blobs_count) = limited_count(@search_results.wiki_blobs_count)
...@@ -3,31 +3,31 @@ ...@@ -3,31 +3,31 @@
- if params[:project_id].present? - if params[:project_id].present?
= hidden_field_tag :project_id, params[:project_id] = hidden_field_tag :project_id, params[:project_id]
.dropdown .dropdown
%button.dropdown-menu-toggle.js-search-group-dropdown{ type: "button", data: { toggle: "dropdown", default_label: "Group:", group_id: params[:group_id] } } %button.dropdown-menu-toggle.js-search-group-dropdown{ type: "button", data: { toggle: "dropdown", default_label: _('Group:'), group_id: params[:group_id] } }
%span.dropdown-toggle-text %span.dropdown-toggle-text
Group: = _("Group:")
- if @group.present? - if @group.present?
= @group.name = @group.name
- else - else
Any = _("Any")
= icon("chevron-down") = icon("chevron-down")
.dropdown-menu.dropdown-select.dropdown-menu-selectable.dropdown-menu-right .dropdown-menu.dropdown-select.dropdown-menu-selectable.dropdown-menu-right
= dropdown_title("Filter results by group") = dropdown_title(_("Filter results by group"))
= dropdown_filter("Search groups") = dropdown_filter(_("Search groups"))
= dropdown_content = dropdown_content
= dropdown_loading = dropdown_loading
.dropdown.project-filter .dropdown.project-filter
%button.dropdown-menu-toggle.js-search-project-dropdown{ type: "button", data: { toggle: "dropdown", default_label: "Project:" } } %button.dropdown-menu-toggle.js-search-project-dropdown{ type: "button", data: { toggle: "dropdown", default_label: _('Project:') } }
%span.dropdown-toggle-text %span.dropdown-toggle-text
Project: = _("Project:")
- if @project.present? - if @project.present?
= @project.full_name = @project.full_name
- else - else
Any = _("Any")
= icon("chevron-down") = icon("chevron-down")
.dropdown-menu.dropdown-select.dropdown-menu-selectable.dropdown-menu-right .dropdown-menu.dropdown-select.dropdown-menu-selectable.dropdown-menu-right
= dropdown_title("Filter results by project") = dropdown_title(_("Filter results by project"))
= dropdown_filter("Search projects") = dropdown_filter(_("Search projects"))
= dropdown_content = dropdown_content
= dropdown_loading = dropdown_loading
...@@ -4,15 +4,15 @@ ...@@ -4,15 +4,15 @@
.search-holder .search-holder
.search-field-holder .search-field-holder
= search_field_tag :search, params[:search], placeholder: "Search for projects, issues etc", class: "form-control search-text-input js-search-input", id: "dashboard_search", autofocus: true, spellcheck: false = search_field_tag :search, params[:search], placeholder: _("Search for projects, issues, etc."), class: "form-control search-text-input js-search-input", id: "dashboard_search", autofocus: true, spellcheck: false
= icon("search", class: "search-icon") = icon("search", class: "search-icon")
%button.search-clear.js-search-clear{ class: ("hidden" if !params[:search].present?), type: "button", tabindex: "-1" } %button.search-clear.js-search-clear{ class: ("hidden" if !params[:search].present?), type: "button", tabindex: "-1" }
= icon("times-circle") = icon("times-circle")
%span.sr-only %span.sr-only
Clear search = _("Clear search")
- unless params[:snippets].eql? 'true' - unless params[:snippets].eql? 'true'
= render 'filter' = render 'filter'
= button_tag "Search", class: "btn btn-success btn-search" = button_tag _("Search"), class: "btn btn-success btn-search"
- if Gitlab::CurrentSettings.elasticsearch_search? - if Gitlab::CurrentSettings.elasticsearch_search?
.form-text.text-muted .form-text.text-muted
= link_to 'Advanced search functionality', help_page_path('user/search/advanced_search_syntax.md'), target: '_blank' = link_to 'Advanced search functionality', help_page_path('user/search/advanced_search_syntax.md'), target: '_blank'
......
...@@ -7,9 +7,11 @@ ...@@ -7,9 +7,11 @@
= search_entries_info(@search_objects, @scope, @search_term) = search_entries_info(@search_objects, @scope, @search_term)
- unless @show_snippets - unless @show_snippets
- if @project - if @project
in project #{link_to @project.full_name, [@project.namespace.becomes(Namespace), @project]} - link_to_project = link_to(@project.full_name, [@project.namespace.becomes(Namespace), @project])
= _("in project %{link_to_project}").html_safe % { link_to_project: link_to_project }
- elsif @group - elsif @group
in group #{link_to @group.name, @group} - link_to_group = link_to(@group.name, @group)
= _("in group %{link_to_group}").html_safe % { link_to_group: link_to_group }
= render 'shared/promotions/promote_advanced_search' = render 'shared/promotions/promote_advanced_search'
.results.prepend-top-10 .results.prepend-top-10
- if @scope == 'commits' - if @scope == 'commits'
......
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
.search_glyph .search_glyph
%h4 %h4
= icon('search') = icon('search')
We couldn't find any results matching = _("We couldn't find any results matching")
%code= @search_term %code= @search_term
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
= link_to [issue.project.namespace.becomes(Namespace), issue.project, issue] do = link_to [issue.project.namespace.becomes(Namespace), issue.project, issue] do
%span.term.str-truncated= issue.title %span.term.str-truncated= issue.title
- if issue.closed? - if issue.closed?
%span.badge.badge-danger.prepend-left-5 Closed %span.badge.badge-danger.prepend-left-5= _("Closed")
.float-right ##{issue.iid} .float-right ##{issue.iid}
- if issue.description.present? - if issue.description.present?
.description.term .description.term
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
= link_to [merge_request.target_project.namespace.becomes(Namespace), merge_request.target_project, merge_request] do = link_to [merge_request.target_project.namespace.becomes(Namespace), merge_request.target_project, merge_request] do
%span.term.str-truncated= merge_request.title %span.term.str-truncated= merge_request.title
- if merge_request.merged? - if merge_request.merged?
%span.badge.badge-primary.prepend-left-5 Merged %span.badge.badge-primary.prepend-left-5= _("Merged")
- elsif merge_request.closed? - elsif merge_request.closed?
%span.badge.badge-danger.prepend-left-5 Closed %span.badge.badge-danger.prepend-left-5= _("Closed")
.float-right= merge_request.to_reference .float-right= merge_request.to_reference
- if merge_request.description.present? - if merge_request.description.present?
.description.term .description.term
......
...@@ -6,14 +6,14 @@ ...@@ -6,14 +6,14 @@
%h5.note-search-caption.str-truncated %h5.note-search-caption.str-truncated
%i.fa.fa-comment %i.fa.fa-comment
= link_to_member(project, note.author, avatar: false) = link_to_member(project, note.author, avatar: false)
commented on - link_to_project = link_to(project.full_name, project)
= link_to project.full_name, project = _("commented on %{link_to_project}").html_safe % { link_to_project: link_to_project }
· ·
- if note.for_commit? - if note.for_commit?
= link_to_if(noteable_identifier, "Commit #{truncate_sha(note.commit_id)}", note_url) do = link_to_if(noteable_identifier, _("Commit %{commit_id}") % { commit_id: truncate_sha(note.commit_id) }, note_url) do
= truncate_sha(note.commit_id) = truncate_sha(note.commit_id)
%span.light Commit deleted %span.light= _("Commit deleted")
- else - else
%span #{note.noteable_type.titleize} ##{noteable_identifier} %span #{note.noteable_type.titleize} ##{noteable_identifier}
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
= markup(snippet.file_name, chunk[:data], legacy_render_context(params)) = markup(snippet.file_name, chunk[:data], legacy_render_context(params))
- else - else
.file-content.code .file-content.code
.nothing-here-block Empty file .nothing-here-block= _("Empty file")
- else - else
.file-content.code.js-syntax-highlight .file-content.code.js-syntax-highlight
.line-numbers .line-numbers
...@@ -42,4 +42,4 @@ ...@@ -42,4 +42,4 @@
= highlight(snippet.file_name, chunk[:data]) = highlight(snippet.file_name, chunk[:data])
- else - else
.file-content.code .file-content.code
.nothing-here-block Empty file .nothing-here-block= _("Empty file")
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
- if snippet_title.private? - if snippet_title.private?
%span.badge.badge-gray %span.badge.badge-gray
%i.fa.fa-lock %i.fa.fa-lock
private = _("private")
%span.cgray.monospace.tiny.float-right.term %span.cgray.monospace.tiny.float-right.term
= snippet_title.file_name = snippet_title.file_name
......
- @hide_top_links = true - @hide_top_links = true
- breadcrumb_title "Search" - breadcrumb_title _("Search")
- page_title @search_term - page_title @search_term
.prepend-top-default .prepend-top-default
......
---
title: 'i18n: externalize strings from ''app/views/search'''
merge_request: 24297
author: Tao Wang
type: other
...@@ -2290,6 +2290,9 @@ msgstr "" ...@@ -2290,6 +2290,9 @@ msgstr ""
msgid "ClusterIntegration|sign up" msgid "ClusterIntegration|sign up"
msgstr "" msgstr ""
msgid "Code"
msgstr ""
msgid "Code owners" msgid "Code owners"
msgstr "" msgstr ""
...@@ -2331,9 +2334,15 @@ msgid_plural "Commits" ...@@ -2331,9 +2334,15 @@ msgid_plural "Commits"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
msgid "Commit %{commit_id}"
msgstr ""
msgid "Commit Message" msgid "Commit Message"
msgstr "" msgstr ""
msgid "Commit deleted"
msgstr ""
msgid "Commit duration in minutes for last 30 commits" msgid "Commit duration in minutes for last 30 commits"
msgstr "" msgstr ""
...@@ -3851,6 +3860,12 @@ msgstr "" ...@@ -3851,6 +3860,12 @@ msgstr ""
msgid "Filter by two-factor authentication" msgid "Filter by two-factor authentication"
msgstr "" msgstr ""
msgid "Filter results by group"
msgstr ""
msgid "Filter results by project"
msgstr ""
msgid "Filter..." msgid "Filter..."
msgstr "" msgstr ""
...@@ -7025,6 +7040,9 @@ msgstr "" ...@@ -7025,6 +7040,9 @@ msgstr ""
msgid "Project slug" msgid "Project slug"
msgstr "" msgstr ""
msgid "Project:"
msgstr ""
msgid "ProjectActivityRSS|Subscribe" msgid "ProjectActivityRSS|Subscribe"
msgstr "" msgstr ""
...@@ -7833,6 +7851,9 @@ msgstr "" ...@@ -7833,6 +7851,9 @@ msgstr ""
msgid "Search for projects, issues, etc." msgid "Search for projects, issues, etc."
msgstr "" msgstr ""
msgid "Search groups"
msgstr ""
msgid "Search merge requests" msgid "Search merge requests"
msgstr "" msgstr ""
...@@ -8291,6 +8312,9 @@ msgstr "" ...@@ -8291,6 +8312,9 @@ msgstr ""
msgid "Smartcard authentication failed: client certificate header is missing." msgid "Smartcard authentication failed: client certificate header is missing."
msgstr "" msgstr ""
msgid "Snippet Contents"
msgstr ""
msgid "Snippets" msgid "Snippets"
msgstr "" msgstr ""
...@@ -9447,6 +9471,9 @@ msgstr "" ...@@ -9447,6 +9471,9 @@ msgstr ""
msgid "Title" msgid "Title"
msgstr "" msgstr ""
msgid "Titles and Filenames"
msgstr ""
msgid "To GitLab" msgid "To GitLab"
msgstr "" msgstr ""
...@@ -10023,6 +10050,9 @@ msgstr "" ...@@ -10023,6 +10050,9 @@ msgstr ""
msgid "We could not determine the path to remove the issue" msgid "We could not determine the path to remove the issue"
msgstr "" msgstr ""
msgid "We couldn't find any results matching"
msgstr ""
msgid "We detected potential spam in the %{humanized_resource_name}. Please solve the reCAPTCHA to proceed." msgid "We detected potential spam in the %{humanized_resource_name}. Please solve the reCAPTCHA to proceed."
msgstr "" msgstr ""
...@@ -10694,6 +10724,9 @@ msgstr "" ...@@ -10694,6 +10724,9 @@ msgstr ""
msgid "command line instructions" msgid "command line instructions"
msgstr "" msgstr ""
msgid "commented on %{link_to_project}"
msgstr ""
msgid "confidentiality|You are going to turn off the confidentiality. This means <strong>everyone</strong> will be able to see and leave a comment on this issue." msgid "confidentiality|You are going to turn off the confidentiality. This means <strong>everyone</strong> will be able to see and leave a comment on this issue."
msgstr "" msgstr ""
...@@ -10781,6 +10814,12 @@ msgstr "" ...@@ -10781,6 +10814,12 @@ msgstr ""
msgid "importing" msgid "importing"
msgstr "" msgstr ""
msgid "in group %{link_to_group}"
msgstr ""
msgid "in project %{link_to_project}"
msgstr ""
msgid "instance completed" msgid "instance completed"
msgid_plural "instances completed" msgid_plural "instances completed"
msgstr[0] "" msgstr[0] ""
...@@ -11102,6 +11141,9 @@ msgstr "" ...@@ -11102,6 +11141,9 @@ msgstr ""
msgid "personal access token" msgid "personal access token"
msgstr "" msgstr ""
msgid "private"
msgstr ""
msgid "private key does not match certificate." msgid "private key does not match certificate."
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment