Fixed translation for extensions menu options.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 23 Sep 2010 16:21:40 +0000 (16:21 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 23 Sep 2010 16:21:40 +0000 (16:21 +0000)
applications/application.php

index 291a78a256ec9a418d252eb085f9e330df791c06..052c6861d4b5fa052da5045ed8155d0adcbf6192 100644 (file)
                        {
                                if (@$mod['active'] && isset($mod['entries']))
                                        foreach($mod['entries'] as $entry) {
-                                               if ($entry['tab_id'] == $this->id)
+                                               if ($entry['tab_id'] == $this->id) {
+                                                       $_SESSION['get_text']->add_domain($_SESSION['language']->code, 
+                                                               $mod['path']."/lang");
+
                                                        $this->add_rapp_function(
                                                                isset($entry['section']) ? $entry['section'] : 2,
-                                                               $entry['title'], $path_to_root.'/'.$mod['path'].'/'.$entry['url'],
+                                                               _($entry['title']), $path_to_root.'/'.$mod['path'].'/'.$entry['url'],
                                                                isset($entry["access"]) ? $entry["access"] : 'SA_OPEN' );
+
+                                                       $_SESSION['get_text']->add_domain($_SESSION['language']->code, 
+                                                               $path_to_root."/lang", $_SESSION['language']->version);
+                                               }
                                        }
                        }
                }