From f9bc4d27f4ac7fc0a8283e0d6ad6e5a3ceb5d813 Mon Sep 17 00:00:00 2001 From: Ezekiel Kigbo Date: Thu, 27 Jun 2019 12:38:45 +1000 Subject: Minor review fixes Use single quotes only Added missed translations --- .../boards/components/board_blank_state.vue | 12 ++++++---- .../javascripts/boards/components/board_list.vue | 2 +- .../boards/components/modal/empty_state.vue | 19 +++++++-------- .../javascripts/boards/components/modal/header.vue | 2 +- .../boards/components/project_select.vue | 2 +- locale/gitlab.pot | 27 ++++++++++++---------- 6 files changed, 36 insertions(+), 28 deletions(-) diff --git a/app/assets/javascripts/boards/components/board_blank_state.vue b/app/assets/javascripts/boards/components/board_blank_state.vue index 571d7dbe4ae..f58149c9f7b 100644 --- a/app/assets/javascripts/boards/components/board_blank_state.vue +++ b/app/assets/javascripts/boards/components/board_blank_state.vue @@ -59,7 +59,11 @@ export default { diff --git a/app/assets/javascripts/boards/components/board_list.vue b/app/assets/javascripts/boards/components/board_list.vue index a0a7d523535..787ff110bf8 100644 --- a/app/assets/javascripts/boards/components/board_list.vue +++ b/app/assets/javascripts/boards/components/board_list.vue @@ -227,7 +227,7 @@ export default { :class="{ 'd-none': !list.isExpanded, 'd-flex flex-column': list.isExpanded }" class="board-list-component position-relative h-100" > -
+
-import { __ } from '~/locale'; +import { __, sprintf } from '~/locale'; import ModalStore from '../../stores/modal_store'; import modalMixin from '../../mixins/modal_mixins'; @@ -22,18 +22,19 @@ export default { contents() { const obj = { title: __("You haven't added any issues to your project yet"), - content: __(` - An issue can be a bug, a todo or a feature request that needs to be - discussed in a project. Besides, issues are searchable and filterable. - `), + content: __( + 'An issue can be a bug, a todo or a feature request that needs to be discussed in a project. Besides, issues are searchable and filterable.', + ), }; if (this.activeTab === 'selected') { obj.title = __("You haven't selected any issues yet"); - obj.content = ` - Go back to Open issues and select some issues - to add to your board. - `; + obj.content = sprintf( + __( + 'Go back to %{startTag}Open issues%{endTag} and select some issues to add to your board.', + ), + { startTag: '', endTag: '' }, + ); } return obj; diff --git a/app/assets/javascripts/boards/components/modal/header.vue b/app/assets/javascripts/boards/components/modal/header.vue index 2c6f5d19092..7a696035dc8 100644 --- a/app/assets/javascripts/boards/components/modal/header.vue +++ b/app/assets/javascripts/boards/components/modal/header.vue @@ -58,7 +58,7 @@ export default { type="button" class="close" data-dismiss="modal" - :aria-label="__(`Close`)" + :aria-label="__('Close')" @click="toggleModal(false)" > diff --git a/app/assets/javascripts/boards/components/project_select.vue b/app/assets/javascripts/boards/components/project_select.vue index aa641689bf4..a1cf1866faf 100644 --- a/app/assets/javascripts/boards/components/project_select.vue +++ b/app/assets/javascripts/boards/components/project_select.vue @@ -95,7 +95,7 @@ export default {