Commit 40d6edac authored by Filipa Lacerda's avatar Filipa Lacerda

Adds i18n

parent ae4a04ea
...@@ -23,18 +23,17 @@ ...@@ -23,18 +23,17 @@
<div class="col-xs-12"> <div class="col-xs-12">
<div class="text-content"> <div class="text-content">
<h4 class="text-center"> <h4 class="text-center">
Build with confidence {{ s__("Pipelines|Build with confidence") }}
</h4> </h4>
<p> <p>
Continous Integration can help catch bugs by running your tests automatically, {{ s__("Pipelines|Continous Integration can help catch bugs by running your tests automatically, while Continuous Deployment can help you deliver code to your product environment.") }}
while Continuous Deployment can help you deliver code to your product environment.
</p> </p>
<div class="text-center"> <div class="text-center">
<a <a
:href="helpPagePath" :href="helpPagePath"
class="btn btn-info" class="btn btn-info"
> >
Get started with Pipelines {{ s__("Pipelines|Get started with Pipelines") }}
</a> </a>
</div> </div>
</div> </div>
......
import Vue from 'vue'; import Vue from 'vue';
import PipelinesStore from './stores/pipelines_store'; import PipelinesStore from './stores/pipelines_store';
import pipelinesComponent from './components/pipelines.vue'; import pipelinesComponent from './components/pipelines.vue';
import Translate from '../vue_shared/translate';
Vue.use(Translate);
document.addEventListener('DOMContentLoaded', () => new Vue({ document.addEventListener('DOMContentLoaded', () => new Vue({
el: '#pipelines-list-vue', el: '#pipelines-list-vue',
......
...@@ -10,18 +10,17 @@ ...@@ -10,18 +10,17 @@
.text-content .text-content
- if has_button && current_user - if has_button && current_user
%h4 %h4
The Issue Tracker is the place to add things that need to be improved or solved in a project = _("The Issue Tracker is the place to add things that need to be improved or solved in a project")
%p %p
Issues can be bugs, tasks or ideas to be discussed. = _("Issues can be bugs, tasks or ideas to be discussed. Also, issues are searchable and filterable.")
Also, issues are searchable and filterable.
.text-center .text-center
- if project_select_button - if project_select_button
= render 'shared/new_project_item_select', path: 'issues/new', label: 'New issue', type: :issues = render 'shared/new_project_item_select', path: 'issues/new', label: 'New issue', type: :issues
- else - else
= link_to 'New issue', button_path, class: 'btn btn-success', title: 'New issue', id: 'new_issue_link' = link_to 'New issue', button_path, class: 'btn btn-success', title: 'New issue', id: 'new_issue_link'
- else - else
%h4.text-center There are no issues to show %h4.text-center= _("There are no issues to show")
%p %p
The Issue Tracker is the place to add things that need to be improved or solved in a project. You can register or sign in to create issues for this project. = _("The Issue Tracker is the place to add things that need to be improved or solved in a project. You can register or sign in to create issues for this project.")
.text-center .text-center
= link_to 'Register / Sign In', new_user_session_path, class: 'btn btn-success' = link_to _('Register / Sign In'), new_user_session_path, class: 'btn btn-success'
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
= image_tag 'illustrations/labels.svg' = image_tag 'illustrations/labels.svg'
.col-xs-12 .col-xs-12
.text-content .text-content
%h4 Labels can be applied to issues and merge requests to categorize them. %h4= _("Labels can be applied to issues and merge requests to categorize them.")
%p You can also star a label to make it a priority label. %p= _("You can also star a label to make it a priority label.")
- if can?(current_user, :admin_label, @project) - if can?(current_user, :admin_label, @project)
= link_to 'New label', new_project_label_path(@project), class: 'btn btn-new', title: 'New label', id: 'new_label_link' = link_to _('New label'), new_project_label_path(@project), class: 'btn btn-new', title: _('New label'), id: 'new_label_link'
= link_to 'Generate a default set of labels', generate_project_labels_path(@project), method: :post, class: 'btn btn-success btn-inverted', title: 'Generate a default set of labels', id: 'generate_labels_link' = link_to _('Generate a default set of labels'), generate_project_labels_path(@project), method: :post, class: 'btn btn-success btn-inverted', title: _('Generate a default set of labels'), id: 'generate_labels_link'
...@@ -10,14 +10,14 @@ ...@@ -10,14 +10,14 @@
.text-content .text-content
- if has_button - if has_button
%h4 %h4
Merge requests are a place to propose changes you've made to a project and discuss those changes with others = _("Merge requests are a place to propose changes you've made to a project and discuss those changes with others")
%p %p
Interested parties can even contribute by pushing commits if they want to. = _("Interested parties can even contribute by pushing commits if they want to.")
.text-center .text-center
- if project_select_button - if project_select_button
= render 'shared/new_project_item_select', path: 'merge_requests/new', label: 'New merge request', type: :merge_requests = render 'shared/new_project_item_select', path: 'merge_requests/new', label: _('New merge request'), type: :merge_requests
- else - else
= link_to 'New merge request', button_path, class: 'btn btn-new', title: 'New merge request', id: 'new_merge_request_link' = link_to _('New merge request'), button_path, class: 'btn btn-new', title: _('New merge request'), id: 'new_merge_request_link'
- else - else
%h4.text-center %h4.text-center
There are no merge requests to show = _("There are no merge requests to show")
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