Files
rickyandClaude Opus 5.5 89ed0a76f9 Move all user-facing text into config/locales/en.yml for localization
- Views use lazy t(".key") lookups; sentences with values or links stay
  whole (interpolation, _html keys); counts use one/other plurals
- Stored-value labels (statuses, types, priorities...) are LabelSets read
  from labels: in the current locale; field names and validation messages
  under activerecord:; flash and activity text under flash:
- Services, models, helpers, mailer subjects, the logbook PDF, procedures
  templates, records package README and transcription warnings localized;
  the PDF reuses LogbookEntry#certification_statement instead of a copy
- Scripts read js: strings from a JSON tag via app/javascript/i18n.js
- Dates through I18n.l (app, weekday, month_year, long formats); html lang
  follows the locale
- APP_LOCALE picks the language (falls back to English); missing
  translations raise in development and tests
- README: Translating section and APP_LOCALE

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 22:08:20 -05:00

32 lines
1.5 KiB
ERB

<%= raw t(".here_s_what_needs_attention_text", any: (t(".on_your_aircraft") if @items.any?)) %>
<% @items.each do |aircraft, issues, alerts| %>
<%= aircraft.tail_number %> (<%= aircraft.airworthiness.label %>): <%= aircraft_url(aircraft) %>
<% issues.each do |issue| %>
- <%= { "RED" => t(".overdue"), "LIMITED" => t(".overdue"), "ORANGE" => t(".due_soon"), "INFO" => t(".deferred") }[issue.severity] %>: <%= issue.title %>. <%= issue.description %>
<% end %>
<% if alerts.any? %>
<%= raw t(".new_ads_that_may_apply_text", to_sentence: (alerts.map { _1.ad_number || _1.fr_document_number }.to_sentence), ads: (aircraft_airworthiness_directives_url(aircraft, anchor: "new-ads"))) %>
<% end %>
<% end %>
<% if @certificates.any? %>
<%= raw t(".your_certificates_2") %>
<% @certificates.each do |c| %>
- <%= c.expired? ? t(".expired") : t(".expires") %> <%= fmt_date(c.expires_on) %>: <%= c.kind_label %> <%= c.number %>
<% end %>
<% end %>
<% if @drs_due.any? %>
<%= raw t(".ad_list_from_faa_drs") %>
<% @drs_due.each do |a| %>
- <%= a.tail_number %>: <%= (m = DrsImport.missing_models(a)).any? ? t(".never_imported_for", to_sentence: m.to_sentence) : t(".last_import", never: (a.drs_imports.latest_first.first&.created_at&.to_date || 'never')) %> (<%= aircraft_airworthiness_directives_url(a) %>)
<% end %>
<% end %>
<% if @audit_due %>
<%= raw t(".records_audit_due_text", audit_due: @audit_due, new_admin_audit_url: new_admin_audit_url) %>
<% end %>
<%= raw t(".based_on_the_records_in_2_text", edit_profile_url: edit_profile_url) %>