* fixes in setting evaluation

* error message translation

git-svn-id: http://redmine-dmsf.googlecode.com/svn/trunk/redmine_dmsf@124 5e329b0b-a2ee-ea63-e329-299493fc886d
This commit is contained in:
vit.jonas@gmail.com 2011-06-05 16:18:49 +00:00
parent 30fb39a7ce
commit 82c0d8edb3
9 changed files with 37 additions and 1 deletions

View File

@ -16,7 +16,10 @@
<p> <p>
<%=content_tag(:label, l(:label_file_storage_directory) + ":") %> <%=content_tag(:label, l(:label_file_storage_directory) + ":") %>
<% storage_dir = @settings["dmsf_storage_directory"].strip %> <%
storage_dir = @settings["dmsf_storage_directory"].strip
storage_dir = "#{RAILS_ROOT}/files/dmsf" if storage_dir.blank?
%>
<%=text_field_tag "settings[dmsf_storage_directory]", storage_dir, :size=>50 %><br/> <%=text_field_tag "settings[dmsf_storage_directory]", storage_dir, :size=>50 %><br/>
(<%=l(:label_default)%>: <%="#{RAILS_ROOT}/files/dmsf"%>) (<%=l(:label_default)%>: <%="#{RAILS_ROOT}/files/dmsf"%>)
</p> </p>

View File

@ -153,4 +153,8 @@ cs:
:label_number_of_documents: "Documents" :label_number_of_documents: "Documents"
:label_zip_names_encoding: "Zip names encoding" :label_zip_names_encoding: "Zip names encoding"
:note_zip_names_encoding_iconv: "Iconv is used for charset conversion from utf-8 to target encoding" :note_zip_names_encoding_iconv: "Iconv is used for charset conversion from utf-8 to target encoding"
:error_file_storage_directory_does_not_exist: "File storage directory doesn't exist and can't be created"
:error_file_can_not_be_created: "File can't be created in storage directory"
:error_wrong_zip_encoding: "Wrong Zip encoding"
:warning_xapian_not_available: "Xapian not available"

View File

@ -155,4 +155,8 @@ de:
:label_number_of_documents: "Documents" :label_number_of_documents: "Documents"
:label_zip_names_encoding: "Zip names encoding" :label_zip_names_encoding: "Zip names encoding"
:note_zip_names_encoding_iconv: "Iconv is used for charset conversion from utf-8 to target encoding" :note_zip_names_encoding_iconv: "Iconv is used for charset conversion from utf-8 to target encoding"
:error_file_storage_directory_does_not_exist: "File storage directory doesn't exist and can't be created"
:error_file_can_not_be_created: "File can't be created in storage directory"
:error_wrong_zip_encoding: "Wrong Zip encoding"
:warning_xapian_not_available: "Xapian not available"

View File

@ -149,4 +149,8 @@ en-GB:
:label_number_of_documents: "Documents" :label_number_of_documents: "Documents"
:label_zip_names_encoding: "Zip names encoding" :label_zip_names_encoding: "Zip names encoding"
:note_zip_names_encoding_iconv: "Iconv is used for charset conversion from utf-8 to target encoding" :note_zip_names_encoding_iconv: "Iconv is used for charset conversion from utf-8 to target encoding"
:error_file_storage_directory_does_not_exist: "File storage directory doesn't exist and can't be created"
:error_file_can_not_be_created: "File can't be created in storage directory"
:error_wrong_zip_encoding: "Wrong Zip encoding"
:warning_xapian_not_available: "Xapian not available"

View File

@ -154,3 +154,8 @@ en:
:label_zip_names_encoding: "Zip names encoding" :label_zip_names_encoding: "Zip names encoding"
:note_zip_names_encoding_iconv: "Iconv is used for charset conversion from utf-8 to target encoding" :note_zip_names_encoding_iconv: "Iconv is used for charset conversion from utf-8 to target encoding"
:error_file_storage_directory_does_not_exist: "File storage directory doesn't exist and can't be created"
:error_file_can_not_be_created: "File can't be created in storage directory"
:error_wrong_zip_encoding: "Wrong Zip encoding"
:warning_xapian_not_available: "Xapian not available"

View File

@ -151,4 +151,8 @@ es:
:label_number_of_documents: "Documents" :label_number_of_documents: "Documents"
:label_zip_names_encoding: "Zip names encoding" :label_zip_names_encoding: "Zip names encoding"
:note_zip_names_encoding_iconv: "Iconv is used for charset conversion from utf-8 to target encoding" :note_zip_names_encoding_iconv: "Iconv is used for charset conversion from utf-8 to target encoding"
:error_file_storage_directory_does_not_exist: "File storage directory doesn't exist and can't be created"
:error_file_can_not_be_created: "File can't be created in storage directory"
:error_wrong_zip_encoding: "Wrong Zip encoding"
:warning_xapian_not_available: "Xapian not available"

View File

@ -149,4 +149,8 @@ fr:
:label_number_of_documents: "Documents" :label_number_of_documents: "Documents"
:label_zip_names_encoding: "Zip names encoding" :label_zip_names_encoding: "Zip names encoding"
:note_zip_names_encoding_iconv: "Iconv is used for charset conversion from utf-8 to target encoding" :note_zip_names_encoding_iconv: "Iconv is used for charset conversion from utf-8 to target encoding"
:error_file_storage_directory_does_not_exist: "File storage directory doesn't exist and can't be created"
:error_file_can_not_be_created: "File can't be created in storage directory"
:error_wrong_zip_encoding: "Wrong Zip encoding"
:warning_xapian_not_available: "Xapian not available"

View File

@ -153,4 +153,8 @@ en:
:label_number_of_documents: "Documents" :label_number_of_documents: "Documents"
:label_zip_names_encoding: "Zip names encoding" :label_zip_names_encoding: "Zip names encoding"
:note_zip_names_encoding_iconv: "Iconv is used for charset conversion from utf-8 to target encoding" :note_zip_names_encoding_iconv: "Iconv is used for charset conversion from utf-8 to target encoding"
:error_file_storage_directory_does_not_exist: "File storage directory doesn't exist and can't be created"
:error_file_can_not_be_created: "File can't be created in storage directory"
:error_wrong_zip_encoding: "Wrong Zip encoding"
:warning_xapian_not_available: "Xapian not available"

View File

@ -149,4 +149,8 @@ ru:
:label_number_of_documents: "Documents" :label_number_of_documents: "Documents"
:label_zip_names_encoding: "Zip names encoding" :label_zip_names_encoding: "Zip names encoding"
:note_zip_names_encoding_iconv: "Iconv is used for charset conversion from utf-8 to target encoding" :note_zip_names_encoding_iconv: "Iconv is used for charset conversion from utf-8 to target encoding"
:error_file_storage_directory_does_not_exist: "File storage directory doesn't exist and can't be created"
:error_file_can_not_be_created: "File can't be created in storage directory"
:error_wrong_zip_encoding: "Wrong Zip encoding"
:warning_xapian_not_available: "Xapian not available"