Changeset 66510e2 in github


Ignore:
Timestamp:
May 9, 2012 7:52:28 AM (13 months ago)
Author:
Aleksander Machniak <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo
Children:
69cdf7b
Parents:
644f00d (diff), b546b0d (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 pull request #1 from Brianetta/de-svn

Change version text to reflect new versioning system

Files:
8 edited

Legend:

Unmodified
Added
Removed
  • index.php

    rd2191c6 rb546b0d  
    33 +-------------------------------------------------------------------------+ 
    44 | Roundcube Webmail IMAP Client                                           | 
    5  | Version 0.9-svn                                                         | 
     5 | Version 0.9-git                                                         | 
    66 |                                                                         | 
    77 | Copyright (C) 2005-2012, The Roundcube Dev Team                         | 
  • installer/index.php

    rd13f329 rb546b0d  
    44 +-------------------------------------------------------------------------+ 
    55 | Roundcube Webmail setup tool                                            | 
    6  | Version 0.9-svn                                                         | 
     6 | Version 0.9-git                                                         | 
    77 |                                                                         | 
    88 | Copyright (C) 2009-2012, The Roundcube Dev Team                         | 
  • program/include/iniset.php

    r1aceb9c r552cdea  
    4141 
    4242// application constants 
    43 define('RCMAIL_VERSION', '0.9-svn'); 
     43define('RCMAIL_VERSION', '0.9-git'); 
    4444define('RCMAIL_CHARSET', 'UTF-8'); 
    4545define('RCMAIL_START', microtime(true)); 
  • 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    } 
  • program/js/app.js

    r837de85 r644f00d  
    768768      case 'always-load': 
    769769        if (this.env.uid && this.env.sender) { 
    770           this.add_contact(urlencode(this.env.sender)); 
     770          this.add_contact(this.env.sender); 
    771771          setTimeout(function(){ ref.command('load-images'); }, 300); 
    772772          break; 
  • program/steps/mail/func.inc

    r76248c7 r644f00d  
    13411341        $address = html::span(null, $address . html::a(array( 
    13421342            'href' => "#add", 
    1343             'onclick' => sprintf("return %s.command('add-contact','%s',this)", JS_OBJECT_NAME, urlencode($string)), 
     1343            'onclick' => sprintf("return %s.command('add-contact','%s',this)", JS_OBJECT_NAME, $string), 
    13441344            'title' => rcube_label('addtoaddressbook'), 
    13451345            'class' => 'rcmaddcontact', 
Note: See TracChangeset for help on using the changeset viewer.