From 4d80c08b074f6ebbf67b67b9a4697774b0ecdcb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 10 Jan 2009 14:52:53 +0100 Subject: [PATCH] Add missing translation of help attributes for issue739 --- trytond/ir/ui/view.py | 2 +- trytond/osv/orm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/trytond/ir/ui/view.py b/trytond/ir/ui/view.py index c5f9ac8a30..b63204f1dd 100644 --- a/trytond/ir/ui/view.py +++ b/trytond/ir/ui/view.py @@ -181,7 +181,7 @@ class View(OSV): def _translate_view(self, element): strings = [] - for attr in ('string', 'sum', 'confirm'): + for attr in ('string', 'sum', 'confirm', 'help'): if element.get(attr): string = element.get(attr) if string: diff --git a/trytond/osv/orm.py b/trytond/osv/orm.py index 700de4f1bb..1b83071466 100644 --- a/trytond/osv/orm.py +++ b/trytond/osv/orm.py @@ -2144,7 +2144,7 @@ class ORM(object): # translate view if ('language' in context) and not result: - for attr in ('string', 'sum', 'confirm'): + for attr in ('string', 'sum', 'confirm', 'help'): if element.get(attr): trans = translation_obj._get_source(cursor, self._name, 'view', context['language'],