X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2b290f4994102cb6789eec99c45bc0cedfa81abf..3edd81f03b5f06636e0e206fd8427e8c4456658b:/app/controllers/diary_entry_controller.rb diff --git a/app/controllers/diary_entry_controller.rb b/app/controllers/diary_entry_controller.rb index 22ff69d2b..d3601d47b 100644 --- a/app/controllers/diary_entry_controller.rb +++ b/app/controllers/diary_entry_controller.rb @@ -69,7 +69,7 @@ class DiaryEntryController < ApplicationController render :action => 'no_such_user', :status => :not_found end elsif params[:language] - @title = t 'diary_entry.list.in_language_title', :language => I18nData.languages(I18n.locale)[params[:language].upcase] + @title = t 'diary_entry.list.in_language_title', :language => Language.find(params[:language]).english_name @entry_pages, @entries = paginate(:diary_entries, :include => :user, :conditions => ["users.visible = ? AND diary_entries.language_code = ?", true, params[:language]], :order => 'created_at DESC',