* 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:
vit.jonas@gmail.com 2011-05-12 06:53:40 +00:00
parent cc19d4db34
commit 1e01b15187
11 changed files with 62 additions and 8 deletions

View File

@ -3,14 +3,15 @@
:id => "uploadform", :method=>:post, :multipart => true) do %> :id => "uploadform", :method=>:post, :multipart => true) do %>
<% if Setting.attachment_max_size.to_i >= 102400 %> <% if Setting.attachment_max_size.to_i >= 102400 %>
<div class="upload_select"> <div class="upload_select">
File size: <select id="uploader_select"><option value="1">&lt; 100 MB</option><option value="2">> 100 MB</option></select> <%= l(:label_file_size) %>: <select id="uploader_select"><option value="1">&lt; 100 MB</option><option value="2">> 100 MB</option></select>
</div> </div>
<% end %> <% end %>
<h3>File Upload</h3> <h3><%= l(:heading_file_upload) %></h3>
<div style="padding-bottom: 6px; line-height: 1.4em; font-size: 0.9em;"> <div style="padding-bottom: 6px; line-height: 1.4em; font-size: 0.9em;">
<span> <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 %> <% max_file_upload = Setting.plugin_redmine_dmsf["dmsf_max_file_upload"].to_i %>
<% if Setting.attachment_max_size.to_i >= 2097151 %>To upload files greater than 2GB you must have 64b browser.<% end %> <%= 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> </span>
</div> </div>
<div id="uploader"> <div id="uploader">
@ -23,7 +24,7 @@
(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>) (<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)
</small> </small>
</p> </p>
<%= submit_tag("Upload") %> <%= submit_tag(l(:submit_upload_files)) %>
</div> </div>
<% end %> <% end %>
</div> </div>

View File

@ -3,7 +3,6 @@
/ /
<%= link_to(h(path_element.name), {:controller => "dmsf", :action => "index", :id=> @project, :folder_id => path_element}) %> <%= link_to(h(path_element.name), {:controller => "dmsf", :action => "index", :id=> @project, :folder_id => path_element}) %>
<% if path_element.notification %> <% if path_element.notification %>
<%= image_tag("notify.png", :plugin => "redmine_dmsf", :alt => "Not. act.", <%= image_tag("notify.png", :plugin => "redmine_dmsf", :title => l(:title_notifications_active)) %>
:title => "Notifications active") %>
<% end %> <% end %>
<% end %> <% end %>

View File

@ -60,7 +60,6 @@ cs:
:submit_email: "Email" :submit_email: "Email"
:title_send_checked_by_email: "Send checked by email" :title_send_checked_by_email: "Send checked by email"
:link_user_preferences: "Your DMSF project preferences" :link_user_preferences: "Your DMSF project preferences"
:heading_send_documents_by_email: "Send documents by email" :heading_send_documents_by_email: "Send documents by email"
:label_email_from: "From" :label_email_from: "From"
:label_email_to: "To" :label_email_to: "To"
@ -69,3 +68,11 @@ cs:
:label_email_documents: "Documents" :label_email_documents: "Documents"
:label_email_body: "Body" :label_email_body: "Body"
:label_email_send: "Send" :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"

View File

@ -68,4 +68,11 @@ de:
:label_email_documents: "Documents" :label_email_documents: "Documents"
:label_email_body: "Body" :label_email_body: "Body"
:label_email_send: "Send" :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"

View File

@ -68,4 +68,11 @@ en-GB:
:label_email_documents: "Documents" :label_email_documents: "Documents"
:label_email_body: "Body" :label_email_body: "Body"
:label_email_send: "Send" :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"

View File

@ -68,4 +68,11 @@ en:
:label_email_documents: "Documents" :label_email_documents: "Documents"
:label_email_body: "Body" :label_email_body: "Body"
:label_email_send: "Send" :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"

View File

@ -68,4 +68,10 @@ es:
:label_email_documents: "Documents" :label_email_documents: "Documents"
:label_email_body: "Body" :label_email_body: "Body"
:label_email_send: "Send" :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"

View File

@ -68,4 +68,10 @@ fr:
:label_email_documents: "Documents" :label_email_documents: "Documents"
:label_email_body: "Body" :label_email_body: "Body"
:label_email_send: "Send" :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"

View File

@ -68,4 +68,10 @@ ru:
:label_email_documents: "Documents" :label_email_documents: "Documents"
:label_email_body: "Body" :label_email_body: "Body"
:label_email_send: "Send" :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
View 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

View File

@ -26,6 +26,8 @@ Redmine::Plugin.register :redmine_dmsf do
url "https://code.google.com/p/redmine-dmsf/" url "https://code.google.com/p/redmine-dmsf/"
author_url "mailto:vit.jonas@kontron-czech.com" author_url "mailto:vit.jonas@kontron-czech.com"
requires_redmine :version_or_higher => '1.1.0'
settings :partial => 'settings/dmsf_settings', settings :partial => 'settings/dmsf_settings',
:default => { :default => {
"dmsf_max_file_upload" => "0", "dmsf_max_file_upload" => "0",