* localized all dmsf controler views
git-svn-id: http://redmine-dmsf.googlecode.com/svn/trunk/redmine_dmsf@36 5e329b0b-a2ee-ea63-e329-299493fc886d
This commit is contained in:
parent
cc19d4db34
commit
1e01b15187
@ -3,14 +3,15 @@
|
||||
:id => "uploadform", :method=>:post, :multipart => true) do %>
|
||||
<% if Setting.attachment_max_size.to_i >= 102400 %>
|
||||
<div class="upload_select">
|
||||
File size: <select id="uploader_select"><option value="1">< 100 MB</option><option value="2">> 100 MB</option></select>
|
||||
<%= l(:label_file_size) %>: <select id="uploader_select"><option value="1">< 100 MB</option><option value="2">> 100 MB</option></select>
|
||||
</div>
|
||||
<% end %>
|
||||
<h3>File Upload</h3>
|
||||
<h3><%= l(:heading_file_upload) %></h3>
|
||||
<div style="padding-bottom: 6px; line-height: 1.4em; font-size: 0.9em;">
|
||||
<span>
|
||||
<% if Setting.plugin_redmine_dmsf["dmsf_max_file_upload"].to_i > 0 %>There can be uploaded maximum of <%= Setting.plugin_redmine_dmsf["dmsf_max_file_upload"].to_i %> files at once.<% end %>
|
||||
<% if Setting.attachment_max_size.to_i >= 2097151 %>To upload files greater than 2GB you must have 64b browser.<% end %>
|
||||
<% max_file_upload = Setting.plugin_redmine_dmsf["dmsf_max_file_upload"].to_i %>
|
||||
<%= l(:note_uploaded_maximum_files_at_once, :number => max_file_upload) if max_file_upload > 0 %>
|
||||
<%= l(:note_upload_files_greater_than_two_gb) if Setting.attachment_max_size.to_i >= 2097151 %>
|
||||
</span>
|
||||
</div>
|
||||
<div id="uploader">
|
||||
@ -23,7 +24,7 @@
|
||||
(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)
|
||||
</small>
|
||||
</p>
|
||||
<%= submit_tag("Upload") %>
|
||||
<%= submit_tag(l(:submit_upload_files)) %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@ -3,7 +3,6 @@
|
||||
/
|
||||
<%= link_to(h(path_element.name), {:controller => "dmsf", :action => "index", :id=> @project, :folder_id => path_element}) %>
|
||||
<% if path_element.notification %>
|
||||
<%= image_tag("notify.png", :plugin => "redmine_dmsf", :alt => "Not. act.",
|
||||
:title => "Notifications active") %>
|
||||
<%= image_tag("notify.png", :plugin => "redmine_dmsf", :title => l(:title_notifications_active)) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@ -60,7 +60,6 @@ cs:
|
||||
:submit_email: "Email"
|
||||
:title_send_checked_by_email: "Send checked by email"
|
||||
:link_user_preferences: "Your DMSF project preferences"
|
||||
|
||||
:heading_send_documents_by_email: "Send documents by email"
|
||||
:label_email_from: "From"
|
||||
:label_email_to: "To"
|
||||
@ -69,3 +68,11 @@ cs:
|
||||
:label_email_documents: "Documents"
|
||||
:label_email_body: "Body"
|
||||
:label_email_send: "Send"
|
||||
|
||||
:title_notifications_active: "Notifications active"
|
||||
:label_file_size: "File size"
|
||||
:heading_file_upload: "Upload"
|
||||
:note_uploaded_maximum_files_at_once: "There can be uploaded maximum of %{number} files at once."
|
||||
:note_upload_files_greater_than_two_gb: "To upload files greater than 2GB you must have 64b browser."
|
||||
:submit_upload_files: "Upload"
|
||||
|
||||
@ -68,4 +68,11 @@ de:
|
||||
:label_email_documents: "Documents"
|
||||
:label_email_body: "Body"
|
||||
:label_email_send: "Send"
|
||||
:title_notifications_active: "Notifications active"
|
||||
:label_file_size: "File size"
|
||||
:heading_file_upload: "Upload"
|
||||
:note_uploaded_maximum_files_at_once: "There can be uploaded maximum of %{number} files at once."
|
||||
:note_upload_files_greater_than_two_gb: "To upload files greater than 2GB you must have 64b browser."
|
||||
:submit_upload_files: "Upload"
|
||||
|
||||
|
||||
@ -68,4 +68,11 @@ en-GB:
|
||||
:label_email_documents: "Documents"
|
||||
:label_email_body: "Body"
|
||||
:label_email_send: "Send"
|
||||
:title_notifications_active: "Notifications active"
|
||||
:label_file_size: "File size"
|
||||
:heading_file_upload: "Upload"
|
||||
:note_uploaded_maximum_files_at_once: "There can be uploaded maximum of %{number} files at once."
|
||||
:note_upload_files_greater_than_two_gb: "To upload files greater than 2GB you must have 64b browser."
|
||||
:submit_upload_files: "Upload"
|
||||
|
||||
|
||||
@ -68,4 +68,11 @@ en:
|
||||
:label_email_documents: "Documents"
|
||||
:label_email_body: "Body"
|
||||
:label_email_send: "Send"
|
||||
:title_notifications_active: "Notifications active"
|
||||
:label_file_size: "File size"
|
||||
:heading_file_upload: "Upload"
|
||||
:note_uploaded_maximum_files_at_once: "There can be uploaded maximum of %{number} files at once."
|
||||
:note_upload_files_greater_than_two_gb: "To upload files greater than 2GB you must have 64b browser."
|
||||
:submit_upload_files: "Upload"
|
||||
|
||||
|
||||
@ -68,4 +68,10 @@ es:
|
||||
:label_email_documents: "Documents"
|
||||
:label_email_body: "Body"
|
||||
:label_email_send: "Send"
|
||||
:title_notifications_active: "Notifications active"
|
||||
:label_file_size: "File size"
|
||||
:heading_file_upload: "Upload"
|
||||
:note_uploaded_maximum_files_at_once: "There can be uploaded maximum of %{number} files at once."
|
||||
:note_upload_files_greater_than_two_gb: "To upload files greater than 2GB you must have 64b browser."
|
||||
:submit_upload_files: "Upload"
|
||||
|
||||
@ -68,4 +68,10 @@ fr:
|
||||
:label_email_documents: "Documents"
|
||||
:label_email_body: "Body"
|
||||
:label_email_send: "Send"
|
||||
:title_notifications_active: "Notifications active"
|
||||
:label_file_size: "File size"
|
||||
:heading_file_upload: "Upload"
|
||||
:note_uploaded_maximum_files_at_once: "There can be uploaded maximum of %{number} files at once."
|
||||
:note_upload_files_greater_than_two_gb: "To upload files greater than 2GB you must have 64b browser."
|
||||
:submit_upload_files: "Upload"
|
||||
|
||||
@ -68,4 +68,10 @@ ru:
|
||||
:label_email_documents: "Documents"
|
||||
:label_email_body: "Body"
|
||||
:label_email_send: "Send"
|
||||
:title_notifications_active: "Notifications active"
|
||||
:label_file_size: "File size"
|
||||
:heading_file_upload: "Upload"
|
||||
:note_uploaded_maximum_files_at_once: "There can be uploaded maximum of %{number} files at once."
|
||||
:note_upload_files_greater_than_two_gb: "To upload files greater than 2GB you must have 64b browser."
|
||||
:submit_upload_files: "Upload"
|
||||
|
||||
6
config/routes.rb
Normal file
6
config/routes.rb
Normal file
@ -0,0 +1,6 @@
|
||||
ActionController::Routing::Routes.draw do |map|
|
||||
map.resource :dmsf, :member => {:sync => :put} do |dmsf|
|
||||
dmsf.resource :dmsf_detail, :as => 'detail'
|
||||
dmsf.resource :dmsf_state, :as => 'state'
|
||||
end
|
||||
end
|
||||
2
init.rb
2
init.rb
@ -26,6 +26,8 @@ Redmine::Plugin.register :redmine_dmsf do
|
||||
url "https://code.google.com/p/redmine-dmsf/"
|
||||
author_url "mailto:vit.jonas@kontron-czech.com"
|
||||
|
||||
requires_redmine :version_or_higher => '1.1.0'
|
||||
|
||||
settings :partial => 'settings/dmsf_settings',
|
||||
:default => {
|
||||
"dmsf_max_file_upload" => "0",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user