diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb deleted file mode 100644 index ea11160..0000000 --- a/app/controllers/projects_controller.rb +++ /dev/null @@ -1,404 +0,0 @@ -class ProjectsController < ApplicationController - - # TODO: Delete this controller! It is no longer in use and `rake routes` does not even map to this any longer - - after_action :verify_authorized - - # GET /projects - # GET /projects.json - def index - authorize Project - ## TODO: Is this A magic String? the "Show_shib_link?" as we define it and users dont see cookies - if user_signed_in? then - if (current_user.shibboleth_id.nil? || current_user.shibboleth_id.length == 0) && !cookies[:show_shib_link].nil? && cookies[:show_shib_link] == "show_shib_link" then - flash.notice = ActionController::Base.helpers.link_to( - _('Link your %{application_name} account to your institutional credentials (UK users only)' % { :application_name => Rails.configuration.branding[:application][:name]}, - user_omniauth_shibboleth_path)).html_safe() - end - - @projects = current_user.projects.filter(params[:filter]) - @has_projects = current_user.projects.any? # unfiltered count - - respond_to do |format| - format.html # index.html.erb - end - else - respond_to do |format| - format.html { redirect_to edit_user_registration_path } - end - end - end - - # GET /projects/1 - # GET /projects/1.json - def show - @project = Project.find(params[:id]) - authorize @project - @show_form = false - if params[:show_form] == "yes" then - @show_form = true - end - if user_signed_in? && @project.readable_by(current_user.id) then - respond_to do |format| - format.html # show.html.erb - end - elsif user_signed_in? then - respond_to do |format| - format.html { redirect_to projects_url, notice: _('This account does not have access to that plan.') } - end - else - respond_to do |format| - format.html { redirect_to edit_user_registration_path } - end - end - end - - def new - if user_signed_in? then - @plan = Plan.new - authorize @plan - @funders = Org.funder.all - - respond_to do |format| - format.html # new.html.erb - end - else - respond_to do |format| - format.html { redirect_to edit_user_registration_path } - end - end - end - - - # GET /projects/1/edit - # Should this be removed? - def edit - @project = Project.find(params[:id]) - authorize @project - if !user_signed_in? then - respond_to do |format| - format.html { redirect_to edit_user_registration_path } - end - elsif !@project.editable_by(current_user.id) then - respond_to do |format| - format.html { redirect_to projects_url, notice: _('This account does not have access to that plan.') } - end - end - end - - def share - @project = Project.find(params[:id]) - authorize @project - if !user_signed_in? then - respond_to do |format| - format.html { redirect_to edit_user_registration_path } - end - elsif !@project.editable_by(current_user.id) then - respond_to do |format| - format.html { redirect_to projects_url, notice: _('This account does not have access to that plan.') } - end - end - end - - def export - @project = Project.find(params[:id]) - authorize @project - if !user_signed_in? then - respond_to do |format| - format.html { redirect_to edit_user_registration_path } - end - else - respond_to do |format| - format.html { render action: "export" } - - end - end - end - - # POST /projects - def create - return - if user_signed_in? then - @plan = Plan.new(params[:plan]) - authorize @project - if @project.dmptemplate.nil? && params[:project][:funder_id] != "" then # this shouldn't be necessary - see setter for funder_id in project.rb - funder = Org.find(params[:project][:funder_id]) - if funder.dmptemplates.count == 1 then - @project.dmptemplate = funder.published_templates.first - end - elsif @project.dmptemplate.nil? || params[:default_tag] == 'true' then - if @project.organisation.nil? || params[:default_tag] == 'true' || @project.organisation.published_templates.first.nil? then - @project.dmptemplate = Dmptemplate.find_by_is_default(true) - else - @project.dmptemplate = @project.organisation.published_templates.first - end - end - @project.principal_investigator = current_user.name(false) - - @project.title = _('My plan')+' ('+@project.dmptemplate.title+')' # We should use interpolated string since the order of the words from this message could vary among languages - @project.assign_creator(current_user.id) - respond_to do |format| - if @project.save - format.html { redirect_to({:action => "show", :id => @project.slug, :show_form => "yes"}, {:notice => _('Plan was successfully created.')}) } - else - format.html { render action: "new" } - end - end - else - render(:file => File.join(Rails.root, 'public/403.html'), :status => 403, :layout => false) - end - end - - # PUT /projects/1 - # PUT /projects/1.json - def update - @project = Project.find(params[:id]) - authorize @project - if user_signed_in? && @project.editable_by(current_user.id) then - if @project.update_attributes(params[:project]) - respond_to do |format| - format.html { redirect_to({:action => "show", :id => @project.slug, notice: _('Plan was successfully updated.') }) } - end - else - respond_to do |format| - format.html { render action: "edit" } - end - end - else - render(:file => File.join(Rails.root, 'public/403.html'), :status => 403, :layout => false) - end - end - - # DELETE /projects/1 - # DELETE /projects/1.json - def destroy - @project = Project.find(params[:id]) - authorize @project - if user_signed_in? && @project.editable_by(current_user.id) then - @project.destroy - - respond_to do |format| - format.html { redirect_to projects_url } - end - else - render(:file => File.join(Rails.root, 'public/403.html'), :status => 403, :layout => false) - end - end - - # returns to AJAX call from frontend - # difficult to secure as it passes through params, and dosent curate data based - # on what the user can "view" or is public - - # GET /projects/possible_templates.json - def possible_templates - if !params[:funder].nil? && params[:funder] != "" && params[:funder] != "undefined" then - funder = Org.find(params[:funder]) - else - funder = nil - end - if !params[:institution].nil? && params[:institution] != "" && params[:institution] != "undefined" then - institution = Org.find(params[:institution]) - else - institution = nil - end - templates = {} - unless funder.nil? then - funder.published_templates.each do |t| - templates[t.id] = t.title - end - end - if templates.count == 0 && !institution.nil? then - institution.published_templates.each do |t| - templates[t.id] = t.title - end - institution.children.each do |o| - o.published_templates.each do |t| - templates[t.id] = t.title - end - end - end - respond_to do |format| - format.json { render json: templates.to_json } - end - end - - # returns to AJAX call from frontend - # difficult to secure as it passes through params, and dosent curate data based - # on what the user can "view" or is public - # ----------------------------------------------------------- - def possible_guidance - authorize @project - - if !params[:template].nil? && params[:template] != "" && params[:template] != "undefined" then - template = Dmptemplate.find(params[:template]) - else - template = nil - end - if !params[:institution].nil? && params[:institution] != "" && params[:institution] != "undefined" then - institution = Org.find(params[:institution]) - else - institution = nil - end - excluded_orgs = Org.funders + Org.institutions - guidance_groups = {} - ggs = GuidanceGroup.guidance_groups_excluding(excluded_orgs) - - ggs.each do |gg| - guidance_groups[gg.id] = gg.name - end - - #subset guidance that belong to the institution - unless institution.nil? then - authorize Project - optional_gg = GuidanceGroup.where("optional_subset = ? AND organisation_id = ?", true, institution.id) - optional_gg.each do|optional| - guidance_groups[optional.id] = optional.name - end - - institution.children.each do |o| - o.guidance_groups.each do |gg| - include = false - gg.guidances.each do |g| - if g.dmptemplate.nil? || g.dmptemplate_id == template.id then - include = true - break - end - end - if include then - guidance_groups[gg.id] = gg.name - end - end - end - end - - #If template belongs to a funder and that funder has subset guidance display then. - if !template.nil? && template.organisation.organisation_type.name == constant("organisation_types.funder") then - optional_gg = GuidanceGroup.where("optional_subset = ? AND organisation_id = ?", true, template.organisation_id) - optional_gg.each do|optional| - guidance_groups[optional.id] = optional.name - end - end - - - respond_to do |format| - format.json { render json: guidance_groups.to_json } - end - end - - private - def project_params - params.require(:project).permit(:title, :grant_number, :identifier, :description, - :principal_investigator, :principal_investigator_identifier, - :data_contact, :funder_name, :visibility, - :dmptemplate_id, :organisation_id, :funder_id, :institution_id, - :guidance_group_ids, :project_group_ids) - end - - def orgs_of_type(org_type_name, published_templates = false) - org_type = OrganisationType.find_by_name(org_type_name) - all_such_orgs = org_type.organisations - if published_templates then - with_published = Array.new - all_such_orgs.each do |o| - if o.published_templates.count > 0 then - with_published << o - end - end - return with_published.sort_by {|o| [o.sort_name, o.name] } - else - return all_such_orgs.sort_by {|o| [o.sort_name, o.name] } - end - end - - # ----------------------------------------------------------- - def get_available_templates - Template.find_by(published: true) - end - - # ----------------------------------------------------------- - # Some guidance is always available to the user regardless of - # the template or institution. - # - # TODO: Reevaluate this. We should probably only do this for - # guidance groups who have guidance attached to themes - # ----------------------------------------------------------- - def get_always_available_guidance - # Exclude Funders, Institutions, or children of Institutions - excluded_orgs = orgs_of_type(constant("organisation_types.funder")) + - orgs_of_type(constant("organisation_types.institution")) + - Org.orgs_with_parent_of_type(constant("organisation_types.institution")) - - GuidanceGroup.guidance_groups_excluding(excluded_orgs) - end - - # ----------------------------------------------------------- - # This is a simplified version of the old possible_guidance method - # above. It sends all possible guidance to the client instead of - # forcing the client to make ajax calls to change the available - # guidance list (that is now handled via JS clientside) - # - # TODO: Reevaluate whether or not this logic makes sense once the - # DB has been cleaned up - # ----------------------------------------------------------- - def get_available_guidance - guidance_groups = [] - - #subset guidance that belong to an institution - optional_gg = GuidanceGroup.where("optional_subset = ? AND organisation_id IS NOT NULL", true) - optional_gg.each do|optional| - guidance_groups << optional.id - - optional.organisation.children.each do |o| - o.guidance_groups.each do |gg| - guidance_groups << gg.id - end - end - end - - # If template belongs to a funder and is an optional_subset - optional_gg = GuidanceGroup.where("optional_subset = ? AND organisation_id IN (?)", true, orgs_of_type(constant("organisation_types.funder"))) - optional_gg.each do|optional| - guidance_groups << optional.id - end - - GuidanceGroup.where(id: guidance_groups) - end - - # ----------------------------------------------------------- - def generate_export - @exported_plan = ExportedPlan.new.tap do |ep| - ep.plan = @plan - ep.user = current_user ||= nil - #ep.format = request.format.try(:symbol) - ep.format = request.format.to_sym - plan_settings = @plan.settings(:export) - - Settings::Dmptemplate::DEFAULT_SETTINGS.each do |key, value| - ep.settings(:export).send("#{key}=", plan_settings.send(key)) - end - end - - @exported_plan.save! # FIXME: handle invalid request types without erroring? - file_name = @exported_plan.project_name - - respond_to do |format| - format.html - format.xml - format.json - format.csv { send_data @exported_plan.as_csv, filename: "#{file_name}.csv" } - format.text { send_data @exported_plan.as_txt, filename: "#{file_name}.txt" } - format.docx { headers["Content-Disposition"] = "attachment; filename=\"#{file_name}.docx\""} - format.pdf do - @formatting = @plan.settings(:export).formatting - render pdf: file_name, - margin: @formatting[:margin], - footer: { - center: t('helpers.plan.export.pdf.generated_by'), - font_size: 8, - spacing: (@formatting[:margin][:bottom] / 2) - 4, - right: '[page] of [topage]' - } - end - end - end -end diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index 1cd51ea..448efa8 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -130,7 +130,7 @@ session[:locale] = current_user.get_locale unless current_user.get_locale.nil? set_gettext_locale #Method defined at controllers/application_controller.rb set_flash_message :notice, _('Details successfully updated.') - sign_in current_user, bypass_sign_in: true # Sign in the user bypassing validation in case his password changed + sign_in current_user, bypass: true # Sign in the user bypassing validation in case his password changed redirect_to edit_user_registration_path, notice: _('Details successfully updated.') else diff --git a/app/controllers/user_identifiers_controller.rb b/app/controllers/user_identifiers_controller.rb index 5ca04f4..6b78c8e 100644 --- a/app/controllers/user_identifiers_controller.rb +++ b/app/controllers/user_identifiers_controller.rb @@ -12,12 +12,12 @@ # If the requested identifier belongs to the current user remove it if user.user_identifiers.include?(identifier) identifier.destroy! - flash[:notice] = _('Successfully unlinked your account from %{is}') % {is: identifier.identifier_scheme.name} + flash[:notice] = _('Successfully unlinked your account from %{is}.') % {is: identifier.identifier_scheme.description} else - flash[:notice] = _('Unable to unlinked your account from %{is}') % {is: identifier.identifier_scheme.name} + flash[:notice] = _('Unable to unlink your account from %{is}.') % {is: identifier.identifier_scheme.description} end redirect_to edit_user_registration_path end -end \ No newline at end of file +end diff --git a/app/controllers/users/omniauth_callbacks_controller.rb b/app/controllers/users/omniauth_callbacks_controller.rb index 16c0516..0c6a600 100644 --- a/app/controllers/users/omniauth_callbacks_controller.rb +++ b/app/controllers/users/omniauth_callbacks_controller.rb @@ -31,8 +31,14 @@ # Otherwise sign them in else - sign_in_and_redirect user, event: :authentication - set_flash_message(:notice, :success, kind: scheme.name) if is_navigational_format? + # Until ORCID becomes supported as a login method + if scheme.name == 'shibboleth' + set_flash_message(:notice, :success, kind: scheme.description) if is_navigational_format? + sign_in_and_redirect user, event: :authentication + else + flash[:notice] = t('identifier_schemes.new_login_success') + redirect_to new_user_registration_url + end end # The user is already logged in and just registering the uid with us @@ -43,9 +49,9 @@ identifier: request.env["omniauth.auth"].uid, user: current_user) - flash[:notice] = t('identifier_schemes.connect_success', scheme: scheme.name) + flash[:notice] = _('Your account has been successfully linked to %{scheme}.') % { scheme: scheme.description } else - flash[:notice] = t('identifier_schemes.connect_failure', scheme: scheme.name) + flash[:notice] = _('Unable to link your account to %{scheme}.') % { scheme: scheme.description } end end @@ -53,68 +59,8 @@ redirect_to edit_user_registration_path end end - - - # TODO: We should consider rolling the below function up into the - # generic handler above # ------------------------------------------------------------- - def shibboleth - if user_signed_in? && current_user.shibboleth_id.present? && current_user.shibboleth_id.length > 0 then - flash[:warning] = I18n.t('devise.failure.already_authenticated') - redirect_to root_path - else - auth = request.env['omniauth.auth'] || {} - - eppn = auth['extra']['raw_info']['eppn'] unless auth['extra'].nil? - uid = nil - if !eppn.blank? then - uid = eppn - elsif !auth['uid'].blank? then - uid = auth['uid'] - elsif !auth['extra'].nil? - if !auth['extra']['raw_info']['targeted-id'].blank? then - uid = auth['extra']['raw_info']['targeted-id'] - end - end - - if !uid.nil? && !uid.blank? then - s_user = User.where(shibboleth_id: uid).first - # Take out previous record if was not confirmed. - if !s_user.nil? && s_user.confirmed_at.nil? then - sign_out s_user - User.delete(s_user.id) - s_user = nil - end - # Stops Shibboleth ID being blocked if email incorrectly entered. - if !s_user.nil? && s_user.try(:persisted?) then - flash[:notice] = I18n.t('devise.omniauth_callbacks.success', :kind => 'Shibboleth') - sign_in s_user - redirect_to root_path - else - if user_signed_in? then - current_user.update_attribute('shibboleth_id', uid) - user_id = current_user.id - sign_out current_user - session.delete(:shibboleth_data) - s_user = User.find(user_id) - flash[:notice] = I18n.t('devise.omniauth_callbacks.success', :kind => 'Shibboleth') - - sign_in s_user - redirect_to edit_user_registration_path - else - session[:shibboleth_data] = request.env['omniauth.auth'] - session[:shibboleth_data][:uid] = uid - redirect_to new_user_registration_url(:nosplash => 'true') - end - end - else - redirect_to root_path - end - end - end - - # ------------------------------------------------------------- def failure redirect_to root_path end diff --git a/app/controllers/users/omniauth_shibboleth_request_controller.rb b/app/controllers/users/omniauth_shibboleth_request_controller.rb deleted file mode 100644 index bc0f9f4..0000000 --- a/app/controllers/users/omniauth_shibboleth_request_controller.rb +++ /dev/null @@ -1,26 +0,0 @@ -class Users::OmniauthShibbolethRequestController < ApplicationController - before_filter :authenticate_user!, only: :associate - - def redirect - if !current_user.nil? && !current_user.org.nil? - idp = params[:idp] || current_user.org.wayfless_entity - else - idp = params[:idp] - end - - # briley - April 10 2017 - Replaced the old path with the one currently defined in `rake routes` - #query_params = {target: user_omniauth_callback_path(:shibboleth)} - query_params = {target: user_shibboleth_omniauth_callback_path} - - unless idp.blank? - query_params[:entityID] = idp - end - redirect_to "#{Rails.application.config.shibboleth_login}?#{query_params.to_query}", status: 302 - end - - def associate - # This action is protected - can only be reached if user is already logged in. - # See before_filter - redirect_to user_omniauth_callback_path(:shibboleth) - end -end diff --git a/app/dashboards/plan_dashboard.rb b/app/dashboards/plan_dashboard.rb index e1a67fe..cb3b724 100644 --- a/app/dashboards/plan_dashboard.rb +++ b/app/dashboards/plan_dashboard.rb @@ -17,7 +17,7 @@ notes: Field::HasMany, roles: Field::HasMany, users: Field::HasMany, - plan_guidance_groups: Field::HasMany, + plans_guidance_groups: Field::HasMany, guidance_groups: Field::HasMany, exported_plans: Field::HasMany, setting_objects: Field::HasMany.with_options(class_name: "Settings::Template"), @@ -61,7 +61,7 @@ :notes, :roles, :users, - :plan_guidance_groups, + :plans_guidance_groups, :guidance_groups, :exported_plans, :setting_objects, @@ -94,7 +94,7 @@ :notes, :roles, :users, - :plan_guidance_groups, + :plans_guidance_groups, :guidance_groups, :exported_plans, :setting_objects, diff --git a/app/dashboards/plan_guidance_group_dashboard.rb b/app/dashboards/plan_guidance_group_dashboard.rb index df39d80..5e659c0 100644 --- a/app/dashboards/plan_guidance_group_dashboard.rb +++ b/app/dashboards/plan_guidance_group_dashboard.rb @@ -51,7 +51,7 @@ # Overwrite this method to customize how plan guidance groups are displayed # across all pages of the admin dashboard. # - # def display_resource(plan_guidance_group) - # "PlanGuidanceGroup ##{plan_guidance_group.id}" + # def display_resource(plans_guidance_group) + # "PlanGuidanceGroup ##{plans_guidance_group.id}" # end end diff --git a/app/models/annotation.rb b/app/models/annotation.rb deleted file mode 100644 index c235d0b..0000000 --- a/app/models/annotation.rb +++ /dev/null @@ -1,36 +0,0 @@ -class Annotation < ActiveRecord::Base - enum type: [:example_answer, :guidance] - ## - # Associations - belongs_to :org - belongs_to :question - - ## - # Possibly needed for active_admin - # -relies on protected_attributes gem as syntax depricated in rails 4.2 - attr_accessible :org_id, :question_id, :text, - :org, :question, :as => [:default, :admin] - - - validates :question, :org, presence: {message: _("can't be blank")} - - ## - # returns the text from the suggested_answer - # - # @return [String] the text from the suggested_answer - def to_s - "#{text}" - end - - - ## - # deep copy the given question_option and all it's associations - # - # @params [QuestionOption] question_option to be deep copied - # @return [QuestionOption] the saved, copied question_option - def self.deep_copy(annotation) - annotation_copy = annotation.dup - annotation_copy.save! - return annotation_copy - end -end \ No newline at end of file diff --git a/app/models/guidance_group.rb b/app/models/guidance_group.rb index 547d49b..892a47e 100644 --- a/app/models/guidance_group.rb +++ b/app/models/guidance_group.rb @@ -3,10 +3,11 @@ ## # Associations belongs_to :org - has_many :guidances + has_many :guidances, dependent: :destroy has_and_belongs_to_many :plans, join_table: :plans_guidance_groups # depricated but needed for migration "single_group_for_guidance" # has_and_belongs_to_many :guidances, join_table: "guidance_in_group" + ## # Possibly needed for active_admin diff --git a/app/models/plan_guidance_group.rb b/app/models/plan_guidance_group.rb deleted file mode 100644 index 7b76499..0000000 --- a/app/models/plan_guidance_group.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Used to link plans to guidance groups -# the links are created at plan creation stage -# and link to all possible GGs -# then the selected field keeps track of which ones the user has turned on /off -# -class PlanGuidanceGroup < ActiveRecord::Base - belongs_to :plan - belongs_to :guidance_group - - attr_accessible :selected -end diff --git a/app/views/devise/registrations/_external_identifier.html.erb b/app/views/devise/registrations/_external_identifier.html.erb index bbc8d75..93c045a 100644 --- a/app/views/devise/registrations/_external_identifier.html.erb +++ b/app/views/devise/registrations/_external_identifier.html.erb @@ -1,27 +1,23 @@
- <% if Rails.application.config.shibboleth_enabled %> +
You are about to unlink %{application_name} of your institutional credentials, would you like to continue?
') % { :application_name => user_omniauth_shibboleth_path } %> + <%= raw _('You are about to unlink %{application_name} of your institutional credentials, would you like to continue?
') % { :application_name => user_shibboleth_omniauth_authorize_path } %>
- <%= raw t('helpers.sign_up_shibboleth_alert_text_html')%>
+ <%= (_("%{application_name} doesn't recognise your institutional credentials - either you haven't created an account with us or you haven't linked these details to your existing account.
* If you do not have an account with %{application_name}, please complete the form below.
* If you have an account with %{application_name}, please Sign in so we can link your account to your institutional credentials.
Once you have created and/or linked your account, you'll be able to sign in with your institutional credentials directly.") % { :application_name => Rails.configuration.branding[:application][:name] }).html_safe %>
<%= _('A colleague has invited you to contribute to their Data Management Plan at ') %><%=Rails.configuration.branding[:application][:name]%>
-<%= _('You have been given ') %><%= access_level %><%= _(' access to') %>"<%= link_to @role.plan.title, url_for(action: 'show', controller: 'plans', id: @role.plan.id, locale: FastGettext.default_locale) %>" <%=_(' by ')%><%= @user.firstname %>.
+<%= _('You have been given ') %><%= @access_level %><%= _(' access to') %>"<%= link_to @role.plan.title, url_for(action: 'show', controller: 'plans', id: @role.plan.id, locale: FastGettext.default_locale) %>" <%=_(' by ')%><%= @user.firstname %>.
<%= link_to _('Click here'), url_for(action: 'show', controller: 'plans', id: @role.plan.id, locale: FastGettext.default_locale) %><%= _(' to accept the invitation, (or copy ') %><%= url_for(action: 'show', controller: 'plans', id: @role.plan.id, locale: FastGettext.default_locale) %><%= _(' into your browser)')%>
@@ -14,4 +14,4 @@
<%= _('The ')%><%= Rails.configuration.branding[:application][:name] %><%=_(' team')%>.
Please note that your email address is used as your username. If you change this, remember to use your new email address on sign in.
" msgstr "Please note that your email address is used as your username. If you change this, remember to use your new email address on sign in.
" -#, fuzzy + msgid "Please select from the following drop-down so we can determine what questions and guidance should be displayed in your plan.
" -msgstr "guidance" +msgstr "Please select from the following drop-down so we can determine what questions and guidance should be displayed in your plan.
" msgid "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.
" msgstr "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.
" @@ -182,17 +194,14 @@ msgid "You are about to unlink %{application_name} of your institutional credentials, would you like to continue?
" msgstr "You are about to unlink %{application_name} of your institutional credentials, would you like to continue?
" -#, fuzzy msgid "You can give other people access to your plan here. There are three permission levels.
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.
" -msgstr "You can give other people access to your plan here. There are three permission levels.
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.
" +msgstr "You can give other people access to your plan here. There are three permission levels.
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.
" -#, fuzzy msgid "You can write pieces of guidance to be displayed by theme (e.g. generic guidance on storage and backup that should present across the board). Writing generic guidance by theme saves you time and effort as your advice will be automatically displayed across all templates rather than having to write guidance to accompany each.
If you do have a need to provide guidance for specific funders that would not be useful to a wider audience (e.g. if you have specific instructions for applicants to BBSRC for example), you can do so by adding guidance to a specific question when you edit your template.
" -msgstr "guidance on" +msgstr "You can write pieces of guidance to be displayed by theme (e.g. generic guidance on storage and backup that should present across the board). Writing generic guidance by theme saves you time and effort as your advice will be automatically displayed across all templates rather than having to write guidance to accompany each.
If you do have a need to provide guidance for specific funders that would not be useful to a wider audience (e.g. if you have specific instructions for applicants to BBSRC for example), you can do so by adding guidance to a specific question when you edit your template.
" -#, fuzzy msgid "A colleague has invited you to contribute to their Data Management Plan at " -msgstr "A colleague has invited you to contribute to their Data Management Plan at" +msgstr "A colleague has invited you to contribute to their Data Management Plan at " msgid "A pertinent ID as determined by the funder and/or institution." msgstr "A pertinent ID as determined by the funder and/or institution." @@ -203,9 +212,6 @@ msgid "API Information" msgstr "API Information" -msgid "API Permission Granted" -msgstr "API Permission Granted" - msgid "API token" msgstr "API token" @@ -263,12 +269,14 @@ msgid "Admin area" msgstr "Admin area" +msgid "All the best," +msgstr "" + msgid "An error has occurred while saving/resetting your export settings." msgstr "" -#, fuzzy msgid "Answer" -msgstr "Answers" +msgstr "Answer" msgid "Answer format" msgstr "Answer format" @@ -276,17 +284,14 @@ msgid "Answer questions" msgstr "Answer questions" -#, fuzzy msgid "Answered" -msgstr "Answered " +msgstr "Answered" -#, fuzzy msgid "Answered at" -msgstr "Answered " +msgstr "Answered at" -#, fuzzy msgid "Answered by" -msgstr "Answered " +msgstr "Answered by" msgid "Answers" msgstr "Answers" @@ -294,9 +299,8 @@ msgid "Anything you enter here will display in the answer box. If you want an answer in a certain format (e.g. tables), you can enter that style here." msgstr "Anything you enter here will display in the answer box. If you want an answer in a certain format (e.g. tables), you can enter that style here." -#, fuzzy msgid "Are you sure you want to remove this note?" -msgstr "Are you sure you would like to remove this note?" +msgstr "Are you sure you want to remove this note?" msgid "Are you sure you wish to delete this plan? If the plan is being shared with other users, by deleting it from your list, the plan will be deleted from their plan list as well" msgstr "Are you sure you wish to delete this plan? If the plan is being shared with other users, by deleting it from your list, the plan will be deleted from their plan list as well" @@ -334,9 +338,8 @@ msgid "Change language" msgstr "Change language" -#, fuzzy msgid "Change my password" -msgstr "Change your password" +msgstr "Change my password" msgid "Check box" msgstr "Check box" @@ -347,15 +350,17 @@ msgid "Choose a template" msgstr "Choose a template" +msgid "Click here" +msgstr "" + msgid "Click here to accept the invitation" msgstr "Click here to accept the invitation" msgid "Click here to confirm your account" msgstr "Click here to confirm your account" -#, fuzzy msgid "Click the link below to unlock your account" -msgstr "Click the link below to unlock your account:" +msgstr "Click the link below to unlock your account" msgid "Co-owner" msgstr "Co-owner" @@ -369,19 +374,14 @@ msgid "Comment" msgstr "Comment" -#, fuzzy msgid "Comment removed." -msgstr "Comment" +msgstr "Comment removed." msgid "Comment was successfully created." msgstr "Comment was successfully created." -#, fuzzy msgid "Comment was successfully saved." -msgstr "Comment was successfully created." - -msgid "Configure" -msgstr "Configure" +msgstr "Comment was successfully saved." msgid "Contact Email" msgstr "Contact Email" @@ -410,15 +410,6 @@ msgid "Customise" msgstr "Customise" -msgid "Customised" -msgstr "Customised" - -msgid "DMP access removed" -msgstr "DMP access removed" - -msgid "DMP permissions changed" -msgstr "DMP permissions changed" - msgid "Default" msgstr "Default" @@ -458,9 +449,6 @@ msgid "Dropdown" msgstr "Dropdown" -msgid "Duplicate column name. Please only include each column once." -msgstr "Duplicate column name. Please only include each column once." - msgid "E.g ORCID http://orcid.org/." msgstr "E.g ORCID http://orcid.org/." @@ -494,9 +482,8 @@ msgid "Edit template details" msgstr "Edit template details" -#, fuzzy msgid "Editor" -msgstr "Edit" +msgstr "Editor" msgid "Editors can contribute to plans. Co-owners have additional rights to edit plan details and control access." msgstr "Editors can contribute to plans. Co-owners have additional rights to edit plan details and control access." @@ -537,13 +524,11 @@ msgid "Export" msgstr "Export" -#, fuzzy msgid "Export settings updated successfully." -msgstr "Settings updated successfully" +msgstr "Export settings updated successfully." -#, fuzzy msgid "Exporting public plan is under development. Apologies for any inconvience." -msgstr "Export" +msgstr "Exporting public plan is under development. Apologies for any inconvience." msgid "Face" msgstr "Face" @@ -551,9 +536,6 @@ msgid "File Name" msgstr "File Name" -msgid "Filter" -msgstr "Filter" - msgid "Filter plans" msgstr "Filter plans" @@ -611,9 +593,8 @@ msgid "Guidance was successfully created." msgstr "Guidance was successfully created." -#, fuzzy msgid "Guidance was successfully deleted." -msgstr "Guidance was successfully created." +msgstr "Guidance was successfully deleted." msgid "Guidance was successfully updated." msgstr "Guidance was successfully updated." @@ -621,9 +602,8 @@ msgid "Hello" msgstr "Hello" -#, fuzzy msgid "Hello " -msgstr "Hello" +msgstr "Hello " msgid "Help" msgstr "Help" @@ -727,6 +707,9 @@ msgid "Main organisation" msgstr "Main organisation" +msgid "Many thanks," +msgstr "" + msgid "Margin" msgstr "Margin" @@ -853,6 +836,9 @@ msgid "Organization" msgstr "Organisation" +msgid "Original funder template has changed!" +msgstr "Original funder template has changed!" + msgid "Otherwise leave blank." msgstr "Otherwise leave blank." @@ -868,9 +854,8 @@ msgid "Password" msgstr "Password" -#, fuzzy msgid "Password and comfirmation must match" -msgstr "Password" +msgstr "Password and confirmation must match" msgid "Password confirmation" msgstr "Password confirmation" @@ -905,9 +890,8 @@ msgid "Plan was successfully created." msgstr "Plan was successfully created." -#, fuzzy msgid "Plan was successfully deleted." -msgstr "Plan was successfully created." +msgstr "Plan was successfully deleted." msgid "Plan was successfully updated." msgstr "Plan was successfully updated." @@ -945,9 +929,6 @@ msgid "Please fill in the basic project details below and click 'Update' to save" msgstr "Please fill in the basic project details below and click 'Update' to save" -msgid "Please follow the link above to login to " -msgstr "" - msgid "Please only enter up to 165 characters, you have used" msgstr "Please only enter up to 165 characters, you have used" @@ -990,12 +971,12 @@ msgid "Publish" msgstr "Publish" +msgid "Publish changes" +msgstr "Publish changes" + msgid "Published" msgstr "Published" -msgid "Published templates cannot be edited." -msgstr "Published templates cannot be edited." - msgid "Question" msgstr "Question" @@ -1060,10 +1041,10 @@ msgstr "Sections" msgid "Select Funder" -msgstr "Funder" +msgstr "Select Funder" msgid "Select Organisation" -msgstr "Organisation" +msgstr "Select Organisation" msgid "Select an action" msgstr "Select an action" @@ -1080,9 +1061,6 @@ msgid "Selected option(s)" msgstr "" -msgid "Settings - My plans" -msgstr "Settings - My plans" - msgid "Share" msgstr "Share" @@ -1113,10 +1091,13 @@ msgid "Size" msgstr "Size" -msgid "Someone has requested a link to change your" -msgstr "Someone has requested a link to change your" +msgid "Someone has requested a link to change your " +msgstr "Someone has requested a link to change your " -msgid "Successfully unlinked your account from %{is}" +msgid "Status" +msgstr "" + +msgid "Successfully unlinked your account from %{is}." msgstr "" msgid "Suggested answer" @@ -1158,25 +1139,27 @@ msgid "Text field" msgstr "Text field" -#, fuzzy msgid "Thank you for registering. Please confirm your email address" -msgstr "Thank you for registering at %{application_name}. Please confirm your email address:" - -msgid "Thanks" -msgstr "" +msgstr "Thank you for registering. Please confirm your email address" msgid "That email address is already registered." msgstr "That email address is already registered." +msgid "That template is not currently published." +msgstr "That template is not currently published." + +msgid "The " +msgstr "The " + +msgid "The edits in the box below will overwrite the existing answer from " +msgstr "The edits in the box below will overwrite the existing answer from " + msgid "The email address of an administrator at your organisation. Your users will use this address if they have questions." msgstr "The email address of an administrator at your organisation. Your users will use this address if they have questions." msgid "The items you select here will be displayed in the table below. You can sort the data by each of these headings or filter by entering a text string in the search box." msgstr "The items you select here will be displayed in the table below. You can sort the data by each of these headings or filter by entering a text string in the search box." -msgid "The table below lists the available columns that can be shown on the 'My plans' list. Choose which you would like to appear." -msgstr "The table below lists the available columns that can be shown on the 'My plans' list. Choose which you would like to appear." - msgid "Themes" msgstr "Themes" @@ -1192,9 +1175,6 @@ msgid "These are the basic details for your organisation." msgstr "These are the basic details for your organisation." -msgid "This account does not have access to that plan." -msgstr "This account does not have access to that plan." - msgid "This allows you to order questions within a section." msgstr "This allows you to order questions within a section." @@ -1237,7 +1217,13 @@ msgid "Top banner text" msgstr "Top banner text" -msgid "Unable to unlinked your account from %{is}" +msgid "Un-published" +msgstr "Un-published" + +msgid "Unable to link your account to %{scheme}." +msgstr "" + +msgid "Unable to unlink your account from %{is}." msgstr "" msgid "Unknown column name." @@ -1261,15 +1247,21 @@ msgid "Unlock my account" msgstr "Unlock my account" +msgid "Unpublish" +msgstr "Unpublish" + +msgid "Unpublished" +msgstr "Unpublished" + +msgid "Unpublished changes" +msgstr "Unpublished changes" + msgid "Unsaved answers" msgstr "Unsaved answers" msgid "Unsaved changes" msgstr "Unsaved changes" -msgid "Update Customisation" -msgstr "Update Customisation" - msgid "Upload a new logo file" msgstr "Upload a new logo file" @@ -1303,6 +1295,9 @@ msgid "Website" msgstr "Website" +msgid "Welcome to " +msgstr "Welcome to " + msgid "Welcome to %{application_name}" msgstr "Welcome to %{application_name}" @@ -1312,15 +1307,15 @@ msgid "When you create a new phase for your template, a version will automatically be created. Once you complete the form below you will be provided with options to create sections and questions." msgstr "When you create a new phase for your template, a version will automatically be created. Once you complete the form below you will be provided with options to create sections and questions." +msgid "While you were editing " +msgstr "" + msgid "Would you like to save them now?" msgstr "Would you like to save them now?" msgid "Yes" msgstr "Yes" -msgid "Yes [Original Template Has Changed]" -msgstr "Yes [Original Template Has Changed]" - msgid "You are about to delete '%{guidance_group_name}'. This will affect guidance. Are you sure?" msgstr "You are about to delete '%{guidance_group_name}'. This will affect guidance. Are you sure?" @@ -1342,6 +1337,9 @@ msgid "You are not authorized to perform this action." msgstr "" +msgid "You are viewing a historical version of this template. You will not be able to make changes." +msgstr "You are viewing a historical version of this template. You will not be able to make changes." + msgid "You can add an example or suggested answer to help users respond. These will be presented above the answer box and can be copied/ pasted." msgstr "You can add an example or suggested answer to help users respond. These will be presented above the answer box and can be copied/ pasted." @@ -1351,22 +1349,29 @@ msgid "You can edit any of the details below." msgstr "You can edit any of the details below." +msgid "You can not edit a historical version of this template." +msgstr "" + +msgid "You can not publish a historical version of this template." +msgstr "" + +msgid "You cannot delete historical versions of this template." +msgstr "" + msgid "You have altered answers but have not saved them:" msgstr "You have altered answers but have not saved them:" msgid "You have been given " msgstr "You have been given " -msgid "You have been given access to a Data Management Plan" -msgstr "You have been given access to a Data Management Plan" +msgid "You have been granted permission by your organisation to use our API. Your API token and instructions for using the API endpoints can be found " +msgstr "" -msgid "You have been granted permission by your organisation to use our API." -msgstr "You have been granted permission by your organisation to use our API." +msgid "You have un-published changes" +msgstr "" -#, fuzzy msgid "You have unsaved answers in the following sections:" msgstr "" -"You have unsaved answers in the following sections:\n" msgid "You may leave blank or select a different organisation to your own." msgstr "You may leave blank or select a different organisation to your own." @@ -1380,26 +1385,23 @@ msgid "You need to sign in or sign up before continuing." msgstr "You need to sign in or sign up before continuing." -#, fuzzy msgid "Your" -msgstr "Your " - -msgid "Your API token and instructions for using the API endpoints can be found here." -msgstr "Your API token and instructions for using the API endpoints can be found here." +msgstr "Your" msgid "Your ORCID" msgstr "Your ORCID" -#, fuzzy -msgid "Your access to" +msgid "Your access to " msgstr "Your access to " +msgid "Your account has been successfully linked to %{scheme}." +msgstr "Your account has been successfully linked to %{scheme}." + msgid "Your account is linked to your institutional credentials." msgstr "Your account is linked to your institutional credentials." -#, fuzzy msgid "Your account won't be created until you access the link above and set your password." -msgstr "Your " +msgstr "Your account won't be created until you access the link above and set your password." msgid "Your browser does not support the video tag." msgstr "Your browser does not support the video tag." @@ -1407,24 +1409,20 @@ msgid "Your password must contain at least 8 characters." msgstr "Your password must contain at least 8 characters." -#, fuzzy -msgid "Your password won't change until you access the link above and create a new one." -msgstr "Your " - -#, fuzzy -msgid "Your permissions relating to" +msgid "Your permissions relating to " msgstr "Your permissions relating to " -#, fuzzy -msgid "[Unpublished Changes]" -msgstr "Yes [Unpublished Changes]" +msgid "Your template has been published and is now available to users." +msgstr "Your template has been published and is now available to users." + +msgid "Your template is no longer published. Users will not be able to create new DMPs for this template until you re-publish it" +msgstr "Your template is no longer published. Users will not be able to create new DMPs for this template until you re-publish it" msgid "a day" msgstr "a day" -#, fuzzy msgid "about %d hours" -msgstr "about %{d} hours" +msgstr "about %d hours" msgid "about a minute" msgstr "about a minute" @@ -1438,12 +1436,20 @@ msgid "about an hour" msgstr "about an hour" -msgid "access." -msgstr "access." - -#, fuzzy msgid "account has been locked due to an excessive number of unsuccessful sign in attempts." -msgstr " account has been locked due to an excessive number of unsuccessful sign in attempts." +msgstr "account has been locked due to an excessive number of unsuccessful sign in attempts." + +msgid "activerecord.errors.messages.record_invalid" +msgstr "unable to save your changes" + +msgid "activerecord.errors.models.user.attributes.current_password.invalid" +msgstr "invalid email and/or password" + +msgid "activerecord.errors.models.user.attributes.email.blank" +msgstr "can't be blank" + +msgid "activerecord.errors.models.user.attributes.password.blank" +msgstr "can't be blank" msgid "add guidance text" msgstr "add guidance text" @@ -1454,13 +1460,11 @@ msgid "ago" msgstr "ago" -#, fuzzy msgid "answered" -msgstr "Answered " +msgstr "answered" -#, fuzzy -msgid "approx. %{space_used} of available space used (max %{num_pages} pages)" -msgstr "approx. %{space_used}% of available space used (max %{num_pages} pages)" +msgid "approx. %{space_used}%% of available space used (max %{num_pages} pages)" +msgstr "approx. %{space_used}%% of available space used (max %{num_pages} pages)" msgid "by" msgstr "" @@ -1486,21 +1490,12 @@ msgid "guidance" msgstr "guidance" -#, fuzzy msgid "guidance group" -msgstr "Guidance group" +msgstr "guidance group" msgid "guidance on" msgstr "guidance on" -#, fuzzy -msgid "has been removed." -msgstr " has been removed." - -#, fuzzy -msgid "have changed. You now have" -msgstr " have changed. You now have " - msgid "height must be less than 100px" msgstr "" @@ -1516,76 +1511,59 @@ msgid "helpers.project.is_test_help_text" msgstr "" -#, fuzzy msgid "into your browser" -msgstr "into your browser)." +msgstr "into your browser" msgid "less than a minute" msgstr "less than a minute" -#, fuzzy msgid "must be logged in" -msgstr "Last logged in" +msgstr "must be logged in" -#, fuzzy msgid "must be one of the following formats: jpeg, jpg, png, gif, bmp" -msgstr "format" +msgstr "must be one of the following formats: jpeg, jpg, png, gif, bmp" msgid "must be unique" msgstr "" -#, fuzzy msgid "must have access to guidances api" -msgstr " access to " +msgstr "must have access to guidances api" -#, fuzzy msgid "note" -msgstr "Note" +msgstr "note" -#, fuzzy msgid "or copy" -msgstr "(or copy" +msgstr "or copy" -#, fuzzy msgid "org_admin.templates.edit_phase_label" -msgstr "org_admin" +msgstr "" -#, fuzzy msgid "organisation" -msgstr "Organisation" +msgstr "organisation" -msgid "password. You can do this through the link below." -msgstr "password. You can do this through the link below." - -#, fuzzy msgid "phase" -msgstr "Phase" +msgstr "phase" -#, fuzzy msgid "plan" -msgstr "plans" +msgstr "plan" msgid "profile" msgstr "" -#, fuzzy msgid "question" -msgstr "Question" +msgstr "question" -#, fuzzy msgid "questions" -msgstr "Questions" +msgstr "questions" msgid "questions answered" msgstr "questions answered" -#, fuzzy msgid "role" -msgstr "Role" +msgstr "role" -#, fuzzy msgid "section" -msgstr "Section" +msgstr "section" msgid "select a guidance group" msgstr "select a guidance group" @@ -1593,13 +1571,11 @@ msgid "select at least one theme" msgstr "select at least one theme" -#, fuzzy msgid "suggested answer" -msgstr "Suggested answer" +msgstr "suggested answer" -#, fuzzy msgid "template" -msgstr "templates" +msgstr "template" msgid "user" msgstr "user" @@ -1615,13 +1591,3 @@ msgid "{\"Error\":\"You do not have authorisation to view this endpoint\"}" msgstr "{\"Error\":\"You do not have authorisation to view this endpoint\"}" - -# ActiveRecord model errors that we could not override in the model's validation definition -msgid "activerecord.errors.models.user.attributes.email.blank" -msgstr "can't be blank" -msgid "activerecord.errors.models.user.attributes.password.blank" -msgstr "can't be blank" -msgid "activerecord.errors.models.user.attributes.current_password.invalid" -msgstr "invalid email and/or password" -msgid "activerecord.errors.messages.record_invalid" -msgstr "unable to save your changes" diff --git a/config/locale/en_US/app.po b/config/locale/en_US/app.po index 50f9e3e..99f6bcc 100644 --- a/config/locale/en_US/app.po +++ b/config/locale/en_US/app.po @@ -3,7 +3,6 @@ # This file is distributed under the same license as the app package. # FIRST AUTHORThe %{organisation_name} ('%{organisation_abbreviation}') are consortia supported by %{legal_entity}. Our primary constituency is the research community, particularly the higher and further education sector.
%{application_name} ('the tool', 'the system') is a tool developed by the %{organisation_abbreviation} as a shared resource for the research community. It is hosted by %{legal_entity}.
In order to help identify and administer your account with %{application_name}, we need to store your email address. We may also use it to contact you to obtain feedback on your use of the tool, or to inform you of the latest developments or releases. The information may be transferred between the %{organisation_abbreviation} partner institutions but only for legitimate %{organisation_abbreviation} purposes. We will not sell, rent or trade any personal information you provide to us.
The information you enter into this system can be seen by you, people you have chosen to share access with, and - solely for the purposes of maintaining the service - system administrators at %{legal_entity}. We compile anonymised, automated and aggregated information from plans, but we will not directly access, make use of, or share your content with anyone else without your permission. Authorised officers of your home institution may access your plans for specific purposes - for example, to track compliance with funder/institutional requirements or to calculate storage requirements.
%{legal_entity} holds your plans on your behalf, but they are your property and responsibility. Any FOI applicants will be referred back to your home institution.
Your password is stored in encrypted form and cannot be retrieved. If forgotten it has to be reset.
Please note that %{application_name} uses Cookies. Further information about Cookies and how we use them is available on the main DCC website.
Use of the tool indicates that you understand and agree to these terms and conditions.
%{application_name} has been jointly developed by the %{organisation_name} to help you write data management plans.
" msgstr "%{application_name} has been jointly developed by the %{organisation_name} to help you write data management plans.
" msgid "%{application_name} is developed and maintained by the UK %{organisation_name}. We’re a small team, and are happy to collaborate with others. There are various ways you can get involved:
We run a listserv for the %{application_name} user group that you can request to join. We also host periodic meetings to consult on our plans. Being part of the user group gives you the opportunity to be informed about future developments and to provide feedback to help shape our plans.
Our user group sessions are usually focused around a certain topic (e.g. fleshing out use cases for an API) so invites are sent based on your areas of expertise. It is helpful for us to know your role and interests to invite relevant people to each session. Please introduce yourself on the list and share your ideas.
Notes from previous user group sessions are provided below:
Please let us know your interests and share your ideas for future developments via the mailing list so the community as a whole can feedback on them.
%{application_name} can be customised by institutions and disciplines. You can add templates for users in your organisation and tailored guidance that explains local support and services. Example answers can also be offered to help users understand what to write in a Data Management Plan. To do this you’ll need to request admin access, so please email us on dmponline@dcc.ac.uk.
Futher guidance on customising %{application_name} is available on the %{application_name} website.
%{application_name} is a Ruby on Rails application. The source code is made available under an MIT License. This permits others to reuse the code freely, but obligates you to share the source code for any extensions in the same way. Please inform us if you install an instance of %{application_name} and offer your contributions back to the community.
If you install an instance of %{application_name} we require that you credit the %{organisation_abbreviation} as originators of the tool. We recommend that the acknowledgement takes the form of the %{application_name} logo with a link back to the %{organisation_abbreviation}-hosted version of the tool.
We are willing to work with external developers to add new features to the tool. We are also open to delivering new features on a chargeable basis. If there are extensions you would like to see prioritised and have resource to support additional developer effort, please contact us on dmponline@dcc.ac.uk to negotiate terms.
The code is available on GitHub
We are impressed by the uptake of %{application_name} both in the UK and internationally and are really keen to hear how you are using the tool and promoting it in your context. We are aware that others have run training courses, developed guidance materials and advocated use of the tool. Please notify us of this as it helps to show impact.
We are currently investigating options for revenue generation. This will help us serve the increased demand more effectively and safeguard the long-term sustainability of %{application_name}. Plans will be released for consultation soon but we also welcome your suggestions on how best to support our work.
" -msgstr "%{application_name} is developed and maintained by the UK %{organisation_name}. We’re a small team, and are happy to collaborate with others. There are various ways you can get involved:
We run a listserv for the %{application_name} user group that you can request to join. We also host periodic meetings to consult on our plans. Being part of the user group gives you the opportunity to be informed about future developments and to provide feedback to help shape our plans.
Our user group sessions are usually focused around a certain topic (e.g. fleshing out use cases for an API) so invites are sent based on your areas of expertise. It is helpful for us to know your role and interests to invite relevant people to each session. Please introduce yourself on the list and share your ideas.
Notes from previous user group sessions are provided below:
Please let us know your interests and share your ideas for future developments via the mailing list so the community as a whole can feedback on them.
%{application_name} can be customised by institutions and disciplines. You can add templates for users in your organisation and tailored guidance that explains local support and services. Example answers can also be offered to help users understand what to write in a Data Management Plan. To do this you’ll need to request admin access, so please email us on dmponline@dcc.ac.uk.
Futher guidance on customising %{application_name} is available on the %{application_name} website.
%{application_name} is a Ruby on Rails application. The source code is made available under an MIT License. This permits others to reuse the code freely, but obligates you to share the source code for any extensions in the same way. Please inform us if you install an instance of %{application_name} and offer your contributions back to the community.
If you install an instance of %{application_name} we require that you credit the %{organisation_abbreviation} as originators of the tool. We recommend that the acknowledgement takes the form of the %{application_name} logo with a link back to the %{organisation_abbreviation}-hosted version of the tool.
We are willing to work with external developers to add new features to the tool. We are also open to delivering new features on a chargeable basis. If there are extensions you would like to see prioritised and have resource to support additional developer effort, please contact us on dmponline@dcc.ac.uk to negotiate terms.
The code is available on GitHub
We are impressed by the uptake of %{application_name} both in the UK and internationally and are really keen to hear how you are using the tool and promoting it in your context. We are aware that others have run training courses, developed guidance materials and advocated use of the tool. Please notify us of this as it helps to show impact.
We are currently investigating options for revenue generation. This will help us serve the increased demand more effectively and safeguard the long-term sustainability of %{application_name}. Plans will be released for consultation soon but we also welcome your suggestions on how best to support our work.
" +msgstr "%{application_name} is developed and maintained by the UK %{organisation_name}. We’re a small team, and are happy to collaborate with others. There are various ways you can get involved:
We run a listserv for the %{application_name} user group that you can request to join. We also host periodic meetings to consult on our plans. Being part of the user group gives you the opportunity to be informed about future developments and to provide feedback to help shape our plans.
Our user group sessions are usually focused around a certain topic (e.g. fleshing out use cases for an API) so invites are sent based on your areas of expertise. It is helpful for us to know your role and interests to invite relevant people to each session. Please introduce yourself on the list and share your ideas.
Notes from previous user group sessions are provided below:
Please let us know your interests and share your ideas for future developments via the mailing list so the community as a whole can feedback on them.
%{application_name} can be customised by institutions and disciplines. You can add templates for users in your organization and tailored guidance that explains local support and services. Example answers can also be offered to help users understand what to write in a Data Management Plan. To do this you’ll need to request admin access, so please email us on dmponline@dcc.ac.uk.
Futher guidance on customising %{application_name} is available on the %{application_name} website.
%{application_name} is a Ruby on Rails application. The source code is made available under an MIT License. This permits others to reuse the code freely, but obligates you to share the source code for any extensions in the same way. Please inform us if you install an instance of %{application_name} and offer your contributions back to the community.
If you install an instance of %{application_name} we require that you credit the %{organisation_abbreviation} as originators of the tool. We recommend that the acknowledgement takes the form of the %{application_name} logo with a link back to the %{organisation_abbreviation}-hosted version of the tool.
We are willing to work with external developers to add new features to the tool. We are also open to delivering new features on a chargeable basis. If there are extensions you would like to see prioritised and have resource to support additional developer effort, please contact us on dmponline@dcc.ac.uk to negotiate terms.
The code is available on GitHub
We are impressed by the uptake of %{application_name} both in the UK and internationally and are really keen to hear how you are using the tool and promoting it in your context. We are aware that others have run training courses, developed guidance materials and advocated use of the tool. Please notify us of this as it helps to show impact.
We are currently investigating options for revenue generation. This will help us serve the increased demand more effectively and safeguard the long-term sustainability of %{application_name}. Plans will be released for consultation soon but we also welcome your suggestions on how best to support our work.
" msgid "%{application_name} stories from the %{organisation_abbreviation} website
" msgstr "%{application_name} stories from the %{organisation_abbreviation} website
" @@ -146,7 +158,7 @@ msgstr "Funding bodies increasingly require their grant-holders to produce Data Management Plans(DMP), both during the bid-preparation stage and after funding has been secured. %{application_name} has been produced by the %{organisation_name} to help research teams respond to this requirement, and any expectations that their institution or others may apply.
The %{organisation_abbreviation} worked closely with research funders and universities to produce a tool that assists researchers to produce an effective data management plan (DMP) to cater for the whole lifecycle of a project, from bid-preparation stage through to completion.
There are a number of templates within the tool that represent the requirements of different funders and institutions. Users are asked three questions at the outset so we can determine the appropriate template to display (e.g. the ESRC template when applying for an ESRC grant). Guidance is provided to help you interpret and answer the questions. This guidance is provided by researcher funders, universities and disciplines.
If you have an account please sign in and start creating or editing your DMP.
If you do not have a %{application_name} account, click on 'Sign up' on the homepage.
Please visit the 'Help' page for guidance.
We are constantly improving the user interface and functionality of %{application_name}. If you would like to contribute with feedback and suggestions, please contact us by emailing dmponline@dcc.ac.uk. You can also report bugs and request new features directly on GitHub
" msgid "Here you can view previously published versions of your template. These can no longer be modified.
" -msgstr "" +msgstr "Here you can view previously published versions of your template. These can no longer be modified.
" msgid "Here you set the title that users will see. If you intend to have multiple phases for you DMP, this should be clear in the title and description.
" msgstr "Here you set the title that users will see. If you intend to have multiple phases for you DMP, this should be clear in the title and description.
" @@ -157,9 +169,8 @@ msgid "Please note that your email address is used as your username. If you change this, remember to use your new email address on sign in.
" msgstr "Please note that your email address is used as your username. If you change this, remember to use your new email address on sign in.
" -#, fuzzy msgid "Please select from the following drop-down so we can determine what questions and guidance should be displayed in your plan.
" -msgstr "guidance" +msgstr "Please select from the following drop-down so we can determine what questions and guidance should be displayed in your plan.
" msgid "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.
" msgstr "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.
" @@ -168,7 +179,7 @@ msgstr "Select themes that are relevant to this question.
This allows your generic institution-level guidance to be drawn in, as well as that from other sources e.g. the %{organisation_abbreviation} or any Schools/Departments that you provide guidance for.
You can select multiple themes by using the CTRL button.
" msgid "The %{organisation_abbreviation} are now collaborating to develop a joint codebase for Data Management Planning called DMP Roadmap. Both of our tools will be delivered using this in the future. We've agreed what features need to be included and are planning a few sprints to deliver these. The initial release will include all of the main priorities we already had flagged, including:
%{application_name} has an active and growing user base, and we are grateful to the members who suggest ideas for new and improved features. If you would like to help shape our future plans, please join the user group. More information on how you can engage with us is available under the 'Get involved' tab.
The current version of %{application_name} is %{application_version}.
The code is available on GitHub
" -msgstr "The %{organisation_abbreviation} are now collaborating to develop a joint codebase for Data Management Planning called DMP Roadmap. Both of our tools will be delivered using this in the future. We've agreed what features need to be included and are planning a few sprints to deliver these. The initial release will include all of the main priorities we already had flagged, including:
%{application_name} has an active and growing user base, and we are grateful to the members who suggest ideas for new and improved features. If you would like to help shape our future plans, please join the user group. More information on how you can engage with us is available under the 'Get involved' tab.
The current version of %{application_name} is %{application_version}.
The code is available on GitHub
" +msgstr "The %{organisation_abbreviation} are now collaborating to develop a joint codebase for Data Management Planning called DMP Roadmap. Both of our tools will be delivered using this in the future. We've agreed what features need to be included and are planning a few sprints to deliver these. The initial release will include all of the main priorities we already had flagged, including:
%{application_name} has an active and growing user base, and we are grateful to the members who suggest ideas for new and improved features. If you would like to help shape our future plans, please join the user group. More information on how you can engage with us is available under the 'Get involved' tab.
The current version of %{application_name} is %{application_version}.
The code is available on GitHub
" msgid "The table below lists the plans that you have created, and any that have been shared with you by others.These can be edited, shared, exported or deleted at anytime.
" msgstr "The table below lists the plans that you have created, and any that have been shared with you by others.These can be edited, shared, exported or deleted at anytime.
" @@ -182,17 +193,14 @@ msgid "You are about to unlink %{application_name} of your institutional credentials, would you like to continue?
" msgstr "You are about to unlink %{application_name} of your institutional credentials, would you like to continue?
" -#, fuzzy msgid "You can give other people access to your plan here. There are three permission levels.
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.
" -msgstr "You can give other people access to your plan here. There are three permission levels.
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.
" +msgstr "You can give other people access to your plan here. There are three permission levels.
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.
" -#, fuzzy msgid "You can write pieces of guidance to be displayed by theme (e.g. generic guidance on storage and backup that should present across the board). Writing generic guidance by theme saves you time and effort as your advice will be automatically displayed across all templates rather than having to write guidance to accompany each.
If you do have a need to provide guidance for specific funders that would not be useful to a wider audience (e.g. if you have specific instructions for applicants to BBSRC for example), you can do so by adding guidance to a specific question when you edit your template.
" -msgstr "guidance on" +msgstr "You can write pieces of guidance to be displayed by theme (e.g. generic guidance on storage and backup that should present across the board). Writing generic guidance by theme saves you time and effort as your advice will be automatically displayed across all templates rather than having to write guidance to accompany each.
If you do have a need to provide guidance for specific funders that would not be useful to a wider audience (e.g. if you have specific instructions for applicants to BBSRC for example), you can do so by adding guidance to a specific question when you edit your template.
" -#, fuzzy msgid "A colleague has invited you to contribute to their Data Management Plan at " -msgstr "A colleague has invited you to contribute to their Data Management Plan at" +msgstr "A colleague has invited you to contribute to their Data Management Plan at " msgid "A pertinent ID as determined by the funder and/or institution." msgstr "A pertinent ID as determined by the funder and/or institution." @@ -203,9 +211,6 @@ msgid "API Information" msgstr "API Information" -msgid "API Permission Granted" -msgstr "API Permission Granted" - msgid "API token" msgstr "API token" @@ -263,12 +268,14 @@ msgid "Admin area" msgstr "Admin area" +msgid "All the best," +msgstr "" + msgid "An error has occurred while saving/resetting your export settings." msgstr "" -#, fuzzy msgid "Answer" -msgstr "Answers" +msgstr "Answer" msgid "Answer format" msgstr "Answer format" @@ -276,17 +283,14 @@ msgid "Answer questions" msgstr "Answer questions" -#, fuzzy msgid "Answered" -msgstr "Answered " +msgstr "Answered" -#, fuzzy msgid "Answered at" -msgstr "Answered " +msgstr "Answered at" -#, fuzzy msgid "Answered by" -msgstr "Answered " +msgstr "Answered by" msgid "Answers" msgstr "Answers" @@ -294,9 +298,8 @@ msgid "Anything you enter here will display in the answer box. If you want an answer in a certain format (e.g. tables), you can enter that style here." msgstr "Anything you enter here will display in the answer box. If you want an answer in a certain format (e.g. tables), you can enter that style here." -#, fuzzy msgid "Are you sure you want to remove this note?" -msgstr "Are you sure you would like to remove this note?" +msgstr "Are you sure you want to remove this note?" msgid "Are you sure you wish to delete this plan? If the plan is being shared with other users, by deleting it from your list, the plan will be deleted from their plan list as well" msgstr "Are you sure you wish to delete this plan? If the plan is being shared with other users, by deleting it from your list, the plan will be deleted from their plan list as well" @@ -332,11 +335,10 @@ msgstr "Cancel" msgid "Change language" -msgstr "" +msgstr "Change language" -#, fuzzy msgid "Change my password" -msgstr "Change your password" +msgstr "Change my password" msgid "Check box" msgstr "Check box" @@ -347,15 +349,17 @@ msgid "Choose a template" msgstr "Choose a template" +msgid "Click here" +msgstr "" + msgid "Click here to accept the invitation" msgstr "Click here to accept the invitation" msgid "Click here to confirm your account" msgstr "Click here to confirm your account" -#, fuzzy msgid "Click the link below to unlock your account" -msgstr "Click the link below to unlock your account:" +msgstr "Click the link below to unlock your account" msgid "Co-owner" msgstr "Co-owner" @@ -369,19 +373,14 @@ msgid "Comment" msgstr "Comment" -#, fuzzy msgid "Comment removed." -msgstr "Comment" +msgstr "Comment removed." msgid "Comment was successfully created." -msgstr "" +msgstr "Comment was successfully created." -#, fuzzy msgid "Comment was successfully saved." -msgstr "Project was successfully created." - -msgid "Configure" -msgstr "Configure" +msgstr "Comment was successfully saved." msgid "Contact Email" msgstr "Contact Email" @@ -410,15 +409,6 @@ msgid "Customise" msgstr "Customise" -msgid "Customised" -msgstr "" - -msgid "DMP access removed" -msgstr "DMP access removed" - -msgid "DMP permissions changed" -msgstr "DMP permissions changed" - msgid "Default" msgstr "Default" @@ -458,9 +448,6 @@ msgid "Dropdown" msgstr "Dropdown" -msgid "Duplicate column name. Please only include each column once." -msgstr "Duplicate column name. Please only include each column once." - msgid "E.g ORCID http://orcid.org/." msgstr "E.g ORCID http://orcid.org/." @@ -494,9 +481,8 @@ msgid "Edit template details" msgstr "Edit template details" -#, fuzzy msgid "Editor" -msgstr "Edit" +msgstr "Editor" msgid "Editors can contribute to plans. Co-owners have additional rights to edit plan details and control access." msgstr "Editors can contribute to plans. Co-owners have additional rights to edit plan details and control access." @@ -537,13 +523,11 @@ msgid "Export" msgstr "Export" -#, fuzzy msgid "Export settings updated successfully." -msgstr "Settings updated successfully" +msgstr "Export settings updated successfully." -#, fuzzy msgid "Exporting public plan is under development. Apologies for any inconvience." -msgstr "Export" +msgstr "Exporting public plan is under development. Apologies for any inconvience." msgid "Face" msgstr "Face" @@ -551,9 +535,6 @@ msgid "File Name" msgstr "File Name" -msgid "Filter" -msgstr "Filter" - msgid "Filter plans" msgstr "Filter plans" @@ -611,9 +592,8 @@ msgid "Guidance was successfully created." msgstr "Guidance was successfully created." -#, fuzzy msgid "Guidance was successfully deleted." -msgstr "Guidance was successfully created." +msgstr "Guidance was successfully deleted." msgid "Guidance was successfully updated." msgstr "Guidance was successfully updated." @@ -621,15 +601,14 @@ msgid "Hello" msgstr "Hello" -#, fuzzy msgid "Hello " -msgstr "Hello" +msgstr "Hello " msgid "Help" msgstr "Help" msgid "History" -msgstr "" +msgstr "History" msgid "Home" msgstr "Home" @@ -698,7 +677,7 @@ msgstr "Invitation issued successfully." msgid "Language" -msgstr "" +msgstr "Language" msgid "Last logged in" msgstr "Last logged in" @@ -727,6 +706,9 @@ msgid "Main organisation" msgstr "Main organization" +msgid "Many thanks," +msgstr "" + msgid "Margin" msgstr "Margin" @@ -830,7 +812,7 @@ msgstr "Order of display" msgid "Organisation" -msgstr "Organisation" +msgstr "Organization" msgid "Organisation details" msgstr "Organization details" @@ -853,6 +835,9 @@ msgid "Organization" msgstr "Organization" +msgid "Original funder template has changed!" +msgstr "Original funder template has changed!" + msgid "Otherwise leave blank." msgstr "Otherwise leave blank." @@ -868,9 +853,8 @@ msgid "Password" msgstr "Password" -#, fuzzy msgid "Password and comfirmation must match" -msgstr "Password" +msgstr "Password and confirmation must match" msgid "Password confirmation" msgstr "Password confirmation" @@ -885,7 +869,7 @@ msgstr "Plan Data Contact" msgid "Plan Description" -msgstr "Description" +msgstr "Plan Description" msgid "Plan ID" msgstr "Plan ID" @@ -905,9 +889,8 @@ msgid "Plan was successfully created." msgstr "Plan was successfully created." -#, fuzzy msgid "Plan was successfully deleted." -msgstr "Plan was successfully created." +msgstr "Plan was successfully deleted." msgid "Plan was successfully updated." msgstr "Plan was successfully updated." @@ -945,9 +928,6 @@ msgid "Please fill in the basic project details below and click 'Update' to save" msgstr "Please fill in the basic project details below and click 'Update' to save" -msgid "Please follow the link above to login to " -msgstr "" - msgid "Please only enter up to 165 characters, you have used" msgstr "Please only enter up to 165 characters, you have used" @@ -990,12 +970,12 @@ msgid "Publish" msgstr "Publish" +msgid "Publish changes" +msgstr "Publish changes" + msgid "Published" msgstr "Published" -msgid "Published templates cannot be edited." -msgstr "" - msgid "Question" msgstr "Question" @@ -1060,10 +1040,10 @@ msgstr "Sections" msgid "Select Funder" -msgstr "Funder" +msgstr "Select Funder" msgid "Select Organisation" -msgstr "Organisation" +msgstr "Select Organization" msgid "Select an action" msgstr "Select an action" @@ -1080,9 +1060,6 @@ msgid "Selected option(s)" msgstr "" -msgid "Settings - My plans" -msgstr "Settings - My plans" - msgid "Share" msgstr "Share" @@ -1113,10 +1090,13 @@ msgid "Size" msgstr "Size" -msgid "Someone has requested a link to change your" -msgstr "Someone has requested a link to change your" +msgid "Someone has requested a link to change your " +msgstr "Someone has requested a link to change your " -msgid "Successfully unlinked your account from %{is}" +msgid "Status" +msgstr "" + +msgid "Successfully unlinked your account from %{is}." msgstr "" msgid "Suggested answer" @@ -1132,7 +1112,7 @@ msgstr "Template" msgid "Template History" -msgstr "" +msgstr "Template History" msgid "Template details" msgstr "Template details" @@ -1158,25 +1138,27 @@ msgid "Text field" msgstr "Text field" -#, fuzzy msgid "Thank you for registering. Please confirm your email address" -msgstr "Thank you for registering at %{application_name}. Please confirm your email address:" - -msgid "Thanks" -msgstr "" +msgstr "Thank you for registering. Please confirm your email address" msgid "That email address is already registered." msgstr "That email address is already registered." +msgid "That template is not currently published." +msgstr "That template is not currently published." + +msgid "The " +msgstr "The " + +msgid "The edits in the box below will overwrite the existing answer from " +msgstr "The edits in the box below will overwrite the existing answer from " + msgid "The email address of an administrator at your organisation. Your users will use this address if they have questions." msgstr "The email address of an administrator at your organization. Your users will use this address if they have questions." msgid "The items you select here will be displayed in the table below. You can sort the data by each of these headings or filter by entering a text string in the search box." msgstr "The items you select here will be displayed in the table below. You can sort the data by each of these headings or filter by entering a text string in the search box." -msgid "The table below lists the available columns that can be shown on the 'My plans' list. Choose which you would like to appear." -msgstr "The table below lists the available columns that can be shown on the 'My plans' list. Choose which you would like to appear." - msgid "Themes" msgstr "Themes" @@ -1192,9 +1174,6 @@ msgid "These are the basic details for your organisation." msgstr "These are the basic details for your organization." -msgid "This account does not have access to that plan." -msgstr "This account does not have access to that plan." - msgid "This allows you to order questions within a section." msgstr "This allows you to order questions within a section." @@ -1237,7 +1216,13 @@ msgid "Top banner text" msgstr "Top banner text" -msgid "Unable to unlinked your account from %{is}" +msgid "Un-published" +msgstr "Un-published" + +msgid "Unable to link your account to %{scheme}." +msgstr "" + +msgid "Unable to unlink your account from %{is}." msgstr "" msgid "Unknown column name." @@ -1261,15 +1246,21 @@ msgid "Unlock my account" msgstr "Unlock my account" +msgid "Unpublish" +msgstr "Unpublish" + +msgid "Unpublished" +msgstr "Unpublished" + +msgid "Unpublished changes" +msgstr "Unpublished changes" + msgid "Unsaved answers" msgstr "Unsaved answers" msgid "Unsaved changes" msgstr "Unsaved changes" -msgid "Update Customisation" -msgstr "" - msgid "Upload a new logo file" msgstr "Upload a new logo file" @@ -1303,6 +1294,9 @@ msgid "Website" msgstr "Website" +msgid "Welcome to " +msgstr "Welcome to " + msgid "Welcome to %{application_name}" msgstr "Welcome to %{application_name}" @@ -1312,15 +1306,15 @@ msgid "When you create a new phase for your template, a version will automatically be created. Once you complete the form below you will be provided with options to create sections and questions." msgstr "When you create a new phase for your template, a version will automatically be created. Once you complete the form below you will be provided with options to create sections and questions." +msgid "While you were editing " +msgstr "" + msgid "Would you like to save them now?" msgstr "Would you like to save them now?" msgid "Yes" msgstr "Yes" -msgid "Yes [Original Template Has Changed]" -msgstr "" - msgid "You are about to delete '%{guidance_group_name}'. This will affect guidance. Are you sure?" msgstr "You are about to delete '%{guidance_group_name}'. This will affect guidance. Are you sure?" @@ -1342,6 +1336,9 @@ msgid "You are not authorized to perform this action." msgstr "" +msgid "You are viewing a historical version of this template. You will not be able to make changes." +msgstr "You are viewing a historical version of this template. You will not be able to make changes." + msgid "You can add an example or suggested answer to help users respond. These will be presented above the answer box and can be copied/ pasted." msgstr "You can add an example or suggested answer to help users respond. These will be presented above the answer box and can be copied/ pasted." @@ -1351,22 +1348,29 @@ msgid "You can edit any of the details below." msgstr "You can edit any of the details below." +msgid "You can not edit a historical version of this template." +msgstr "" + +msgid "You can not publish a historical version of this template." +msgstr "" + +msgid "You cannot delete historical versions of this template." +msgstr "" + msgid "You have altered answers but have not saved them:" msgstr "You have altered answers but have not saved them:" msgid "You have been given " msgstr "You have been given " -msgid "You have been given access to a Data Management Plan" -msgstr "You have been given access to a Data Management Plan" +msgid "You have been granted permission by your organisation to use our API. Your API token and instructions for using the API endpoints can be found " +msgstr "You have been granted permission by your organization to use our API. Your API token and instructions for using the API endpoints can be found " -msgid "You have been granted permission by your organisation to use our API." -msgstr "You have been granted permission by your organization to use our API." +msgid "You have un-published changes" +msgstr "" -#, fuzzy msgid "You have unsaved answers in the following sections:" msgstr "" -"You have unsaved answers in the following sections:\n" msgid "You may leave blank or select a different organisation to your own." msgstr "You may leave blank or select a different organization to your own." @@ -1380,26 +1384,23 @@ msgid "You need to sign in or sign up before continuing." msgstr "You need to sign in or sign up before continuing." -#, fuzzy msgid "Your" -msgstr "Your " - -msgid "Your API token and instructions for using the API endpoints can be found here." -msgstr "Your API token and instructions for using the API endpoints can be found here." +msgstr "Your" msgid "Your ORCID" msgstr "Your ORCID" -#, fuzzy -msgid "Your access to" +msgid "Your access to " msgstr "Your access to " +msgid "Your account has been successfully linked to %{scheme}." +msgstr "Your account has been successfully linked to %{scheme}." + msgid "Your account is linked to your institutional credentials." msgstr "Your account is linked to your institutional credentials." -#, fuzzy msgid "Your account won't be created until you access the link above and set your password." -msgstr "Your " +msgstr "Your account won't be created until you access the link above and set your password." msgid "Your browser does not support the video tag." msgstr "Your browser does not support the video tag." @@ -1407,23 +1408,20 @@ msgid "Your password must contain at least 8 characters." msgstr "Your password must contain at least 8 characters." -#, fuzzy -msgid "Your password won't change until you access the link above and create a new one." -msgstr "Your " - -#, fuzzy -msgid "Your permissions relating to" +msgid "Your permissions relating to " msgstr "Your permissions relating to " -msgid "[Unpublished Changes]" -msgstr "" +msgid "Your template has been published and is now available to users." +msgstr "Your template has been published and is now available to users." + +msgid "Your template is no longer published. Users will not be able to create new DMPs for this template until you re-publish it" +msgstr "Your template is no longer published. Users will not be able to create new DMPs for this template until you re-publish it" msgid "a day" msgstr "a day" -#, fuzzy msgid "about %d hours" -msgstr "about %{d} hours" +msgstr "about %d hours" msgid "about a minute" msgstr "about a minute" @@ -1437,12 +1435,20 @@ msgid "about an hour" msgstr "about an hour" -msgid "access." -msgstr "access." - -#, fuzzy msgid "account has been locked due to an excessive number of unsuccessful sign in attempts." -msgstr " account has been locked due to an excessive number of unsuccessful sign in attempts." +msgstr "account has been locked due to an excessive number of unsuccessful sign in attempts." + +msgid "activerecord.errors.messages.record_invalid" +msgstr "unable to save your changes" + +msgid "activerecord.errors.models.user.attributes.current_password.invalid" +msgstr "invalid email and/or password" + +msgid "activerecord.errors.models.user.attributes.email.blank" +msgstr "can't be blank" + +msgid "activerecord.errors.models.user.attributes.password.blank" +msgstr "can't be blank" msgid "add guidance text" msgstr "add guidance text" @@ -1453,13 +1459,11 @@ msgid "ago" msgstr "ago" -#, fuzzy msgid "answered" -msgstr "Answered " +msgstr "answered" -#, fuzzy -msgid "approx. %{space_used} of available space used (max %{num_pages} pages)" -msgstr "approx. %{space_used}% of available space used (max %{num_pages} pages)" +msgid "approx. %{space_used}%% of available space used (max %{num_pages} pages)" +msgstr "approx. %{space_used}%% of available space used (max %{num_pages} pages)" msgid "by" msgstr "" @@ -1485,21 +1489,12 @@ msgid "guidance" msgstr "guidance" -#, fuzzy msgid "guidance group" -msgstr "Guidance group" +msgstr "guidance group" msgid "guidance on" msgstr "guidance on" -#, fuzzy -msgid "has been removed." -msgstr " has been removed." - -#, fuzzy -msgid "have changed. You now have" -msgstr " have changed. You now have " - msgid "height must be less than 100px" msgstr "" @@ -1515,76 +1510,59 @@ msgid "helpers.project.is_test_help_text" msgstr "" -#, fuzzy msgid "into your browser" -msgstr "into your browser)." +msgstr "into your browser" msgid "less than a minute" msgstr "less than a minute" -#, fuzzy msgid "must be logged in" -msgstr "Last logged in" +msgstr "must be logged in" -#, fuzzy msgid "must be one of the following formats: jpeg, jpg, png, gif, bmp" -msgstr "format" +msgstr "must be one of the following formats: jpeg, jpg, png, gif, bmp" msgid "must be unique" msgstr "" -#, fuzzy msgid "must have access to guidances api" -msgstr " access to " +msgstr "must have access to guidances api" -#, fuzzy msgid "note" -msgstr "Note" +msgstr "note" -#, fuzzy msgid "or copy" -msgstr "(or copy" +msgstr "or copy" -#, fuzzy msgid "org_admin.templates.edit_phase_label" -msgstr "org_admin" +msgstr "" -#, fuzzy msgid "organisation" -msgstr "Organisation" +msgstr "organization" -msgid "password. You can do this through the link below." -msgstr "password. You can do this through the link below." - -#, fuzzy msgid "phase" -msgstr "Phase" +msgstr "phase" -#, fuzzy msgid "plan" -msgstr "plans" +msgstr "plan" msgid "profile" msgstr "" -#, fuzzy msgid "question" -msgstr "Question" +msgstr "question" -#, fuzzy msgid "questions" -msgstr "Questions" +msgstr "questions" msgid "questions answered" msgstr "questions answered" -#, fuzzy msgid "role" -msgstr "Role" +msgstr "role" -#, fuzzy msgid "section" -msgstr "Section" +msgstr "section" msgid "select a guidance group" msgstr "select a guidance group" @@ -1592,13 +1570,11 @@ msgid "select at least one theme" msgstr "select at least one theme" -#, fuzzy msgid "suggested answer" -msgstr "Suggested answer" +msgstr "suggested answer" -#, fuzzy msgid "template" -msgstr "templates" +msgstr "template" msgid "user" msgstr "user" @@ -1614,13 +1590,3 @@ msgid "{\"Error\":\"You do not have authorisation to view this endpoint\"}" msgstr "{\"Error\":\"You do not have authorisation to view this endpoint\"}" - -# ActiveRecord model errors that we could not override in the model's validation definition -msgid "activerecord.errors.models.user.attributes.email.blank" -msgstr "can't be blank" -msgid "activerecord.errors.models.user.attributes.password.blank" -msgstr "can't be blank" -msgid "activerecord.errors.models.user.attributes.current_password.invalid" -msgstr "invalid email and/or password" -msgid "activerecord.errors.messages.record_invalid" -msgstr "unable to save your changes" diff --git a/config/locale/es/app.po b/config/locale/es/app.po index ecd8fbf..514f582 100644 --- a/config/locale/es/app.po +++ b/config/locale/es/app.po @@ -3,7 +3,6 @@ # This file is distributed under the same license as the app package. # FIRST AUTHORPOST /projects POST /projects.json
- - - -# File app/controllers/projects_controller.rb, line 113 -def create -if user_signed_in? then - @project = Project.new(params[:project]) - if @project.dmptemplate.nil? && params[:project][:funder_id] != "" then # this shouldn't be necessary - see setter for funder_id in project.rb - - funder = Organisation.find(params[:project][:funder_id]) - if funder.dmptemplates.count == 1 then - @project.dmptemplate = funder.published_templates.first - end - elsif @project.dmptemplate.nil? || params[:default_tag] == 'true' then - if @project.organisation.nil? || params[:default_tag] == 'true' || @project.organisation.published_templates.first.nil? then - @project.dmptemplate = Dmptemplate.find_by_is_default(true) - else - @project.dmptemplate = @project.organisation.published_templates.first - end - end - @project.principal_investigator = current_user.name(false) - @project.title = I18n.t('helpers.project.my_project_name')+' ('+@project.dmptemplate.title+')' - @project.assign_creator(current_user.id) - respond_to do |format| - if @project.save - format.html { redirect_to({:action => "show", :id => @project.slug, :show_form => "yes"}, {:notice => I18n.t('helpers.project.success')}) } - format.json { render json: @project, status: :created, location: @project } - else - format.html { render action: "new" } - format.json { render json: @project.errors, status: :unprocessable_entity } - end - end - else - render(:file => File.join(Rails.root, 'public/403.html'), :status => 403, :layout => false) - end -end-
DELETE /projects/1 DELETE /projects/1.json
- - - -# File app/controllers/projects_controller.rb, line 166 -def destroy - @project = Project.find(params[:id]) - if user_signed_in? && @project.editable_by(current_user.id) then - @project.destroy - - respond_to do |format| - format.html { redirect_to projects_url } - format.json { head :no_content } - end - else - render(:file => File.join(Rails.root, 'public/403.html'), :status => 403, :layout => false) - end -end-
GET /projects/1/edit Should this be removed?
- - - -# File app/controllers/projects_controller.rb, line 71 -def edit - @project = Project.find(params[:id]) - if !user_signed_in? then - respond_to do |format| - format.html { redirect_to edit_user_registration_path } - end - elsif !@project.editable_by(current_user.id) then - respond_to do |format| - format.html { redirect_to projects_url, notice: "This account does not have access to that plan." } - end - end -end-
# File app/controllers/projects_controller.rb, line 97 -def export - @project = Project.find(params[:id]) - if !user_signed_in? then - respond_to do |format| - format.html { redirect_to edit_user_registration_path } - end - else - respond_to do |format| - format.html { render action: "export" } - - end - end -end-
GET /projects GET /projects.json
- - - -# File app/controllers/projects_controller.rb, line 6 -def index - if user_signed_in? then - if (current_user.shibboleth_id.nil? || current_user.shibboleth_id.length == 0) && !cookies[:show_shib_link].nil? && cookies[:show_shib_link] == "show_shib_link" then - flash.notice = "Would you like to #{view_context.link_to 'link your DMPonline account to your institutional credentials?', user_omniauth_shibboleth_path}".html_safe - end - - @projects = current_user.projects.filter(params[:filter]) - @has_projects = current_user.projects.any? # unfiltered count - - - respond_to do |format| - format.html # index.html.erb - - format.json { render json: @projects } - end - else - respond_to do |format| - format.html { redirect_to edit_user_registration_path } - end - end -end-
GET /projects/new GET /projects/new.json
- - - -# File app/controllers/projects_controller.rb, line 52 -def new - if user_signed_in? then - @project = Project.new - @project.organisation = current_user.organisation - @funders = orgs_of_type(t('helpers.org_type.funder'), true) - @institutions = orgs_of_type(t('helpers.org_type.institution')) - respond_to do |format| - format.html # new.html.erb - - format.json { render json: @project } - end - else - respond_to do |format| - format.html { redirect_to edit_user_registration_path } - end - end -end-
# File app/controllers/projects_controller.rb, line 213 -def possible_guidance - if !params[:template].nil? && params[:template] != "" && params[:template] != "undefined" then - template = Dmptemplate.find(params[:template]) - else - template = nil - end - if !params[:institution].nil? && params[:institution] != "" && params[:institution] != "undefined" then - institution = Organisation.find(params[:institution]) - else - institution = nil - end - excluded_orgs = orgs_of_type(t('helpers.org_type.funder')) + orgs_of_type(t('helpers.org_type.institution')) + Organisation.orgs_with_parent_of_type(t('helpers.org_type.institution')) - guidance_groups = {} - ggs = GuidanceGroup.guidance_groups_excluding(excluded_orgs) - - ggs.each do |gg| - guidance_groups[gg.id] = gg.name - end - -#subset guidance that belong to the institution - - unless institution.nil? then - optional_gg = GuidanceGroup.where("optional_subset = ? && organisation_id = ?", true, institution.id) - optional_gg.each do|optional| - guidance_groups[optional.id] = optional.name - end - - institution.children.each do |o| - o.guidance_groups.each do |gg| - include = false - gg.guidances.each do |g| - if g.dmptemplate.nil? || g.dmptemplate_id == template.id then - include = true - break - end - end - if include then - guidance_groups[gg.id] = gg.name - end - end - end - end - -#If template belongs to a funder and that funder has subset guidance display then. - -if !template.nil? && template.organisation.organisation_type.name == t('helpers.org_type.funder') then - optional_gg = GuidanceGroup.where("optional_subset = ? && organisation_id = ?", true, template.organisation_id) - optional_gg.each do|optional| - guidance_groups[optional.id] = optional.name - end -end - - - respond_to do |format| - format.json { render json: guidance_groups.to_json } - end -end-
GET /projects/possible_templates.json
- - - -# File app/controllers/projects_controller.rb, line 181 -def possible_templates - if !params[:funder].nil? && params[:funder] != "" && params[:funder] != "undefined" then - funder = Organisation.find(params[:funder]) - else - funder = nil - end - if !params[:institution].nil? && params[:institution] != "" && params[:institution] != "undefined" then - institution = Organisation.find(params[:institution]) - else - institution = nil - end - templates = {} - unless funder.nil? then - funder.published_templates.each do |t| - templates[t.id] = t.title - end - end - if templates.count == 0 && !institution.nil? then - institution.published_templates.each do |t| - templates[t.id] = t.title - end - institution.children.each do |o| - o.published_templates.each do |t| - templates[t.id] = t.title - end - end - end - respond_to do |format| - format.json { render json: templates.to_json } - end -end-
# File app/controllers/projects_controller.rb, line 84 -def share - @project = Project.find(params[:id]) - if !user_signed_in? then - respond_to do |format| - format.html { redirect_to edit_user_registration_path } - end - elsif !@project.editable_by(current_user.id) then - respond_to do |format| - format.html { redirect_to projects_url, notice: "This account does not have access to that plan." } - end - end -end-
GET /projects/1 GET /projects/1.json
- - - -# File app/controllers/projects_controller.rb, line 28 -def show - @project = Project.find(params[:id]) - @show_form = false - if params[:show_form] == "yes" then - @show_form = true - end - if user_signed_in? && @project.readable_by(current_user.id) then - respond_to do |format| - format.html # show.html.erb - - format.json { render json: @project } - end - elsif user_signed_in? then - respond_to do |format| - format.html { redirect_to projects_url, notice: "This account does not have access to that plan." } - end - else - respond_to do |format| - format.html { redirect_to edit_user_registration_path } - end - end -end-
PUT /projects/1 PUT /projects/1.json
- - - -# File app/controllers/projects_controller.rb, line 147 -def update - @project = Project.find(params[:id]) - if user_signed_in? && @project.editable_by(current_user.id) then - respond_to do |format| - if @project.update_attributes(params[:project]) - format.html { redirect_to @project, notice: 'Project was successfully updated.' } - format.json { head :no_content } - else - format.html { render action: "edit" } - format.json { render json: @project.errors, status: :unprocessable_entity } - end - end - else - render(:file => File.join(Rails.root, 'public/403.html'), :status => 403, :layout => false) - end -end-
# File app/controllers/projects_controller.rb, line 271 -def orgs_of_type(org_type_name, published_templates = false) - org_type = OrganisationType.find_by_name(org_type_name) - all_such_orgs = org_type.organisations - if published_templates then - with_published = Array.new - all_such_orgs.each do |o| - if o.published_templates.count > 0 then - with_published << o - end - end - return with_published.sort_by {|o| [o.sort_name, o.name] } - else - return all_such_orgs.sort_by {|o| [o.sort_name, o.name] } - end -end-
# File app/controllers/users/omniauth_shibboleth_request_controller.rb, line 17 -def associate - # This action is protected - can only be reached if user is already logged in. - - # See before_filter - - redirect_to user_omniauth_callback_path(:shibboleth) -end-
# File app/controllers/users/omniauth_shibboleth_request_controller.rb, line 4 -def redirect - if !current_user.nil? && !current_user.organisation.nil? - idp = params[:idp] || current_user.organisation.wayfless_entity - else - idp = params[:idp] - end - query_params = {target: user_omniauth_callback_path(:shibboleth)} - unless idp.blank? - query_params[:entityID] = idp - end - redirect_to "#{Rails.application.config.shibboleth_login}?#{query_params.to_query}", status: 302 -end-