i18n for folder controller
This commit is contained in:
parent
f2ff5eed09
commit
85b2b902a7
|
@ -1,6 +1,6 @@
|
||||||
module NavigationHelper
|
module NavigationHelper
|
||||||
def link_back_to_messages
|
def link_back_to_messages
|
||||||
link_to("«" << _('Back to messages'), :controller=>"webmail", :action=>"messages")
|
link_to("«" << t(:back_to_message), :controller=>"webmail", :action=>"messages")
|
||||||
end
|
end
|
||||||
|
|
||||||
def link_send_mail
|
def link_send_mail
|
||||||
|
@ -19,7 +19,7 @@ module NavigationHelper
|
||||||
if folder.name == CDF::CONFIG[:mail_trash] or folder.name == CDF::CONFIG[:mail_inbox] or folder.name == CDF::CONFIG[:mail_sent]
|
if folder.name == CDF::CONFIG[:mail_trash] or folder.name == CDF::CONFIG[:mail_inbox] or folder.name == CDF::CONFIG[:mail_sent]
|
||||||
short_fn(folder)
|
short_fn(folder)
|
||||||
else
|
else
|
||||||
short_fn(folder) + ' ' + link_to(_('Delete'), folder_path(folder.name), :method => :delete)
|
short_fn(folder) + ' ' + link_to(t(:delete), folder_path(folder.name), :method => :delete)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<h1><%=_('Mailbox')%></h1>
|
<h1><%=t :mailbox %></h1>
|
||||||
<div id="header">
|
<div id="header">
|
||||||
<ul id="primary">
|
<ul id="primary">
|
||||||
<li><span><%= _('Folders') %></span>
|
<li><span><%= t :folders %></span>
|
||||||
<ul id="secondary">
|
<ul id="secondary">
|
||||||
<li><%=link_back_to_messages%></li>
|
<li><%=link_back_to_messages%></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -17,13 +17,13 @@
|
||||||
|
|
||||||
<% content_for('sidebar') { %>
|
<% content_for('sidebar') { %>
|
||||||
<div id="folders">
|
<div id="folders">
|
||||||
<h4><%=_('Add folder')%></h4>
|
<h4><%= t :add_folder %></h4>
|
||||||
<hr/>
|
<hr/>
|
||||||
<% form_tag folders_path, :id => 'new_folder' do %>
|
<% form_tag folders_path, :id => 'new_folder' do %>
|
||||||
<ul>
|
<ul>
|
||||||
<li><label for='folder'><%=_('Name')%>:</label></li>
|
<li><label for='folder'><%= t :name %>:</label></li>
|
||||||
<li><%= text_field_tag 'folder', '', :size => 18 %></li>
|
<li><%= text_field_tag 'folder', '', :size => 18 %></li>
|
||||||
<li><%= submit_tag _('Add folder') %></li>
|
<li><%= submit_tag t(:add_folder) %></li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
<div id="messages">
|
<div id="messages">
|
||||||
<div id='msg-fl-list'>
|
<div id='msg-fl-list'>
|
||||||
<table>
|
<table>
|
||||||
<thead><tr><th><%=_('Folder')%></th><th><%= _('Total messages') %></th><th><%= _('Unseen') %></th></tr></thead>
|
<thead><tr><th><%= t :folder %></th><th><%= t :total_messages %></th><th><%= t :unseen%></th></tr></thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<% for folder in @folders %>
|
<% for folder in @folders %>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -6,6 +6,7 @@ en:
|
||||||
wrong_email_or_password: Wrong email or password specified.
|
wrong_email_or_password: Wrong email or password specified.
|
||||||
mailbox: Mailbox
|
mailbox: Mailbox
|
||||||
folders: Folders
|
folders: Folders
|
||||||
|
folder: Folder
|
||||||
empty: Empty
|
empty: Empty
|
||||||
logout: Logout
|
logout: Logout
|
||||||
compose: Compose
|
compose: Compose
|
||||||
|
@ -60,4 +61,6 @@ en:
|
||||||
add_one_contact: Add one contact
|
add_one_contact: Add one contact
|
||||||
add_multiple: Add multiple
|
add_multiple: Add multiple
|
||||||
name: name
|
name: name
|
||||||
|
add_folder: Add folder
|
||||||
|
total_messages: Total messages
|
||||||
|
unseen: Unseen
|
||||||
|
|
|
@ -2,6 +2,9 @@ require 'tmail'
|
||||||
require 'net/smtp'
|
require 'net/smtp'
|
||||||
require 'mail_transform'
|
require 'mail_transform'
|
||||||
|
|
||||||
|
module CDF
|
||||||
|
end
|
||||||
|
|
||||||
class CDF::Mail
|
class CDF::Mail
|
||||||
include ActionMailer::Quoting
|
include ActionMailer::Quoting
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue