Translate common folder names
This commit is contained in:
parent
613c79ab31
commit
1d886ddfa6
|
@ -52,7 +52,7 @@ module NavigationHelper
|
|||
|
||||
def short_fn(folder)
|
||||
if folder.name.include? folder.delim
|
||||
" " + folder.name.split(folder.delim).last
|
||||
folder.name.split(folder.delim).last
|
||||
else
|
||||
folder.name
|
||||
end
|
||||
|
|
|
@ -37,7 +37,9 @@ module WebmailHelper
|
|||
|
||||
def folder_link(folder)
|
||||
return folder.name if folder.attribs.include?(:Noselect)
|
||||
title = folder.unseen > 0 ? "#{short_fn(folder)} (#{folder.unseen})" : "#{short_fn(folder)}"
|
||||
folder_name = short_fn(folder)
|
||||
folder_name = t(folder_name.downcase.to_sym, :default => folder_name)
|
||||
title = folder.unseen > 0 ? "#{folder_name} (#{folder.unseen})" : "#{folder_name}"
|
||||
link = link_to title, :controller => 'webmail', :action => 'messages', :folder_name => folder.name
|
||||
link = content_tag('b', link) if folder.name == @folder_name
|
||||
link += ' ' + empty_trash_link(folder.name) if folder.trash?
|
||||
|
|
|
@ -21,6 +21,11 @@ es-ES:
|
|||
delete: borrar
|
||||
copy: copiar
|
||||
move: mover
|
||||
junk: Basura
|
||||
sent: Enviados
|
||||
inbox: Bandeja de Entrada
|
||||
trash: Basura
|
||||
drafts: Borradores
|
||||
mark_read: marcar como leido
|
||||
mark_unread: marcar comono leido
|
||||
destination_txt: Destino para operaciones de copiado y movido
|
||||
|
|
Loading…
Reference in a new issue