Fix naming of repository items in modal and messages [SCI-1404]

This commit is contained in:
Oleksii Kriuchykhin 2017-06-26 16:03:02 +02:00
parent d726c121bc
commit 84556cf744
2 changed files with 24 additions and 24 deletions

View file

@ -7,7 +7,7 @@
<%= t("repositories.modal_delete_record.notice") %> <%= t("repositories.modal_delete_record.notice") %>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<%= t("repositories.modal_delete_record.other_samples") %> <%= t("repositories.modal_delete_record.other_records") %>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal" onclick="onClickDeleteRecord();"> <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="onClickDeleteRecord();">

View file

@ -891,7 +891,7 @@ en:
add_new_record: "Add new item" add_new_record: "Add new item"
import_records: import_records:
import: 'Import' import: 'Import'
success_flash: "%{number_of_rows} new record(s) successfully imported." success_flash: "%{number_of_rows} new item(s) successfully imported."
error_flash: "Something went wrong: %{message}" error_flash: "Something went wrong: %{message}"
error_message: error_message:
temp_file_not_found: "This file could not be found. Your session might expire." temp_file_not_found: "This file could not be found. Your session might expire."
@ -913,41 +913,41 @@ en:
view_all_records: "View all items" view_all_records: "View all items"
view_assigned_records: "View assigned items" view_assigned_records: "View assigned items"
modal_delete_record: modal_delete_record:
title: "Delete record" title: "Delete items"
notice: "Are you sure you want to delete the selected records?" notice: "Are you sure you want to delete the selected item(s)?"
other_samples: "Only records created by you will be deleted." other_records: "Only items created by you will be deleted."
delete: "Delete records" delete: "Delete item(s)"
modal_delete_column: modal_delete_column:
title: "Delete a column" title: "Delete a column"
message: "Are you sure you wish to permanently delete selected column %{column}? This action is irreversible." message: "Are you sure you wish to permanently delete selected column %{column}? This action is irreversible."
alert_heading: "Deleting a column has following consequences:" alert_heading: "Deleting a column has following consequences:"
alert_line_1: "you will lose information in this column for %{nr} records;" alert_line_1: "you will lose information in this column for %{nr} item(s);"
alert_line_2: "the column will be deleted for all team members." alert_line_2: "the column will be deleted for all team members."
delete: "Delete column" delete: "Delete column"
modal_parse: modal_parse:
title: 'Import records' title: 'Import items'
modal_import: modal_import:
title: 'Import records' title: 'Import items'
notice: 'You may upload .csv file (comma separated) or tab separated file (.txt or .tdv) or Excel file (.xls, .xlsx). First row should include header names, followed by rows with sample data.' notice: 'You may upload .csv file (comma separated) or tab separated file (.txt or .tdv) or Excel file (.xls, .xlsx). First row should include header names, followed by rows with sample data.'
upload: 'Upload file' upload: 'Upload file'
js: js:
permission_error: "You don't have permission to edit this record." permission_error: "You don't have permission to edit this item."
not_found_error: "This repository record does not exist." not_found_error: "This repository item does not exist."
column_added: "New column was sucessfully created." column_added: "New column was sucessfully created."
empty_column_name: "Please enter column name." empty_column_name: "Please enter column name."
create: create:
success_flash: "Successfully added record <strong>%{record}</strong> to repository <strong>%{repository}</strong>" success_flash: "Successfully added item <strong>%{record}</strong> to repository <strong>%{repository}</strong>"
update: update:
success_flash: "Successfully updated record <strong>%{record}</strong> in repository <strong>%{repository}</strong>" success_flash: "Successfully updated item <strong>%{record}</strong> in repository <strong>%{repository}</strong>"
destroy: destroy:
success_flash: "%{records_number} record(s) successfully deleted." success_flash: "%{records_number} item(s) successfully deleted."
contains_other_records_flash: "%{records_number} record(s) successfully deleted. %{other_records_number} of the selected record(s) were created by other users and were not deleted." contains_other_records_flash: "%{records_number} item(s) successfully deleted. %{other_records_number} of the selected item(s) were created by other users and were not deleted."
no_records_selected_flash: "There were no selected records." no_records_selected_flash: "There were no selected items."
no_deleted_records_flash: "No records were deleted. %{other_records_number} of the selected records were created by other users and were not deleted." no_deleted_records_flash: "No items were deleted. %{other_records_number} of the selected items were created by other users and were not deleted."
assigned_records_flash: "Successfully assigned record(s) <strong>%{records}</strong> to task" assigned_records_flash: "Successfully assigned item(s) <strong>%{records}</strong> to task"
unassigned_records_flash: "Successfully unassigned record(s) <strong>%{records}</strong> from task" unassigned_records_flash: "Successfully unassigned item(s) <strong>%{records}</strong> from task"
no_records_assigned_flash: "No records were assigned to task" no_records_assigned_flash: "No items were assigned to task"
no_records_unassigned_flash: "No records were unassigned from task" no_records_unassigned_flash: "No items were unassigned from task"
default_column: 'Name' default_column: 'Name'
samples: samples:
@ -1139,8 +1139,8 @@ en:
uncomplete_module: "<i>%{user}</i> uncompleted task <strong>%{module}</strong>." uncomplete_module: "<i>%{user}</i> uncompleted task <strong>%{module}</strong>."
assign_sample: "<i>%{user}</i> assigned sample(s) <strong>%{samples}</strong> to task(s) <strong>%{tasks}</strong>" assign_sample: "<i>%{user}</i> assigned sample(s) <strong>%{samples}</strong> to task(s) <strong>%{tasks}</strong>"
unassign_sample: "<i>%{user}</i> unassigned sample(s) <strong>%{samples}</strong> from task(s) <strong>%{tasks}</strong>" unassign_sample: "<i>%{user}</i> unassigned sample(s) <strong>%{samples}</strong> from task(s) <strong>%{tasks}</strong>"
assign_repository_records: "<i>%{user}</i> assigned record(s) <strong>%{records}</strong> from <strong>%{repository}</strong> repository to task <strong>%{task}</strong>" assign_repository_records: "<i>%{user}</i> assigned item(s) <strong>%{records}</strong> from <strong>%{repository}</strong> repository to task <strong>%{task}</strong>"
unassign_repository_records: "<i>%{user}</i> unassigned record(s) <strong>%{records}</strong> from <strong>%{repository}</strong> repository from task <strong>%{task}</strong>" unassign_repository_records: "<i>%{user}</i> unassigned item(s) <strong>%{records}</strong> from <strong>%{repository}</strong> repository from task <strong>%{task}</strong>"
create_step: "<i>%{user}</i> created Step %{step} <strong>%{step_name}</strong>." create_step: "<i>%{user}</i> created Step %{step} <strong>%{step_name}</strong>."
destroy_step: "<i>%{user}</i> deleted Step %{step} <strong>%{step_name}</strong>." destroy_step: "<i>%{user}</i> deleted Step %{step} <strong>%{step_name}</strong>."
add_comment_to_step: "<i>%{user}</i> commented on Step %{step} <strong>%{step_name}</strong>." add_comment_to_step: "<i>%{user}</i> commented on Step %{step} <strong>%{step_name}</strong>."
@ -1677,7 +1677,7 @@ en:
sample_annotation_title: "%{user} mentioned you in Column: %{column} of Sample %{sample}" sample_annotation_title: "%{user} mentioned you in Column: %{column} of Sample %{sample}"
sample_annotation_message_html: "Sample: %{sample} | Column: %{column}" sample_annotation_message_html: "Sample: %{sample} | Column: %{column}"
repository_annotation_title: "%{user} mentioned you in Column: %{column} of Record %{record} in Repository %{repository}" repository_annotation_title: "%{user} mentioned you in Column: %{column} of Record %{record} in Repository %{repository}"
repository_annotation_message_html: "Record: %{record} | Column: %{column}" repository_annotation_message_html: "Item: %{record} | Column: %{column}"
protocol_step_annotation_message_html: "Protocol: %{protocol}" protocol_step_annotation_message_html: "Protocol: %{protocol}"
email_title: "You've received a sciNote notification!" email_title: "You've received a sciNote notification!"
assign_user_to_team: "<i>%{assigned_user}</i> was added as %{role} to team <strong>%{team}</strong> by <i>%{assigned_by_user}</i>." assign_user_to_team: "<i>%{assigned_user}</i> was added as %{role} to team <strong>%{team}</strong> by <i>%{assigned_by_user}</i>."