diff --git a/tryton/gui/window/view_form/view/form.py b/tryton/gui/window/view_form/view/form.py index fdb516d219..4cd390ffc6 100644 --- a/tryton/gui/window/view_form/view/form.py +++ b/tryton/gui/window/view_form/view/form.py @@ -256,11 +256,7 @@ class ViewForm(View): if 'states' not in attributes and 'states' in field.attrs: attributes['states'] = field.attrs['states'] if 'string' not in attributes: - if gtk.widget_get_default_direction() == \ - gtk.TEXT_DIR_RTL: - attributes['string'] = _(':') + field.attrs['string'] - else: - attributes['string'] = field.attrs['string'] + _(':') + attributes['string'] = field.attrs['string'] + _(':') if CONFIG['client.modepda']: attributes['xalign'] = 0.0 diff --git a/tryton/gui/window/view_form/view/form_gtk/dictionary.py b/tryton/gui/window/view_form/view/form_gtk/dictionary.py index a45f985e54..8604ca167b 100644 --- a/tryton/gui/window/view_form/view/form_gtk/dictionary.py +++ b/tryton/gui/window/view_form/view/form_gtk/dictionary.py @@ -479,10 +479,7 @@ class DictWidget(Widget): alignment.add(hbox) n_rows = self.table.props.n_rows self.table.resize(n_rows + 1, 3) - if gtk.widget_get_default_direction() == gtk.TEXT_DIR_RTL: - text = _(':') + key_schema['string'] - else: - text = key_schema['string'] + _(':') + text = key_schema['string'] + _(':') label = gtk.Label(set_underline(text)) label.set_use_underline(True) label.set_alignment(1., .5) diff --git a/tryton/gui/window/view_form/view/form_gtk/widget.py b/tryton/gui/window/view_form/view/form_gtk/widget.py index 86c57e65d4..42127bb718 100644 --- a/tryton/gui/window/view_form/view/form_gtk/widget.py +++ b/tryton/gui/window/view_form/view/form_gtk/widget.py @@ -169,10 +169,7 @@ class TranslateDialog(NoModal): table.set_row_spacings(2) table.set_border_width(1) for i, language in enumerate(languages): - if gtk.widget_get_default_direction() == gtk.TEXT_DIR_RTL: - label = _(':') + language['name'] - else: - label = language['name'] + _(':') + label = language['name'] + _(':') label = gtk.Label(label) label.set_alignment(1.0, 0.0 if self.widget.expand else 0.5) table.attach(label, 0, 1, i, i + 1, xoptions=gtk.FILL, xpadding=2) diff --git a/tryton/gui/window/view_form/view/list.py b/tryton/gui/window/view_form/view/list.py index ea331fa8f3..a654bf010d 100644 --- a/tryton/gui/window/view_form/view/list.py +++ b/tryton/gui/window/view_form/view/list.py @@ -514,10 +514,7 @@ class ViewTree(View): def add_sum(self, attributes): if 'sum' not in attributes: return - if gtk.widget_get_default_direction() == gtk.TEXT_DIR_RTL: - text = _(':') + attributes['sum'] - else: - text = attributes['sum'] + _(':') + text = attributes['sum'] + _(':') label, sum_ = gtk.Label(text), gtk.Label() hbox = gtk.HBox()