Summary | Translation and Pseudo default folders |
Queue | IMP |
Queue Version | Git master |
Type | Enhancement |
State | No Feedback |
Priority | 1. Low |
Owners | slusarz (at) horde (dot) org |
Requester | benoit.poulet (at) businessdecision (dot) com |
Created | 10/23/2008 (6099 days ago) |
Due | |
Updated | 01/12/2010 (5653 days ago) |
Assigned | |
Resolved | 06/28/2009 (5851 days ago) |
Milestone | |
Patch | No |
Request #7545- Translate special folder names.http://git.horde.org/diff.php/imp/config/prefs.php.dist?rt=horde-git&r1=5b571add72d698859b98620d537d2736871de895&r2=d2ef93dc0455c3b2498c005cce1d22a466256f73
http://git.horde.org/diff.php/imp/docs/CHANGES?rt=horde-git&r1=0f708c1abd837f017ec35b82c039ef4118df42d9&r2=d2ef93dc0455c3b2498c005cce1d22a466256f73
http://git.horde.org/diff.php/imp/lib/IMAP/Tree.php?rt=horde-git&r1=9b2d0a08bcdac1160dd927504e78ce0cd513ca3e&r2=d2ef93dc0455c3b2498c005cce1d22a466256f73
http://git.horde.org/diff.php/imp/lib/IMP.php?rt=horde-git&r1=0f708c1abd837f017ec35b82c039ef4118df42d9&r2=d2ef93dc0455c3b2498c005cce1d22a466256f73
State ⇒ Feedback
contains the changes that have been applied in Git already.
New Attachment: trad_special_folders_IMP4.3.4.diff
(should the pseudo default folders be translated or not).
(should the pseudo default folders be translated or not).
(should the pseudo default folders be translated or not).
That way, people wanting the old behavior could have it.
Regards,
Clément Hermann
State ⇒ Resolved
Assigned to Michael Slusarz
Thanks for the patch, this is the correct way of solving this issue.
For Horde devs: before committing (I really hope you're doing so ;-))
please have a look at translation files - there is an
IMAP_UTF7-encoded string at least in German translation (Drafts). As a
quick grep told me German seems to be the only translation handling
current default preference "correctly", Slovak, French and Turkish
also contain special chars in folder translations, but are not using
IMAP_UTF7 encoding. This is probably also true for Traditional Chinese
and Japanese - but I'm not so used to this languages / encodings to
give a competent statement ;-)
Cheers,
Thomas
Thank you Massimiliano.
New Attachment: imp_lib_IMAP_Tree.php.patch
You also have to set in imp prefs.php
// sent mail folder
$_prefs['sent_mail_folder'] = array(
// The mailbox value must be encoded in the UTF7-IMAP charset (see RFC
// 3501 [5.1.3]). For Exchange, uncomment the entry below and remove the
// default value entry.
// 'value' => 'Sent Items',
'value' => "Sent",
// 'value' => _("Sent"),
'locked' => false,
'shared' => false,
'type' => 'implicit');
// drafts folder
$_prefs['drafts_folder'] = array(
// The mailbox value must be encoded in the UTF7-IMAP charset (see RFC
// 3501 [5.1.3]).
'value' => "Drafts",
// 'value' => _("Drafts"),
'locked' => false,
'shared' => false,
'type' => 'implicit');
// trash folder
$_prefs['trash_folder'] = array(
// The mailbox value must be encoded in the UTF7-IMAP charset (see RFC
// 3501 [5.1.3]). For Exchange, uncomment the entry below and remove the
// default value entry.
// 'value' => 'Deleted Items',
'value' => "Trash",
// 'value' => _("Trash"),
'locked' => false,
'shared' => false,
'type' => 'implicit');
// spam folder
$_prefs['spam_folder'] = array(
// The mailbox value must be encoded in the UTF7-IMAP charset (see RFC
// 3501 [5.1.3]).
'value' => "Spam",
// 'value' => _("Spam"),
'locked' => false,
'shared' => false,
'type' => 'implicit');
Best regards
Massimiliano Ferrero
State ⇒ Accepted
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Translation and Pseudo default folders
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ New
In many webmails, mail clients, we can define a translated name for
pseudo-standard IMAP folders like
"Inbox", "Sent", "Draft", "Junk", and "Trash"
In result, we got the same defaults folders for all theses things into
the webmail and with our mail client (like Thunderbird for example).
But it's not possible with IMP.
In IMP we got only 2 choices :
Choice 1 => Use the translated name
With this setting, the folder's names in the UI are well translated
but translated names are used too by the IMAP backend.
So if you use the UI one time in french and one time in german, IMP
will create 2 IMAP folders : "Envoyés" and "Gesendet"
And when you switch with an e-mail client you will see 3 IMAP folders
:"Sent", "Envoyés" and "Gesendet".
A bit confusing.
Choice 2 => Force the folder's name in the "pref.php"
Now all users will get the same folder for the webmail and the e-mail
client but IMP will display them with their english name whatever the
language you are using for the UI in IMP.
Can we just add, for all theses "pseudo-standard" forders, an option
to map translated names to real imap folders ?
Regards,
Benoit Poulet.