Some more i18n html titles
This commit is contained in:
parent
99903362ca
commit
f3bcdd85d7
3 changed files with 7 additions and 4 deletions
|
@ -64,7 +64,7 @@ class BrowseController < ApplicationController
|
|||
@way_pages, @ways = paginate(:old_ways, :conditions => {:changeset_id => @changeset.id}, :per_page => 20, :parameter => 'way_page')
|
||||
@relation_pages, @relations = paginate(:old_relations, :conditions => {:changeset_id => @changeset.id}, :per_page => 20, :parameter => 'relation_page')
|
||||
|
||||
@title = "Changeset | #{@changeset.id}"
|
||||
@title = "#{I18n.t('browse.changeset.title')} | #{@changeset.id}"
|
||||
@next = Changeset.find(:first, :order => "id ASC", :conditions => [ "id > :id", { :id => @changeset.id }] )
|
||||
@prev = Changeset.find(:first, :order => "id DESC", :conditions => [ "id < :id", { :id => @changeset.id }] )
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
|
|
|
@ -8,7 +8,7 @@ class DiaryEntryController < ApplicationController
|
|||
before_filter :check_database_writable, :only => [:new, :edit]
|
||||
|
||||
def new
|
||||
@title = 'New diary entry'
|
||||
@title = I18n.t('diary_entry.list.new')
|
||||
|
||||
if params[:diary_entry]
|
||||
@diary_entry = DiaryEntry.new(params[:diary_entry])
|
||||
|
@ -26,7 +26,7 @@ class DiaryEntryController < ApplicationController
|
|||
end
|
||||
|
||||
def edit
|
||||
@title= 'Edit diary entry'
|
||||
@title= I18n.t('diary_entry.edit.title')
|
||||
@diary_entry = DiaryEntry.find(params[:id])
|
||||
|
||||
if @user != @diary_entry.user
|
||||
|
@ -70,7 +70,7 @@ class DiaryEntryController < ApplicationController
|
|||
render :action => 'no_such_user', :status => :not_found
|
||||
end
|
||||
else
|
||||
@title = "Users' diaries"
|
||||
@title = I18n.t('diary_entry.list.title')
|
||||
@entry_pages, @entries = paginate(:diary_entries, :include => :user,
|
||||
:conditions => ["users.visible = ?", true],
|
||||
:order => 'created_at DESC',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue