[Darlan] Improved BiDi support for status messages
This commit is contained in:
parent
839fab0c12
commit
c3c1885e8b
|
@ -1309,7 +1309,10 @@ class ConversationTextview(GObject.GObject):
|
||||||
direction_mark = i18n.paragraph_direction_mark(text)
|
direction_mark = i18n.paragraph_direction_mark(text)
|
||||||
# don't apply direction mark if it's status message
|
# don't apply direction mark if it's status message
|
||||||
if kind == 'status':
|
if kind == 'status':
|
||||||
direction_mark = ''
|
if gtk.widget_get_default_direction() == gtk.TEXT_DIR_LTR:
|
||||||
|
direction_mark = u'\u200E'
|
||||||
|
else:
|
||||||
|
direction_mark = u'\u200F'
|
||||||
if current_print_time == 'always' and kind != 'info' and not simple:
|
if current_print_time == 'always' and kind != 'info' and not simple:
|
||||||
timestamp_str = self.get_time_to_show(tim)
|
timestamp_str = self.get_time_to_show(tim)
|
||||||
timestamp = time.strftime(timestamp_str, tim)
|
timestamp = time.strftime(timestamp_str, tim)
|
||||||
|
|
Loading…
Reference in New Issue