On Mon, Jun 22, 2009 at 09:22, Roland Liebl<[email protected]> wrote:
> Is there a way to localize the "Archive" folder?

With the latest changes in r2705 this could be done like this:

// in init()
  $this->add_hook('list_mailboxes', array($this, 'list_mailboxes'));
  ...

// and the callback function:
  function list_mailboxes($p)
  {
    $rcmail = rcmail::get_instance();
    $archive_folder = $rcmail->config->get('archive_mbox');

    if ($archive_folder && $p['list'][$archive_folder])
      $p['list'][$archive_folder]['name'] = $this->gettext('archivefolder');

    return $p;
  }

I think I'll add the archive plugin (with the above changes) to our
SVN repository because it's also one of my favorites.

~Thomas
_______________________________________________
List info: http://lists.roundcube.net/dev/

Reply via email to