Changeset 1119 in subversion


Ignore:
Timestamp:
Feb 19, 2008 6:09:20 PM (5 years ago)
Author:
thomasb
Message:

Localize folder name in page title (#1484785)

Location:
trunk/roundcubemail
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r1111 r1119  
    11CHANGELOG RoundCube Webmail 
    22--------------------------- 
     3 
     42008/02/20 (thomasb) 
     5---------- 
     6- Localize folder name in page title (#1484785) 
    37 
    482008/02/12 (estadtherr) 
  • trunk/roundcubemail/program/include/main.inc

    r1063 r1119  
    18451845 
    18461846 
     1847/** 
     1848 * Try to localize the given IMAP folder name. 
     1849 * UTF-7 decode it in case no localized text was found 
     1850 * 
     1851 * @param string Folder name 
     1852 * @return string Localized folder name in UTF-8 encoding 
     1853 */ 
     1854function rcmail_localize_foldername($name) 
     1855{ 
     1856  if ($folder_class = rcmail_folder_classname($name)) 
     1857    return rcube_label($folder_class); 
     1858  else 
     1859    return rcube_charset_convert($name, 'UTF-7'); 
     1860} 
     1861 
     1862 
    18471863?> 
  • trunk/roundcubemail/program/steps/mail/func.inc

    r1080 r1119  
    7777// set page title 
    7878if (empty($_action) || $_action == 'list') 
    79   $OUTPUT->set_pagetitle(rcube_charset_convert($IMAP->get_mailbox_name(), 'UTF-7')); 
     79  $OUTPUT->set_pagetitle(rcmail_localize_foldername($IMAP->get_mailbox_name())); 
    8080 
    8181 
Note: See TracChangeset for help on using the changeset viewer.