Always append ':' at the end of the string
issue8041 review51611002
This commit is contained in:
1 parent
5ede351d44
commit
08048027cd
4 files changed
+4
-17
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user