Support RTL conversations in the ubuntu theme

Bug #538632 reported by Haggai Eran
48
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Adium Theme Ubuntu
New
Undecided
Unassigned
adium-theme-ubuntu (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: adium-theme-ubuntu

Hi,

Currently, the ubuntu theme in empathy is hardcoded towards conversations with left-to-right directionality. Even if the messages are with right-to-left directionality, for example, in Hebrew or Arabic, the message is left aligned, and the bubble appears to the right of the avatar.

In my opinion, the best way to support these languages would be to somehow run pango_get_base_dir on each message, and expose this information to the theme. The theme could for example set a CSS class for messages that are right-to-left, and then format them correctly using the CSS.

An alternative solution, would be to detect the directionality according to the user's locale. This would be little less useful in my opinion, because one user might have a conversation in a left-to-right language, while using a locale which is right-to-left, or vice versa.

Regards,
Haggai Eran

Tags: rtl
Omer Akram (om26er)
Changed in adium-theme-ubuntu (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Omer Akram (om26er)
summary: - Support bidi conversations in the ubuntu theme
+ Support RTL conversations in the ubuntu theme
Revision history for this message
Yaron (sh-yaron) wrote :
tags: added: rtl
Revision history for this message
Abdulrahman M. S. (saanina) wrote :

I edited the adium-theme-ubuntu to support RTL,
I test it on Arabic because its my native language .. and with MSN protocol !

here the branch/
https://code.launchpad.net/~saanina/adium-theme-ubuntu/i18n

And I attached an image to see how it look like

Revision history for this message
Haggai Eran (haggai-eran) wrote :

The image looks good to me. I like the fact that the entire paragraph changes direction, along with the date. However, I think that the original theme had the dates only in the beginning of the bubble, and not on every line.

Anyway, well done.

Revision history for this message
Masoud Abkenar (mabkenar) wrote :

Please also consider this image when working on this bug:

https://launchpadlibrarian.net/72569338/audium-themes.png

It can show that different themes have different problems. It sometimes depend on the nickname shown in the chat window.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.