Commit 40a188b0 authored by Ruben Davila's avatar Ruben Davila

Small refactoring plus fixes for Spanish translations.

parent 9a0e6763
This diff is collapsed.
...@@ -25,12 +25,7 @@ ...@@ -25,12 +25,7 @@
= dropdown_tag(@project.default_branch, options: { title: n_("BranchSwitcherTitle|Switch branch"), filter: true, placeholder: n_("BranchSwitcherPlaceholder|Search branches"), toggle_class: 'js-project-refs-dropdown dynamic', dropdown_class: 'dropdown-menu-selectable', data: { field_name: "start_branch", selected: @project.default_branch, start_branch: @project.default_branch, refs_url: namespace_project_branches_path(@project.namespace, @project), submit_form_on_click: false } }) = dropdown_tag(@project.default_branch, options: { title: n_("BranchSwitcherTitle|Switch branch"), filter: true, placeholder: n_("BranchSwitcherPlaceholder|Search branches"), toggle_class: 'js-project-refs-dropdown dynamic', dropdown_class: 'dropdown-menu-selectable', data: { field_name: "start_branch", selected: @project.default_branch, start_branch: @project.default_branch, refs_url: namespace_project_branches_path(@project.namespace, @project), submit_form_on_click: false } })
- if can?(current_user, :push_code, @project) - if can?(current_user, :push_code, @project)
.checkbox = render 'shared/new_merge_request_checkbox'
= label_tag do
= check_box_tag 'create_merge_request', 1, true, class: 'js-create-merge-request', id: nil
- translation_variables = { new_merge_request: "<strong>#{_('new merge request')}</strong>" }
- translation = _('Start a %{new_merge_request} with these changes') % translation_variables
#{ translation.html_safe }
- else - else
= hidden_field_tag 'create_merge_request', 1, id: nil = hidden_field_tag 'create_merge_request', 1, id: nil
.form-actions .form-actions
......
...@@ -10,11 +10,7 @@ ...@@ -10,11 +10,7 @@
= text_field_tag 'branch_name', @branch_name || tree_edit_branch, required: true, class: "form-control js-branch-name ref-name" = text_field_tag 'branch_name', @branch_name || tree_edit_branch, required: true, class: "form-control js-branch-name ref-name"
.js-create-merge-request-container .js-create-merge-request-container
.checkbox = render 'shared/new_merge_request_checkbox'
- nonce = SecureRandom.hex
= label_tag "create_merge_request-#{nonce}" do
= check_box_tag 'create_merge_request', 1, true, class: 'js-create-merge-request', id: "create_merge_request-#{nonce}"
#{ _('Start a <strong>new merge request</strong> with these changes').html_safe }
- else - else
= hidden_field_tag 'branch_name', @branch_name || tree_edit_branch = hidden_field_tag 'branch_name', @branch_name || tree_edit_branch
= hidden_field_tag 'create_merge_request', 1 = hidden_field_tag 'create_merge_request', 1
......
.checkbox
- nonce = SecureRandom.hex
= label_tag "create_merge_request-#{nonce}" do
= check_box_tag 'create_merge_request', 1, true, class: 'js-create-merge-request', id: "create_merge_request-#{nonce}"
- translation_variables = { new_merge_request: "<strong>#{_('new merge request')}</strong>" }
- translation = _('Start a %{new_merge_request} with these changes') % translation_variables
#{ translation.html_safe }
...@@ -7,7 +7,7 @@ msgid "" ...@@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: gitlab 1.0.0\n" "Project-Id-Version: gitlab 1.0.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2017-06-15 15:05+0200\n" "PO-Revision-Date: 2017-06-15 21:59-0500\n"
"Language-Team: Spanish\n" "Language-Team: Spanish\n"
"Language: es\n" "Language: es\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
...@@ -205,7 +205,7 @@ msgid "Create merge request" ...@@ -205,7 +205,7 @@ msgid "Create merge request"
msgstr "Crear solicitud de fusión" msgstr "Crear solicitud de fusión"
msgid "Create new..." msgid "Create new..."
msgstr "Crear nuevo" msgstr "Crear nuevo..."
msgid "CreateNewFork|Fork" msgid "CreateNewFork|Fork"
msgstr "Bifurcar" msgstr "Bifurcar"
...@@ -563,7 +563,7 @@ msgid "PipelineSchedules|Target" ...@@ -563,7 +563,7 @@ msgid "PipelineSchedules|Target"
msgstr "Destino" msgstr "Destino"
msgid "PipelineSheduleIntervalPattern|Custom" msgid "PipelineSheduleIntervalPattern|Custom"
msgstr "Personalzado" msgstr "Personalizado"
msgid "Pipeline|with stage" msgid "Pipeline|with stage"
msgstr "con etapa" msgstr "con etapa"
...@@ -714,12 +714,9 @@ msgstr "Código fuente" ...@@ -714,12 +714,9 @@ msgstr "Código fuente"
msgid "StarProject|Star" msgid "StarProject|Star"
msgstr "Destacar" msgstr "Destacar"
msgid "Start a %{new_merge_request} with these changes" msgid "Start a %{new_merge_request} with these changes"
msgstr "Iniciar una %{new_merge_request} con estos cambios" msgstr "Iniciar una %{new_merge_request} con estos cambios"
msgid "Start a <strong>new merge request</strong> with these changes"
msgstr "Iniciar una <strong>nueva solicitud de fusión</strong> con estos cambios"
msgid "Switch branch/tag" msgid "Switch branch/tag"
msgstr "Cambiar rama/etiqueta" msgstr "Cambiar rama/etiqueta"
......
...@@ -8,8 +8,8 @@ msgid "" ...@@ -8,8 +8,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: gitlab 1.0.0\n" "Project-Id-Version: gitlab 1.0.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-15 14:57+0200\n" "POT-Creation-Date: 2017-06-15 21:59-0500\n"
"PO-Revision-Date: 2017-06-15 14:57+0200\n" "PO-Revision-Date: 2017-06-15 21:59-0500\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n" "Language: \n"
...@@ -715,10 +715,7 @@ msgstr "" ...@@ -715,10 +715,7 @@ msgstr ""
msgid "StarProject|Star" msgid "StarProject|Star"
msgstr "" msgstr ""
msgid "Start a %{new_merge_request} with these changes" msgid "Start a %{new_merge_request} with these changes"
msgstr ""
msgid "Start a <strong>new merge request</strong> with these changes"
msgstr "" msgstr ""
msgid "Switch branch/tag" msgid "Switch branch/tag"
......
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