From cc19d4db34f6b18983fcbee61f0ccca38cf031b8 Mon Sep 17 00:00:00 2001 From: "vit.jonas@gmail.com" Date: Wed, 11 May 2011 07:11:24 +0000 Subject: [PATCH] * localized document email sending view git-svn-id: http://redmine-dmsf.googlecode.com/svn/trunk/redmine_dmsf@35 5e329b0b-a2ee-ea63-e329-299493fc886d --- app/views/dmsf/email_entries.html.erb | 18 +++++++++--------- config/locales/cs.yml | 11 +++++++++-- config/locales/de.yml | 8 ++++++++ config/locales/en-GB.yml | 8 ++++++++ config/locales/en.yml | 11 ++++++++++- config/locales/es.yml | 8 ++++++++ config/locales/fr.yml | 8 ++++++++ config/locales/ru.yml | 8 ++++++++ 8 files changed, 68 insertions(+), 12 deletions(-) diff --git a/app/views/dmsf/email_entries.html.erb b/app/views/dmsf/email_entries.html.erb index 7973d0d2..bfc0409c 100644 --- a/app/views/dmsf/email_entries.html.erb +++ b/app/views/dmsf/email_entries.html.erb @@ -1,4 +1,4 @@ -<% html_title("DMSF") %> +<% html_title(l(:dmsf)) %>
@@ -8,36 +8,36 @@ <%= render(:partial => 'path', :locals => {:path => path}) %> -

Send documents by email

+

<%= l(:heading_send_documents_by_email) %>

<% form_tag({:action => "email_entries_send", :id => @project, :folder_id => @folder}, { :method=>:post, :class => "tabular"}) do %>

- <%= label_tag("", "From:") %> + <%= label_tag("", l(:label_email_from) + ":") %> <%= h(User.current.mail) %>

- <%= label_tag("email[to]", "To:") %> + <%= label_tag("email[to]", l(:label_email_to) + ":") %> <%= text_field_tag("email[to]", @email_params["to"], :style => "width: 90%;") %>

- <%= label_tag("email[cc]", "CC:") %> + <%= label_tag("email[cc]", l(:label_email_cc) + ":") %> <%= text_field_tag("email[cc]", @email_params["cc"], :style => "width: 90%;") %>

- <%= label_tag("email[subject]", "Subject:") %> + <%= label_tag("email[subject]", l(:label_email_subject) + ":") %> <%= text_field_tag("email[subject]", @email_params["subject"], :style => "width: 90%;") %>

- <%= label_tag("", "Documents:") %> + <%= label_tag("", l(:label_email_documents) + ":") %> Documents.zip <%= hidden_field_tag("email[zipped_content]", @email_params["zipped_content"]) %>

- <%= label_tag("email[body]", "Body:") %> + <%= label_tag("email[body]", l(:label_email_body) + ":") %> <%= text_area_tag("email[body]", @email_params["body"], :rows=> "20", :style => "width: 90%;") %>

-

<%= submit_tag("Send") %>

+

<%= submit_tag(l(:label_email_send)) %>

<% end %> \ No newline at end of file diff --git a/config/locales/cs.yml b/config/locales/cs.yml index 6ae402f3..370535f8 100644 --- a/config/locales/cs.yml +++ b/config/locales/cs.yml @@ -59,6 +59,13 @@ cs: :title_download_checked: "Download checked in Zip archive" :submit_email: "Email" :title_send_checked_by_email: "Send checked by email" - :link_user_preferences: "Your DMSF project preferences" - \ No newline at end of file + + :heading_send_documents_by_email: "Send documents by email" + :label_email_from: "From" + :label_email_to: "To" + :label_email_cc: "CC" + :label_email_subject: "Subject" + :label_email_documents: "Documents" + :label_email_body: "Body" + :label_email_send: "Send" diff --git a/config/locales/de.yml b/config/locales/de.yml index 105c83c1..9b809809 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -60,4 +60,12 @@ de: :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" + :label_email_cc: "CC" + :label_email_subject: "Subject" + :label_email_documents: "Documents" + :label_email_body: "Body" + :label_email_send: "Send" \ No newline at end of file diff --git a/config/locales/en-GB.yml b/config/locales/en-GB.yml index 101ecd27..6ccd2bbc 100644 --- a/config/locales/en-GB.yml +++ b/config/locales/en-GB.yml @@ -60,4 +60,12 @@ en-GB: :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" + :label_email_cc: "CC" + :label_email_subject: "Subject" + :label_email_documents: "Documents" + :label_email_body: "Body" + :label_email_send: "Send" \ No newline at end of file diff --git a/config/locales/en.yml b/config/locales/en.yml index 40668e63..f35df991 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -59,4 +59,13 @@ en: :title_download_checked: "Download checked in Zip archive" :submit_email: "Email" :title_send_checked_by_email: "Send checked by email" - :link_user_preferences: "Your DMSF project preferences" \ No newline at end of file + :link_user_preferences: "Your DMSF project preferences" + :heading_send_documents_by_email: "Send documents by email" + :label_email_from: "From" + :label_email_to: "To" + :label_email_cc: "CC" + :label_email_subject: "Subject" + :label_email_documents: "Documents" + :label_email_body: "Body" + :label_email_send: "Send" + \ No newline at end of file diff --git a/config/locales/es.yml b/config/locales/es.yml index 755f3630..d7890a6a 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -60,4 +60,12 @@ es: :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" + :label_email_cc: "CC" + :label_email_subject: "Subject" + :label_email_documents: "Documents" + :label_email_body: "Body" + :label_email_send: "Send" \ No newline at end of file diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 1d5d3b0c..b54e3524 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -60,4 +60,12 @@ fr: :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" + :label_email_cc: "CC" + :label_email_subject: "Subject" + :label_email_documents: "Documents" + :label_email_body: "Body" + :label_email_send: "Send" \ No newline at end of file diff --git a/config/locales/ru.yml b/config/locales/ru.yml index 5b4532c7..add32f9c 100644 --- a/config/locales/ru.yml +++ b/config/locales/ru.yml @@ -60,4 +60,12 @@ ru: :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" + :label_email_cc: "CC" + :label_email_subject: "Subject" + :label_email_documents: "Documents" + :label_email_body: "Body" + :label_email_send: "Send" \ No newline at end of file