Skip to content

Commit

Permalink
I18n: Fix incorrect translations (#746)
Browse files Browse the repository at this point in the history
* chore: fix incorrect translations that resulted from #740

* Chore: fix translations for namesapce tree component

* chore: correct translation and remove unused translations

* chore: fix french translations file

* chore: fix users search empty state translation in members dialog

* chore: correct pair end to paired-end

* chore: fix translations for analysis export

* chore: normalized config/locales/en.yml

* chore: update translation for sample create and edit subtitle

* chore: normalized translation files
  • Loading branch information
ericenns authored Sep 10, 2024
1 parent 72b4d43 commit 2769072
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 168 deletions.
88 changes: 0 additions & 88 deletions app/views/groups/index.html.erb

This file was deleted.

27 changes: 7 additions & 20 deletions app/views/projects/samples/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,30 +1,17 @@
<%= render Viral::PageHeaderComponent.new(title: t("projects.samples.edit.title"), subtitle: t("projects.samples.new.subtitle")) do |component| %>
<%= render Viral::PageHeaderComponent.new(title: t("projects.samples.edit.title"), subtitle: t("projects.samples.edit.subtitle")) do |component| %>
<%= component.with_icon(name: "beaker", classes: "h-14 w-14 text-primary-700") %>
<% end %>
<div class="p-4">
<div class="grid gap-4 xl:grid-cols-2 2xl:grid-cols-3">
<div
class="
p-4
bg-white
border
border-slate-200
rounded-lg
shadow-sm
2xl:col-span-2
dark:border-slate-700
sm:p-6
dark:bg-slate-800
p-4 bg-white border border-slate-200 rounded-lg shadow-sm 2xl:col-span-2
dark:border-slate-700 sm:p-6 dark:bg-slate-800
"
>
<h2
class="
mb-4
text-xl
font-semibold
leading-tight
text-slate-900
dark:text-white
mb-4 text-xl font-semibold leading-tight text-slate-900 dark:text-white
"
>
<%= t("projects.samples.edit.form.title") %>
Expand All @@ -34,10 +21,10 @@
<%= render partial: "form_fields", locals: { form: form, sample: @sample } %>
<div>
<%= form.submit t("projects.samples.edit.submit_button"),
class: "button button--state-primary button--size-default mr-1" %>
class: "button button--state-primary button--size-default mr-1" %>
<%= link_to t("projects.samples.edit.cancel_button"),
namespace_project_sample_path(id: @sample.id),
class: "button button--state-default button--size-default" %>
namespace_project_sample_path(id: @sample.id),
class: "button button--state-default button--size-default" %>
</div>
</div>
<% end %>
Expand Down
4 changes: 2 additions & 2 deletions config/locales/devise.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ en:
devise:
confirmations:
new:
submit_button: Submit button
title: Title
submit_button: Resend confirmation instructions
title: Resend confirmation instructions
layout:
title: IRIDA Next
mailer:
Expand Down
91 changes: 42 additions & 49 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,10 @@ en:
type: Type
title: Data Exports
list_workflow_execution:
id: Id
name: Name
run_id: Run
workflow: Workflow
id: 'ID:'
name: 'Name:'
run_id: 'Run ID:'
workflow: 'Workflow:'
new:
after_submission_description_html: After submission, you will be redirected to the export page. While the export status is <span class="bg-slate-100 text-slate-800 dark:bg-slate-700 dark:text-slate-300 text-xs font-medium px-2.5 py-0.5 rounded-full ml-1 mr-1">processing</span>, the contents of the export are being created. Once the export status is <span class="bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-300 text-xs font-medium px-2.5 py-0.5 rounded-full ml-1">ready</span>, it will be available for download. You will have 3 business days to download the export before it's deleted.
email_label: Receive an email notification when your export is ready to download?
Expand Down Expand Up @@ -517,7 +517,7 @@ en:
title: Bot Accounts
create:
cancel: Cancel
name_help: Name help
name_help: Group name must be at least 3 letters long and start with a letter, digit, or emoji. For more information see <a class="font-medium hover:underline" href="https://phac-nml.github.io/irida-next/docs/user/organization/groups/reserved-names/">Reserved group names</a>
name_placeholder: Awesome group name
path_help: The path is used in URLs and can only contain letters, numbers, dashes and underscores
submit: Create group
Expand Down Expand Up @@ -567,7 +567,7 @@ en:
button:
cancel: Cancel
submit: Share
empty_state: Empty state
empty_state: No groups are associated with that name or ID
label:
access_expiration: Access expiration (optional)
group_access_level: Maximum group access level
Expand All @@ -588,12 +588,6 @@ en:
group_transferred: Group was transferred by %{user}
index:
title: History
index:
create_group_button: New group
group_dropdown:
delete: Delete group
delete_confirmation: Are you sure you want to delete this group?
label: Actions for group %{group_name}
members:
access_level:
aria_label: Access Level
Expand Down Expand Up @@ -621,7 +615,7 @@ en:
new:
add_member_to_group: Add member to group
description: You are adding a new member to group %{name}
empty_state: Empty state
empty_state: There are no users with the provided email or name
select_access_level: Select Access Level
select_user: Select a User
title: Add New Member
Expand All @@ -630,7 +624,6 @@ en:
submit: Create subgroup
subtitle: Groups allow you to manage and collaborate across multiple projects. Members of a group have access to all of its projects
title: Create subgroup
owner: Owner
samples:
index:
create_export_button:
Expand Down Expand Up @@ -664,7 +657,6 @@ en:
label: Group project details navigation
shared_namespaces: Shared groups and projects
subgroups_and_projects: Subgroups and projects
title: Title
sidebar:
bot_accounts: Bot Accounts
details: Details
Expand Down Expand Up @@ -774,19 +766,19 @@ en:
row_contents_component:
stats:
projects: Projects
subnamespaces: Subnamespaces
subnamespaces: Subgroups
nextflow:
samplesheet:
column_component:
default: Default
default: "%{label} (default)"
required: Required
samplesheet_component:
label: Label
loading: Loading
label: Samples
loading: Loading ...
nextflow_component:
name:
helper: Helper
label: Label
helper: A custom name will make it easier to search for this in the future.
label: Name (Optional)
profiles:
accounts:
delete:
Expand Down Expand Up @@ -869,7 +861,7 @@ en:
title: 'Editing Automated Workflow Execution: %{workflow_name}'
index:
add_new_automated_workflow_execution: New automated workflow execution
subtitle: Setup automated workflow executions to launch when pair end data is uploaded to the project
subtitle: Setup automated workflow executions to launch when paired-end data is uploaded to the project
title: Automated Workflow Executions
new_automated_workflow_execution_modal:
title: "%{workflow} parameters"
Expand Down Expand Up @@ -1007,7 +999,7 @@ en:
button:
cancel: Cancel
submit: Share
empty_state: Empty state
empty_state: No groups are associated with that name or ID
label:
access_expiration: Access expiration (optional)
group_access_level: Maximum group access level
Expand Down Expand Up @@ -1064,7 +1056,7 @@ en:
new:
add_member_to_project: Add member to project
description: You are adding a new member to project %{name}
empty_state: Empty state
empty_state: There are no users with the provided email or name
select_access_level: Select Access Level
select_user: Select a User
title: Add New Member
Expand Down Expand Up @@ -1092,7 +1084,7 @@ en:
failure: 'File %{filename} was not uploaded due to the following errors: %{errors}'
success: File %{filename} was successfully uploaded.
delete_attachment_modal:
description: Are you sure that you want to delete this file rom the sample?
description: Are you sure that you want to delete this file from the sample?
submit_button: Confirm
title: Delete File
deletions:
Expand All @@ -1117,7 +1109,7 @@ en:
plural: The following COUNT_PLACEHOLDER samples are about to be cloned to another project.
singular: The following sample is about to be cloned to another project.
zero: No samples have been selected for cloning
empty_state: Empty state
empty_state: No projects are associated with that name or ID
new_project_id: Project to clone samples to
no_available_projects: No available projects
samples: Samples
Expand Down Expand Up @@ -1154,6 +1146,7 @@ en:
form:
title: Name and Description
submit_button: Update sample
subtitle: Update the name and description of the current sample
title: Edit sample
index:
actions:
Expand Down Expand Up @@ -1209,7 +1202,7 @@ en:
new:
cancel_button: Cancel
submit_button: Create sample
subtitle: This is a subtitle to create a new project sample.
subtitle: Create a new sample in the current Project
title: Create sample
shared:
errors:
Expand Down Expand Up @@ -1279,7 +1272,7 @@ en:
plural: The following COUNT_PLACEHOLDER samples are about to be transferred, which will result in these samples no longer being accessible in this project. Maintainers can only transfer samples to another project within the same hierarchy.
singular: The following sample is about to be transferred, which will result in the sample no longer being accessible in this project. Maintainers can only transfer samples to another project within the same hierarchy.
zero: No samples have been selected for transfer
empty_state: Empty state
empty_state: No projects are associated with that name or ID
new_project_id: Project to transfer samples to
no_available_projects: No available projects
samples: Samples
Expand Down Expand Up @@ -1313,10 +1306,10 @@ en:
size: Size
type: Type
index:
create_export_button: Create export button
deselect_all_button: Deselect all button
select_all_button: Select all button
subtitle: These are the automated workflow executions that have been launched for this project
create_export_button: Create Export
deselect_all_button: Deselect All
select_all_button: Select All
subtitle: These are the workflow executions that have been automatically launched for this project
title: Workflow Executions
show:
cancel_button: Cancel
Expand Down Expand Up @@ -1459,27 +1452,27 @@ en:
metadata:
file_imports:
dialog:
description: Description
description: Importing a metadata spreadsheet allows multiple metadata fields to multiple samples be added, updated or removed at once.
file: File
file_help: File help
file_help: CSV, TSV, XLS or XLSX.
ignore_empty_values:
description: Description
description: If selected, any metadata fields without an associated value will be ignored and those metadata keys will not be removed from the sample if present. However, if this not selected, any samples with the metadata key and empty value will be deleted.
namespace:
description: Description
description: 'The spreadsheet is required to have a column that contains a sample identifier. '
group:
description_html: Description html
description_html: The identifier is case-sensitive and must contain the <b>sample ID</b>.
project:
description_html: Description html
sample_id_column: Sample id column
select_sample_id_column: Select sample id column
submit_button: Submit button
title: Title
description_html: The identifier is case-sensitive and can contain either the <b>sample name or ID</b>.
sample_id_column: Sample ID Column
select_sample_id_column: Select a Sample ID Column
submit_button: Import Metadata
title: Upload Sample Metadata
errors:
description: Description
ok_button: Ok button
description: 'The sample metadata import completed with the following errors:'
ok_button: OK
success:
description: Description
ok_button: Ok button
description: The metadata was imported successfully!
ok_button: OK
time:
formats:
abbreviated: "%a %b%e %Y %H:%M"
Expand Down Expand Up @@ -1514,9 +1507,9 @@ en:
cancel_confirm: Are you sure you want to cancel this workflow execution?
delete_button: Delete
delete_confirm: Are you sure you want to delete this workflow execution?
create_export_button: Create export button
deselect_all_button: Deselect all button
select_all_button: Select all button
create_export_button: Create Export
deselect_all_button: Deselect All
select_all_button: Select All
title: Workflow Executions
samples:
empty: No samples could be found for this workflow execution
Expand Down
Loading

0 comments on commit 2769072

Please sign in to comment.