Ensure treeview collection nodes are translated in the UI. Fixes #1962

This commit is contained in:
Khushboo Vashi
2016-11-16 09:25:38 +00:00
committed by Dave Page
parent c0da81e8ec
commit 48b0a3f2d2

View File

@@ -126,11 +126,11 @@ class CollectionNodeModule(PgAdminModule, PGChildModule):
Label to be shown for the collection node, do not forget to set the
class level variable COLLECTION_LABEL.
"""
return self.COLLECTION_LABEL
return gettext(self.COLLECTION_LABEL)
@property
def label(self):
return self.COLLECTION_LABEL
return gettext(self.COLLECTION_LABEL)
@property
def collection_icon(self):