Commit 26a3c11c authored by Clement Ho's avatar Clement Ho

Merge branch 'ee-i18n-extract-app/views/projects-forks' into 'master'

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

See merge request gitlab-org/gitlab-ee!11235
parents 52c3a2bf 526d2df5
- page_title "Fork project"
- page_title _("Fork project")
- if @forked_project && !@forked_project.saved?
.alert.alert-danger.alert-block
%h4
= sprite_icon('fork', size: 16)
Fork Error!
= _("Fork Error!")
%p
You tried to fork
= link_to_project @project
but it failed for the following reason:
= _("You tried to fork %{link_to_the_project} but it failed for the following reason:").html_safe % { link_to_the_project: link_to_project(@project) }
- if @forked_project && @forked_project.errors.any?
%p
–
- error = @forked_project.errors.full_messages.first
- if error.include?("already been taken")
Name has already been taken
= _("Name has already been taken")
- else
= error
%p
= link_to new_project_fork_path(@project), title: "Fork", class: "btn" do
Try to fork again
= link_to _("Try to fork again"), new_project_fork_path(@project), title: _("Fork"), class: "btn"
......@@ -5,12 +5,12 @@
.nav-controls
= form_tag request.original_url, method: :get, class: 'project-filter-form', id: 'project-filter-form' do |f|
= search_field_tag :filter_projects, nil, placeholder: 'Search forks', class: 'projects-list-filter project-filter-form-field form-control input-short',
= search_field_tag :filter_projects, nil, placeholder: _('Search forks'), class: 'projects-list-filter project-filter-form-field form-control input-short',
spellcheck: false, data: { 'filter-selector' => 'span.namespace-name' }
.dropdown
%button.dropdown-menu-toggle{ type: 'button', 'data-toggle' => 'dropdown' }
%span.light sort:
%span.light= _("sort:")
- if @sort.present?
= sort_options_hash[@sort]
- else
......@@ -30,13 +30,12 @@
- if current_user && can?(current_user, :fork_project, @project)
- if current_user.already_forked?(@project) && current_user.manageable_namespaces.size < 2
= link_to namespace_project_path(current_user, current_user.fork_of(@project)), title: 'Go to your fork', class: 'btn btn-success' do
= link_to namespace_project_path(current_user, current_user.fork_of(@project)), title: _('Go to your fork'), class: 'btn btn-success' do
= sprite_icon('fork', size: 12)
%span Fork
%span= _('Fork')
- else
= link_to new_project_fork_path(@project), title: "Fork project", class: 'btn btn-success' do
= link_to new_project_fork_path(@project), title: _("Fork project"), class: 'btn btn-success' do
= sprite_icon('fork', size: 12)
%span Fork
%span= _('Fork')
= render 'projects', projects: @forks
- page_title "Fork project"
- page_title _("Fork project")
.row.prepend-top-default
.col-lg-3
%h4.prepend-top-0
Fork project
= _("Fork project")
%p
A fork is a copy of a project.
%br
Forking a repository allows you to make changes without affecting the original project.
= _("A fork is a copy of a project.<br />Forking a repository allows you to make changes without affecting the original project.").html_safe
.col-lg-9
- if @namespaces.present?
.fork-thumbnail-container.js-fork-content
......@@ -17,13 +15,13 @@
= render 'fork_button', namespace: namespace
- else
%strong
No available namespaces to fork the project.
= _("No available namespaces to fork the project.")
%p.prepend-top-default
You must have permission to create a project in a namespace before forking.
= _("You must have permission to create a project in a namespace before forking.")
.save-project-loader.hide.js-fork-content
%h2.text-center
= icon('spinner spin')
Forking repository
= _("Forking repository")
%p.text-center
Please wait a moment, this page will automatically refresh when ready.
= _("Please wait a moment, this page will automatically refresh when ready.")
......@@ -467,6 +467,9 @@ msgstr ""
msgid "A deleted user"
msgstr ""
msgid "A fork is a copy of a project.<br />Forking a repository allows you to make changes without affecting the original project."
msgstr ""
msgid "A member of GitLab's abuse team will review your report as soon as possible."
msgstr ""
......@@ -5106,6 +5109,15 @@ msgstr ""
msgid "For public projects, anyone can view pipelines and access job details (output logs and artifacts)"
msgstr ""
msgid "Fork"
msgstr ""
msgid "Fork Error!"
msgstr ""
msgid "Fork project"
msgstr ""
msgid "ForkedFromProjectPath|Forked from"
msgstr ""
......@@ -5115,6 +5127,9 @@ msgstr ""
msgid "Forking in progress"
msgstr ""
msgid "Forking repository"
msgstr ""
msgid "Forks"
msgstr ""
......@@ -5691,6 +5706,9 @@ msgstr ""
msgid "Go to project"
msgstr ""
msgid "Go to your fork"
msgstr ""
msgid "Google Code import"
msgstr ""
......@@ -7652,6 +7670,9 @@ msgstr ""
msgid "Name"
msgstr ""
msgid "Name has already been taken"
msgstr ""
msgid "Name new label"
msgstr ""
......@@ -7816,6 +7837,9 @@ msgstr ""
msgid "No activities found"
msgstr ""
msgid "No available namespaces to fork the project."
msgstr ""
msgid "No branches found"
msgstr ""
......@@ -10208,6 +10232,9 @@ msgstr ""
msgid "Search for projects, issues, etc."
msgstr ""
msgid "Search forks"
msgstr ""
msgid "Search groups"
msgstr ""
......@@ -12565,6 +12592,9 @@ msgstr ""
msgid "Try all GitLab has to offer for 30 days."
msgstr ""
msgid "Try to fork again"
msgstr ""
msgid "Trying to communicate with your device. Plug it in (if you haven't already) and press the button on the device now."
msgstr ""
......@@ -13572,6 +13602,9 @@ msgstr ""
msgid "You must have maintainer access to force delete a lock"
msgstr ""
msgid "You must have permission to create a project in a namespace before forking."
msgstr ""
msgid "You need a different license to enable FileLocks feature"
msgstr ""
......@@ -13596,6 +13629,9 @@ msgstr ""
msgid "You need to upload a Google Takeout archive."
msgstr ""
msgid "You tried to fork %{link_to_the_project} but it failed for the following reason:"
msgstr ""
msgid "You will lose all changes you've made to this file. This action cannot be undone."
msgstr ""
......@@ -14694,6 +14730,9 @@ msgstr ""
msgid "sign in"
msgstr ""
msgid "sort:"
msgstr ""
msgid "source"
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