mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
- 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>
8 lines
689 B
ERB
8 lines
689 B
ERB
<%# Oil & Fuel tab: consumption and oil analysis are two pages under one tab. %>
|
|
<nav class="mb-4 inline-flex rounded-md bg-surface p-1 text-sm shadow-sm ring-1 ring-slate-200" aria-label="<%= t(".oil_and_fuel") %>">
|
|
<% [ [ t(".consumption"), aircraft_consumable_records_path(aircraft), "consumable_records" ], [ t(".oil_analysis"), aircraft_oil_analyses_path(aircraft), "oil_analyses" ] ].each do |label, path, name| %>
|
|
<%= link_to label, path, class: [ "rounded px-3 py-1.5", (controller_name == name ? "bg-slate-100 font-semibold text-sky-700" : "text-slate-600 hover:text-slate-900") ],
|
|
aria: { current: (controller_name == name ? "page" : nil) } %>
|
|
<% end %>
|
|
</nav>
|