// ============================================================================= // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab // Copyright (C) 2011 - DIGITEO - Allan CORNET // // This file is distributed under the same license as the Scilab package. // ============================================================================= // // <-- ENGLISH IMPOSED --> // // <-- NO CHECK ERROR OUTPUT --> // // <-- Non-regression test for bug 9339 --> // // <-- Bugzilla URL --> // http://bugzilla.scilab.org/show_bug.cgi?id=9339 // // <-- Short Description --> // 'tbx_build_help' function did not manage languages correctly. SRC = SCI + '/contrib/toolbox_skeleton'; DST = TMPDIR + '/toolbox_skeleton'; mkdir(DST); assert_checkequal(isdir(DST), %T); copyfile(SRC, DST); cd(DST); ilib_verbose(0); exec('builder.sce'); Building macros... -- Creation of [toolbox_skeletonlib] (Macros) -- genlib: Processing file: scilab_error.sci genlib: Processing file: scilab_sum.sci genlib: Regenerate names and lib Building sources... Building gateway... Generating loader_gateway.sce... Generating cleaner_gateway.sce... Generating localization -- Building for "en_US" -- -- Building for "fr_FR" -- Building help... Building the master document: TMPDIR/toolbox_skeleton/help/en_US Building the manual file [javaHelp] in TMPDIR/toolbox_skeleton/help/en_US. Generate image ./c_sub_1.png from Scilab code from file c_sub.xml Generate image ./c_sub_en_US_2.png from Scilab code from file c_sub.xm l Building the master document: TMPDIR/toolbox_skeleton/help/fr_FR Building the manual file [javaHelp] in TMPDIR/toolbox_skeleton/help/fr_FR. Generate image ./c_sub_1.png from Scilab code from file c_sub.xml Generate image ./c_sub_fr_FR_2.png from Scilab code from file c_sub.xm l Generating loader.sce... Generating unloader.sce... Generating cleaner.sce... assert_checkequal(isdir(DST + '/help/fr_FR/scilab_fr_FR_help'), %T); assert_checkequal(isdir(DST + '/help/en_US/scilab_en_US_help'), %T);