From 6d53887d83c00b187c297ad5dd74ef8fd19ff87c Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Wed, 22 May 2013 10:04:45 +0200 Subject: i18n in navbar --- app/views/layouts/_navbar.html.haml | 2 +- config/locales/navigation.de.yml | 4 +++- config/locales/navigation.en.yml | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/_navbar.html.haml b/app/views/layouts/_navbar.html.haml index f4914b2..d83660b 100644 --- a/app/views/layouts/_navbar.html.haml +++ b/app/views/layouts/_navbar.html.haml @@ -61,5 +61,5 @@ - if GuiFunction.display?('search_field_in_top_navigation_bar', current_user) = form_tag search_path, :method => :post, :class => 'navbar-search pull-right' do - %input.text{:placeholder => 'Suchen ...', :name => 'q', :class => 'search-query span2'} + %input.text{:placeholder => t('navigation.search_placeholder'), :name => 'q', :class => 'search-query span2'} diff --git a/config/locales/navigation.de.yml b/config/locales/navigation.de.yml index 779248c..23c3aff 100644 --- a/config/locales/navigation.de.yml +++ b/config/locales/navigation.de.yml @@ -1,3 +1,5 @@ de: navigation: - admin_docu: 'Admin-Doku' \ No newline at end of file + admin_docu: 'Admin-Doku' + search_placeholder: 'Suchen ...' + diff --git a/config/locales/navigation.en.yml b/config/locales/navigation.en.yml index 015b783..df399f9 100644 --- a/config/locales/navigation.en.yml +++ b/config/locales/navigation.en.yml @@ -1,3 +1,5 @@ en: navigation: admin_docu: 'Admin-Doc' + search_placeholder: 'Search ...' + -- cgit v1.2.3