Translate common folder names

master-old
Emilio Blanco 2011-04-01 08:23:32 -03:00
parent 613c79ab31
commit 1d886ddfa6
3 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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?

View File

@ -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