Rename menu entry for copy/paste rows

This commit is contained in:
Cédric Krier committed 2023-12-22 14:08:37 +01:00
1 parent 4a0a6faea6
commit 4a58965be5
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -354,7 +354,7 @@
'role': 'menuitem',
'href': '#',
'tabindex': -1,
}).text(' ' + Sao.i18n.gettext("Copy"))
}).text(' ' + Sao.i18n.gettext("Copy Selected Rows"))
.prepend(
Sao.common.ICONFACTORY.get_icon_img('tryton-copy', {
'aria-hidden': 'true',
@@ -901,11 +901,11 @@ class ViewTree(View):
# Outside row
return False
menu = Gtk.Menu()
copy_item = Gtk.MenuItem(label=_('Copy'))
copy_item = Gtk.MenuItem(label=_("Copy Rows"))
copy_item.connect('activate', lambda x: self.on_copy())
menu.append(copy_item)
if self.editable:
paste_item = Gtk.MenuItem(label=_('Paste'))
paste_item = Gtk.MenuItem(label=_("Paste Rows"))
paste_item.connect('activate', lambda x: self.on_paste())
menu.append(paste_item)