Is there a way to localize the "Archive" folder? Regards, Roland
List info: http://lists.roundcube.net/dev/
On Mon, Jun 22, 2009 at 09:22, Roland Lieblroland@roland-liebl.de 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/
Thanks Thomas,
I'm happy my small can is so useful for you.
ATB, André.
Thomas Bruederli wrote:
On Mon, Jun 22, 2009 at 09:22, Roland Lieblroland@roland-liebl.de 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/