Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
WillNigel23 committed Oct 30, 2024
1 parent 7ac403e commit a0d42c4
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 24 deletions.
27 changes: 8 additions & 19 deletions app/helpers/collection_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,24 +153,13 @@ def fe_works_with_custom_conventions(works)
return if works.empty?

work_to_display = works.sample
if works.size == 1
t(
'collection.edit_help.works_with_custom_conventions.one',
title: link_to(
work_to_display.title,
collection_path(work_to_display.collection.owner, work_to_display.collection)
)
).html_safe
else
count = works.size - 1
t(
'collection.edit_help.works_with_custom_conventions.many',
title: link_to(
work_to_display.title,
collection_path(work_to_display.collection.owner, work_to_display.collection)
),
count: count
).html_safe
end
t(
'collection.edit_help.works_with_custom_conventions',
title: link_to(
work_to_display.title,
collection_path(work_to_display.collection.owner, work_to_display.collection)
),
count: works.size
).html_safe
end
end
2 changes: 1 addition & 1 deletion config/locales/collection/collection-de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ de:
transcription_conventions: Transkriptionskonventionen
transcription_conventions_description: Diese Anweisungen werden unter dem Transkriptionsformular für jede Seite angezeigt, die transkribiert oder indiziert wird.
works_with_custom_conventions:
many: "%{title} und %{count} andere haben benutzerdefinierte Transkriptionskonventionen"
one: "%{title} hat benutzerdefinierte Transkriptionskonventionen"
other: "%{title} und %{count} andere haben benutzerdefinierte Transkriptionskonventionen"
edit_look:
alphabetize_works: Die Anzeige erfolgt alphabetisch und nicht in der Reihenfolge der erforderlichen Arbeiten.
alphabetize_works_description: Die Anzeige erfolgt alphabetisch und nicht nach der Menge der verbleibenden Arbeit.
Expand Down
2 changes: 1 addition & 1 deletion config/locales/collection/collection-en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ en:
transcription_conventions_description: These instructions will be displayed under the transcription form for each page being transcribed or indexed.
works_with_custom_conventions:
one: "%{title} has custom transcription conventions"
many: "%{title} and %{count} others have custom transcription conventions"
other: "%{title} and %{count} others have custom transcription conventions"
edit_look:
alphabetize_works: List works alphabetically.
alphabetize_works_description: Display works alphabetically rather than in order of amount of work remaining.
Expand Down
2 changes: 1 addition & 1 deletion config/locales/collection/collection-es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ es:
transcription_conventions: Convenciones de Transcripción
transcription_conventions_description: Estas instrucciones se mostrarán debajo del formulario de transcripción de cada página que se transcriba o indexe.
works_with_custom_conventions:
many: "%{title} y %{count} otros tienen convenciones de transcripción personalizadas"
one: "%{title} tiene convenciones de transcripción personalizadas"
other: "%{title} y %{count} otros tienen convenciones de transcripción personalizadas"
edit_look:
alphabetize_works: La visualización funciona alfabéticamente en lugar de en orden de trabajo necesario.
alphabetize_works_description: La visualización funciona alfabéticamente en lugar de en orden de cantidad de trabajo restante.
Expand Down
2 changes: 1 addition & 1 deletion config/locales/collection/collection-fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ fr:
transcription_conventions: Conventions de transcription
transcription_conventions_description: Ces instructions seront affichées sous le formulaire de transcription pour chaque page en cours de transcription ou d'indexation.
works_with_custom_conventions:
many: "%{title} et %{count} autres ont des conventions de transcription personnalisées"
one: "%{title} a des conventions de transcription personnalisées"
other: "%{title} et %{count} autres ont des conventions de transcription personnalisées"
edit_look:
alphabetize_works: L'affichage fonctionne par ordre alphabétique plutôt que par ordre de travail nécessaire.
alphabetize_works_description: L’affichage fonctionne par ordre alphabétique plutôt que par ordre de quantité de travail restant.
Expand Down
2 changes: 1 addition & 1 deletion config/locales/collection/collection-pt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ pt:
transcription_conventions: Convenções de Transcrição
transcription_conventions_description: Estas instruções serão exibidas no formulário de transcrição para cada página transcrita ou indexada.
works_with_custom_conventions:
many: "%{title} e %{count} outros têm convenções de transcrição personalizadas"
one: "%{title} tem convenções de transcrição personalizadas"
other: "%{title} e %{count} outros têm convenções de transcrição personalizadas"
edit_look:
alphabetize_works: A exibição funciona em ordem alfabética e não na ordem do trabalho necessário.
alphabetize_works_description: A exibição funciona em ordem alfabética e não em ordem de quantidade de trabalho restante.
Expand Down

0 comments on commit a0d42c4

Please sign in to comment.