Changeset 49ab20c in github


Ignore:
Timestamp:
May 9, 2012 6:49:06 AM (14 months ago)
Author:
Aleksander Machniak <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo
Children:
644f00d
Parents:
59041fd (diff), f8c9610f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of github.com:roundcube/roundcubemail

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • skins/larry/styles.css

    r4dbc961 rf8c9610f  
    12811281        width: 176px; 
    12821282        margin: 0; 
    1283         padding: 5px 26px 5px 38px; 
     1283        padding: 5px 26px 2px 38px; 
     1284        height: 18px; 
    12841285        background: #f1f1f1; 
    12851286        border-color: #a3a3a3; 
     
    12961297        position: absolute; 
    12971298        top: 4px; 
    1298         right: 3px; 
     1299        right: 1px; 
    12991300} 
    13001301 
     
    14781479a.dropdownselector { 
    14791480        position: absolute; 
     1481        padding: 1px 0; 
    14801482        z-index: 1; 
     1483} 
     1484 
     1485a.dropdownselector .handle { 
     1486        margin: -1px 0; 
     1487        padding-top: 5px; 
     1488        min-height: 20px; 
    14811489} 
    14821490 
     
    18871895} 
    18881896 
     1897.attachmentslist li.txt, 
     1898.attachmentslist li.text { 
     1899        background-position: 0 -416px; 
     1900} 
     1901 
     1902.attachmentslist li.vcard { 
     1903        background-position: 0 -390px; 
     1904} 
     1905 
     1906.attachmentslist li.html { 
     1907        background-position: 0 -442px; 
     1908} 
     1909 
    18891910.attachmentslist li a, 
    18901911#compose-attachments ul li { 
  • CHANGELOG

    r837de85 r59041fd  
    22=========================== 
    33 
    4  
     4- Use similar language as a fallback for plugin localization (#1488401) 
    55- Fix issue where signature wasn't re-added on draft compose (#1488322) 
    66- Update to TinyMCE 3.5 (#1488459) 
  • program/include/rcube.php

    r58154f5 r59041fd  
    632632 
    633633      // include user language files 
    634       if ($lang != 'en' && is_dir(INSTALL_PATH . 'program/localization/' . $lang)) { 
     634      if ($lang != 'en' && $lang != 'en_US' && is_dir(INSTALL_PATH . 'program/localization/' . $lang)) { 
    635635        include_once(INSTALL_PATH . 'program/localization/' . $lang . '/labels.inc'); 
    636636        include_once(INSTALL_PATH . 'program/localization/' . $lang . '/messages.inc'); 
  • program/include/rcube_plugin.php

    rbe98dfc2 r59041fd  
    154154  { 
    155155    $domain = $this->ID; 
    156  
    157     $lang = $_SESSION['language']; 
     156    $lang   = $_SESSION['language']; 
     157    $langs  = array_unique(array('en_US', $lang)); 
    158158    $locdir = slashify(realpath(slashify($this->home) . $dir)); 
    159     $texts = array(); 
     159    $texts  = array(); 
     160 
     161    // Language aliases used to find localization in similar lang, see below 
     162    $aliases = array( 
     163        'de_CH' => 'de_DE', 
     164        'es_AR' => 'es_ES', 
     165        'fa_AF' => 'fa_IR', 
     166        'nl_BE' => 'nl_NL', 
     167        'pt_BR' => 'pt_PT', 
     168        'zh_CN' => 'zh_TW', 
     169    ); 
    160170 
    161171    // use buffering to handle empty lines/spaces after closing PHP tag 
    162172    ob_start(); 
    163173 
    164     foreach (array('en_US', $lang) as $lng) { 
     174    foreach ($langs as $lng) { 
    165175      $fpath = $locdir . $lng . '.inc'; 
    166176      if (is_file($fpath) && is_readable($fpath)) { 
    167         include($fpath); 
     177        include $fpath; 
    168178        $texts = (array)$labels + (array)$messages + (array)$texts; 
     179      } 
     180      else if ($lng != 'en_US') { 
     181        // Find localization in similar language (#1488401) 
     182        $alias = null; 
     183        if (!empty($aliases[$lng])) { 
     184          $alias = $aliases[$lng]; 
     185        } 
     186        else if ($key = array_search($lng, $aliases)) { 
     187          $alias = $key; 
     188        } 
     189 
     190        if (!empty($alias)) { 
     191          $fpath = $locdir . $alias . '.inc'; 
     192          if (is_file($fpath) && is_readable($fpath)) { 
     193            include $fpath; 
     194            $texts = (array)$labels + (array)$messages + (array)$texts; 
     195          } 
     196        } 
    169197      } 
    170198    } 
Note: See TracChangeset for help on using the changeset viewer.