Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[imp] Drafts, trash, sent mail translations ?

1 view
Skip to first unread message

Sébastien Abeilhou

unread,
Apr 12, 2007, 12:56:42 AM4/12/07
to
Hello, =

I need to translate in imp sent-mail, drafts and trash folders in the
treeview
=

I found in the source code (imp/lib/IMAP/Tree.php) the sequence around the
line 119)
=

/* Convert 'INBOX' to localized name. */
$this->_tree['INBOX']['l'] =3D _("Inbox");
=

And i add these lines
=

/* Convert 'Trash' to localized name. */
$this->_tree['Trash']['l'] =3D _("Trash");
/* Convert 'sent-mail to localized name. */
$this->_tree['sent-mail']['l'] =3D _("Sent folder");
/* Convert 'INBOX' to localized name. */
$this->_tree['Drafts']['l'] =3D _("Drafts folder");
=

And add in the the file imp/po/fr_FR the right label.
=

Does it correct ?
=

Is it planned to add this possibility in imp future release ? (more properly
of course :))
=

Regards, =

=

S=E9bastien.
=

=

<http://syszone.in.orion.education.fr/wiki/FiltrageSMTP> =

-- =

IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-uns...@lists.horde.org

Jan Schneider

unread,
Apr 14, 2007, 8:13:31 AM4/14/07
to
Zitat von S=E9bastien Abeilhou <sebastien...@ac-toulouse.fr>:

> Hello,


> I need to translate in imp sent-mail, drafts and trash folders in the
> treeview
>

> I found in the source code (imp/lib/IMAP/Tree.php) the sequence around the
> line 119)
>

> /* Convert 'INBOX' to localized name. */
> $this->_tree['INBOX']['l'] =3D _("Inbox");
>

> And i add these lines
>

> /* Convert 'Trash' to localized name. */
> $this->_tree['Trash']['l'] =3D _("Trash");
> /* Convert 'sent-mail to localized name. */
> $this->_tree['sent-mail']['l'] =3D _("Sent folder");
> /* Convert 'INBOX' to localized name. */
> $this->_tree['Drafts']['l'] =3D _("Drafts folder");
>

> And add in the the file imp/po/fr_FR the right label.
>

> Does it correct ?

Why don't don't you simply create those folders with localized names instea=
d?

> Is it planned to add this possibility in imp future release ? (more prope=
rly
> of course :))

No, because it's not necessary.

Jan.

-- =

Do you need professional PHP or Horde consulting?
http://horde.org/consulting/

0 new messages