6.0.0-beta1
7/7/25

[#9656] sent_mail_folder doesn't display correctly in french
Summary sent_mail_folder doesn't display correctly in french
Queue Horde Groupware Webmail Edition
Queue Version 1.2.9
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org, slusarz (at) horde (dot) org
Requester patrick.timmons (at) polymtl (dot) ca
Created 03/11/2011 (5232 days ago)
Due
Updated 03/12/2011 (5231 days ago)
Assigned 03/11/2011 (5232 days ago)
Resolved 03/12/2011 (5231 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/12/2011 11:32:25 AM Jan Schneider Comment #5
State ⇒ Resolved
Reply to this comment
This has been fixed already. Replace the value with:
String::convertCharset(_("Sent"), NLS::getCharset(), 'UTF7-IMAP')
03/11/2011 11:16:47 PM Michael Slusarz Comment #4
Assigned to Jan Schneider
Reply to this comment
Not sure what we can really do about this except remove the gettext 
string from prefs.php - an admin will have to explicitly set the 
sent-mail name.

Adding Jan - maybe he can comment why the French translation needs to 
be ISO-8859-1 over UTF-8.
03/11/2011 10:17:52 PM patrick (dot) timmons (at) polymtl (dot) ca Comment #3 Reply to this comment
What is broken?  That is the correct translated mailbox name.

I assume you want your sent-mail folder to be "Envoyé".  The proper 
UTF8 -> UTF7-IMAP representation of that is "envoy&AOk-".  Your 
mailbox name looks like it was converted from ISO-8859-1.
Exact. prefs.php says

// 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]).
     'value' => String::convertCharset(_("Sent"), null, 'UTF7-IMAP'),
     // For Exchange, uncomment the entry below.
     // 'value' => 'Sent Items',
     'locked' => false,
     'shared' => false,
     'type' => 'implicit');

So _("Sent") comes from the po file fr_FR.po which is indeed in iso-8859-1

#: config/prefs.php.dist:264
msgid "Sent"
msgstr "Envoy<E9>"

I don't know what to change and how so that prefs works whatever 
language my users select. I guess there is a conversion step missing 
based on the language the user selects.

03/11/2011 09:30:05 PM Michael Slusarz Comment #2
State ⇒ Feedback
Assigned to Michael Slusarz
Reply to this comment
What is broken?  That is the correct translated mailbox name.

I assume you want your sent-mail folder to be "Envoyé".  The proper 
UTF8 -> UTF7-IMAP representation of that is "envoy&AOk-".  Your 
mailbox name looks like it was converted from ISO-8859-1.
03/11/2011 09:01:58 PM patrick (dot) timmons (at) polymtl (dot) ca Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ sent_mail_folder doesn't display correctly in french
Queue ⇒ Horde Groupware Webmail Edition
Milestone ⇒
Patch ⇒ No
New Attachment: Screenshot.png Download
State ⇒ Unconfirmed
Reply to this comment
Value is default from prefs.php / original po file

mysql> select * from horde_prefs where pref_uid = 
"xxxxxx@xxxx.polymtl.ca" and pref_name = "sent_mail_folder" \G
*************************** 1. row ***************************
   pref_uid: xxxxxx@xxxx.polymtl.ca
pref_scope: imp
  pref_name: sent_mail_folder
pref_value: INBOX.Envoy&AMMAqQ-
1 row in set (0.01 sec)

mysql>

"Project-Id-Version: fr_FR\n"
"Report-Msgid-Bugs-To: dev@lists.horde.org\n"
"POT-Creation-Date: 2010-09-30 13:13+0200\n"
"PO-Revision-Date: 2009-11-13 10:57+0100\n"
"Last-Translator: Yannick Sebastia <yannick.sebastia@ecole-navale.fr>\n"
"Language-Team: French <i18n@lists.horde.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: KBabel 1.11.4\n"

Saved Queries