Summary | garbled message subject display with utf base encoded characters |
Queue | IMP |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | jan (at) horde (dot) org |
Requester | vilius (at) lnk (dot) lt |
Created | 02/20/2006 (7079 days ago) |
Due | |
Updated | 01/12/2010 (5657 days ago) |
Assigned | 02/02/2009 (6001 days ago) |
Resolved | 02/05/2009 (5998 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
Fix rendering of subjects in RTL scripts when using LTR translations
(vilius@lnk.lt,
Bug #3511).http://git.horde.org/diff.php/imp/docs/CHANGES?rt=horde-git&r1=acaf24888a23d55653e50f058f25157962530c5f&r2=29d05715d9b9f696cfe0e56cec8f9877a4d1235e
http://git.horde.org/diff.php/imp/message.php?rt=horde-git&r1=ee6ff322e0a8a5aa91dbffd0bda962ce51427d03&r2=29d05715d9b9f696cfe0e56cec8f9877a4d1235e
http://git.horde.org/diff.php/imp/templates/message/navbar_top.html?rt=horde-git&r1=494134b0cb53996bc9815e438ac7bf14bd3fea50&r2=29d05715d9b9f696cfe0e56cec8f9877a4d1235e
(%d of %d) in message.php into something like (%d RTLlanguagecharset
%d) and it should work. Translations just need to be updated.
State ⇒ Resolved
translations, but it's an improvement, and RTL subjects are correctly
rendered now. Nice work, thanks!
http://cvs.horde.org/diff.php/imp/docs/CHANGES?rt=horde&r1=1.699.2.379&r2=1.699.2.380&ty=u
http://cvs.horde.org/diff.php/imp/message.php?rt=horde&r1=2.560.4.58&r2=2.560.4.59&ty=u
http://cvs.horde.org/diff.php/imp/templates/message/navbar_top.html?rt=horde&r1=1.6.2.2&r2=1.6.2.3&ty=u
New Attachment: bidi.patch
look at the patch and
http://www.w3.org/TR/CSS21/visuren.html#direction. I'm not sure if
this is the right way to fix it, but at least it works on IE8/7, FF3,
Opera9 and Safari3 both on RTL and LTR languages.
Oh, and of course POT file needs to be updated.
P.S. sorry for the CVS patch. I hadn't much time to dive into Git just yet.
translations.
State ⇒ Feedback
simply implement the different text directions, you can use the css
rule inline as well. Or do you mean that you need a class that has
always the opposite of the default direction? But then it should have
the same class name.
containing message numbers is displayed left-to-right, so this doesn't
work. Can I propose adding new .ltr { direction: ltr; } class in
horde/themes/screen.css and .rtl { direction: rtl; } class in
horde/themes/rtl.css to override default browser behaviour in such
cases?
into <span dir="ltr">second_part</span> does the trick at least on IE8
and Firefox.
browser rendering, not of how the string is constructed. But if you
can make it work somehow, that would be great.
message topic from the rest?
State ⇒ Feedback
since this should only affect RTL translations. And obviously it only
works with UTF-8 encoded translations. I really don't know how to
properly deal with a mixed charset/RTL/LTR string though, yet.
string but PHP only produces garbled characters like รข€. Can you
describe a little bit more how it should be inserted?
State ⇒ Resolved
points to override the normal text direction. If not, then the
translation has to be updated accordingly, see po/README.
Assigned to Jan Schneider
Taken from
State ⇒ Assigned
library?
Assigned to
State ⇒ Assigned
absolutely no idea how to fix that.
New Attachment: hebrew message.eml
Priority ⇒ 1. Low
State ⇒ Unconfirmed
New Attachment: subject.PNG
Queue ⇒ IMP
Summary ⇒ garbled message subject display with utf base encoded characters
Type ⇒ Bug
if message subject is encoded in utf base64 encoding, subject is
garbled in message view. See screenshot.