Skip to content

Commit

Permalink
i18n work
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Liljencrantz committed Jul 28, 2010
1 parent a2ed8f4 commit 02371b8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
8 changes: 4 additions & 4 deletions app/views/units/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1>Editing unit</h1>
<h1><%= t('untis.header_edit')%></h1>

<%= form_for(@unit) do |f| %>
<%= f.error_messages %>
Expand All @@ -13,9 +13,9 @@
<%= f.text_area :comments %>
</p>
<p>
<%= f.submit 'Update' %>
<%= f.submit t('global.update') %>
</p>
<% end %>

<%= link_to 'Show', @unit %> |
<%= link_to 'Back', units_path %>
<%= link_to t('global.show'), @unit %> |
<%= link_to t('global.back'), units_path %>
4 changes: 2 additions & 2 deletions app/views/units/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1>Listing units</h1>
<h1><%= t('untis.header_index')%></h1>

<table>
<tr>
Expand Down Expand Up @@ -29,5 +29,5 @@
<br />

<% if permitted_to? :create, :units %>
<%= link_to 'New unit', new_unit_path %>
<%= link_to t('New unit'), new_unit_path %>
<% end %>
4 changes: 2 additions & 2 deletions app/views/vat_accounts/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
<%= @vat_account.overridable %>
</p>

<%= link_to t(:edit, :scope => :vat), edit_vat_account_path(@vat_account) %> |
<%= link_to t(:back, :scope => :vat), vat_accounts_path %>
<%= link_to t(:edit, :scope => :global), edit_vat_account_path(@vat_account) %> |
<%= link_to t(:back, :scope => :global), vat_accounts_path %>
6 changes: 6 additions & 0 deletions config/locales/nb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -359,3 +359,9 @@
login: Logg inn
maintainance: Vedlikehold
welcome: Velkommen til lodo regnskap
units:
header_edit: Kjemperedigerer avdelning
header_index: Kjempelister avdelninger



0 comments on commit 02371b8

Please sign in to comment.