Added English strings for Rails i18n

This commit is contained in:
2026-03-07 12:37:47 -05:00
parent 03b94d251a
commit acd54a5e57
4 changed files with 16 additions and 11 deletions

View File

@@ -3,14 +3,14 @@
<% @issue.line_items.build if @issue.line_items.empty? && !readonly %> <% @issue.line_items.build if @issue.line_items.empty? && !readonly %>
<div class="box tabular" <%= 'data-nested-form data-wrapper-selector=".line-item"' unless readonly %>> <div class="box tabular" <%= 'data-nested-form data-wrapper-selector=".line-item"' unless readonly %>>
<p><strong>Line Items</strong></p> <p><strong><%= t :label_line_items %></strong></p>
<table class="list line-items-table"> <table class="list line-items-table">
<thead> <thead>
<tr> <tr>
<th>Description</th> <th><%= t :label_description %></th>
<th style="width:120px;">Quantity</th> <th style="width:120px;"><%= t :label_qty %></th>
<th style="width:150px;">Unit Price</th> <th style="width:150px;"><%= t :label_price %></th>
<% unless readonly %> <% unless readonly %>
<th style="width:80px;"></th> <th style="width:80px;"></th>
<% end %> <% end %>

View File

@@ -1,15 +1,15 @@
<% if @issue.line_items.any? %> <% if @issue.line_items.any? %>
<hr/> <hr/>
<div> <div>
<p><strong>Line Items</strong></p> <p><strong><%= t :label_line_items %></strong></p>
<table class="list line-items-table"> <table class="list line-items-table">
<thead> <thead>
<tr> <tr>
<th>Description</th> <th><%= t :label_description %></th>
<th style="width:120px;">Quantity</th> <th style="width:120px;"><%= t :label_qty %></th>
<th style="width:150px;">Unit Price</th> <th style="width:150px;"><%= t :label_price %></th>
<th style="width:150px;">Total</th> <th style="width:150px;"><%= t :label_total %></th>
</tr> </tr>
</thead> </thead>
@@ -31,7 +31,7 @@
<tfoot> <tfoot>
<tr> <tr>
<td colspan="3" style="text-align:right;"><strong>Total</strong></td> <td colspan="3" style="text-align:right;"><strong><%= t :label_total %></strong></td>
<td><strong><%= number_to_currency(total) %></strong></td> <td><strong><%= number_to_currency(total) %></strong></td>
</tr> </tr>
</tfoot> </tfoot>

View File

@@ -5,7 +5,7 @@
<td> <td>
<%= f.text_field :description, <%= f.text_field :description,
size: 50, size: 50,
placeholder: "Description", placeholder: l(:label_description),
no_label: true, no_label: true,
disabled: readonly %> disabled: readonly %>
</td> </td>

View File

@@ -11,5 +11,10 @@
# English strings go here for Rails i18n # English strings go here for Rails i18n
# Usage I18n.t(:label) # Usage I18n.t(:label)
en: en:
label_description: "Description"
label_item: "Item" label_item: "Item"
label_line_items: "Line Items"
label_price: "Unit Price"
label_qty: "Quantity"
label_total: "Total"