From 02371b844457367c29eecaba430af854f105b98d Mon Sep 17 00:00:00 2001
From: Axel Liljencrantz
Date: Wed, 28 Jul 2010 15:51:41 +0200
Subject: [PATCH] i18n work
---
app/views/units/edit.html.erb | 8 ++++----
app/views/units/index.html.erb | 4 ++--
app/views/vat_accounts/show.html.erb | 4 ++--
config/locales/nb.yml | 6 ++++++
4 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/app/views/units/edit.html.erb b/app/views/units/edit.html.erb
index 6086721..56bcce5 100644
--- a/app/views/units/edit.html.erb
+++ b/app/views/units/edit.html.erb
@@ -1,4 +1,4 @@
-Editing unit
+<%= t('untis.header_edit')%>
<%= form_for(@unit) do |f| %>
<%= f.error_messages %>
@@ -13,9 +13,9 @@
<%= f.text_area :comments %>
- <%= f.submit 'Update' %>
+ <%= f.submit t('global.update') %>
<% end %>
-<%= link_to 'Show', @unit %> |
-<%= link_to 'Back', units_path %>
+<%= link_to t('global.show'), @unit %> |
+<%= link_to t('global.back'), units_path %>
diff --git a/app/views/units/index.html.erb b/app/views/units/index.html.erb
index 76d9f77..3643289 100644
--- a/app/views/units/index.html.erb
+++ b/app/views/units/index.html.erb
@@ -1,4 +1,4 @@
-Listing units
+<%= t('untis.header_index')%>
@@ -29,5 +29,5 @@
<% if permitted_to? :create, :units %>
- <%= link_to 'New unit', new_unit_path %>
+ <%= link_to t('New unit'), new_unit_path %>
<% end %>
diff --git a/app/views/vat_accounts/show.html.erb b/app/views/vat_accounts/show.html.erb
index ee9e51f..088b0aa 100644
--- a/app/views/vat_accounts/show.html.erb
+++ b/app/views/vat_accounts/show.html.erb
@@ -13,5 +13,5 @@
<%= @vat_account.overridable %>
-<%= 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 %>
diff --git a/config/locales/nb.yml b/config/locales/nb.yml
index acedfa7..2506a92 100644
--- a/config/locales/nb.yml
+++ b/config/locales/nb.yml
@@ -359,3 +359,9 @@
login: Logg inn
maintainance: Vedlikehold
welcome: Velkommen til lodo regnskap
+ units:
+ header_edit: Kjemperedigerer avdelning
+ header_index: Kjempelister avdelninger
+
+
+