mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
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>
This commit is contained in:
1 parent
3f45b557c2
commit
89ed0a76f9
313 files changed
+6387
-2653
No files matched your search
@@ -1,3 +1,3 @@
|
||||
<p><%= @run.kind == "restore_test" ? "The off-site restore test failed." : "Copying the backup to Google Drive failed." %></p>
|
||||
<p><%= @run.kind == "restore_test" ? t(".the_off_site_restore_test") : t(".copying_the_backup_to_google") %></p>
|
||||
<p><%= @run.message %></p>
|
||||
<p>Check <%= link_to "Admin → Off-site Backup", admin_offsite_backup_url %>. If Google Drive refused access, connect it again there.</p>
|
||||
<p><%= t(".check_if_google_drive_refused_html", link: (link_to t(".admin_off_site_backup"), admin_offsite_backup_url)) %></p>
|
||||
@@ -1,6 +1,6 @@
|
||||
<%= @run.kind == "restore_test" ? "The off-site restore test failed." : "Copying the backup to Google Drive failed." %>
|
||||
<%= @run.kind == "restore_test" ? t(".the_off_site_restore_test") : t(".copying_the_backup_to_google") %>
|
||||
|
||||
<%= @run.message %>
|
||||
|
||||
Check Admin → Off-site Backup: <%= admin_offsite_backup_url %>
|
||||
If Google Drive refused access, connect it again there.
|
||||
<%= raw t(".check_admin_off_site_backup_text", admin_offsite_backup_url: admin_offsite_backup_url) %>
|
||||
<%= raw t(".if_google_drive_refused_access") %>
|
||||
@@ -1,5 +1,5 @@
|
||||
<p>Last night's records check found a problem.</p>
|
||||
<p>Backup: <strong><%= @backup.ok ? "OK" : "FAILED: #{@backup.message}" %></strong><br>
|
||||
Integrity check: <strong><%= @check.ok ? "OK" : "#{@check.problems.size} problem(s)" %></strong></p>
|
||||
<p><%= t(".last_night_s_records_check") %></p>
|
||||
<p><%= t(".backup_html", message: (@backup.ok ? "OK" : t(".failed", message: @backup.message))) %>
|
||||
<%= t(".integrity_check_html", s: (@check.ok ? "OK" : t(".problem_s", problems: @check.problems.size))) %></p>
|
||||
<ul><% Array(@check.problems).first(20).each do |p| %><li><%= p %></li><% end %></ul>
|
||||
<p>See Admin → About for details.</p>
|
||||
<p><%= t(".see_admin_about_for_details") %></p>
|
||||
@@ -1,9 +1,7 @@
|
||||
Last night's records check found a problem.
|
||||
|
||||
Backup: <%= @backup.ok ? "OK" : "FAILED: #{@backup.message}" %>
|
||||
Integrity check: <%= @check.ok ? "OK" : "#{@check.problems.size} problem(s)" %>
|
||||
<%= raw t(".last_night_s_records_check_2_text", message: (@backup.ok ? "OK" : t(".failed", message: @backup.message))) %>
|
||||
<%= raw t(".integrity_check_2_text", s: (@check.ok ? "OK" : t(".problem_s", problems: @check.problems.size))) %>
|
||||
<% Array(@check.problems).first(20).each do |p| %>
|
||||
- <%= p %>
|
||||
<% end %>
|
||||
|
||||
See Admin → About for details.
|
||||
<%= raw t(".see_admin_about_for_details") %>
|
||||
@@ -1,2 +1,2 @@
|
||||
<p>This is a test email from Simple Aircraft Manager, sent by <%= @user.email_address %> <%= @via %>.</p>
|
||||
<p>Email is working: password resets and sign-in links will arrive.</p>
|
||||
<p><%= t(".this_is_a_test_email_html", email_address: @user.email_address, via: @via) %></p>
|
||||
<p><%= t(".email_is_working_password_resets") %></p>
|
||||
@@ -1,3 +1,3 @@
|
||||
This is a test email from Simple Aircraft Manager, sent by <%= @user.email_address %> <%= @via %>.
|
||||
<%= raw t(".this_is_a_test_email_text", email_address: @user.email_address, via: @via) %>
|
||||
|
||||
Email is working: password resets and sign-in links will arrive.
|
||||
<%= raw t(".email_is_working_password_resets") %>
|
||||
Reference in new issue
Block a user