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

Localize folder name in page title (#1484785)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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?> 
Note: See TracChangeset for help on using the changeset viewer.