diff --git a/app/views/projects/_dropdowns_new_project.html.erb b/app/views/projects/_dropdowns_new_project.html.erb index 55d069c..87add23 100644 --- a/app/views/projects/_dropdowns_new_project.html.erb +++ b/app/views/projects/_dropdowns_new_project.html.erb @@ -3,39 +3,39 @@ <%= f.inputs do %> <%= hidden_field_tag :default_tag, "false" ,:id => "default_tag" %>
-

<%= t('helpers.project.create_page.title')%>

+

<%= _('Create a new plan')%>

-

<%= raw t('helpers.project.create_page.desc_html')%>

+

<%= raw _("

Please select from the following drop-downs so we can determine what questions and guidance should be displayed in your plan.

If you aren't responding to specific requirements from a funder or an institution, select here to write a generic DMP based on the most common themes.

")%>

@@ -105,6 +105,6 @@ <% end %> <%= f.actions do %> - + <% end %> <% end %> diff --git a/app/views/projects/_form.html.erb b/app/views/projects/_form.html.erb index 360d87f..48e401f 100644 --- a/app/views/projects/_form.html.erb +++ b/app/views/projects/_form.html.erb @@ -1,32 +1,32 @@
<%= form_for @project, :html => { :class => 'form-horizontal' } do |f| %>
- <%= f.label t('helpers.title'), :class => 'left-label' %> + <%= f.label _('Title'), :class => 'left-label' %>
- <%= f.text_field :title, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => t('helpers.project.project_name_help_text') %> + <%= f.text_field :title, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => _('If applying for funding, state the name exactly as in the grant proposal.') %>
- <%= f.label t('helpers.project.grant_title'), :class => 'left-label' %> + <%= f.label _('Grant number'), :class => 'left-label' %>
- <%= f.text_field :grant_number, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => t('helpers.project.grant_help_text') %> + <%= f.text_field :grant_number, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => _('Grant reference number if applicable [POST-AWARD DMPs ONLY]') %>
- <%= f.label t('helpers.note'), :class => 'left-label' %> + <%= f.label _('Note'), :class => 'left-label' %>
<%= f.text_area :note, :class => 'text_area', :rows => 10 %>
- <%= f.label t('helpers.is_test'), class: 'left-label' %> + <%= f.label _('helpers.is_test'), class: 'left-label' %>
- <%= f.check_box :is_test, class: 'check_box has-tooltip', 'data-toggle': 'tooltip' title: t('helpers.project.is_test_help_text') %> + <%= f.check_box :is_test, class: 'check_box has-tooltip', 'data-toggle': 'tooltip' title: _('helpers.project.is_test_help_text') %>
- <%= f.submit t("helpers.submit.save"), :class => 'btn btn-primary' %> - <%= link_to t("helpers.links.cancel"), + <%= f.submit _('Save'), :class => 'btn btn-primary' %> + <%= link_to _('Cancel'), projects_path, :class => 'btn' %>
<% end %> diff --git a/app/views/projects/_project_details.html.erb b/app/views/projects/_project_details.html.erb index 6826f47..564e67e 100644 --- a/app/views/projects/_project_details.html.erb +++ b/app/views/projects/_project_details.html.erb @@ -3,25 +3,25 @@
">

- <%= t('helpers.project.project_details_text_html')%> + <%= _('This page gives you an overview of your plan. It tells what your plan is based on and gives an overview of the questions that you will be asked.')%>

<% if @project.administerable_by(current_user.id) then %> - <%= t("helpers.project.edit") %> + <%= _('Edit plan details') %> <% end %>
- + - + - + - + <% if !@project.principal_investigator_identifier.nil? && @project.principal_investigator_identifier != "" then %> - + <%end%> - + - + - - + +
<%= t('helpers.project.project_name') %><%= _('Plan name') %> <%= @project.title %>
<%= t('helpers.project.project_identifier') %><%= _('ID') %> <% if !@project.identifier.nil? && @project.identifier != "" then %> <%= @project.identifier %> @@ -31,7 +31,7 @@
<%= t('helpers.project.grant_title') %><%= _('Grant number') %> <% if !@project.grant_number.nil? && @project.grant_number!= "" then %> <%= @project.grant_number %> @@ -41,7 +41,7 @@
<%= t('helpers.project.principal_investigator') %><%= _('Principal Investigator/Researcher') %> <% if !@project.principal_investigator.nil? && @project.principal_investigator != "" then %> <%= @project.principal_investigator %> <%else%> @@ -51,14 +51,14 @@
<%= t('helpers.project.principal_investigator_id') %><%= _('Principal Investigator/Researcher ID') %> <%= @project.principal_investigator_identifier %>
<%= t('helpers.project.project_data_contact') %><%= _('Plan data contact') %> <% if !@project.data_contact.nil? && @project.data_contact != "" then%> <%= @project.data_contact %> <%else%> @@ -67,7 +67,7 @@
<%= t('helpers.desc') %><%= _('Description') %> <% if !@project.description.nil? && @project.description != "" then%> <%= @project.description %> <%else%> @@ -76,8 +76,8 @@
<%= t('helpers.project.visibility') %><%= (@project.is_test? ? t("helpers.project.visibilities.help_texts.is_test") : (@project.organisationally_visible? ? t("helpers.project.visibilities.help_texts.organisationally_visible") : (@project.publicly_visible? ? t("helpers.project.visibilities.help_texts.publicly_visible") : (@project.privately_visible? ? t("helpers.project.visibilities.help_texts.privately_visible") : "Defaulting to: #{t("helpers.project.visibilities.help_texts.not_set")}")))) %><%= _('Visibility') %><%= (@project.is_test? ? _('Test/Practice (your plan is not visible to other users) See our Terms of Use.') : (@project.organisationally_visible? ? _('Organisational (visibile to others within your organisation)') : (@project.publicly_visible? ? _('Public (Your DMP will appear on the Public DMPs page of this site)') : (@project.privately_visible? ? _('Private (owners, co-owners, and administrators only) See our Terms of Use.') : "Defaulting to: #{_('Not specified (will be visible to others within your organisation by default)')}")))) %>
@@ -87,11 +87,11 @@

- <%= raw t('helpers.project.project_details_editing_text_html')%> + <%= raw _("Please fill in the basic project details below and click 'Update' to save")%>

<%= semantic_form_for @project, :url => {:controller => :projects, :action => :update }, :html=>{:method=>:put} do |f| %> @@ -101,61 +101,61 @@ - + - + - + - + - + - + - + - + @@ -165,14 +165,14 @@ <%= f.actions do %>
- <%= f.submit t("helpers.submit.save"), :class => 'btn btn-primary' %> - <%= t("helpers.links.cancel") %> + <%= f.submit _('Save'), :class => 'btn btn-primary' %> + <%= _('Cancel') %>
<%end%> <%end%> <% end %> -

<%= t('helpers.project.project_static_info')%>

+

<%= _('This plan is based on:')%>

<%= t('helpers.project.project_name') %><%= _('Plan name') %> - <%= f.text_field :title, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => t('helpers.project.project_name_help_text') %> + <%= f.text_field :title, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => _('If applying for funding, state the name exactly as in the grant proposal.') %>
<%= t('helpers.project.project_identifier') %><%= _('ID') %> - <%= f.text_field :identifier, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => t('helpers.project.project_identifier_help_text') %> + <%= f.text_field :identifier, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => _('A pertinent ID as determined by the funder and/or institution.') %>
<%= t('helpers.project.grant_title') %><%= _('Grant number') %> - <%= f.text_field :grant_number, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => t('helpers.project.grant_help_text') %> + <%= f.text_field :grant_number, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => _('Grant reference number if applicable [POST-AWARD DMPs ONLY]') %>
<%= t('helpers.project.principal_investigator') %><%= _('Principal Investigator/Researcher') %> - <%= f.text_field :principal_investigator, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => t('helpers.project.principal_investigator_help_text') %> + <%= f.text_field :principal_investigator, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => _('Name of Principal Investigator(s) or main researcher(s) on the project.') %>
<%= t('helpers.project.principal_investigator_id') %><%= _('Principal Investigator/Researcher ID') %> - <%= f.text_field :principal_investigator_identifier, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => t('helpers.project.principal_investigator_id_help_text') %> + <%= f.text_field :principal_investigator_identifier, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => _('E.g ORCID http://orcid.org/.') %>
<%= t('helpers.project.project_data_contact') %><%= _('Plan data contact') %> - <%= f.text_field :data_contact, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => t('helpers.project.project_data_contact_help_text') %> + <%= f.text_field :data_contact, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => _('Name (if different to above), telephone and email contact details') %>
<%= t('helpers.desc') %><%= _('Description') %> - <%= f.text_area :description, { :rows => 7, :class => 'text_area has-tooltip', 'data-toggle' => "tooltip", 'data-html' => "true", 'title'=> t('helpers.project.project_desc_help_text_html')} %> + <%= f.text_area :description, { :rows => 7, :class => 'text_area has-tooltip', 'data-toggle' => "tooltip", 'data-html' => "true", 'title'=> _("

Questions to consider:

  • - What is the nature of your research project?
  • - What research questions are you addressing?
  • - For what purpose are the data being collected or created?

Guidance:

Briefly summarise the type of study (or studies) to help others understand the purposes for which the data are being collected or created.

")} %>
<%= t('helpers.project.visibility') %><%= _('Visibility') %>
- /><%= t('helpers.project.visibilities.help_texts.publicly_visible') %> + /><%= _('Public (Your DMP will appear on the Public DMPs page of this site)') %>
- /><%= t('helpers.project.visibilities.help_texts.organisationally_visible') %> + /><%= _('Organisational (visibile to others within your organisation)') %>
- /><%= t('helpers.project.visibilities.help_texts.is_test') %> + /><%= _('Test/Practice (your plan is not visible to other users) See our Terms of Use.') %>
- /><%= t('helpers.project.visibilities.help_texts.privately_visible') %> + /><%= _('Private (owners, co-owners, and administrators only) See our Terms of Use.') %>
<%if @project.dmptemplate.organisation.organisation_type.name == constant("organisation_types.funder")%> @@ -196,8 +196,8 @@ <% @project.plans.each do |plan| %>
- <%= link_to t('helpers.answer_questions'), [:edit, @project, plan], :class => 'btn btn-primary' %> - <%= t('helpers.export') %> + <%= link_to _('Answer questions'), [:edit, @project, plan], :class => 'btn btn-primary' %> + <%= _('Export') %>
<%= render :partial => "plans/export", locals: {plan: plan} %>
@@ -206,8 +206,8 @@
- - + + @@ -250,8 +250,8 @@
- <%= link_to t('helpers.answer_questions'), [:edit, @project, plan], :class => 'btn btn-primary' %> - <%= t('helpers.export') %> + <%= link_to _('Answer questions'), [:edit, @project, plan], :class => 'btn btn-primary' %> + <%= _('Export') %>
<%= render :partial => "plans/export", locals: {plan: plan} %>
@@ -262,8 +262,8 @@
<%= t('helpers.sections_label')%><%= t('helpers.questions_label')%><%= _('Sections')%><%= _('Questions')%>
- - + + diff --git a/app/views/projects/_project_nav_tabs.html.erb b/app/views/projects/_project_nav_tabs.html.erb index 07200bd..e9f1b3d 100644 --- a/app/views/projects/_project_nav_tabs.html.erb +++ b/app/views/projects/_project_nav_tabs.html.erb @@ -7,7 +7,7 @@ <% else %>
  • <% end %> - <%= link_to t("helpers.project.tab_plan"), project_path(project) %> + <%= link_to _('Plan details'), project_path(project) %>
  • <% pplans = project.plans.sort { |x,y| x.version.phase.number <=> y.version.phase.number} %> @@ -31,7 +31,7 @@ <% else %>
  • <% end %> - <%= link_to t("helpers.project.share.tab_share"), ["share", project] %> + <%= link_to _('Share'), ["share", project] %>
  • <% end %> @@ -40,7 +40,7 @@ <% else %>
  • <% end %> - <%= link_to t("helpers.project.tab_export"), ["export",project] %> + <%= link_to _('Export'), ["export",project] %>
  • diff --git a/app/views/projects/export.html.erb b/app/views/projects/export.html.erb index 37f1a18..722883c 100644 --- a/app/views/projects/export.html.erb +++ b/app/views/projects/export.html.erb @@ -9,7 +9,7 @@
    - <%= raw t('helpers.project.export_text_html')%> + <%= raw _("

    From here you can download your plan in various formats. This may be useful if you need to submit your plan as part of a grant application.
    Select what format you wish to use and click to 'Export'.

    ")%> <% if @project.plans.any? %> diff --git a/app/views/projects/share.html.erb b/app/views/projects/share.html.erb index cec0df7..95fdf57 100644 --- a/app/views/projects/share.html.erb +++ b/app/views/projects/share.html.erb @@ -8,19 +8,18 @@
    - <%= raw t('helpers.project.share.share_text_html', - application_name: Rails.configuration.branding[:application][:name])%> + <%= raw _('

    You can give other people access to your plan here. There are three permission levels.

    • Users with "read only" access can only read the plan.
    • Editors can contribute to the plan.
    • Co-owners can also contribute to the plan, but additionally can edit the plan details and control access to the plan.

    Add each collaborator in turn by entering their email address below, choosing a permission level and clicking "Add collaborator".

    Those you invite will receive an email notification that they have access to this plan, inviting them to register with %{application_name} if they don\'t already have an account. A notification is also issued when a user\'s permission level is changed.

    ') % { application_name: => Rails.configuration.branding[:application][:name]) }%>
    -

    <%= t('helpers.project.share.collaborators')%>

    +

    <%= _('Collaborators')%>

    <% if @project.roles.any? then %>
    <%= t('helpers.sections_label')%><%= t('helpers.questions_label')%><%= _('Sections')%><%= _('Questions')%>
    - - + + @@ -31,16 +30,16 @@ @@ -51,7 +50,7 @@
    -

    <%= t('helpers.project.share.add_collaborator')%>

    +

    <%= _('Add collaborator')%>

    <% new_role = Role.new %> @@ -59,12 +58,12 @@ <%= semantic_form_for new_role, :url => {:controller => :roles, :action => :create }, :html=>{:method=>:post} do |f| %> <%= f.inputs do %> <%= f.input :project_id, :as => :hidden %> - <%= f.email_field :email, :label => false, placeholder: t('helpers.email') %> -

    <%= t('helpers.project.share.permissions')%>:

    - <%= f.select :access_level, [[t('helpers.project.share.co_owner'), 3], [ t('helpers.project.share.edit') , 2], [ t('helpers.project.share.read_only'), 1]], {}, {:class => 'has-tooltip', 'data-toggle' => "tooltip", 'title' => t('helpers.project.share.permissions_desc') } %> + <%= f.email_field :email, :label => false, placeholder: _('Email') %> +

    <%= _('Permissions')%>:

    + <%= f.select :access_level, [[_('Co-owner'), 3], [ _('Edit') , 2], [ _('Read only'), 1]], {}, {:class => 'has-tooltip', 'data-toggle' => "tooltip", 'title' => _('Editors can contribute to plans. Co-owners have additional rights to edit plan details and control access.') } %> <% end %> <%= f.actions do %> - <%= f.action :submit, :label => I18n.t('helpers.project.share.add_collaborator'), :button_html => { :class => "btn btn-primary" } %> + <%= f.action :submit, :label => _('Add collaborator'), :button_html => { :class => "btn btn-primary" } %> <% end %> <% end %>
    <%= t('helpers.user_name')%><%= t('helpers.project.share.permissions')%><%= _('Email address')%><%= _('Permissions')%>
    <%= group.user.name %> <% if group.project_creator then %> - <%= t("helpers.project.share.owner")%> + <%= _('Owner')%> <% else %> <%= form_for group, :url => {:controller => :roles, :action => :update, :id => group.id }, :html=>{:method=>:put} do |f| %> - <%= f.select :access_level, {t('helpers.project.share.co_owner') => 3, t('helpers.project.share.edit') => 2, t('helpers.project.share.read_only') => 1}, {}, {:id => "#{group.id}-can-edit", :class => "toggle-existing-user-access has-tooltip", 'data-toggle' => "tooltip", 'title' => t('helpers.project.share.permissions_desc') } %> + <%= f.select :access_level, {_('Co-owner') => 3, _('Edit') => 2, _('Read only') => 1}, {}, {:id => "#{group.id}-can-edit", :class => "toggle-existing-user-access has-tooltip", 'data-toggle' => "tooltip", 'title' => _('Editors can contribute to plans. Co-owners have additional rights to edit plan details and control access.') } %> <% end %> <% end %> <% unless group.project_creator || group.user == current_user then %> - <%= link_to t('helpers.project.share.remove'), group, method: :delete, data: { confirm: t('helpers.project.share.confirmation_question') }, :class => "a-orange" %> + <%= link_to _('Remove user access'), group, method: :delete, data: { confirm: _('Are you sure?') }, :class => "a-orange" %> <% end %>