i18n: externalize strings from 'app/views/explore'

Signed-off-by: Tao Wang <twang2218@gmail.com>
This commit is contained in:
Tao Wang 2018-06-13 00:14:52 +10:00
parent 2f96930d5c
commit cb728c536a
No known key found for this signature in database
GPG Key ID: 9B48C5F4B9CF1F40
9 changed files with 57 additions and 21 deletions

View File

@ -1,6 +1,6 @@
.explore-title.text-center
%h2
Explore GitLab
= _("Explore GitLab")
%p.lead
Discover projects, groups and snippets. Share your projects with others
= _("Discover projects, groups and snippets. Share your projects with others")
%br

View File

@ -2,7 +2,7 @@
%ul.nav-links.nav.nav-tabs
= nav_link(page: explore_groups_path) do
= link_to explore_groups_path do
Explore Groups
= _("Explore Groups")
.nav-controls
= render 'shared/groups/search_form'
= render 'shared/groups/dropdown'

View File

@ -1,6 +1,6 @@
- @hide_top_links = true
- page_title "Groups"
- header_title "Groups", dashboard_groups_path
- page_title _("Groups")
- header_title _("Groups"), dashboard_groups_path
- if current_user
= render 'dashboard/groups_head'
@ -10,14 +10,14 @@
- if cookies[:explore_groups_landing_dismissed] != 'true'
.explore-groups.landing.content-block.js-explore-groups-landing.hide
%button.dismiss-button{ type: 'button', 'aria-label' => 'Dismiss' }= icon('times')
%button.dismiss-button{ type: 'button', 'aria-label' => _('Dismiss') }= icon('times')
.svg-container
= custom_icon('icon_explore_groups_splash')
.inner-content
%p Below you will find all the groups that are public.
%p You can easily contribute to them by requesting to join these groups.
%p= _("Below you will find all the groups that are public.")
%p= _("You can easily contribute to them by requesting to join these groups.")
- if params[:filter].blank? && @groups.empty?
.nothing-here-block No public groups
.nothing-here-block= _("No public groups")
- else
= render 'groups'

View File

@ -2,16 +2,16 @@
.dropdown
%button.dropdown-toggle{ href: '#', "data-toggle" => "dropdown", 'data-display' => 'static' }
= icon('globe')
%span.light Visibility:
%span.light= _("Visibility:")
- if params[:visibility_level].present?
= visibility_level_label(params[:visibility_level].to_i)
- else
Any
= _('Any')
= icon('chevron-down')
%ul.dropdown-menu.dropdown-menu-right
%li
= link_to filter_projects_path(visibility_level: nil) do
Any
= _('Any')
- Gitlab::VisibilityLevel.values.each do |level|
%li{ class: active_when(level.to_s == params[:visibility_level]) || 'light' }
= link_to filter_projects_path(visibility_level: level) do

View File

@ -2,13 +2,13 @@
%ul.nav-links.nav.nav-tabs
= nav_link(page: [trending_explore_projects_path, explore_root_path]) do
= link_to trending_explore_projects_path do
Trending
= _('Trending')
= nav_link(page: starred_explore_projects_path) do
= link_to starred_explore_projects_path do
Most stars
= _('Most stars')
= nav_link(page: explore_projects_path) do
= link_to explore_projects_path do
All
= _('All')
.nav-controls
- unless current_user

View File

@ -1,6 +1,6 @@
- @hide_top_links = true
- page_title "Projects"
- header_title "Projects", dashboard_projects_path
- page_title _("Projects")
- header_title _("Projects"), dashboard_projects_path
- if current_user
= render 'dashboard/projects_head'

View File

@ -1,6 +1,6 @@
- @hide_top_links = true
- page_title "Projects"
- header_title "Projects", dashboard_projects_path
- page_title _("Projects")
- header_title _("Projects"), dashboard_projects_path
- if current_user
= render 'dashboard/projects_head'

View File

@ -1,6 +1,6 @@
- @hide_top_links = true
- page_title "Projects"
- header_title "Projects", dashboard_projects_path
- page_title _("Projects")
- header_title _("Projects"), dashboard_projects_path
- if current_user
= render 'dashboard/projects_head'

View File

@ -465,6 +465,9 @@ msgstr ""
msgid "An error occurred. Please try again."
msgstr ""
msgid "Any"
msgstr ""
msgid "Appearance"
msgstr ""
@ -687,6 +690,9 @@ msgstr ""
msgid "Below are examples of regex for existing tools:"
msgstr ""
msgid "Below you will find all the groups that are public."
msgstr ""
msgid "Boards"
msgstr ""
@ -1976,6 +1982,12 @@ msgstr ""
msgid "Discard draft"
msgstr ""
msgid "Discover projects, groups and snippets. Share your projects with others"
msgstr ""
msgid "Dismiss"
msgstr ""
msgid "Dismiss Cycle Analytics introduction box"
msgstr ""
@ -2246,6 +2258,12 @@ msgstr ""
msgid "Expand sidebar"
msgstr ""
msgid "Explore GitLab"
msgstr ""
msgid "Explore Groups"
msgstr ""
msgid "Explore groups"
msgstr ""
@ -2461,6 +2479,9 @@ msgstr ""
msgid "GroupSettings|remove the share with group lock from %{ancestor_group_name}"
msgstr ""
msgid "Groups"
msgstr ""
msgid "Groups can also be nested by creating %{subgroup_docs_link_start}subgroups%{subgroup_docs_link_end}."
msgstr ""
@ -3023,6 +3044,9 @@ msgstr ""
msgid "More information is available|here"
msgstr ""
msgid "Most stars"
msgstr ""
msgid "Move"
msgstr ""
@ -3151,6 +3175,9 @@ msgstr ""
msgid "No messages were logged"
msgstr ""
msgid "No public groups"
msgstr ""
msgid "No repository"
msgstr ""
@ -4931,6 +4958,9 @@ msgstr ""
msgid "Track time with quick actions"
msgstr ""
msgid "Trending"
msgstr ""
msgid "Trigger this manual action"
msgstr ""
@ -5071,6 +5101,9 @@ msgstr ""
msgid "Visibility and access controls"
msgstr ""
msgid "Visibility:"
msgstr ""
msgid "VisibilityLevel|Internal"
msgstr ""
@ -5275,6 +5308,9 @@ msgstr ""
msgid "You can also test your .gitlab-ci.yml in the %{linkStart}Lint%{linkEnd}"
msgstr ""
msgid "You can easily contribute to them by requesting to join these groups."
msgstr ""
msgid "You can easily install a Runner on a Kubernetes cluster. %{link_to_help_page}"
msgstr ""