* fixed Issue 100: Improve translation
git-svn-id: http://redmine-dmsf.googlecode.com/svn/trunk/redmine_dmsf@179 5e329b0b-a2ee-ea63-e329-299493fc886d
This commit is contained in:
parent
7fdfef5027
commit
dd8bd03aec
@ -47,8 +47,8 @@ class DmsfFile < ActiveRecord::Base
|
||||
existing_file.nil? || existing_file.id == self.id
|
||||
end
|
||||
|
||||
acts_as_event :title => Proc.new {|o| "#{o.name}"},
|
||||
:description => Proc.new {|o| "#{o.last_revision.title} - #{o.last_revision.description}" },
|
||||
acts_as_event :title => Proc.new {|o| "#{o.title} - #{o.name}"},
|
||||
:description => Proc.new {|o| o.description },
|
||||
:url => Proc.new {|o| {:controller => "dmsf_files", :action => "show", :id => o, :download => ""}},
|
||||
:datetime => Proc.new {|o| o.updated_at },
|
||||
:author => Proc.new {|o| o.last_revision.user }
|
||||
@ -131,6 +131,10 @@ class DmsfFile < ActiveRecord::Base
|
||||
self.last_revision.title
|
||||
end
|
||||
|
||||
def description
|
||||
self.last_revision.description
|
||||
end
|
||||
|
||||
def version
|
||||
self.last_revision.version
|
||||
end
|
||||
|
||||
@ -24,7 +24,7 @@ class DmsfFileRevision < ActiveRecord::Base
|
||||
belongs_to :folder, :class_name => "DmsfFolder", :foreign_key => "dmsf_folder_id"
|
||||
belongs_to :deleted_by_user, :class_name => "User", :foreign_key => "deleted_by_user_id"
|
||||
|
||||
acts_as_event :title => Proc.new {|o| "DMSF updated: #{o.file.dmsf_path_str}"},
|
||||
acts_as_event :title => Proc.new {|o| "#{l(:label_dmsf_updated)}: #{o.file.dmsf_path_str}"},
|
||||
:url => Proc.new {|o| {:controller => 'dmsf_files', :action => 'show', :id => o.file}},
|
||||
:datetime => Proc.new {|o| o.updated_at },
|
||||
:description => Proc.new {|o| o.comment },
|
||||
|
||||
@ -3,7 +3,6 @@ cs:
|
||||
:label_dmsf_file_plural: "Dmsf soubory"
|
||||
:warning_no_entries_selected: "Není nic vybráno"
|
||||
:error_email_to_must_be_entered: "Musí být zadán adresát"
|
||||
|
||||
:notice_email_sent: "Email byl odeslán"
|
||||
:warning_file_already_locked: "Soubor už je zamčen"
|
||||
:notice_file_locked: "Soubor byl zamčen"
|
||||
@ -164,4 +163,7 @@ cs:
|
||||
:heading_access_downloads_emails: "Stažené/Emaily"
|
||||
:heading_access_first: "První"
|
||||
:heading_access_last: "Poslední"
|
||||
|
||||
|
||||
# Not translated
|
||||
:label_dmsf_updated: "DMSF updated"
|
||||
|
||||
@ -165,4 +165,5 @@ de:
|
||||
:heading_access_downloads_emails: "Downloads/Emails"
|
||||
:heading_access_first: "First"
|
||||
:heading_access_last: "Last"
|
||||
:label_dmsf_updated: "DMSF updated"
|
||||
|
||||
@ -159,4 +159,5 @@ en-GB:
|
||||
:heading_access_downloads_emails: "Downloads/Emails"
|
||||
:heading_access_first: "First"
|
||||
:heading_access_last: "Last"
|
||||
:label_dmsf_updated: "DMSF updated"
|
||||
|
||||
@ -159,4 +159,5 @@ en-GB:
|
||||
:heading_access_downloads_emails: "Downloads/Emails"
|
||||
:heading_access_first: "First"
|
||||
:heading_access_last: "Last"
|
||||
:label_dmsf_updated: "DMSF updated"
|
||||
|
||||
@ -164,4 +164,5 @@ en:
|
||||
:heading_access_first: "First"
|
||||
:heading_access_last: "Last"
|
||||
|
||||
:label_dmsf_updated: "DMSF updated"
|
||||
|
||||
@ -161,4 +161,5 @@ es:
|
||||
:heading_access_downloads_emails: "Downloads/Emails"
|
||||
:heading_access_first: "First"
|
||||
:heading_access_last: "Last"
|
||||
:label_dmsf_updated: "DMSF updated"
|
||||
|
||||
@ -159,4 +159,5 @@ fr:
|
||||
:heading_access_downloads_emails: "Downloads/Emails"
|
||||
:heading_access_first: "First"
|
||||
:heading_access_last: "Last"
|
||||
:label_dmsf_updated: "DMSF updated"
|
||||
|
||||
@ -163,4 +163,5 @@ en:
|
||||
:heading_access_downloads_emails: "Downloads/Emails"
|
||||
:heading_access_first: "First"
|
||||
:heading_access_last: "Last"
|
||||
:label_dmsf_updated: "DMSF updated"
|
||||
|
||||
@ -159,4 +159,5 @@ ru:
|
||||
:heading_access_downloads_emails: "Downloads/Emails"
|
||||
:heading_access_first: "First"
|
||||
:heading_access_last: "Last"
|
||||
:label_dmsf_updated: "DMSF updated"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user