From 459998276560dc6b77c11768cbd2d22bae7426a2 Mon Sep 17 00:00:00 2001 From: Bob Van Landuyt Date: Thu, 15 Jun 2017 13:34:36 +0200 Subject: Remove HTML from translation key --- app/views/projects/commit/_change.html.haml | 4 +++- locale/es/gitlab.po | 18 +++++++++--------- locale/gitlab.pot | 20 ++++++++++---------- 3 files changed, 22 insertions(+), 20 deletions(-) diff --git a/app/views/projects/commit/_change.html.haml b/app/views/projects/commit/_change.html.haml index ae33b57524f..4e7876eb313 100644 --- a/app/views/projects/commit/_change.html.haml +++ b/app/views/projects/commit/_change.html.haml @@ -28,7 +28,9 @@ .checkbox = label_tag do = check_box_tag 'create_merge_request', 1, true, class: 'js-create-merge-request', id: nil - #{ _('Start a new merge request with these changes').html_safe } + - translation_variables = { new_merge_request: "#{_('new merge request')}" } + - translation = _('Start a %{new_merge_request} with these changes') % translation_variables + #{ translation.html_safe } - else = hidden_field_tag 'create_merge_request', 1, id: nil .form-actions diff --git a/locale/es/gitlab.po b/locale/es/gitlab.po index a53edcf40f1..455122b522b 100644 --- a/locale/es/gitlab.po +++ b/locale/es/gitlab.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: gitlab 1.0.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2017-06-15 12:10+0200\n" +"PO-Revision-Date: 2017-06-15 13:28+0200\n" "Language-Team: Spanish\n" "Language: es\n" "MIME-Version: 1.0\n" @@ -85,12 +85,6 @@ msgstr "Revertir en la rama" msgid "ChangeTypeAction|Cherry-pick" msgstr "Cherry-pick" -msgid "ChangeType|commit" -msgstr "cambio" - -msgid "ChangeType|merge request" -msgstr "solicitud de fusión" - msgid "Changelog" msgstr "Changelog" @@ -100,7 +94,7 @@ msgstr "Gráficos" msgid "Cherry-pick this commit" msgstr "Escoger este cambio" -msgid "Cherry-pick this merge-request" +msgid "Cherry-pick this merge request" msgstr "Escoger esta solicitud de fusión" msgid "CiStatusLabel|canceled" @@ -658,7 +652,7 @@ msgstr "Solicitar acceso" msgid "Revert this commit" msgstr "Revertir este cambio" -msgid "Revert this merge-request" +msgid "Revert this merge request" msgstr "Revertir esta solicitud de fusión" msgid "Save pipeline schedule" @@ -708,6 +702,9 @@ msgstr "Código fuente" msgid "StarProject|Star" msgstr "Destacar" +msgid "Start a %{new_merge_request} with these changes" +msgstr "Iniciar una %{new_merge_request} con estos cambios" + msgid "Start a new merge request with these changes" msgstr "Iniciar una nueva solicitud de fusión con estos cambios" @@ -1013,6 +1010,9 @@ msgid_plural "days" msgstr[0] "día" msgstr[1] "días" +msgid "new merge request" +msgstr "nueva solicitud de fusión" + msgid "notification emails" msgstr "correos electrónicos de notificación" diff --git a/locale/gitlab.pot b/locale/gitlab.pot index 5d728a7eabf..df225f5aac8 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: gitlab 1.0.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-15 12:04+0200\n" -"PO-Revision-Date: 2017-06-15 12:04+0200\n" +"POT-Creation-Date: 2017-06-15 12:35+0200\n" +"PO-Revision-Date: 2017-06-15 12:35+0200\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" @@ -86,12 +86,6 @@ msgstr "" msgid "ChangeTypeAction|Cherry-pick" msgstr "" -msgid "ChangeType|commit" -msgstr "" - -msgid "ChangeType|merge request" -msgstr "" - msgid "Changelog" msgstr "" @@ -101,7 +95,7 @@ msgstr "" msgid "Cherry-pick this commit" msgstr "" -msgid "Cherry-pick this merge-request" +msgid "Cherry-pick this merge request" msgstr "" msgid "CiStatusLabel|canceled" @@ -659,7 +653,7 @@ msgstr "" msgid "Revert this commit" msgstr "" -msgid "Revert this merge-request" +msgid "Revert this merge request" msgstr "" msgid "Save pipeline schedule" @@ -709,6 +703,9 @@ msgstr "" msgid "StarProject|Star" msgstr "" +msgid "Start a %{new_merge_request} with these changes" +msgstr "" + msgid "Start a new merge request with these changes" msgstr "" @@ -1011,6 +1008,9 @@ msgid_plural "days" msgstr[0] "" msgstr[1] "" +msgid "new merge request" +msgstr "" + msgid "notification emails" msgstr "" -- cgit v1.2.1