FIX: Correct translation

This commit is contained in:
HausdorffHimself
2013-09-12 03:21:59 +02:00
parent a2e1b9d55b
commit 33a6e9cb81
2 changed files with 4 additions and 3 deletions

View File

@@ -29,9 +29,9 @@ class GalleriesController < ApplicationController
@page = params[:page].nil? ? 1 : params[:page].to_i @page = params[:page].nil? ? 1 : params[:page].to_i
@fotos = Foto.where(:gallery_id => params[:id]).limit(@pppage_array[@pppage]).offset(@pppage_array[@pppage]*(@page-1)) @fotos = Foto.where(:gallery_id => params[:id]).limit(@pppage_array[@pppage]).offset(@pppage_array[@pppage]*(@page-1))
@pages = (Foto.where(:gallery_id => params[:id]).count/(@pppage_array[@pppage])+1) @pages = (Foto.where(:gallery_id => params[:id]).count/(@pppage_array[@pppage])+1)
@toolbar_elements << {:hicon=>'icon-plus', :text=> "NewFoto", :path=>new_gallery_foto_path(@gallery)} @toolbar_elements << {:hicon=>'icon-plus', :text=> I18n.t('fotos.new-fotos'), :path=>new_gallery_foto_path(@gallery)}
@toolbar_elements << {:hicon=>'icon-pencil', :text => I18n.t('common.edit'), :path=>edit_gallery_path(@gallery)} @toolbar_elements << {:hicon=>'icon-pencil', :text => I18n.t('common.edit'), :path=>edit_gallery_path(@gallery)}
@toolbar_elements << {:text=>"Back", :path=>galleries_path()} @toolbar_elements << {:hicon=>'icon-arrow-left', :text=>I18n.t('common.back'), :path=>galleries_path()}
respond_to do |format| respond_to do |format|
format.html # show.html.erb format.html # show.html.erb

View File

@@ -1,7 +1,8 @@
de: de:
fotos: fotos:
galleries: "Bildergalerien" galleries: "Bildergalerien"
new-gallery: "neue Galerie" new-gallery: "Neue Galerie"
new-fotos: "Fotos hinzufügen"
bilder: "Bilder" bilder: "Bilder"
prev: "Vorherige" prev: "Vorherige"
next: "Nächste" next: "Nächste"