]> git.openstreetmap.org Git - rails.git/commitdiff
Some more i18n html titles
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Sun, 31 May 2009 16:51:20 +0000 (16:51 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Sun, 31 May 2009 16:51:20 +0000 (16:51 +0000)
app/controllers/browse_controller.rb
app/controllers/diary_entry_controller.rb
config/locales/en.yml

index 12ede13da333fd030a34b29559edcaa1f9f9dd88..d3af27217544831281ea4e08aba81538e8f4395f 100644 (file)
@@ -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
index 018f4a48a452af233c5b71a8bfa0d8f630de902c..d5f6f59fc3ea6d99eefadb12d7c7e5578f961dbb 100644 (file)
@@ -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',
index cf36f4cd394c8d0be618432000895f130c663694..118217f8715470eddd496ea108b01c37935d5f52 100644 (file)
@@ -5,6 +5,7 @@ en:
     coordinates: "Coordinates:"
   browse:
     changeset:
+      title: "Changeset"
       changeset: "Changeset:"
       download: "Download {{changeset_xml_link}} or {{osmchange_xml_link}}"
       changesetxml: "Changeset XML"
@@ -145,6 +146,7 @@ en:
       recent_changes: "Recent Changes"
   diary_entry:
     list:
+      title: "Users' diaries"
       new: New Diary Entry
       new_title: Compose a new entry in your user diary
       no_entries: No diary entries
@@ -152,6 +154,7 @@ en:
       older_entries: Older Entries
       newer_entries: Newer Entries
     edit:
+      title: "Edit diary entry"
       subject: "Subject: "
       body: "Body: "
       language: "Language: "