translate 'SCilab Help' in target language during help generation 58/12558/2
Antoine ELIAS [Tue, 17 Sep 2013 08:09:04 +0000 (10:09 +0200)]
Change-Id: I9fd09ab016a21fa0b83c5362c15ef9ac0152e827

scilab/modules/helptools/macros/xmltoformat.sci

index 551af09..509ff0b 100644 (file)
@@ -253,9 +253,10 @@ function generated_files = xmltoformat(output_format,dirs,titles,directory_langu
     if all_scilab_help then
 
         // ast_tree : "Modules" Tree
-
-        _("Scilab help"); // add localized string
-        scilab_manual = dgettext(directory_language_m(1), "Scilab help");
+        curLang = getlanguage();
+        setlanguage(directory_language_m(1));
+        scilab_manual = _("Scilab Help");
+        setlanguage(curLang);
 
         modules_tree = struct();
         modules_tree("level")      = 0; // It's a book
@@ -311,7 +312,6 @@ function generated_files = xmltoformat(output_format,dirs,titles,directory_langu
 
             contrib_tree(dirs_c(k)) = this_tree;
         end
-
     else
 
         //