Changeset 3069 in subversion


Ignore:
Timestamp:
Oct 28, 2009 12:16:09 PM (4 years ago)
Author:
thomasb
Message:

Localize vcard_attachments plugin + add Russian translation for archive plugin

Location:
trunk/roundcubemail/plugins
Files:
6 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/plugins/vcard_attachments/vcard_attachments.php

    r2847 r3069  
    3636        $this->vcard_part = $attachment->mime_id; 
    3737    } 
     38 
     39    if ($this->vcard_part) 
     40      $this->add_texts('localization'); 
    3841  } 
    3942   
     
    5861              'href' => "#", 
    5962              'onclick' => "return plugin_vcard_save_contact('".JQ($this->vcard_part)."')", 
    60               'title' => "Save contact in local address book"),  // TODO: localize this title 
     63              'title' => $this->gettext('addvardmsg')), 
    6164            html::img(array('src' => $this->url('vcard_add_contact.png'), 'align' => "middle"))) 
    6265            . ' ' . html::span(null, Q($display))); 
     
    7477  function save_vcard() 
    7578  { 
     79          $this->add_texts('localization', true); 
     80 
    7681    $uid = get_input_value('_uid', RCUBE_INPUT_POST); 
    7782    $mbox = get_input_value('_mbox', RCUBE_INPUT_POST); 
     
    8186    $part = $uid && $mime_id ? $rcmail->imap->get_message_part($uid, $mime_id) : null; 
    8287     
    83     $error_msg = 'Failed to saved vcard'; // TODO: localize this text 
     88    $error_msg = $this->gettext('vcardsavefailed'); 
    8489     
    8590    if ($part && ($vcard = new rcube_vcard($part)) && $vcard->displayname && $vcard->email) { 
     
    112117    $rcmail->output->send(); 
    113118  } 
    114    
    115119} 
Note: See TracChangeset for help on using the changeset viewer.