* Bug #14450 fixed - builder_help.sce of a toolbox ignored some existing language... 60/17960/3
Nicolas [Wed, 23 Mar 2016 12:49:48 +0000 (13:49 +0100)]
Change-Id: I53f8c1dfc28f2272e53c9fb3f2e58e146f3ca613

scilab/CHANGES
scilab/contrib/toolbox_skeleton/help/builder_help.sce

index 3168ac4..0e7dd2f 100644 (file)
@@ -394,6 +394,8 @@ In 6.0.0:
 
 * Bug #14446 fixed - Corrected the number of argument in the error message generated by save() on passing wrong type of argument.
 
+* Bug #14450 fixed - builder_help.sce of a toolbox ignored some existing language directories
+
 * Bug #14453 fixed - strcat([]) now returns [] instead of null string
 
 * Bug #14468 fixed - Scinotes was unable to export to HTML.
index 41da81f..8f93d27 100644 (file)
@@ -1,4 +1,8 @@
 // This file is released under the 3-clause BSD license. See COPYING-BSD.
 
-tbx_builder_help_lang(["en_US","fr_FR"], ..
-get_absolute_file_path("builder_help.sce"));
+here = get_absolute_file_path("builder_help.sce");
+d = dir(here);
+d = d.name(d.isdir);
+la_LA = d(grep(d, "/[a-z]{2}_[A-Z]{2}/", "r"));  // filtering out ./images/ ./mml/, ...
+tbx_builder_help_lang(la_LA, here);
+clear here d la_LA