From e37838422b21249504cf3856d6b72996cc8f97fc Mon Sep 17 00:00:00 2001
From: tux091 <renaud.legac@free.fr>
Date: Thu, 29 Sep 2011 19:44:53 +0200
Subject: [PATCH] Add the translation of the Forms/Grids top node.

---
 languages/fr-fr.py            | 2 ++
 modules/plugin_dbui/cfgsvc.py | 5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/languages/fr-fr.py b/languages/fr-fr.py
index c0ac6451..d9d7269b 100644
--- a/languages/fr-fr.py
+++ b/languages/fr-fr.py
@@ -15,7 +15,9 @@
 'End date': 'Date de fin',
 'Filter publications': 'Filtrer les publications',
 'First Page': 'Première Page',
+'Forms': 'Formulaires',
 'General': 'Général',
+'Grids': 'Tables',
 'Id': 'Id',
 'Last Page': 'Dernière Page',
 'Pages': 'Pages',
diff --git a/modules/plugin_dbui/cfgsvc.py b/modules/plugin_dbui/cfgsvc.py
index 97e13add..686fea6b 100755
--- a/modules/plugin_dbui/cfgsvc.py
+++ b/modules/plugin_dbui/cfgsvc.py
@@ -532,6 +532,7 @@ class CfgSvc(BaseSvc):
         append_plugin of the ViewportModifier.
         
         """
+        T = self.environment['T']
         di = self.get_tables()
         plugins = []           
              
@@ -539,7 +540,7 @@ class CfgSvc(BaseSvc):
         viewport_modifiers = self.environment['plugins'].dbui.viewport_modifiers
         if viewport_modifiers.show_form_node: 
             form_in_tree = {
-                'topNodeName': viewport_modifiers.form_node_name,
+                'topNodeName': T(viewport_modifiers.form_node_name),
                 'nodesId': di['tables'],
                 'nodesText': di['tablesText'],
                 'tabTitlePrefix': 'Form',
@@ -549,7 +550,7 @@ class CfgSvc(BaseSvc):
         # configure the plugin to handle grid
         if viewport_modifiers.show_grid_node: 
             grid_in_tree = {
-                'topNodeName': viewport_modifiers.grid_node_name,
+                'topNodeName': T(viewport_modifiers.grid_node_name),
                 'nodesId': di['tables'],
                 'nodesText': di['tablesText'],
                 'tabTitlePrefix': 'Grid',
-- 
GitLab