Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
40a188b0
Commit
40a188b0
authored
Jun 15, 2017
by
Ruben Davila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small refactoring plus fixes for Spanish translations.
parent
9a0e6763
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
25 deletions
+18
-25
app/assets/javascripts/locale/es/app.js
app/assets/javascripts/locale/es/app.js
+1
-1
app/views/projects/commit/_change.html.haml
app/views/projects/commit/_change.html.haml
+1
-6
app/views/shared/_new_commit_form.html.haml
app/views/shared/_new_commit_form.html.haml
+1
-5
app/views/shared/_new_merge_request_checkbox.html.haml
app/views/shared/_new_merge_request_checkbox.html.haml
+8
-0
locale/es/gitlab.po
locale/es/gitlab.po
+4
-7
locale/gitlab.pot
locale/gitlab.pot
+3
-6
No files found.
app/assets/javascripts/locale/es/app.js
View file @
40a188b0
This diff is collapsed.
Click to expand it.
app/views/projects/commit/_change.html.haml
View file @
40a188b0
...
@@ -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
...
...
app/views/shared/_new_commit_form.html.haml
View file @
40a188b0
...
@@ -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
...
...
app/views/shared/_new_merge_request_checkbox.html.haml
0 → 100644
View file @
40a188b0
.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
}
locale/es/gitlab.po
View file @
40a188b0
...
@@ -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+02
00\n"
"PO-Revision-Date: 2017-06-15
21:59-05
00\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 "Personal
i
zado"
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"
...
...
locale/gitlab.pot
View file @
40a188b0
...
@@ -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+02
00\n"
"POT-Creation-Date: 2017-06-15
21:59-05
00\n"
"PO-Revision-Date: 2017-06-15
14:57+02
00\n"
"PO-Revision-Date: 2017-06-15
21:59-05
00\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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment