* All string containing ' \n' changed to '\n'
Sylvestre Ledru [Wed, 17 Oct 2007 14:48:17 +0000 (14:48 +0000)]
* make install-data-local on the root directory will install the localization files into the default path (not working yet in Scilab is install with make install)
* defines added in machine.h to manage gettext ... available or not
* some warning fixed
* some include files cleaned
* process of init of the localization
* errors.xml messages.xml menus.xml removed
* some strings clean up and rationnalized
* some variables added in scilabDefaults.h
* catch of signal removed under Linux/Unix

342 files changed:
scilab/Makefile.am
scilab/Makefile.in
scilab/configure
scilab/configure.ac
scilab/modules/arnoldi/locales/en_US/errors.xml [deleted file]
scilab/modules/arnoldi/locales/en_US/menus.xml [deleted file]
scilab/modules/arnoldi/locales/en_US/messages.xml [deleted file]
scilab/modules/boolean/locales/en_US/errors.xml [deleted file]
scilab/modules/boolean/locales/en_US/menus.xml [deleted file]
scilab/modules/boolean/locales/en_US/messages.xml [deleted file]
scilab/modules/cacsd/locales/en_US/errors.xml [deleted file]
scilab/modules/cacsd/locales/en_US/menus.xml [deleted file]
scilab/modules/cacsd/locales/en_US/messages.xml [deleted file]
scilab/modules/cacsd/sci_gateway/c/sci_contr.c
scilab/modules/compatibility_functions/locales/en_US/errors.xml [deleted file]
scilab/modules/compatibility_functions/locales/en_US/menus.xml [deleted file]
scilab/modules/compatibility_functions/locales/en_US/messages.xml [deleted file]
scilab/modules/completion/locales/en_US/errors.xml [deleted file]
scilab/modules/completion/locales/en_US/menus.xml [deleted file]
scilab/modules/completion/locales/en_US/messages.xml [deleted file]
scilab/modules/console/locales/en_US/errors.xml [deleted file]
scilab/modules/console/locales/en_US/menus.xml [deleted file]
scilab/modules/console/locales/en_US/messages.xml [deleted file]
scilab/modules/core/Makefile.am
scilab/modules/core/Makefile.in
scilab/modules/core/examples/call_scilab/c/common/myprog.c
scilab/modules/core/examples/call_scilab/c/visual_studio/CallsciC.c
scilab/modules/core/includes/Os_specific.h
scilab/modules/core/includes/link.h [deleted file]
scilab/modules/core/includes/machine.h.in
scilab/modules/core/includes/machine.h.vc
scilab/modules/core/includes/scilabDefaults.h
scilab/modules/core/includes/stack-c.h
scilab/modules/core/locales/en_US/errors.xml [deleted file]
scilab/modules/core/locales/en_US/menus.xml [deleted file]
scilab/modules/core/locales/en_US/messages.xml [deleted file]
scilab/modules/core/sci_gateway/c/sci_c_link.c
scilab/modules/core/sci_gateway/c/sci_chdir.c
scilab/modules/core/sci_gateway/c/sci_clearfun.c
scilab/modules/core/sci_gateway/c/sci_getcwd.c
scilab/modules/core/sci_gateway/c/sci_getmd5.c
scilab/modules/core/sci_gateway/c/sci_getmodules.c
scilab/modules/core/sci_gateway/c/sci_getvariablesonstack.c
scilab/modules/core/sci_gateway/c/sci_getversion.c
scilab/modules/core/sci_gateway/c/sci_gstacksize.c
scilab/modules/core/sci_gateway/c/sci_libraryinfo.c
scilab/modules/core/sci_gateway/c/sci_newfun.c
scilab/modules/core/sci_gateway/c/sci_stacksize.c
scilab/modules/core/sci_gateway/c/sci_ulink.c
scilab/modules/core/sci_gateway/c/sci_warning.c
scilab/modules/core/sci_gateway/c/sci_what.c
scilab/modules/core/sci_gateway/c/sci_where.c
scilab/modules/core/sci_gateway/c/sci_who.c
scilab/modules/core/sci_gateway/c/sci_with_module.c
scilab/modules/core/src/c/CallScilab.c
scilab/modules/core/src/c/ExceptionMessage.c
scilab/modules/core/src/c/GetExceptionCode.c
scilab/modules/core/src/c/InitScilab.c
scilab/modules/core/src/c/InitializeCore.c
scilab/modules/core/src/c/LoadFunctionsTab.c
scilab/modules/core/src/c/SendScilabJobs.c
scilab/modules/core/src/c/addinter.c
scilab/modules/core/src/c/addinter.h
scilab/modules/core/src/c/banier.c
scilab/modules/core/src/c/callinterf.c
scilab/modules/core/src/c/callinterf.h
scilab/modules/core/src/c/dynamic_menus.c
scilab/modules/core/src/c/errmsg.c
scilab/modules/core/src/c/error_scilab.c
scilab/modules/core/src/c/getmodules.c
scilab/modules/core/src/c/inisci-c.c
scilab/modules/core/src/c/intmacr2tree.c
scilab/modules/core/src/c/link.c
scilab/modules/core/src/c/link.h [new file with mode: 0644]
scilab/modules/core/src/c/link_SYSV.c
scilab/modules/core/src/c/link_W95.c
scilab/modules/core/src/c/link_linux.c
scilab/modules/core/src/c/link_std.c
scilab/modules/core/src/c/loadversion.c
scilab/modules/core/src/c/message_scilab.c
scilab/modules/core/src/c/msgs.c
scilab/modules/core/src/c/msgstore.c
scilab/modules/core/src/c/prompt.c
scilab/modules/core/src/c/realmain.c
scilab/modules/core/src/c/returnPropertyList.c
scilab/modules/core/src/c/run.c
scilab/modules/core/src/c/scicurdir.c
scilab/modules/core/src/c/scimem.c
scilab/modules/core/src/c/sciprint.c
scilab/modules/core/src/c/sciquit.c
scilab/modules/core/src/c/stack1.c
scilab/modules/core/src/c/stack2.c
scilab/modules/core/src/c/stack3.c
scilab/modules/core/src/c/tmpdir.c
scilab/modules/core/src/c/version.c
scilab/modules/data_structures/locales/en_US/errors.xml [deleted file]
scilab/modules/data_structures/locales/en_US/menus.xml [deleted file]
scilab/modules/data_structures/locales/en_US/messages.xml [deleted file]
scilab/modules/development_tools/locales/en_US/errors.xml [deleted file]
scilab/modules/development_tools/locales/en_US/menus.xml [deleted file]
scilab/modules/development_tools/locales/en_US/messages.xml [deleted file]
scilab/modules/differential_equations/locales/en_US/errors.xml [deleted file]
scilab/modules/differential_equations/locales/en_US/menus.xml [deleted file]
scilab/modules/differential_equations/locales/en_US/messages.xml [deleted file]
scilab/modules/double/locales/en_US/errors.xml [deleted file]
scilab/modules/double/locales/en_US/menus.xml [deleted file]
scilab/modules/double/locales/en_US/messages.xml [deleted file]
scilab/modules/elementaries_functions/locales/en_US/errors.xml [deleted file]
scilab/modules/elementaries_functions/locales/en_US/menus.xml [deleted file]
scilab/modules/elementaries_functions/locales/en_US/messages.xml [deleted file]
scilab/modules/elementaries_functions/src/c/IsEqualVar.c
scilab/modules/fftw/locales/en_US/errors.xml [deleted file]
scilab/modules/fftw/locales/en_US/menus.xml [deleted file]
scilab/modules/fftw/locales/en_US/messages.xml [deleted file]
scilab/modules/fileio/locales/en_US/errors.xml [deleted file]
scilab/modules/fileio/locales/en_US/menus.xml [deleted file]
scilab/modules/fileio/locales/en_US/messages.xml [deleted file]
scilab/modules/fileio/src/c/bytedecoders.h
scilab/modules/functions/locales/en_US/errors.xml [deleted file]
scilab/modules/functions/locales/en_US/menus.xml [deleted file]
scilab/modules/functions/locales/en_US/messages.xml [deleted file]
scilab/modules/graphics/locales/en_US/errors.xml [deleted file]
scilab/modules/graphics/locales/en_US/menus.xml [deleted file]
scilab/modules/graphics/locales/en_US/messages.xml [deleted file]
scilab/modules/graphics/sci_gateway/c/sci_champ.c
scilab/modules/graphics/sci_gateway/c/sci_drawaxis.c
scilab/modules/graphics/sci_gateway/c/sci_fec.c
scilab/modules/graphics/sci_gateway/c/sci_grayplot.c
scilab/modules/graphics/sci_gateway/c/sci_matplot.c
scilab/modules/graphics/sci_gateway/c/sci_move.c
scilab/modules/graphics/sci_gateway/c/sci_newaxes.c
scilab/modules/graphics/sci_gateway/c/sci_param3d.c
scilab/modules/graphics/sci_gateway/c/sci_param3d1.c
scilab/modules/graphics/sci_gateway/c/sci_plot2d1.c
scilab/modules/graphics/sci_gateway/c/sci_plot3d.c
scilab/modules/graphics/sci_gateway/c/sci_set.c
scilab/modules/graphics/sci_gateway/c/sci_xarcs.c
scilab/modules/graphics/sci_gateway/c/sci_xfarcs.c
scilab/modules/graphics/sci_gateway/c/sci_xrects.c
scilab/modules/graphics/src/c/BuildObjects.c
scilab/modules/graphics/src/c/DrawObjects.c
scilab/modules/graphics/src/c/Format.c
scilab/modules/graphics/src/c/GetCommandArg.c
scilab/modules/graphics/src/c/GetProperty.c
scilab/modules/graphics/src/c/Plo2dEch.c
scilab/modules/graphics/src/c/SetProperty.c
scilab/modules/graphics/src/c/getHandleProperty/set_data_property.c
scilab/modules/gui/locales/en_US/errors.xml [deleted file]
scilab/modules/gui/locales/en_US/menus.xml [deleted file]
scilab/modules/gui/locales/en_US/messages.xml [deleted file]
scilab/modules/gui/sci_gateway/c/sci_ClipBoard.c
scilab/modules/gui/sci_gateway/c/sci_raise_window.c
scilab/modules/gui/src/nogui/nogui.c
scilab/modules/helptools/locales/en_US/errors.xml [deleted file]
scilab/modules/helptools/locales/en_US/menus.xml [deleted file]
scilab/modules/helptools/locales/en_US/messages.xml [deleted file]
scilab/modules/helptools/macros/xmlfiletohtml.sci
scilab/modules/history_manager/locales/en_US/errors.xml [deleted file]
scilab/modules/history_manager/locales/en_US/menus.xml [deleted file]
scilab/modules/history_manager/locales/en_US/messages.xml [deleted file]
scilab/modules/incremental_link/examples/gateway/intmatmul.c
scilab/modules/incremental_link/examples/interfaces/c/crestrc.c
scilab/modules/incremental_link/examples/interfaces/c/intex15c.c
scilab/modules/incremental_link/examples/interfaces/c/intex17c.c
scilab/modules/incremental_link/examples/interfaces/c/intex1c.c
scilab/modules/incremental_link/examples/interfaces/c/intex2c.c
scilab/modules/incremental_link/examples/interfaces/c/intex4c.c
scilab/modules/incremental_link/examples/interfaces/c/intex5c.c
scilab/modules/incremental_link/examples/interfaces/c/intex6c.c
scilab/modules/incremental_link/locales/en_US/errors.xml [deleted file]
scilab/modules/incremental_link/locales/en_US/menus.xml [deleted file]
scilab/modules/incremental_link/locales/en_US/messages.xml [deleted file]
scilab/modules/incremental_link/macros/ilib_for_link.sci
scilab/modules/incremental_link/src/scripts/libtool
scilab/modules/integer/locales/en_US/errors.xml [deleted file]
scilab/modules/integer/locales/en_US/menus.xml [deleted file]
scilab/modules/integer/locales/en_US/messages.xml [deleted file]
scilab/modules/integer/src/c/mgeti.c
scilab/modules/integer/src/c/mputi.c
scilab/modules/interpolation/locales/en_US/errors.xml [deleted file]
scilab/modules/interpolation/locales/en_US/menus.xml [deleted file]
scilab/modules/interpolation/locales/en_US/messages.xml [deleted file]
scilab/modules/interpolation/sci_gateway/c/sci_bsplin3val.c
scilab/modules/interpolation/sci_gateway/c/sci_cshep2d.c
scilab/modules/interpolation/sci_gateway/c/sci_eval_cshep2d.c
scilab/modules/interpolation/sci_gateway/c/sci_interp.c
scilab/modules/interpolation/sci_gateway/c/sci_interp2d.c
scilab/modules/interpolation/sci_gateway/c/sci_interp3d.c
scilab/modules/interpolation/sci_gateway/c/sci_linear_interpn.c
scilab/modules/interpolation/sci_gateway/c/sci_lsq_splin.c
scilab/modules/interpolation/sci_gateway/c/sci_splin2d.c
scilab/modules/interpolation/sci_gateway/c/sci_splin3d.c
scilab/modules/intersci/examples/ex14c.c
scilab/modules/intersci/locales/en_US/errors.xml [deleted file]
scilab/modules/intersci/locales/en_US/menus.xml [deleted file]
scilab/modules/intersci/locales/en_US/messages.xml [deleted file]
scilab/modules/intersci/src/exe/check.c
scilab/modules/intersci/src/exe/crerhs.c
scilab/modules/intersci/src/exe/fornames.c
scilab/modules/intersci/src/exe/getrhs.c
scilab/modules/intersci/src/exe/intersci-n.c
scilab/modules/intersci/src/exe/intersci.c
scilab/modules/intersci/src/exe/opt.c
scilab/modules/intersci/src/exe/out-e.c
scilab/modules/intersci/src/exe/read.c
scilab/modules/io/locales/en_US/errors.xml [deleted file]
scilab/modules/io/locales/en_US/menus.xml [deleted file]
scilab/modules/io/locales/en_US/messages.xml [deleted file]
scilab/modules/javasci/locales/en_US/errors.xml [deleted file]
scilab/modules/javasci/locales/en_US/menus.xml [deleted file]
scilab/modules/javasci/locales/en_US/messages.xml [deleted file]
scilab/modules/jvm/locales/en_US/errors.xml [deleted file]
scilab/modules/jvm/locales/en_US/menus.xml [deleted file]
scilab/modules/jvm/locales/en_US/messages.xml [deleted file]
scilab/modules/jvm/src/c/loadClasspath.c
scilab/modules/jvm/src/c/loadLibrarypath.c
scilab/modules/linear_algebra/examples/intdgeesx.c
scilab/modules/linear_algebra/examples/intdgemm.c
scilab/modules/linear_algebra/examples/intzgeesx.c
scilab/modules/linear_algebra/examples/intzgemm.c
scilab/modules/linear_algebra/locales/en_US/errors.xml [deleted file]
scilab/modules/linear_algebra/locales/en_US/menus.xml [deleted file]
scilab/modules/linear_algebra/locales/en_US/messages.xml [deleted file]
scilab/modules/localization/Makefile.am
scilab/modules/localization/Makefile.in
scilab/modules/localization/includes/QueryStringError.h [deleted file]
scilab/modules/localization/includes/QueryStringMenu.h [deleted file]
scilab/modules/localization/includes/QueryStringMessage.h [deleted file]
scilab/modules/localization/includes/gw_localization.h
scilab/modules/localization/includes/localization.h
scilab/modules/localization/locales/en_US/errors.xml [deleted file]
scilab/modules/localization/locales/en_US/menus.xml [deleted file]
scilab/modules/localization/locales/en_US/messages.xml [deleted file]
scilab/modules/localization/sci_gateway/c/gw_localization.c
scilab/modules/localization/sci_gateway/localization_gateway.xml
scilab/modules/localization/src/c/InitializeLocalization.c
scilab/modules/localization/src/c/localization.c
scilab/modules/m2sci/locales/en_US/errors.xml [deleted file]
scilab/modules/m2sci/locales/en_US/menus.xml [deleted file]
scilab/modules/m2sci/locales/en_US/messages.xml [deleted file]
scilab/modules/maple2scilab/locales/en_US/errors.xml [deleted file]
scilab/modules/maple2scilab/locales/en_US/menus.xml [deleted file]
scilab/modules/maple2scilab/locales/en_US/messages.xml [deleted file]
scilab/modules/metanet/locales/en_US/errors.xml [deleted file]
scilab/modules/metanet/locales/en_US/menus.xml [deleted file]
scilab/modules/metanet/locales/en_US/messages.xml [deleted file]
scilab/modules/metanet/src/c/saveg.c
scilab/modules/mexlib/locales/en_US/errors.xml [deleted file]
scilab/modules/mexlib/locales/en_US/menus.xml [deleted file]
scilab/modules/mexlib/locales/en_US/messages.xml [deleted file]
scilab/modules/mexlib/src/c/mexlib.c
scilab/modules/optimization/locales/en_US/errors.xml [deleted file]
scilab/modules/optimization/locales/en_US/menus.xml [deleted file]
scilab/modules/optimization/locales/en_US/messages.xml [deleted file]
scilab/modules/optimization/src/c/intqld.c
scilab/modules/optimization/src/c/sp.c
scilab/modules/others/locales/en_US/errors.xml [deleted file]
scilab/modules/others/locales/en_US/menus.xml [deleted file]
scilab/modules/others/locales/en_US/messages.xml [deleted file]
scilab/modules/overloading/locales/en_US/errors.xml [deleted file]
scilab/modules/overloading/locales/en_US/menus.xml [deleted file]
scilab/modules/overloading/locales/en_US/messages.xml [deleted file]
scilab/modules/polynomials/locales/en_US/errors.xml [deleted file]
scilab/modules/polynomials/locales/en_US/menus.xml [deleted file]
scilab/modules/polynomials/locales/en_US/messages.xml [deleted file]
scilab/modules/pvm/demos/script.sce
scilab/modules/pvm/locales/en_US/errors.xml [deleted file]
scilab/modules/pvm/locales/en_US/menus.xml [deleted file]
scilab/modules/pvm/locales/en_US/messages.xml [deleted file]
scilab/modules/pvm/sci_gateway/c/sci_pvm_config.c
scilab/modules/pvm/sci_gateway/c/sci_pvm_recv.c
scilab/modules/pvm/sci_gateway/c/sci_pvm_tasks.c
scilab/modules/pvm/src/c/pvm_proc_ctrl.c
scilab/modules/randlib/locales/en_US/errors.xml [deleted file]
scilab/modules/randlib/locales/en_US/menus.xml [deleted file]
scilab/modules/randlib/locales/en_US/messages.xml [deleted file]
scilab/modules/randlib/sci_gateway/c/sci_grand.c
scilab/modules/randlib/src/c/fsultra.c
scilab/modules/randlib/src/c/mt.c
scilab/modules/renderer/locales/en_US/errors.xml [deleted file]
scilab/modules/renderer/locales/en_US/menus.xml [deleted file]
scilab/modules/renderer/locales/en_US/messages.xml [deleted file]
scilab/modules/sci2c/locales/en_US/errors.xml [deleted file]
scilab/modules/sci2c/locales/en_US/menus.xml [deleted file]
scilab/modules/sci2c/locales/en_US/messages.xml [deleted file]
scilab/modules/scicos/locales/en_US/errors.xml [deleted file]
scilab/modules/scicos/locales/en_US/menus.xml [deleted file]
scilab/modules/scicos/locales/en_US/messages.xml [deleted file]
scilab/modules/scicos/sci_gateway/c/intcscicos.c
scilab/modules/scicos/src/c/cscope.c
scilab/modules/scicos/src/c/scicos.c
scilab/modules/scicos/src/c/slider.c
scilab/modules/scilab2fortran/locales/en_US/errors.xml [deleted file]
scilab/modules/scilab2fortran/locales/en_US/menus.xml [deleted file]
scilab/modules/scilab2fortran/locales/en_US/messages.xml [deleted file]
scilab/modules/scipad/locales/en_US/errors.xml [deleted file]
scilab/modules/scipad/locales/en_US/menus.xml [deleted file]
scilab/modules/scipad/locales/en_US/messages.xml [deleted file]
scilab/modules/shell/locales/en_US/errors.xml [deleted file]
scilab/modules/shell/locales/en_US/menus.xml [deleted file]
scilab/modules/shell/locales/en_US/messages.xml [deleted file]
scilab/modules/signal_processing/locales/en_US/errors.xml [deleted file]
scilab/modules/signal_processing/locales/en_US/menus.xml [deleted file]
scilab/modules/signal_processing/locales/en_US/messages.xml [deleted file]
scilab/modules/sound/locales/en_US/errors.xml [deleted file]
scilab/modules/sound/locales/en_US/menus.xml [deleted file]
scilab/modules/sound/locales/en_US/messages.xml [deleted file]
scilab/modules/sound/sci_gateway/c/sci_loadwave.c
scilab/modules/sound/src/c/raw.c
scilab/modules/sound/src/c/sox.c
scilab/modules/sparse/locales/en_US/errors.xml [deleted file]
scilab/modules/sparse/locales/en_US/menus.xml [deleted file]
scilab/modules/sparse/locales/en_US/messages.xml [deleted file]
scilab/modules/special_functions/locales/en_US/errors.xml [deleted file]
scilab/modules/special_functions/locales/en_US/menus.xml [deleted file]
scilab/modules/special_functions/locales/en_US/messages.xml [deleted file]
scilab/modules/special_functions/sci_gateway/c/sci_beta.c
scilab/modules/statistics/locales/en_US/errors.xml [deleted file]
scilab/modules/statistics/locales/en_US/menus.xml [deleted file]
scilab/modules/statistics/locales/en_US/messages.xml [deleted file]
scilab/modules/statistics/sci_gateway/c/sci_cdfnor.c
scilab/modules/string/locales/en_US/errors.xml [deleted file]
scilab/modules/string/locales/en_US/menus.xml [deleted file]
scilab/modules/string/locales/en_US/messages.xml [deleted file]
scilab/modules/string/src/c/men_Sutils.c
scilab/modules/symbolic/locales/en_US/errors.xml [deleted file]
scilab/modules/symbolic/locales/en_US/menus.xml [deleted file]
scilab/modules/symbolic/locales/en_US/messages.xml [deleted file]
scilab/modules/tclsci/locales/en_US/errors.xml [deleted file]
scilab/modules/tclsci/locales/en_US/menus.xml [deleted file]
scilab/modules/tclsci/locales/en_US/messages.xml [deleted file]
scilab/modules/tclsci/sci_gateway/c/sci_TCL_GetVersion.c
scilab/modules/texmacs/locales/en_US/errors.xml [deleted file]
scilab/modules/texmacs/locales/en_US/menus.xml [deleted file]
scilab/modules/texmacs/locales/en_US/messages.xml [deleted file]
scilab/modules/time/locales/en_US/errors.xml [deleted file]
scilab/modules/time/locales/en_US/menus.xml [deleted file]
scilab/modules/time/locales/en_US/messages.xml [deleted file]
scilab/modules/time/sci_gateway/c/sci_getdate.c
scilab/modules/windows_tools/locales/en_US/errors.xml [deleted file]
scilab/modules/windows_tools/locales/en_US/menus.xml [deleted file]
scilab/modules/windows_tools/locales/en_US/messages.xml [deleted file]

index df0a3fd..c8dd188 100644 (file)
@@ -20,6 +20,9 @@ bin_SCRIPTS                   = bin/scilab
 
 scilab_bin_SOURCES             = $(top_srcdir)/modules/core/src/c/main_linux.c
 
+LANGS = fr_FR en_US
+
+LANG_DOMAIN = scilab
 
 if GUI
 scilab_bin_LDADD = $(top_builddir)/modules/libscilab.la \
@@ -64,8 +67,20 @@ clean-local:
        $(top_builddir)/bin/scilab -nwni -nb -l en -e 'clean_help();exit;'
 
 
+install-data-local:
+       $(mkinstalldirs) $(DESTDIR)$(localedir); \
+       for lang in $(LANGS); do \
+               LANG_PATH_DIST=$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/; \
+               echo $(mkinstalldirs) $$LANG_PATH_DIST; \
+               $(mkinstalldirs) $$LANG_PATH_DIST; \
+               echo $(INSTALL_DATA) locale/$$lang/LC_MESSAGES/$(LANG_DOMAIN).mo $$LANG_PATH_DIST/; \
+               $(INSTALL_DATA) locale/$$lang/LC_MESSAGES/$(LANG_DOMAIN).mo $$LANG_PATH_DIST/; \
+       done
+
 # Pkgconfig directory
 pkgconfigdir = $(libdir)/pkgconfig
 
 # Files to install in Pkgconfig directory
 pkgconfig_DATA = scilab.pc
+
+
index 226fac9..12415d5 100644 (file)
@@ -297,6 +297,8 @@ ACLOCAL_AMFLAGS = -I m4/
 changelogs = CHANGES
 bin_SCRIPTS = bin/scilab
 scilab_bin_SOURCES = $(top_srcdir)/modules/core/src/c/main_linux.c
+LANGS = fr_FR en_US
+LANG_DOMAIN = scilab
 @GUI_FALSE@scilab_bin_LDADD = $(top_builddir)/modules/libscilab.la \
 @GUI_FALSE@    $(X_EXTRA_LIBS)
 
@@ -842,7 +844,8 @@ info: info-recursive
 
 info-am:
 
-install-data-am: install-pkgconfigDATA install-rootDATA
+install-data-am: install-data-local install-pkgconfigDATA \
+       install-rootDATA
 
 install-dvi: install-dvi-recursive
 
@@ -895,12 +898,12 @@ uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS \
        distclean-local distclean-tags distcleancheck distdir \
        distuninstallcheck dvi dvi-am html html-am info info-am \
        install install-am install-binPROGRAMS install-binSCRIPTS \
-       install-data install-data-am install-dvi install-dvi-am \
-       install-exec install-exec-am install-html install-html-am \
-       install-info install-info-am install-man install-pdf \
-       install-pdf-am install-pkgconfigDATA install-ps install-ps-am \
-       install-rootDATA install-strip installcheck installcheck-am \
-       installdirs installdirs-am maintainer-clean \
+       install-data install-data-am install-data-local install-dvi \
+       install-dvi-am install-exec install-exec-am install-html \
+       install-html-am install-info install-info-am install-man \
+       install-pdf install-pdf-am install-pkgconfigDATA install-ps \
+       install-ps-am install-rootDATA install-strip installcheck \
+       installcheck-am installdirs installdirs-am maintainer-clean \
        maintainer-clean-generic mostlyclean mostlyclean-compile \
        mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
        tags tags-recursive uninstall uninstall-am \
@@ -931,6 +934,16 @@ distclean-local::
 clean-local:
        $(top_builddir)/bin/scilab -nwni -nb -l fr -e 'clean_help();exit;'
        $(top_builddir)/bin/scilab -nwni -nb -l en -e 'clean_help();exit;'
+
+install-data-local:
+       $(mkinstalldirs) $(DESTDIR)$(localedir); \
+       for lang in $(LANGS); do \
+               LANG_PATH_DIST=$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/; \
+               echo $(mkinstalldirs) $$LANG_PATH_DIST; \
+               $(mkinstalldirs) $$LANG_PATH_DIST; \
+               echo $(INSTALL_DATA) locale/$$lang/LC_MESSAGES/$(LANG_DOMAIN).mo $$LANG_PATH_DIST/; \
+               $(INSTALL_DATA) locale/$$lang/LC_MESSAGES/$(LANG_DOMAIN).mo $$LANG_PATH_DIST/; \
+       done
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
index 4cf661e..1fbde33 100755 (executable)
@@ -35659,7 +35659,8 @@ echo ""
 
 echo ""
 echo "Options used to compile and link:"
-echo "  PREFIX           = $prefix"
+echo "  prefix           = $prefix"
+echo "  localedir        = $localedir"
 echo "  VERSION          = $PACKAGE_VERSION"
 echo "  CC               = $CC"
 echo "  CFLAGS           = $CFLAGS"
index b3fb972..cb9f6bf 100644 (file)
@@ -1070,6 +1070,23 @@ typedef int BOOL ;
 # endif
 #endif
 
+#ifdef HAVE_LIBINTL_H
+/* Have been able to find the libintl.h file on the system */
+#include <libintl.h>
+
+#define _(String) gettext (String)
+#define _t(String1,String2,n) ngettext (String1,String2,n)
+
+#else
+/* Restore the normal behaviour ... all the string will be in english */
+
+#define _(String) ((const char *) (String))
+#define gettext(String) ((const char *) (String))
+#define _t(String1,String2,n) ngettext (String1,String2,n)
+#define ngettext(String1, String2, n) ((n) == 1 ? (const char *) (String1) : (const char *) (String2))
+
+#endif
+
 
 #include "PARAMS.h"
 
@@ -1331,7 +1348,8 @@ echo ""
 
 echo ""
 echo "Options used to compile and link:"
-echo "  PREFIX           = $prefix"
+echo "  prefix           = $prefix"
+echo "  localedir        = $localedir"
 echo "  VERSION          = $PACKAGE_VERSION"
 echo "  CC               = $CC"
 echo "  CFLAGS           = $CFLAGS"
diff --git a/scilab/modules/arnoldi/locales/en_US/errors.xml b/scilab/modules/arnoldi/locales/en_US/errors.xml
deleted file mode 100644 (file)
index 0c68bfe..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-               
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-</LOCALIZATION>
diff --git a/scilab/modules/arnoldi/locales/en_US/menus.xml b/scilab/modules/arnoldi/locales/en_US/menus.xml
deleted file mode 100644 (file)
index 0c68bfe..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-               
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-</LOCALIZATION>
diff --git a/scilab/modules/arnoldi/locales/en_US/messages.xml b/scilab/modules/arnoldi/locales/en_US/messages.xml
deleted file mode 100644 (file)
index 0c68bfe..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-               
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-</LOCALIZATION>
diff --git a/scilab/modules/boolean/locales/en_US/errors.xml b/scilab/modules/boolean/locales/en_US/errors.xml
deleted file mode 100644 (file)
index 0c68bfe..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-               
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-</LOCALIZATION>
diff --git a/scilab/modules/boolean/locales/en_US/menus.xml b/scilab/modules/boolean/locales/en_US/menus.xml
deleted file mode 100644 (file)
index 0c68bfe..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-               
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-</LOCALIZATION>
diff --git a/scilab/modules/boolean/locales/en_US/messages.xml b/scilab/modules/boolean/locales/en_US/messages.xml
deleted file mode 100644 (file)
index 0c68bfe..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-               
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-</LOCALIZATION>
diff --git a/scilab/modules/cacsd/locales/en_US/errors.xml b/scilab/modules/cacsd/locales/en_US/errors.xml
deleted file mode 100644 (file)
index 0c68bfe..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-               
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-</LOCALIZATION>
diff --git a/scilab/modules/cacsd/locales/en_US/menus.xml b/scilab/modules/cacsd/locales/en_US/menus.xml
deleted file mode 100644 (file)
index 0c68bfe..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-               
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-</LOCALIZATION>
diff --git a/scilab/modules/cacsd/locales/en_US/messages.xml b/scilab/modules/cacsd/locales/en_US/messages.xml
deleted file mode 100644 (file)
index 0c68bfe..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-               
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-</LOCALIZATION>
index 3b70171..ace1f5d 100644 (file)
@@ -32,7 +32,7 @@ int intab01od(char* fname)
        GetRhsVar(2,MATRIX_OF_DOUBLE_DATATYPE,&mB,&nB,&ptrB);   B=2;        /*     B */
        M=nB;
        if (nA != mB || mA != nA )
-       { Scierror(999,"Invalid A,B matrices \n");  return 0; }
+       { Scierror(999,"Invalid A,B matrices\n");  return 0; }
        if (Rhs == 3) {
                /*    TOL is given:   ab01od(A,B,tol)   */
                GetRhsVar(3,MATRIX_OF_DOUBLE_DATATYPE,&mtol,&ntol,&ptrTOL);  theTOL=*stk(ptrTOL);    /*     TOL */
diff --git a/scilab/modules/compatibility_functions/locales/en_US/errors.xml b/scilab/modules/compatibility_functions/locales/en_US/errors.xml
deleted file mode 100644 (file)
index d1eb849..0000000
+++ /dev/null
@@ -1,408 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_1</msgpreviousid>
-       <msgid>Input argument: inconsistent size.</msgid>
-       <msgstr>Input argument: inconsistent size.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_2</msgpreviousid>
-       <msgid>Not yet implemented.</msgid>
-       <msgstr>Not yet implemented.</msgstr>
-</entry>       
-               
-<entry>
-       <msgpreviousid>compatibility_functions_error_3</msgpreviousid>
-       <msgid>Cell elements must be characters arrays.</msgid>
-       <msgstr>Cell elements must be characters arrays.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_4</msgpreviousid>
-       <msgid>Cell elements must be arrays chars.</msgid>
-       <msgstr>Cell elements must be arrays chars.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_5</msgpreviousid>
-       <msgid>Not implemented.</msgid>
-       <msgstr>Not implemented.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_6</msgpreviousid>
-       <msgid>Input argument must be a cell.</msgid>
-       <msgstr>Input argument must be a cell.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_7</msgpreviousid>
-       <msgid>Inputs arguments must be characters arrays.</msgid>
-       <msgstr>Inputs arguments must be characters arrays.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_8</msgpreviousid>
-       <msgid>mseek: Unknown reference flag.</msgid>
-       <msgstr>mseek: Unknown reference flag.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_9</msgpreviousid>
-       <msgid>All inputs must be character strings.</msgid>
-       <msgstr>All inputs must be character strings.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_10</msgpreviousid>
-       <msgid>Found Datatype=%d, expecting %d.</msgid>
-       <msgstr>Found Datatype=%d, expecting %d.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_11</msgpreviousid>
-       <msgid>Unknown Class.</msgid>
-       <msgstr>Unknown Class.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_12</msgpreviousid>
-       <msgid>Not implemented DataType: %d.</msgid>
-       <msgstr>Not implemented DataType: %d.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_13</msgpreviousid>
-       <msgid>Invalid level 5 binary MAT-file!.</msgid>
-       <msgstr>Invalid level 5 binary MAT-file!.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_14</msgpreviousid>
-       <msgid>Unknown integer type: %s.</msgid>
-       <msgstr>Unknown integer type: %s.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_15</msgpreviousid>
-       <msgid>%s mlist type not yet implemented.</msgid>
-       <msgstr>%s mlist type not yet implemented.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_16</msgpreviousid>
-       <msgid>%s not yet implemented.</msgid>
-       <msgstr>%s not yet implemented.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_17</msgpreviousid>
-       <msgid>Error while writing MI.</msgid>
-       <msgstr>Error while writing MI.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_18</msgpreviousid>
-       <msgid>DataType: %s is not implemented.</msgid>
-       <msgstr>DataType: %s is not implemented.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_19</msgpreviousid>
-       <msgid>File %s cannot be opened for reading.</msgid>
-       <msgstr>File %s cannot be opened for reading.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_20</msgpreviousid>
-       <msgid>Incorrect file.</msgid>
-       <msgstr>Incorrect file.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_21</msgpreviousid>
-       <msgid>VAX D-float not handled.</msgid>
-       <msgstr>VAX D-float not handled.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_22</msgpreviousid>
-       <msgid>VAX G-float not handled.</msgid>
-       <msgstr>VAX G-float not handled.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_23</msgpreviousid>
-       <msgid>Cray encoding not handled.</msgid>
-       <msgstr>Cray encoding not handled.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_24</msgpreviousid>
-       <msgid>Unknown binary number format.</msgid>
-       <msgstr>Unknown binary number format.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_25</msgpreviousid>
-       <msgid>Unknown sparse type.</msgid>
-       <msgstr>Unknown sparse type.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_26</msgpreviousid>
-       <msgid>Unknown Matlab binary file format.</msgid>
-       <msgstr>Unknown Matlab binary file format.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_27</msgpreviousid>
-       <msgid>Dimensions and entries do not match.</msgid>
-       <msgstr>Dimensions and entries do not match.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_28</msgpreviousid>
-       <msgid>Not written for hypermatrices.</msgid>
-       <msgstr>Not written for hypermatrices.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_29</msgpreviousid>
-       <msgid>Input argument must be a caracter string matrix.</msgid>
-       <msgstr>Input argument must be a caracter string matrix.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_30</msgpreviousid>
-       <msgid>a.data_bounds must be a vector.</msgid>
-       <msgstr>a.data_bounds must be a vector.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_31</msgpreviousid>
-       <msgid>a.data_bounds=[xmin xmax ymin ymax zmin zmax cmin cmax] not implemented.</msgid>
-       <msgstr>a.data_bounds=[xmin xmax ymin ymax zmin zmax cmin cmax] not implemented.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_32</msgpreviousid>
-       <msgid>Bad affectation for a.data_bounds.</msgid>
-       <msgstr>Bad affectation for a.data_bounds.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_33</msgpreviousid>
-       <msgid>axis fill not implemented.</msgid>
-       <msgstr>axis fill not implemented.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_34</msgpreviousid>
-       <msgid>axis image not implemented.</msgid>
-       <msgstr>axis image not implemented.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_35</msgpreviousid>
-       <msgid>axis normal not implemented.</msgid>
-       <msgstr>axis normal not implemented.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_36</msgpreviousid>
-       <msgid>axis %s not implemented.</msgid>
-       <msgstr>axis %s not implemented.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_37</msgpreviousid>
-       <msgid>Argument of type %d not implemented.</msgid>
-       <msgstr>Argument of type %d not implemented.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_38</msgpreviousid>
-       <msgid>Matrix must be square.</msgid>
-       <msgstr>Matrix must be square.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_39</msgpreviousid>
-       <msgid>The second input argument must be 1, 2,''fro'' or ''inf''.</msgid>
-       <msgstr>The second input argument must be 1, 2,'fro' or 'inf'.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_40</msgpreviousid>
-       <msgid>mtlb_eig() used with 2 rhs: not yet implemented.</msgid>
-       <msgstr>mtlb_eig() used with 2 rhs: not yet implemented.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_41</msgpreviousid>
-       <msgid>Unknown type in mtlb_format().</msgid>
-       <msgstr>Unknown type in mtlb_format().</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_42</msgpreviousid>
-       <msgid>In mtlb_fprintf: mprintf(%s) is not implemented.</msgid>
-       <msgstr>In mtlb_fprintf: mprintf(%s) is not implemented.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_43</msgpreviousid>
-       <msgid>In mtlb_fprintf: mprintf Scilab function does not work with more than one row variables.</msgid>
-       <msgstr>In mtlb_fprintf: mprintf Scilab function does not work with more than one row variables.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_44</msgpreviousid>
-       <msgid>In mtlb_fprintf: mprintf(format) is not implemented.</msgid>
-       <msgstr>In mtlb_fprintf: mprintf(format) is not implemented.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_45</msgpreviousid>
-       <msgid>In mtlb_fprintf: mfprintf(fid,format) is not implemented.</msgid>
-       <msgstr>In mtlb_fprintf: mfprintf(fid,format) is not implemented.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_46</msgpreviousid>
-       <msgid>The format: %s is unknown.</msgid>
-       <msgstr>The format: %s is unknown.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_47</msgpreviousid>
-       <msgid>The format: %s is not yet handled.</msgid>
-       <msgstr>The format: %s is not yet handled.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_48</msgpreviousid>
-       <msgid>End of file reached before all matrix is read.</msgid>
-       <msgstr>End of file reached before all matrix is read.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_49</msgpreviousid>
-       <msgid>compatibility_functions_error_49</msgid>
-       <msgstr>mtlb_get, no equivalent to property: %s.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_50</msgpreviousid>
-       <msgid>Wrong option.</msgid>
-       <msgstr>Wrong option.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_51</msgpreviousid>
-       <msgid>First argument is not a Matlab vector of strings.</msgid>
-       <msgstr>First argument is not a Matlab vector of strings.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_52</msgpreviousid>
-       <msgid>Unhandled class: %s.</msgid>
-       <msgstr>Unhandled class: %s.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_53</msgpreviousid>
-       <msgid>First argument must be a positive integer.</msgid>
-       <msgstr>First argument must be a positive integer.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_54</msgpreviousid>
-       <msgid>%s: Unknown option.</msgid>
-       <msgstr>%s: Unknown option.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_55</msgpreviousid>
-       <msgid>Not yet implemented for %d lhs argument(s).</msgid>
-       <msgstr>Not yet implemented for %d lhs argument(s).</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_56</msgpreviousid>
-       <msgid>Not yet implemented for %d rhs argument(s).</msgid>
-       <msgstr>Not yet implemented for %d rhs argument(s).</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_57</msgpreviousid>
-       <msgid>qz: pencil is not diagonalizable.</msgid>
-       <msgstr>qz: pencil is not diagonalizable.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_58</msgpreviousid>
-       <msgid>Wrong number of inputs.</msgid>
-       <msgstr>Wrong number of inputs.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_59</msgpreviousid>
-       <msgid>All inputs must be character strings.</msgid>
-       <msgstr>All inputs must be character strings.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_60</msgpreviousid>
-       <msgid>Name conflict: it is not possible to save variable with name %s.</msgid>
-       <msgstr>Name conflict: it is not possible to save variable with name %s.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_61</msgpreviousid>
-       <msgid>Attempt to write an unsupported data type to an ASCII file.</msgid>
-       <msgstr>Attempt to write an unsupported data type to an ASCII file.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_62</msgpreviousid>
-       <msgid>Unknown or misplaced option %s.</msgid>
-       <msgstr>Unknown or misplaced option %s.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_63</msgpreviousid>
-       <msgid>Second input argument must be a column vector.</msgid>
-       <msgstr>Second input argument must be a column vector.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_64</msgpreviousid>
-       <msgid>mtlb_printf : this particular case is not implemented.</msgid>
-       <msgstr>mtlb_printf : this particular case is not implemented.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_65</msgpreviousid>
-       <msgid>mtlb_sscanf: nextindex not implemented.</msgid>
-       <msgstr>mtlb_sscanf: nextindex not implemented.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_66</msgpreviousid>
-       <msgid>End of string reached before a datun has been read.</msgid>
-       <msgstr>End of string reached before a datun has been read.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_error_67</msgpreviousid>
-       <msgid>Version %d MAT-file not implemented.</msgid>
-       <msgstr>Version %d MAT-file not implemented.</msgstr>
-</entry>
-
-       
-</LOCALIZATION>
diff --git a/scilab/modules/compatibility_functions/locales/en_US/menus.xml b/scilab/modules/compatibility_functions/locales/en_US/menus.xml
deleted file mode 100644 (file)
index 20e905e..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgpreviousid>compatibility_functions_menu_1</msgpreviousid>
-       <msgid>Close</msgid>
-       <msgstr>Close</msgstr>
-</entry>       
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-               
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-</LOCALIZATION>
diff --git a/scilab/modules/compatibility_functions/locales/en_US/messages.xml b/scilab/modules/compatibility_functions/locales/en_US/messages.xml
deleted file mode 100644 (file)
index 9345cce..0000000
+++ /dev/null
@@ -1,180 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_1</msgpreviousid>
-       <msgid>Option %s not implemented: IGNORED.</msgid>
-       <msgstr>Option %s not implemented: IGNORED.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_2</msgpreviousid>
-       <msgid>Scilab string matrix saved as Matlab Cell.</msgid>
-       <msgstr>Scilab string matrix saved as Matlab Cell.</msgstr>
-</entry>       
-               
-<entry>
-       <msgpreviousid>compatibility_functions_message_3</msgpreviousid>
-       <msgid>MATLAB 5.0 MAT-file, Generated by Scilab</msgid>
-       <msgstr>MATLAB 5.0 MAT-file, Generated by Scilab</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_4</msgpreviousid>
-       <msgid>cube_scaling only used in 3d mode.</msgid>
-       <msgstr>cube_scaling only used in 3d mode.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_5</msgpreviousid>
-       <msgid>mtlb_close: status ignored.</msgid>
-       <msgstr>mtlb_close: status ignored.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_6</msgpreviousid>
-       <msgid>mtlb_close: all windows deleted.</msgid>
-       <msgstr>mtlb_close: all windows deleted.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_7</msgpreviousid>
-       <msgid>Jan</msgid>
-       <msgstr>Jan</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_8</msgpreviousid>
-       <msgid>Feb</msgid>
-       <msgstr>Feb</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_9</msgpreviousid>
-       <msgid>Mar</msgid>
-       <msgstr>Mar</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_10</msgpreviousid>
-       <msgid>Apr</msgid>
-       <msgstr>Apr</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_11</msgpreviousid>
-       <msgid>May</msgid>
-       <msgstr>May</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_12</msgpreviousid>
-       <msgid>Jun</msgid>
-       <msgstr>Jun</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_13</msgpreviousid>
-       <msgid>Jul</msgid>
-       <msgstr>Jul</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_14</msgpreviousid>
-       <msgid>Aug</msgid>
-       <msgstr>Aug</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_15</msgpreviousid>
-       <msgid>Sep</msgid>
-       <msgstr>Sep</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_16</msgpreviousid>
-       <msgid>Oct</msgid>
-       <msgstr>Oct</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_17</msgpreviousid>
-       <msgid>Nov</msgid>
-       <msgstr>Nov</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_18</msgpreviousid>
-       <msgid>Dec</msgid>
-       <msgstr>Dec</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_19</msgpreviousid>
-       <msgid>Cannot open file.</msgid>
-       <msgstr>Cannot open file.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_20</msgpreviousid>
-       <msgid>Unknown type %s in mtlb_format(): INGNORED.</msgid>
-       <msgstr>Unknown type %s in mtlb_format(): IGNORED.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_21</msgpreviousid>
-       <msgid>No minor grid.</msgid>
-       <msgstr>No minor grid.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_22</msgpreviousid>
-       <msgid>This function is obsolete, use %s instead.</msgid>
-       <msgstr>This function is obsolete, use %s instead.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_23</msgpreviousid>
-       <msgid>MarkerEdgeColor option ignored.</msgid>
-       <msgstr>MarkerEdgeColor option ignored.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_24</msgpreviousid>
-       <msgid>Unknown line style found in ''%s'' -> set to 6.</msgid>
-       <msgstr>Unknown line style found in '%s' -> set to 6.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_25</msgpreviousid>
-       <msgid>Unknown color found in ''%s'' -> set to black.</msgid>
-       <msgstr>Unknown color found in '%s' -> set to black.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_26</msgpreviousid>
-       <msgid>Could not open neither %s nor %s nor %s.</msgid>
-       <msgstr>Could not open neither %s nor %s nor %s.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_27</msgpreviousid>
-       <msgid>Option -v6 added.</msgid>
-       <msgstr>Option -v6 added.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_28</msgpreviousid>
-       <msgid>Variable %s can not be saved in level 4 MAT-file: IGNORED.</msgid>
-       <msgstr>Variable %s can not be saved in level 4 MAT-file: IGNORED.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>compatibility_functions_message_29</msgpreviousid>
-       <msgid>Variable %s can not be saved in ASCII file: IGNORED.</msgid>
-       <msgstr>Variable %s can not be saved in ASCII file: IGNORED.</msgstr>
-</entry>       
-
-
-</LOCALIZATION>
diff --git a/scilab/modules/completion/locales/en_US/errors.xml b/scilab/modules/completion/locales/en_US/errors.xml
deleted file mode 100644 (file)
index 0c68bfe..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-               
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-</LOCALIZATION>
diff --git a/scilab/modules/completion/locales/en_US/menus.xml b/scilab/modules/completion/locales/en_US/menus.xml
deleted file mode 100644 (file)
index 0c68bfe..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-               
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-</LOCALIZATION>
diff --git a/scilab/modules/completion/locales/en_US/messages.xml b/scilab/modules/completion/locales/en_US/messages.xml
deleted file mode 100644 (file)
index 0c68bfe..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-               
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-</LOCALIZATION>
diff --git a/scilab/modules/console/locales/en_US/errors.xml b/scilab/modules/console/locales/en_US/errors.xml
deleted file mode 100644 (file)
index 0c68bfe..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-               
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-</LOCALIZATION>
diff --git a/scilab/modules/console/locales/en_US/menus.xml b/scilab/modules/console/locales/en_US/menus.xml
deleted file mode 100644 (file)
index 0c68bfe..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-               
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-</LOCALIZATION>
diff --git a/scilab/modules/console/locales/en_US/messages.xml b/scilab/modules/console/locales/en_US/messages.xml
deleted file mode 100644 (file)
index 0c68bfe..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-               
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-</LOCALIZATION>
index f50d2f0..5b070d0 100644 (file)
@@ -379,7 +379,6 @@ libscicore_la_include_HEADERS = includes/GetExceptionCode.h \
 includes/CallScilab.h \
 includes/IsAScalar.h \
 includes/sciprint.h \
-includes/link.h \
 includes/intmacr2tree.h \
 includes/core_math.h \
 includes/stack-def.h \
index ee5acf9..e634211 100644 (file)
@@ -779,7 +779,6 @@ libscicore_la_include_HEADERS = includes/GetExceptionCode.h \
 includes/CallScilab.h \
 includes/IsAScalar.h \
 includes/sciprint.h \
-includes/link.h \
 includes/intmacr2tree.h \
 includes/core_math.h \
 includes/stack-def.h \
index 382bf17..0e22113 100644 (file)
@@ -134,9 +134,9 @@ int main(void)
 #endif 
 {
 #ifdef WIN32
-       if ( StartScilab(NULL,NULL,NULL) == FALSE ) printf("Error : StartScilab \n");
+       if ( StartScilab(NULL,NULL,NULL) == FALSE ) printf("Error : StartScilab\n");
 #else
-    if ( StartScilab(SCI,NULL,NULL) == FALSE ) printf("Error : StartScilab \n");
+    if ( StartScilab(SCI,NULL,NULL) == FALSE ) printf("Error : StartScilab\n");
  #endif
 
        printf("\nexample 1\n");  
@@ -148,7 +148,7 @@ int main(void)
        troisieme_exemple() ;
        printf("\n\n");  
   
-       if ( TerminateScilab(NULL) == FALSE ) printf("Error : TerminateScilab \n");
+       if ( TerminateScilab(NULL) == FALSE ) printf("Error : TerminateScilab\n");
        return 0;
 }
 /*------------------------------------------------------------*/
index 63ac422..07a6581 100644 (file)
@@ -121,7 +121,7 @@ static int example3(void)
 int main(void)
 /* int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR szCmdLine, int iCmdShow) */
 {
-       if ( StartScilab(NULL,NULL,NULL) == FALSE ) printf("Error : StartScilab \n");
+       if ( StartScilab(NULL,NULL,NULL) == FALSE ) printf("Error : StartScilab\n");
 
        printf("\nexample 1\n");
        example1();
@@ -133,7 +133,7 @@ int main(void)
        example3();
        system("pause");
        
-       if ( TerminateScilab(NULL) == FALSE ) printf("Error : TerminateScilab \n");
+       if ( TerminateScilab(NULL) == FALSE ) printf("Error : TerminateScilab\n");
        return 0;
 }
 /*-----------------------------------------------------------------------------------*/
index 92633c0..d98c680 100644 (file)
@@ -12,7 +12,6 @@ void C2F(addinter)(int *iflag,int *descla, int *ptrdescla, int *nvla, char *inam
                   int *desc, int *ptrdesc, int *nv, char *c_cpp, 
                   int *lib_cpp, int *err);
 
-extern void RemoveInterf  __PARAMS((int Nshared));  
 extern void C2F(userlk) __PARAMS((integer *k));  
 
 /*  "basin-n.c.X1" */
@@ -70,7 +69,6 @@ extern void C2F(tmpdirc) __PARAMS((void));
 
 /* link.c */
 extern int LinkStatus  __PARAMS((void));
-extern void C2F(isciulink)(integer *i) ;
 
 
 #endif /* SUNSCI_PROTO */
diff --git a/scilab/modules/core/includes/link.h b/scilab/modules/core/includes/link.h
deleted file mode 100644 (file)
index e9e3f01..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef __LINK_H__
-#define __LINK_H__
-
-/* Copyright INRIA */
-extern void GetDynFunc __PARAMS(( int ii, void (**realop)()));
-extern int SearchInDynLinks __PARAMS((char *op, void (**realop)()));
-extern void SciLinkInit __PARAMS((void));
-extern void  ShowDynLinks __PARAMS((void));
-extern void RemoveInterf __PARAMS((int));
-extern void SciLink __PARAMS((int iflag,int *rhs,int *ilib,char *files[],
-                            char *en_names[],char *strf));
-
-extern void C2F(iislink) __PARAMS((   char *buf,   integer *irep));
-
-#endif /*  __LINK_H__ */
-
index eee64aa..8b3c5c3 100644 (file)
@@ -467,6 +467,23 @@ typedef int BOOL ;
 # endif
 #endif
 
+#ifdef HAVE_LIBINTL_H
+/* Have been able to find the libintl.h file on the system */
+#include <libintl.h>
+
+#define _(String) gettext (String)
+#define _t(String1,String2,n) ngettext (String1,String2,n)
+
+#else
+/* Restore the normal behaviour ... all the string will be in english */
+
+#define _(String) ((const char *) (String))
+#define gettext(String) ((const char *) (String))
+#define _t(String1,String2,n) ngettext (String1,String2,n)
+#define ngettext(String1, String2, n) ((n) == 1 ? (const char *) (String1) : (const char *) (String2))
+
+#endif
+
 
 #include "PARAMS.h"
 
index 0baa2bf..a605271 100644 (file)
@@ -102,4 +102,21 @@ typedef int BOOL ;
 /* PATH_MAX : Under Windows : 1024 */
 #define PATH_MAX 1024
 
+#ifdef HAVE_LIBINTL_H
+/* Have been able to find the libintl.h file on the system */
+#include <libintl.h>
+
+#define _(String) gettext (String)
+#define _t(String1,String2,n) ngettext (String1,String2,n)
+
+#else
+/* Restore the normal behaviour ... all the string will be in english */
+
+#define _(String) ((const char *) (String))
+#define gettext(String) ((const char *) (String))
+#define _t(String1,String2,n) ngettext (String1,String2,n)
+#define ngettext(String1, String2, n) ((n) == 1 ? (const char *) (String1) : (const char *) (String2))
+
+#endif
+
 #endif /* MACHINE_H  */
index bd4cfb2..d978c47 100644 (file)
 //#define DefaultScilabQuit "SCI/etc/scilab.quit"
 //static char DefaultSCIenv[]="../..";
 
+/* What is the variable to export for the language */
+#define EXPORTENVLOCALE "LC_ALL"
+
+/* Name of the main localization domain */
+#define NAMELOCALIZATIONDOMAIN "scilab"
+
+/* Path the locale files */
+#define PATHLOCALIZATIONFILE "/locale/"
 
 #endif /*__SCILABDEFAULT_H__ */
index d2e622d..c748d87 100644 (file)
@@ -300,7 +300,7 @@ extern  void * GetFuncPtr __PARAMS((char *,int,void *,void (*f)(),int *,int*,int
 
 #define PExecSciFunction(n,mx,nx,lx,name,fsqpenv) \
   if(! C2F(scifunction)((c_local=n,&c_local),mx,nx,lx))\
-{ message_scilab(" results may be inaccurate. rcond = %s1",name);  longjmp(fsqpenv,-1); }
+{ message_scilab(_(" results may be inaccurate. rcond = %s1"),name);  longjmp(fsqpenv,-1); }
 
 #define Nbvars C2F(intersci).nbvars
 
diff --git a/scilab/modules/core/locales/en_US/errors.xml b/scilab/modules/core/locales/en_US/errors.xml
deleted file mode 100644 (file)
index 5cf7dc4..0000000
+++ /dev/null
@@ -1,835 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgpreviousid>core_error_1</msgpreviousid>
-       <msgid>Undefined variable %s.</msgid>
-       <msgstr>Undefined variable %s.</msgstr>
-</entry>       
-
-
-<entry>
-       <msgpreviousid>core_error_17</msgpreviousid>
-       <msgid>%s : stack size exceeded (Use stacksize function to increase it).</msgid>
-       <msgstr>%s : stack size exceeded (Use stacksize function to increase it).</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_18</msgpreviousid>
-       <msgid>%s : too many names.</msgid>
-       <msgstr>%s : too many names.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_22</msgpreviousid>
-       <msgid>%s : recursion problems. Sorry ...</msgid>
-       <msgstr>%s : recursion problems. Sorry ...</msgstr>
-</entry>       
-
-
-<entry>
-       <msgpreviousid>core_error_39</msgpreviousid>
-       <msgid>incorrect number of arguments.</msgid>
-       <msgstr>incorrect number of arguments.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_41</msgpreviousid>
-       <msgid>incompatible LHS.</msgid>
-       <msgstr>incompatible LHS.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_50</msgpreviousid>
-       <msgid>%s : entry point %s not found in predefined tables or link table.</msgid>
-       <msgstr>%s : entry point %s not found in predefined tables or link table.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_77</msgpreviousid>
-       <msgid>%s : wrong number of rhs arguments</msgid>
-       <msgstr>%s : wrong number of rhs arguments</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_78</msgpreviousid>
-       <msgid>%s : wrong number of lhs arguments</msgid>
-       <msgstr>%s : wrong number of lhs arguments</msgstr>
-</entry>       
-
-
-<entry>
-       <msgpreviousid>core_error_146</msgpreviousid>
-       <msgid>%s : external %s not found.</msgid>
-       <msgstr>%s : external %s not found.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_147</msgpreviousid>
-       <msgid>SIGSTP: aborting current computation</msgid>
-       <msgstr>SIGSTP: aborting current computation</msgstr>
-</entry>       
-               
-<entry>
-       <msgpreviousid>core_error_148</msgpreviousid>
-       <msgid>file %s doesn't exist.</msgid>
-       <msgstr>file %s doesn't exist.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_149</msgpreviousid>
-       <msgid>Invalid type parameter. it must be a string (a filename).</msgid>
-       <msgstr>Invalid type parameter. it must be a string (a filename).</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_150</msgpreviousid>
-       <msgid>Invalid second parameter. It must be a string.</msgid>
-       <msgstr>Invalid second parameter. It must be "string".</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_151</msgpreviousid>
-       <msgid>Invalid type parameter. parameters must be strings.</msgid>
-       <msgstr>Invalid type parameter. parameters must be strings.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_152</msgpreviousid>
-       <msgid>acr2tree: input argument must be a named variable</msgid>
-       <msgstr>macr2tree: input argument must be a named variable</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_153</msgpreviousid>
-       <msgid>macr2tree: Wrong input type (must be a compiled macro)!</msgid>
-       <msgstr>macr2tree: Wrong input type (must be a compiled macro)!</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_154</msgpreviousid>
-       <msgid>macr2tree: No more memory available.</msgid>
-       <msgstr>macr2tree: No more memory available.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_155</msgpreviousid>
-       <msgid>macr2tree: Out of code</msgid>
-       <msgstr>macr2tree: Out of code</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_156</msgpreviousid>
-       <msgid>macr2tree: wrong Top value %d instead of %d</msgid>
-       <msgstr>macr2tree: wrong Top value %d instead of %d.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_157</msgpreviousid>
-       <msgid>%s : No more memory available.</msgid>
-       <msgstr>%s : No more memory available.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_158</msgpreviousid>
-       <msgid>%s : code %d not yet implemented.</msgid>
-       <msgstr>%s : code %d not yet implemented.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_159</msgpreviousid>
-       <msgid>GetInstruction: unknown code %d at index2 %d.</msgid>
-       <msgstr>GetInstruction: unknown code %d at index2 %d.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_160</msgpreviousid>
-       <msgid>GetControlInstruction: old version of if and while not yet implemented.</msgid>
-       <msgstr>GetControlInstruction: old version of if and while not yet implemented.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_161</msgpreviousid>
-       <msgid>CreateCsteTList: wrong type value.</msgid>
-       <msgstr>CreateCsteTList: wrong type value.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_162</msgpreviousid>
-       <msgid>CreateOperationTList: unknown operator %d.</msgid>
-       <msgstr>CreateOperationTList: unknown operator %d.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_163</msgpreviousid>
-       <msgid>CreateEqualTList: wrong fromwhat value %s</msgid>
-       <msgstr>CreateEqualTList: wrong fromwhat value %s</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_164</msgpreviousid>
-       <msgid>must be a name of function in scilab.</msgid>
-       <msgstr>must be a name of function in scilab.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_165</msgpreviousid>
-       <msgid>Warning : Problems with %s.</msgid>
-       <msgstr>Warning : Problems with %s.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_166</msgpreviousid>
-       <msgid>Error : file VERSION in %s.</msgid>
-       <msgstr>Error : file VERSION in "%s".</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_167</msgpreviousid>
-       <msgid>Error : incorrect module name %s.</msgid>
-       <msgstr>Error : incorrect module name "%s".</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_168</msgpreviousid>
-       <msgid>invalid argument.</msgid>
-       <msgstr>invalid argument.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_169</msgpreviousid>
-       <msgid>incorrect second parameter.</msgid>
-       <msgstr>incorrect second parameter.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_170</msgpreviousid>
-       <msgid>invalid argument(s).</msgid>
-       <msgstr>invalid argument(s).</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_171</msgpreviousid>
-       <msgid>%s : can't alloc more memory.</msgid>
-       <msgstr>%s : can't alloc more memory.
-       try gstacksize('max').</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_172</msgpreviousid>
-       <msgid>%s : Out of bounds value not in [%lu,%lu].</msgid>
-       <msgstr>%s : Out of bounds value not in [%lu,%lu].</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_173</msgpreviousid>
-       <msgid>function-name is incorrect.</msgid>
-       <msgstr>function-name is incorrect.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_174</msgpreviousid>
-       <msgid>nameptr argument must be &gt;0.</msgid>
-       <msgstr>nameptr argument must be &gt;0.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_175</msgpreviousid>
-       <msgid>%s : can't alloc more memory. stacksize</msgid>
-       <msgstr>%s : can't alloc more memory.
-try stacksize('max').</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_176</msgpreviousid>
-       <msgid>Parameter must be a integer.</msgid>
-       <msgstr>Parameter must be a integer.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_177</msgpreviousid>
-       <msgid>Parameter must be a string.</msgid>
-       <msgstr>Parameter must be a string.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_178</msgpreviousid>
-       <msgid>See help newfun.</msgid>
-       <msgstr>See help newfun.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_179</msgpreviousid>
-       <msgid>first parameter must be 'local' , 'get' , 'global' or 'sorted'.</msgid>
-       <msgstr>first parameter must be 'local' , 'get' , 'global' or 'sorted'.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_180</msgpreviousid>
-       <msgid>second parameter must be 'sorted'.</msgid>
-       <msgstr>second parameter must be 'sorted'.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_181</msgpreviousid>
-       <msgid>first parameter must be 'local' , 'get' or 'global'.</msgid>
-       <msgstr>first parameter must be 'local' , 'get' or 'global'.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_182</msgpreviousid>
-       <msgid>first parameter must be 'local' , 'get' , 'global' and second parameter must be 'sorted'.</msgid>
-       <msgstr>first parameter must be 'local' , 'get' , 'global' and second parameter must be 'sorted'.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_183</msgpreviousid>
-       <msgid>%s : argument %d should be a list of size at least %d.</msgid>
-       <msgstr>%s : argument %d should be a list of size at least %d.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_184</msgpreviousid>
-       <msgid>%s : argument %d &gt;(%d) should be a real or complex matrix.</msgid>
-       <msgstr>%s : argument %d &gt;(%d) should be a real or complex matrix.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_185</msgpreviousid>
-       <msgid>%s : argument %d should be a list of size at least %d.</msgid>
-       <msgstr>%s : argument %d should be a list of size at least %d.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_197</msgpreviousid>
-       <msgid>%s : argument %d &gt;(%d) should be a boxed pointer.</msgid>
-       <msgstr>%s : argument %d &gt;(%d) should be a boxed pointer.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_198</msgpreviousid>
-       <msgid>%s : argument %d should be a boxed pointer.</msgid>
-       <msgstr>%s : argument %d should be a boxed pointer.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_199</msgpreviousid>
-       <msgid>%s : argument %d should be a matrix.</msgid>
-       <msgstr>%s : argument %d should be a matrix.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_200</msgpreviousid>
-       <msgid>%s : argument %d should be a matrix of handle.</msgid>
-       <msgstr>%s : argument %d should be a matrix of handle.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_201</msgpreviousid>
-       <msgid>%s : argument %d should be a real or complex matrix.</msgid>
-       <msgstr>%s : argument %d should be a real or complex matrix.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_202</msgpreviousid>
-       <msgid>%s : Argument %d: wrong type argument expecting a real matrix.</msgid>
-       <msgstr>%s : Argument %d: wrong type argument expecting a real matrix.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_203</msgpreviousid>
-       <msgid>%s : Argument %d: wrong type argument expecting a real vector.</msgid>
-       <msgstr>%s : Argument %d: wrong type argument expecting a real vector.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_204</msgpreviousid>
-       <msgid>%s : Argument 1: wrong type argument expecting a scalar or 'min' or 'max'.</msgid>
-       <msgstr>%s : Argument 1: wrong type argument expecting a scalar or 'min' or 'max'.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_205</msgpreviousid>
-       <msgid>%s : Argument %d: wrong matrix size (%d,%d) expected.</msgid>
-       <msgstr>%s : Argument %d: wrong matrix size (%d,%d) expected.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_206</msgpreviousid>
-       <msgid>%s : Argument %d wrong vector size (%d) expected.</msgid>
-       <msgstr>%s : Argument %d wrong vector size (%d) expected.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_207</msgpreviousid>
-       <msgid>%s : Argument %d : wrong type argument, expecting a matrix of strings</msgid>
-       <msgstr>%s : Argument %d : wrong type argument, expecting a matrix of strings</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_208</msgpreviousid>
-       <msgid>%s : argument %d should be a boolean matrix.</msgid>
-       <msgstr>%s : argument %d should be a boolean matrix.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_209</msgpreviousid>
-       <msgid>%s : Argument %d wrong type argument, expecting a matrix</msgid>
-       <msgstr>%s : Argument %d wrong type argument, expecting a matrix</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_210</msgpreviousid>
-       <msgid>%s : Argument %d: wrong type argument, expecting a list.</msgid>
-       <msgstr>%s : Argument %d: wrong type argument, expecting a list.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_211</msgpreviousid>
-       <msgid>%s : Argument %d: wrong type argument, expecting a function</msgid>
-       <msgstr>%s : Argument %d: wrong type argument, expecting a function
-               or string (external function).</msgstr>
-</entry>       
-
-
-<entry>
-       <msgpreviousid>core_error_212</msgpreviousid>
-       <msgid>%s : Argument %d: wrong type argument, expecting a polynomial matrix.</msgid>
-       <msgstr>%s : Argument %d: wrong type argument, expecting a polynomial matrix.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_213</msgpreviousid>
-       <msgid>%s : Argument %d: wrong type argument, expecting a working</msgid>
-       <msgstr>%s : Argument %d: wrong type argument, expecting a working
-               integer matrix</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_214</msgpreviousid>
-       <msgid>%s : Argument %d: wrong type argument expecting a vector.</msgid>
-       <msgstr>%s : Argument %d: wrong type argument expecting a vector.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_215</msgpreviousid>
-       <msgid>Not enough memory</msgid>
-       <msgstr>Not enough memory</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_216</msgpreviousid>
-       <msgid>scifunction: Running out of memory.</msgid>
-       <msgstr>scifunction: Running out of memory.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_217</msgpreviousid>
-       <msgid>invalid time domain.</msgid>
-       <msgstr>invalid time domain.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_218</msgpreviousid>
-       <msgid>invalid system.</msgid>
-       <msgstr>invalid system.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_219</msgpreviousid>
-       <msgid>A matrix non square!</msgid>
-       <msgstr>A matrix non square!</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_220</msgpreviousid>
-       <msgid>Invalid %c,%c matrices.</msgid>
-       <msgstr>Invalid %c,%c matrices.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_221</msgpreviousid>
-       <msgid>%s : argument %d &gt;(%d) should be an int matrix.</msgid>
-       <msgstr>%s : argument %d &gt;(%d) should be an int matrix.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_222</msgpreviousid>
-       <msgid>%s : argument %d should be a list of size at least %d.</msgid>
-       <msgstr>%s : argument %d should be a list of size at least %d.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_223</msgpreviousid>
-       <msgid>%s : argument %d &gt;(%d) should be a boolean matrix.</msgid>
-       <msgstr>%s : argument %d &gt;(%d) should be a boolean matrix.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_224</msgpreviousid>
-       <msgid>%s : argument %d &gt;(%d) should be a sparse matrix.</msgid>
-       <msgstr>%s : argument %d &gt;(%d) should be a sparse matrix.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_225</msgpreviousid>
-       <msgid>%s : argument %d should be a sparse matrix.</msgid>
-       <msgstr>%s : argument %d should be a sparse matrix.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_226</msgpreviousid>
-       <msgid>%s : argument %d &gt; (%d) should be a vector.</msgid>
-       <msgstr>%s : argument %d &gt; (%d) should be a vector.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_227</msgpreviousid>
-       <msgid>%s : argument %d &gt; (%d) should be a scalar.</msgid>
-       <msgstr>%s : argument %d &gt; (%d) should be a scalar.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_228</msgpreviousid>
-       <msgid>%s : argument %d &gt;(%d) should be a matrix of strings.</msgid>
-       <msgstr>%s : argument %d &gt;(%d) should be a matrix of strings.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_229</msgpreviousid>
-       <msgid>%s : argument %d &gt;(%d) should be a row vector.</msgid>
-       <msgstr>%s : argument %d &gt;(%d) should be a row vector.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_230</msgpreviousid>
-       <msgid>%s : argument %d should be a row vector.</msgid>
-       <msgstr>%s : argument %d should be a row vector.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_231</msgpreviousid>
-       <msgid>%s : argument %d >(%d) should be a column vector.</msgid>
-       <msgstr>%s : argument %d >(%d) should be a column vector.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_232</msgpreviousid>
-       <msgid>%s : argument %d should be a column vector.</msgid>
-       <msgstr>%s : argument %d should be a column vector.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_233</msgpreviousid>
-       <msgid>%s : incompatible sizes.</msgid>
-       <msgstr>%s : incompatible sizes.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_234</msgpreviousid>
-       <msgid>%s : optional argument %d not given and default value %s not found.</msgid>
-       <msgstr>%s : optional argument %d not given and default value %s not found.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_235</msgpreviousid>
-       <msgid>%f: No more space to store string arguments.</msgid>
-       <msgstr>%f: No more space to store string arguments.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_236</msgpreviousid>
-       <msgid>%s : argument %d &gt;(%d) should be a matrix of handle.</msgid>
-       <msgstr>%s : argument %d &gt;(%d) should be a matrix of handle.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_237</msgpreviousid>
-       <msgid>%s : optional arguments name=val must be at the end.</msgid>
-       <msgstr>%s : optional arguments name=val must be at the end.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_238</msgpreviousid>
-       <msgid>isref: bad call to isref! (1rst argument).</msgid>
-       <msgstr>isref: bad call to isref! (1rst argument).</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_239</msgpreviousid>
-       <msgid>%s : (%s) too many arguments in the stack edit stack.h and enlarge intersiz.</msgid>
-       <msgstr>%s : (%s) too many arguments in the stack edit stack.h and enlarge intersiz.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_240</msgpreviousid>
-       <msgid>%s : bad call to %s! (1rst argument).</msgid>
-       <msgstr>%s : bad call to %s! (1rst argument).</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_241</msgpreviousid>
-       <msgid>%s : (createlistvar) bad third argument!</msgid>
-       <msgstr>%s : (createlistvar) bad third argument!</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_242</msgpreviousid>
-       <msgid>%s : (createlistcvar) bad third argument!</msgid>
-       <msgstr>%s : (createlistcvar) bad third argument!</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_243</msgpreviousid>
-       <msgid>%s : (createlistcvarfromptr) bad third argument!</msgid>
-       <msgstr>%s : (createlistcvarfromptr) bad third argument!</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_244</msgpreviousid>
-       <msgid>%s : bad call to %s! (1rst argument).</msgid>
-       <msgstr>%s : bad call to %s! (1rst argument).</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_245</msgpreviousid>
-       <msgid>Waiting for a complex argument(z).</msgid>
-       <msgstr>Waiting for a complex argument(z).</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_246</msgpreviousid>
-       <msgid>%s : bad call to elementtype!</msgid>
-       <msgstr>%s : bad call to elementtype!</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_247</msgpreviousid>
-       <msgid>%s : argument %d &gt;(%d) should be a complex matrix.</msgid>
-       <msgstr>%s : argument %d &gt;(%d) should be a complex matrix.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_248</msgpreviousid>
-       <msgid>%s : getlistrhsvar was called with bad third argument (%c).</msgid>
-       <msgstr>%s : getlistrhsvar was called with bad third argument (%c).</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_249</msgpreviousid>
-       <msgid>%s : bad call to getlistrhscvar! (1rst argument).</msgid>
-       <msgstr>%s : bad call to getlistrhscvar! (1rst argument).</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_250</msgpreviousid>
-       <msgid>%s : getlistrhscvar was called with bad third argument!</msgid>
-       <msgstr>%s : getlistrhscvar was called with bad third argument!</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_251</msgpreviousid>
-       <msgid>%s : createvarfromptr was called with bad second argument!</msgid>
-       <msgstr>%s : createvarfromptr was called with bad second argument!</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_252</msgpreviousid>
-       <msgid>%s : createcvarfromptr: too many arguments on the stack, enlarge intersiz.</msgid>
-       <msgstr>%s : createcvarfromptr: too many arguments on the stack, enlarge intersiz.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_253</msgpreviousid>
-       <msgid>%s : createcvarfromptr was called with bad second argument!</msgid>
-       <msgstr>%s : createcvarfromptr was called with bad second argument!</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_254</msgpreviousid>
-       <msgid>scistring: %s is not a Scilab function.</msgid>
-       <msgstr>scistring: %s is not a Scilab function.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_255</msgpreviousid>
-       <msgid>putlhsvar: intersiz is too small.</msgid>
-       <msgstr>putlhsvar: intersiz is too small.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_256</msgpreviousid>
-       <msgid>copyref: bad call to isref! (1rst argument).</msgid>
-       <msgstr>copyref: bad call to isref! (1rst argument).</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_257</msgpreviousid>
-       <msgid>%s : %s has wrong dimensions (%d,%d), expecting (%d,%d).</msgid>
-       <msgstr>%s : %s has wrong dimensions (%d,%d), expecting (%d,%d).</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_258</msgpreviousid>
-       <msgid>%s : %s has wrong %s dimension (%d), expecting (%d).</msgid>
-       <msgstr>%s : %s has wrong %s dimension (%d), expecting (%d).</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_259</msgpreviousid>
-       <msgid>%s : %s has wrong length %d, expecting (%d).</msgid>
-       <msgstr>%s : %s has wrong length %d, expecting (%d).</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_260</msgpreviousid>
-       <msgid>%s : %s have incompatible dimensions (%dx%d) # (%dx%d)</msgid>
-       <msgstr>%s : %s have incompatible dimensions (%dx%d) # (%dx%d)</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_261</msgpreviousid>
-       <msgid>%s : %s have incompatible dimensions.</msgid>
-       <msgstr>%s : %s have incompatible dimensions.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_262</msgpreviousid>
-       <msgid>%s : %s should be a list with %d-element being %s.</msgid>
-       <msgstr>%s : %s should be a list with %d-element being %s.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_263</msgpreviousid>
-       <msgid>%s : argument %d(%d) has wrong %s dimension (%d), expecting (%d).</msgid>
-       <msgstr>%s : argument %d(%d) has wrong %s dimension (%d), expecting (%d).</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_264</msgpreviousid>
-       <msgid>%s : bad call to createdata! (1rst argument).</msgid>
-       <msgstr>%s : bad call to createdata! (1rst argument).</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_265</msgpreviousid>
-       <msgid>GetDataFromName: variable %s not found.</msgid>
-       <msgstr>GetDataFromName: variable %s not found.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_266</msgpreviousid>
-       <msgid>CreateRefFromName: variable %s not found.</msgid>
-       <msgstr>CreateRefFromName: variable %s not found.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_267</msgpreviousid>
-       <msgid>creadchain: argument must be a string.</msgid>
-       <msgstr>creadchain: argument must be a string.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_268</msgpreviousid>
-       <msgid>%s : argument should be a polygon.</msgid>
-       <msgstr>%s : argument should be a polygon.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_error_269</msgpreviousid>
-       <msgid>%s : internal error, info=%d.</msgid>
-       <msgstr>%s : internal error, info=%d.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>core_error_270</msgpreviousid>
-       <msgid>whos requires zeros or two arguments.</msgid>
-       <msgstr>whos requires zeros or two arguments.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>core_error_271</msgpreviousid>
-       <msgid>First argument must be ''-name'' or ''-type''.</msgid>
-       <msgstr>First argument must be "-name" or "-type".</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>core_error_272</msgpreviousid>
-       <msgid>Argument must be a string.</msgid>
-       <msgstr>Argument must be a string.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>core_error_273</msgpreviousid>
-       <msgid>second argument should give the path to a scilab script file.</msgid>
-       <msgstr>second argument should give the path to a scilab script file.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>core_error_274</msgpreviousid>
-       <msgid>file: </msgid>
-       <msgstr>file: </msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>core_error_275</msgpreviousid>
-       <msgid> do not exist.</msgid>
-       <msgstr> do not exist.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>core_error_276</msgpreviousid>
-       <msgid>Unable to find Perl file: </msgid>
-       <msgstr>Unable to find Perl file: </msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>core_error_277</msgpreviousid>
-       <msgid>All input arguments must be strings.</msgid>
-       <msgstr>All input arguments must be strings.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>core_error_278</msgpreviousid>
-       <msgid>No perl command specified.</msgid>
-       <msgstr>No perl command specified.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>core_error_279</msgpreviousid>
-       <msgid>Unable to find Perl in: </msgid>
-       <msgstr>Unable to find Perl in: </msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>core_error_280</msgpreviousid>
-       <msgid>Unable to find Perl.</msgid>
-       <msgstr>Unable to find Perl.</msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>core_error_281</msgpreviousid>
-       <msgid>System error: </msgid>
-       <msgstr>System error: </msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>core_error_282</msgpreviousid>
-       <msgid> Command executed: </msgid>
-       <msgstr> Command executed: </msgstr>
-</entry>
-
-<entry>
-       <msgpreviousid>core_error_283</msgpreviousid>
-       <msgid>First input argument must be a Perl File.</msgid>
-       <msgstr>First input argument must be a Perl File.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_error_284</msgpreviousid>
-  <msgid>Internal Error.</msgid>
-  <msgstr>Internal Error.</msgstr>
-</entry>
-
-</LOCALIZATION>
diff --git a/scilab/modules/core/locales/en_US/menus.xml b/scilab/modules/core/locales/en_US/menus.xml
deleted file mode 100644 (file)
index 6905c72..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-       <msgpreviousid>core_menu_1</msgpreviousid>
-       <msgid>toolboxes</msgid>
-       <msgstr>toolboxes</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_menu_2</msgpreviousid>
-       <msgid>Click to choose a demo</msgid>
-       <msgstr>Click to choose a demo</msgstr>
-</entry>       
-               
-<entry>
-       <msgid></msgid>
-       <msgstr></msgstr>
-</entry>       
-
-</LOCALIZATION>
diff --git a/scilab/modules/core/locales/en_US/messages.xml b/scilab/modules/core/locales/en_US/messages.xml
deleted file mode 100644 (file)
index 490344c..0000000
+++ /dev/null
@@ -1,998 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">
-<LOCALIZATION>
-
-<entry>
-  <msgpreviousid>core_message_1</msgpreviousid>
-  <msgid> Warning : </msgid>
-  <msgstr> Warning : </msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_2</msgpreviousid>
-  <msgid>  Non convergence in the QZ algorithm.</msgid>
-  <msgstr>  Non convergence in the QZ algorithm.</msgstr>
-</entry>
-  
-<entry>
-  <msgpreviousid>core_message_3</msgpreviousid>
-  <msgid>  The top %d  x %d blocks may not be in generalized Schur form.</msgid>
-  <msgstr>  The top %d  x %d blocks may not be in generalized Schur form.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_4</msgpreviousid>
-  <msgid>  Non convergence in QR steps.</msgid>
-  <msgstr>  Non convergence in QR steps.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_5</msgpreviousid>
-  <msgid>  The top %d x %d block may not be in Schur form.</msgid>
-  <msgstr>  The top %d x %d block may not be in Schur form.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_6</msgpreviousid>
-  <msgid>  The first %d singular values may be incorrect.</msgid>
-  <msgstr>  The first %d singular values may be incorrect.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_7</msgpreviousid>
-  <msgid> Warning:  Result may be inaccurate.</msgid>
-  <msgstr> Warning:  Result may be inaccurate.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_8</msgpreviousid>
-  <msgid> matrix is close to singular or badly scaled. rcond = %s</msgid>
-  <msgstr> matrix is close to singular or badly scaled. rcond = %s</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_9</msgpreviousid>
-  <msgid>computing least squares solution. (see lsq).</msgid>
-  <msgstr>computing least squares solution. (see lsq).</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_10</msgpreviousid>
-  <msgid> eigenvectors are badly conditioned.</msgid>
-  <msgstr> eigenvectors are badly conditioned.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_11</msgpreviousid>
-  <msgid> results may be inaccurate. rcond = %s</msgid>
-  <msgstr> results may be inaccurate. rcond = %s</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_13</msgpreviousid>
-  <msgid> Warning: obsolete use of '=' instead of '==' .</msgid>
-  <msgstr> Warning: obsolete use of '=' instead of '==' .</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_14</msgpreviousid>
-  <msgid>rank defficient. rank = %d</msgid>
-  <msgstr>rank defficient. rank = %d</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_15</msgpreviousid>
-  <msgid>  Quapro encounters cycles on degenerate point.</msgid>
-  <msgstr>  Quapro encounters cycles on degenerate point.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_16</msgpreviousid>
-  <msgid> norm of projected gradient lower than %s.</msgid>
-  <msgstr> norm of projected gradient lower than %s.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_17</msgpreviousid>
-  <msgid> at last iteration f decreases by less than %s.</msgid>
-  <msgstr> at last iteration f decreases by less than %s.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_18</msgpreviousid>
-  <msgid> optimization stops because too small variations for x.</msgid>
-  <msgstr> optimization stops because too small variations for x.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_19</msgpreviousid>
-  <msgid>optim stops:  maximum number of calls to f is reached.</msgid>
-  <msgstr>optim stops:  maximum number of calls to f is reached.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_20</msgpreviousid>
-  <msgid>optim stops: maximum number of iterations is reached.</msgid>
-  <msgstr>optim stops: maximum number of iterations is reached.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_21</msgpreviousid>
-  <msgid>optim stops: too small variations in gradient direction.</msgid>
-  <msgstr>optim stops: too small variations in gradient direction.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_22</msgpreviousid>
-  <msgid> stop during calculation of descent direction.</msgid>
-  <msgstr> stop during calculation of descent direction.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_23</msgpreviousid>
-  <msgid> stop during calculation of estimated hessian.</msgid>
-  <msgstr> stop during calculation of estimated hessian.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_24</msgpreviousid>
-  <msgid> end of optimization.</msgid>
-  <msgstr> end of optimization.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_25</msgpreviousid>
-  <msgid> end of optimization (linear search fails).</msgid>
-  <msgstr> end of optimization (linear search fails).</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_26</msgpreviousid>
-  <msgid> sfact : uncomplete convergence relative precision reached : 10**(%s).</msgid>
-  <msgstr> sfact : uncomplete convergence relative precision reached : 10**(%s).</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_27</msgpreviousid>
-  <msgid> help file inconsistent...</msgid>
-  <msgstr> help file inconsistent...</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_28</msgpreviousid>
-  <msgid> Functions files location : %s.</msgid>
-  <msgstr> Functions files location : %s.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_29</msgpreviousid>
-  <msgid>    : %s.</msgid>
-  <msgstr>    : %s.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_30</msgpreviousid>
-  <msgid> pause mode: enter empty lines to continue.</msgid>
-  <msgstr> pause mode: enter empty lines to continue.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_31</msgpreviousid>
-  <msgid> breakpoints of function : %s</msgid>
-  <msgstr> breakpoints of function : %s</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_32</msgpreviousid>
-  <msgid>%s lines in help.</msgid>
-  <msgstr>%s lines in help.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_33</msgpreviousid>
-  <msgid> sorry, no help for %s.</msgid>
-  <msgstr> sorry, no help for %s.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_34</msgpreviousid>
-  <msgid> Warning: recursion problem..., cleared.</msgid>
-  <msgstr> Warning: recursion problem..., cleared.
- will be cleared with next error...</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_35</msgpreviousid>
-  <msgid> warning: stack problem..., cleared.</msgid>
-  <msgstr> warning: stack problem..., cleared.
- will be cleared with next error...</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_36</msgpreviousid>
-  <msgid>Stop after row %s in function %s.</msgid>
-  <msgstr>Stop after row %s in function %s.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_37</msgpreviousid>
-  <msgid>   the identifier : %s</msgid>
-  <msgstr>   the identifier : %s</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_38</msgpreviousid>
-  <msgid>   has been truncated to: %s.</msgid>
-  <msgstr>   has been truncated to: %s.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_39</msgpreviousid>
-  <msgid>real part</msgid>
-  <msgstr>real part</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_40</msgpreviousid>
-  <msgid>imaginary part</msgid>
-  <msgstr>imaginary part</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_41</msgpreviousid>
-  <msgid> maximum size of buffer : %d characters.</msgid>
-  <msgstr> maximum size of buffer : %d characters.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_42</msgpreviousid>
-  <msgid> rang deficient : rang = %s  - tol = %s .</msgid>
-  <msgstr> rang deficient : rang = %s  - tol = %s .</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_43</msgpreviousid>
-  <msgid>your variables are...</msgid>
-  <msgstr>your variables are...</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_44</msgpreviousid>
-  <msgid> using %s elements  out of %s.</msgid>
-  <msgstr> using %s elements  out of %s.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_45</msgpreviousid>
-  <msgid> and %s variables out of %s.</msgid>
-  <msgstr> and %s variables out of %s.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_46</msgpreviousid>
-  <msgid>System functions : </msgid>
-  <msgstr>System functions : </msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_47</msgpreviousid>
-  <msgid> Commands:</msgid>
-  <msgstr> Commands:</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_48</msgpreviousid>
-  <msgid>Warning : redefining function : %s</msgid>
-  <msgstr>Warning : redefining function : %s</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_49</msgpreviousid>
-  <msgid>         inside function: %s.</msgid>
-  <msgstr>         inside function: %s.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_50</msgpreviousid>
-  <msgid> Not enough memory to perform simplification.</msgid>
-  <msgstr> Not enough memory to perform simplification.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_51</msgpreviousid>
-  <msgid>your global variables are...</msgid>
-  <msgstr>your global variables are...</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_52</msgpreviousid>
-  <msgid>arl2: Loop on two orders detected.</msgid>
-  <msgstr>arl2: Loop on two orders detected.
-   previous order computed solution returned.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_53</msgpreviousid>
-  <msgid>arl2: Impossible to reach required order.</msgid>
-  <msgstr>arl2: Impossible to reach required order.
-   previous order computed solution returned.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_54</msgpreviousid>
-  <msgid>arl2: Failure when looking for the intersection with domains boundaries.</msgid>
-  <msgstr>arl2: Failure when looking for the intersection with domains boundaries.
-   previous order computed solution returned.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_55</msgpreviousid>
-  <msgid>arl2: Too many solutions found.</msgid>
-  <msgstr>arl2: Too many solutions found.
-   previous order computed solution returned.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_56</msgpreviousid>
-  <msgid>Warning : loaded file has been created with a previous version of scilab</msgid>
-  <msgstr>Warning : loaded file has been created with a previous version of scilab
-or you are trying to load a file saved on a different architecture.
-          please update it !</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_57</msgpreviousid>
-  <msgid>      Impossible to load variable %s.</msgid>
-  <msgstr>     Impossible to load variable %s.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_58</msgpreviousid>
-  <msgid>Warning : use of standard list to define typed structures</msgid>
-  <msgstr>Warning : use of standard list to define typed structures
-          is obsolete. Use tlist.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_59</msgpreviousid>
-  <msgid>Warning : division by zero...</msgid>
-  <msgstr>Warning : division by zero...</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_60</msgpreviousid>
-  <msgid>Warning : singularity of 'log' or 'tan' function.</msgid>
-  <msgstr>Warning : singularity of 'log' or 'tan' function.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_61</msgpreviousid>
-  <msgid>at time : %s ,Too many iteration to achieve required precision.</msgid>
-  <msgstr>at time : %s ,Too many iteration to achieve required precision.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_62</msgpreviousid>
-  <msgid>stepsize not significant in rkqc.</msgid>
-  <msgstr>stepsize not significant in rkqc.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_63</msgpreviousid>
-  <msgid> Warning : variable %%ODEOPTIONS not found.</msgid>
-  <msgstr> Warning : variable %%ODEOPTIONS not found.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_64</msgpreviousid>
-  <msgid> Warning : integration up to tcrit.</msgid>
-  <msgstr> Warning : integration up to tcrit.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_65</msgpreviousid>
-  <msgid> Warning : integration not completed! check tolerance parameters or step size.</msgid>
-  <msgstr> Warning : integration not completed! check tolerance parameters or step size.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_66</msgpreviousid>
-  <msgid> Warning: Jacobian external is given, but</msgid>
-  <msgstr> Warning: Jacobian external is given, but
- not used!,  see %ODEOPTIONS(6).</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_67</msgpreviousid>
-  <msgid> Warning: No Jacobian external given but</msgid>
-  <msgstr> Warning: No Jacobian external given but
- one is required by %ODEOPTIONS(6) value !</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_68</msgpreviousid>
-  <msgid> itask=2,3 or 5: At most one value of t</msgid>
-  <msgstr> itask=2,3 or 5: At most one value of t
- is allowed, the last element of t is used.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_69</msgpreviousid>
-  <msgid> Warning: odedc forces itask=4 and handles</msgid>
-  <msgstr> Warning: odedc forces itask=4 and handles
- tcrit.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_70</msgpreviousid>
-  <msgid> Warning: function is already compiled.</msgid>
-  <msgstr> Warning: function is already compiled.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_71</msgpreviousid>
-  <msgid>int2d: termination for lack of space to divide triangle.</msgid>
-  <msgstr>int2d: termination for lack of space to divide triangle.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_72</msgpreviousid>
-  <msgid>int2d: termination because of roundoff noise.</msgid>
-  <msgstr>int2d: termination because of roundoff noise.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_73</msgpreviousid>
-  <msgid>int2d: termination for relative error &lt; (5.0*%eps).</msgid>
-  <msgstr>int2d: termination for relative error &lt; (5.0*%eps).</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_74</msgpreviousid>
-  <msgid>int2d: termination: function evaluations > MEVALS.</msgid>
-  <msgstr>int2d: termination: function evaluations > MEVALS.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_75</msgpreviousid>
-  <msgid>int3d:maxpts was too small to obtain the required accuracy.</msgid>
-  <msgstr>int3d:maxpts was too small to obtain the required accuracy.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_76</msgpreviousid>
-  <msgid>Too many input/output ports for hilited block.</msgid>
-  <msgstr>Too many input/output ports for hilited block.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_77</msgpreviousid>
-  <msgid>Too many input/output entries for hilited block.</msgid>
-  <msgstr>Too many input/output entries for hilited block.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_78</msgpreviousid>
-  <msgid>Undefined display for this data type.</msgid>
-  <msgstr>Undefined display for this data type.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_79</msgpreviousid>
-  <msgid> Warning : primitive function %s has moved.</msgid>
-  <msgstr> Warning : primitive function %s has moved.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_80</msgpreviousid>
-  <msgid> rebuild your function libraries.</msgid>
-  <msgstr> rebuild your function libraries.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_81</msgpreviousid>
-  <msgid> Warning : primitive function %s is now a Scilab function.</msgid>
-  <msgstr> Warning : primitive function %s is now a Scilab function.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_82</msgpreviousid>
-  <msgid> rebuild your function libraries.</msgid>
-  <msgstr> rebuild your function libraries.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_83</msgpreviousid>
-  <msgid> roundoff errors make leading eigenvalues</msgid>
-  <msgstr> roundoff errors make leading eigenvalues
- in the Schur form no longer satisfy criterion.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_84</msgpreviousid>
-  <msgid> Formal variable name has been truncated.</msgid>
-  <msgstr> Formal variable name has been truncated.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_85</msgpreviousid>
-  <msgid> unknown key &lt;%s&gt; ignored.</msgid>
-  <msgstr> unknown key &lt;%s&gt; ignored.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_86</msgpreviousid>
-  <msgid>xset: window dimensions have been set less than 2^16.</msgid>
-  <msgstr>xset: window dimensions have been set less than 2^16.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_87</msgpreviousid>
-  <msgid>Some data have not been computed they are replaced by NaN.</msgid>
-  <msgstr>Some data have not been computed they are replaced by NaN.</msgstr>
-</entry>
-
-
-
-<entry>
-       <msgpreviousid>core_message_111</msgpreviousid>
-       <msgid>Error in function %s.</msgid>
-       <msgstr>Error in function %s.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_112</msgpreviousid>
-       <msgid>Interface %d.</msgid>
-       <msgstr>Interface %d.</msgstr>
-</entry>       
-               
-<entry>
-       <msgpreviousid>core_message_113</msgpreviousid>
-       <msgid>Invalid interface number %d.</msgid>
-       <msgstr>Invalid interface number %d.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_114</msgpreviousid>
-       <msgid>Interface %s not linked.</msgid>
-       <msgstr>Interface %s not linked.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_115</msgpreviousid>
-       <msgid>Maximum number of dynamic interfaces %d</msgid>
-       <msgstr>Maximum number of dynamic interfaces %d</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_116</msgpreviousid>
-       <msgid>has been reached</msgid>
-       <msgstr>has been reached</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_117</msgpreviousid>
-       <msgid>addinter failed for %s Not  found!</msgid>
-       <msgstr>addinter failed for %s Not  found!</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_118</msgpreviousid>
-       <msgid>Interface %s not linked.</msgid>
-       <msgstr>Interface %s not linked.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_119</msgpreviousid>
-       <msgid>                 Copyright (c) 1989-2007                   </msgid>
-       <msgstr>                 Copyright (c) 1989-2007                   </msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_120</msgpreviousid>
-       <msgid>              Consortium Scilab (INRIA, ENPC)              </msgid>
-       <msgstr>              Consortium Scilab (INRIA, ENPC)              </msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_121</msgpreviousid>
-       <msgid>%s interface not loaded.</msgid>
-       <msgstr>%s interface not loaded.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_122</msgpreviousid>
-       <msgid>Trying to stop scilab in the middle of an interface.</msgid>
-       <msgstr>Trying to stop scilab in the middle of an interface.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_123</msgpreviousid>
-       <msgid>Do you really want to abort computation (y or n ?) </msgid>
-       <msgstr>Do you really want to abort computation (y or n ?) </msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_124</msgpreviousid>
-       <msgid>send_command : No more memory</msgid>
-       <msgstr>send_command : No more memory</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_125</msgpreviousid>
-       <msgid>Warning !!! exception 2</msgid>
-       <msgstr>Warning !!!
-Scilab has found a critical error (%s)
-with "%s" function.
-Save your data and restart Scilab.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_126</msgpreviousid>
-       <msgid>Warning !!! exception 1</msgid>
-       <msgstr>Warning !!!
-Scilab has found a critical error (%s).
-Save your data and restart Scilab.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_127</msgpreviousid>
-       <msgid>Wrong parameter in %s ! (number %d).</msgid>
-       <msgstr>Wrong parameter in %s ! (number %d).</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_128</msgpreviousid>
-       <msgid>Fatal Error : Can't create table for scilab functions.</msgid>
-       <msgstr>Fatal Error : Can't create table for scilab functions.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_129</msgpreviousid>
-       <msgid>complexity: wrong code %d.</msgid>
-       <msgstr>complexity: wrong code %d.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_130</msgpreviousid>
-       <msgid>Link done.</msgid>
-       <msgstr>Link done.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_131</msgpreviousid>
-       <msgid>Sorry : Dynamic linking is not implemented.</msgid>
-       <msgstr>Sorry : Dynamic linking is not implemented.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_132</msgpreviousid>
-       <msgid>Sorry : Unlinking is not implemented.</msgid>
-       <msgstr>Sorry : Unlinking is not implemented.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_133</msgpreviousid>
-       <msgid>Number of entry points %d.</msgid>
-       <msgstr>Number of entry points %d.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_134</msgpreviousid>
-       <msgid>Shared libs : [</msgid>
-       <msgstr>Shared libs : [</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_135</msgpreviousid>
-       <msgid>] : %d libs.</msgid>
-       <msgstr>] : %d libs.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_136</msgpreviousid>
-       <msgid>Entry point %s in shared lib %d.</msgid>
-       <msgstr>Entry point %s in shared lib %d.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_137</msgpreviousid>
-       <msgid>WARNING : %s</msgid>
-       <msgstr>WARNING : %s</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_138</msgpreviousid>
-       <msgid>Internal Functions: </msgid>
-       <msgstr>Internal Functions: </msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_139</msgpreviousid>
-       <msgid>Commands: </msgid>
-       <msgstr>Commands: </msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_140</msgpreviousid>
-       <msgid> using %10d elements out of  %10d.</msgid>
-       <msgstr> using %10d elements out of  %10d.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_141</msgpreviousid>
-       <msgid> and   %10d variables out of %10d.</msgid>
-       <msgstr> and   %10d variables out of %10d.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_142</msgpreviousid>
-       <msgid>Can't go to directory %s .</msgid>
-       <msgstr>Can't go to directory %s .</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_143</msgpreviousid>
-       <msgid>Can't get current directory.</msgid>
-       <msgstr>Can't get current directory.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_144</msgpreviousid>
-       <msgid>No space to allocate Scilab stack.</msgid>
-       <msgstr>No space to allocate Scilab stack.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_145</msgpreviousid>
-       <msgid>sciprint_full : No more memory.</msgid>
-       <msgstr>sciprint_full : No more memory.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_146</msgpreviousid>
-       <msgid>  (cont'd) %s</msgid>
-       <msgstr>  (cont'd) %s</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_147</msgpreviousid>
-       <msgid>     (end) %s</msgid>
-       <msgstr>     (end) %s</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_148</msgpreviousid>
-       <msgid>----%d</msgid>
-       <msgstr>----%d</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_149</msgpreviousid>
-       <msgid>-----------------stack-info-----------------</msgid>
-       <msgstr>-----------------stack-info-----------------</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_150</msgpreviousid>
-       <msgid>lw=%d -[istk]-> il lw+1 -[istk]-> %d.</msgid>
-       <msgstr>lw=%d -[istk]-> il lw+1 -[istk]-> %d.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_151</msgpreviousid>
-       <msgid>istk(%d:..) ->[%d %d %d %d ....]</msgid>
-       <msgstr>istk(%d:..) ->[%d %d %d %d ....]</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_152</msgpreviousid>
-       <msgid>-----------------stack-info-----------------</msgid>
-       <msgstr>-----------------stack-info-----------------</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_153</msgpreviousid>
-       <msgid>%s : unrecognized optional arguments %s.</msgid>
-       <msgstr>%s : unrecognized optional arguments %s.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_154</msgpreviousid>
-       <msgid>optional argument list is empty.</msgid>
-       <msgstr>optional argument list is empty.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_155</msgpreviousid>
-       <msgid>optional arguments list: </msgid>
-       <msgstr>optional arguments list: </msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_156</msgpreviousid>
-       <msgid>and %s.</msgid>
-       <msgstr>and %s.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_157</msgpreviousid>
-       <msgid>User variables are:</msgid>
-       <msgstr>User variables are:</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_158</msgpreviousid>
-       <msgid>using </msgid>
-       <msgstr>using </msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_159</msgpreviousid>
-       <msgid> elements out of </msgid>
-       <msgstr> elements out of </msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_160</msgpreviousid>
-       <msgid> called at line </msgid>
-       <msgstr> called at line </msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_161</msgpreviousid>
-       <msgid> of exec_file.</msgid>
-       <msgstr> of exec_file.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_162</msgpreviousid>
-       <msgid> of execstr instruction.</msgid>
-       <msgstr> of execstr instruction.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_163</msgpreviousid>
-       <msgid> of macro </msgid>
-       <msgstr> of macro </msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_164</msgpreviousid>
-       <msgid>constant</msgid>
-       <msgstr>constant</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_165</msgpreviousid>
-       <msgid>polynomial</msgid>
-       <msgstr>polynomial</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_166</msgpreviousid>
-       <msgid>boolean</msgid>
-       <msgstr>boolean</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_167</msgpreviousid>
-       <msgid>sparse</msgid>
-       <msgstr>sparse</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_168</msgpreviousid>
-       <msgid>boolean sparse</msgid>
-       <msgstr>boolean sparse</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_169</msgpreviousid>
-       <msgid>Matlab sparse</msgid>
-       <msgstr>Matlab sparse</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_170</msgpreviousid>
-       <msgid>handle</msgid>
-       <msgstr>handle</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_171</msgpreviousid>
-       <msgid>string</msgid>
-       <msgstr>string</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_172</msgpreviousid>
-       <msgid>function</msgid>
-       <msgstr>function</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_173</msgpreviousid>
-       <msgid>library</msgid>
-       <msgstr>library</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_174</msgpreviousid>
-       <msgid>pointer</msgid>
-       <msgstr>pointer</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_175</msgpreviousid>
-       <msgid>size implicit</msgid>
-       <msgstr>size implicit</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_176</msgpreviousid>
-       <msgid>list</msgid>
-       <msgstr>list</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_177</msgpreviousid>
-       <msgid>rational</msgid>
-       <msgstr>rational</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_178</msgpreviousid>
-       <msgid>state-space</msgid>
-       <msgstr>state-space</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_179</msgpreviousid>
-       <msgid>hypermat</msgid>
-       <msgstr>hypermat</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_180</msgpreviousid>
-       <msgid>unknown</msgid>
-       <msgstr>unknown</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_181</msgpreviousid>
-       <msgid> is already compiled.</msgid>
-       <msgstr> is already compiled.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_182</msgpreviousid>
-       <msgid> Obsolete: Define SCIHOME and HOME before to launch Scilab.</msgid>
-       <msgstr> Obsolete: Define SCIHOME and HOME before to launch Scilab.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_183</msgpreviousid>
-       <msgid>error(s) : see help powershell'';''verify your script without scilab.</msgid>
-       <msgstr>error(s) : see help powershell';'verify your script without scilab.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_184</msgpreviousid>
-       <msgid>only for Windows.</msgid>
-       <msgstr>only for Windows.</msgstr>
-</entry>       
-
-<entry>
-       <msgpreviousid>core_message_185</msgpreviousid>
-       <msgid>Powershell not found.</msgid>
-       <msgstr>Powershell not found.</msgstr>
-</entry>
-
-<entry>
-  <msgpreviousid>core_message_186</msgpreviousid>
-  <msgid>Type 'resume' or 'abort' to return to standard level prompt.</msgid>
-  <msgstr>Type 'resume' or 'abort' to return to standard level prompt.</msgstr>
-</entry>
-
-</LOCALIZATION>
index cbaa335..8359e02 100644 (file)
@@ -5,6 +5,7 @@
 #include "gw_core.h"
 #include "machine.h"
 #include "stack-c.h"
+#include "link.h"
 /*-----------------------------------------------------------------------------------*/
 extern int C2F(sciislink) _PARAMS((char *fname,unsigned long fname_len));
 /*-----------------------------------------------------------------------------------*/
index 9f01b49..481da62 100644 (file)
@@ -52,7 +52,7 @@ int C2F(sci_chdir) _PARAMS((char *fname,unsigned long fname_len))
        }
        else
        {
-               Scierror(999,"Invalid parameter.\n");
+               Scierror(999,_("Invalid parameter.\n"));
        }
        return 0;
 }
index c6cabd8..6b275eb 100644 (file)
@@ -54,7 +54,7 @@ int C2F(sci_clearfun) _PARAMS((char *fname,unsigned long fname_len))
        }
        else
        {
-               error_scilab(999,"must be a name of function in scilab.");
+               error_scilab(999,_("Must be the name of a scilab function."));
                return 0;
        }
 
index 8217d52..ba34d00 100644 (file)
@@ -24,7 +24,7 @@ int C2F(sci_getcwd) _PARAMS((char *fname,unsigned long fname_len))
        
        if (ierr)
        {
-               error_scilab(998,"Internal Error.");
+               error_scilab(998,_("Internal Error."));
                return 0;
        }
        else
index 275b7b2..1a7cb17 100644 (file)
@@ -52,12 +52,12 @@ int C2F(sci_getmd5) _PARAMS((char *fname,unsigned long fname_len))
                        }
                        else
                        {
-                               error_scilab(999,"file %s doesn't exist.",Param1);
+                               error_scilab(999,_("file %s doesn't exist."),Param1);
                        }
                }
                else
                {
-                       error_scilab(999,"Invalid type parameter. it must be a string (a filename).");
+                       error_scilab(999,_("Invalid type parameter. it must be a string (a filename)."));
                }
        }
        else /* Rhs == 2 */
@@ -95,12 +95,12 @@ int C2F(sci_getmd5) _PARAMS((char *fname,unsigned long fname_len))
                        }
                        else
                        {
-                               error_scilab(999,"Invalid second parameter. It must be a string.");
+                               error_scilab(999,_("Invalid second parameter. It must be a string."));
                        }
                }
                else
                {
-                       error_scilab(999,"Invalid type parameter. parameters must be strings.");
+                       error_scilab(999,_("Invalid type parameter. parameters must be strings."));
                }
        }
        return 0;
index d6c8420..1f7d32d 100644 (file)
@@ -19,7 +19,7 @@ int C2F(sci_getmodules) _PARAMS((char *fname,unsigned long fname_len))
        Modules=getmodules();
        if (!Modules)
        {
-               error_scilab(999,"Warning : Problems with %s.",fname);
+               error_scilab(999,_("Warning : Problems with %s."),fname);
                return 0;
        }
 
index 0a04b56..d70f524 100644 (file)
@@ -42,13 +42,13 @@ int C2F(sci_getvariablesonstack) _PARAMS((char *fname,unsigned long fname_len))
                        }
                        else
                        {
-                               Scierror(999,"Invalid parameter(s).\n");
+                               Scierror(999,_("Invalid parameter(s).\n"));
                                return 0;
                        }
                }
                else
                {
-                       Scierror(999,"Invalid parameter(s).\n");
+                       Scierror(999,_("Invalid parameter(s).\n"));
                        return 0;
                }
        }
index 2f41a3f..0a3b298 100644 (file)
@@ -174,7 +174,7 @@ static int getversion_one_rhs(void)
 {
        if (Lhs == 2)
        {
-               error_scilab(78,"%s : wrong number of lhs arguments","getversion");
+               error_scilab(78,_("%s : wrong number of lhs arguments"),"getversion");
                return 0;
        }
 
@@ -214,13 +214,13 @@ static int getversion_one_rhs(void)
                        }
                        else
                        {
-                               error_scilab(999,"Error : file VERSION in %s.",Param);
+                               error_scilab(999,_("Error : file VERSION in %s."),Param);
                                return 0;
                        }
                }
                else
                {
-                       error_scilab(999,"Error : incorrect module name %s.",Param);
+                       error_scilab(999,_("Error : incorrect module name %s."),Param);
                        return 0;
                }
                m1=1;
@@ -232,7 +232,7 @@ static int getversion_one_rhs(void)
        }
        else
        {
-               error_scilab(999,"invalid argument.");
+               error_scilab(999,_("Invalid argument."));
                return 0;
        }
        return 0;
@@ -242,7 +242,7 @@ static int getversion_two_rhs(void)
 {
        if (Lhs == 2)
        {
-               error_scilab(78,"%s : wrong number of lhs arguments","getversion");
+               error_scilab(78,_("%s : wrong number of lhs arguments"),"getversion");
                return 0;
        }
 
@@ -302,25 +302,25 @@ static int getversion_two_rhs(void)
                                }
                                else
                                {
-                                       error_scilab(999,"Error : file VERSION in %s.",ParamRhs1);
+                                       error_scilab(999,_("Error : file VERSION in %s."),ParamRhs1);
                                        return 0;
                                }
                        }
                        else
                        {
-                               error_scilab(999,"Error : incorrect module name %s.",ParamRhs1);
+                               error_scilab(999,_("Error : incorrect module name %s."),ParamRhs1);
                                return 0;
                        }
                }
                else
                {
-                       error_scilab(999,"incorrect second parameter.");
+                       error_scilab(999,_("Incorrect second parameter."));
                        return 0;
                }
        }
        else
        {
-               error_scilab(999,"invalid argument(s).");
+               error_scilab(999,_("Invalid argument(s)."));
                return 0;
        }
 }
index 1f39f8e..207b9db 100644 (file)
@@ -89,7 +89,7 @@ int C2F(sci_gstacksize) _PARAMS((char *fname,unsigned long fname_len))
                                                        if (ptr) C2F(adjustgstacksize)(&MEMGSTACKSIZE,&ptr,&l);
                                                        else
                                                        {
-                                                               error_scilab(999,"%s : can't alloc more memory.",fname);
+                                                               error_scilab(999,_("%s : can't alloc more memory."),fname);
                                                                return 0;
                                                        }
                                                }
@@ -104,14 +104,14 @@ int C2F(sci_gstacksize) _PARAMS((char *fname,unsigned long fname_len))
                                        }
                                        else
                                        {
-                                               error_scilab(1504,"%s : Out of bounds value not in [%lu,%lu].",fname,MIN_GSTACKSIZE,get_max_memory_for_scilab_stack()-1);
+                                               error_scilab(1504,_("%s : Out of bounds value not in [%lu,%lu]."),fname,MIN_GSTACKSIZE,get_max_memory_for_scilab_stack()-1);
                                                return 0;
                                        }
                                }
                        }
                        else
                        {
-                               error_scilab(204,"%s : Argument 1: wrong type argument expecting a scalar or 'min' or 'max'.",fname);
+                               error_scilab(204,_("%s : Argument 1: wrong type argument expecting a scalar or 'min' or 'max'."),fname);
                                return 0;
                        }
                }
@@ -198,14 +198,14 @@ int C2F(sci_gstacksize) _PARAMS((char *fname,unsigned long fname_len))
                                }
                                else
                                {
-                                       error_scilab(204,"%s : Argument 1: wrong type argument expecting a scalar or 'min' or 'max'.",fname);
+                                       error_scilab(204,_("%s : Argument 1: wrong type argument expecting a scalar or 'min' or 'max'."),fname);
                                        return 0;
                                }
 
                        }
                        else
                        {
-                               error_scilab(204,"%s : Argument 1: wrong type argument expecting a scalar or 'min' or 'max'.",fname);
+                               error_scilab(204,_("%s : Argument 1: wrong type argument expecting a scalar or 'min' or 'max'."),fname);
                                return 0;
                        }
                }
index 8c74981..657af32 100644 (file)
@@ -77,12 +77,12 @@ int C2F(sci_libraryinfo) _PARAMS((char *fname,unsigned long fname_len))
                }
                else
                {
-                       Scierror(999,"Invalid library.\n");
+                       Scierror(999,_("Invalid library.\n"));
                }
        }
        else
        {
-               Scierror(999,"Invalid parameter(s).\n");
+               Scierror(999,_("Invalid parameter(s).\n"));
        }
        return 0;
 }
index 2c52d08..050f901 100644 (file)
@@ -47,19 +47,19 @@ int C2F(sci_newfun) _PARAMS((char *fname,unsigned long fname_len))
                        }
                        else
                        {
-                               error_scilab(999,"function-name is incorrect.");
+                               error_scilab(999,_("function-name is incorrect."));
                                return 0;
                        }
                }
                else
                {
-                       error_scilab(999,"nameptr argument must be &gt;0.");
+                       error_scilab(999,_("nameptr argument must be < 0."));
                        return 0;
                }
        }
        else
        {
-               error_scilab(999,"See help newfun.");
+               error_scilab(999,_("See help newfun."));
                return 0;
        }
        return 0;
index a616c56..22f4342 100644 (file)
@@ -84,7 +84,7 @@ int C2F(sci_stacksize) _PARAMS((char *fname,unsigned long fname_len))
                                                        if (ptr) C2F(adjuststacksize)(&MEMSTACKSIZE,&ptr);
                                                        else
                                                        {
-                                                               error_scilab(999,"%s : can't alloc more memory. stacksize",fname);
+                                                               error_scilab(999,_("%s : can't alloc more memory. stacksize"),fname);
                                                                return 0;
                                                        }
                                                }
@@ -99,19 +99,19 @@ int C2F(sci_stacksize) _PARAMS((char *fname,unsigned long fname_len))
                                        }
                                        else
                                        {
-                                               error_scilab(1504,"%s : Out of bounds value not in [%lu,%lu].",fname,MIN_STACKSIZE,get_max_memory_for_scilab_stack()-1);
+                                               error_scilab(1504,_("%s : Out of bounds value not in [%lu,%lu]."),fname,MIN_STACKSIZE,get_max_memory_for_scilab_stack()-1);
                                                return 0;
                                        }
                                }
                                else
                                {
-                                       error_scilab(1504,"%s : Out of bounds value not in [%lu,%lu].",fname,MIN_STACKSIZE,get_max_memory_for_scilab_stack()-1);
+                                       error_scilab(1504,_("%s : Out of bounds value not in [%lu,%lu]."),fname,MIN_STACKSIZE,get_max_memory_for_scilab_stack()-1);
                                        return 0;
                                }
                        }
                        else
                        {
-                               error_scilab(204,"%s : Argument 1: wrong type argument expecting a scalar or 'min' or 'max'.",fname);
+                               error_scilab(204,_("%s : Argument 1: wrong type argument expecting a scalar or 'min' or 'max'."),fname);
                                return 0;
                        }
                }
@@ -192,13 +192,13 @@ int C2F(sci_stacksize) _PARAMS((char *fname,unsigned long fname_len))
                                }
                                else
                                {
-                                       error_scilab(204,"%s : Argument 1: wrong type argument expecting a scalar or 'min' or 'max'.",fname);
+                                       error_scilab(204,_("%s : Argument 1: wrong type argument expecting a scalar or 'min' or 'max'."),fname);
                                        return 0;
                                }
                        }
                        else
                        {
-                               error_scilab(204,"%s : Argument 1: wrong type argument expecting a scalar or 'min' or 'max'.",fname);
+                               error_scilab(204,_("%s : Argument 1: wrong type argument expecting a scalar or 'min' or 'max'."),fname);
                                return 0;
                        }
                }
index 282bf3c..342b3d9 100644 (file)
@@ -7,19 +7,17 @@
 #include "machine.h"
 #include "stack-c.h"
 #include "error_scilab.h"
+#include "link.h"
 /*-----------------------------------------------------------------------------------*/
-extern void ulinkall(void);
-extern void C2F(isciulink)(integer *i) ;
-/*-----------------------------------------------------------------------------------*/
-int C2F(intulink) __PARAMS((char *fname,unsigned long fname_len));
+static int intulink (char *fname,unsigned long fname_len);
 /*-----------------------------------------------------------------------------------*/ 
 int C2F(sci_ulink) _PARAMS((char *fname,unsigned long fname_len))
 {
-       C2F(intulink)(fname,fname_len);
+       intulink(fname,fname_len);
        return 0;
 }
 /*-----------------------------------------------------------------------------------*/
-int C2F(intulink) __PARAMS((char *fname,unsigned long fname_len))
+static int intulink (char *fname,unsigned long fname_len)
 {
        static int l1,n1,m1;
 
@@ -47,7 +45,7 @@ int C2F(intulink) __PARAMS((char *fname,unsigned long fname_len))
                }
                else
                {
-                       error_scilab(999,"Parameter must be a integer.");
+                       error_scilab(999,_("Parameter must be a integer."));
                        return 0;
                }
        }
index 6feef99..e1001d9 100644 (file)
@@ -10,7 +10,7 @@
 #include "warningmode.h"
 #include "MALLOC.h"
 #include "error_scilab.h"
-#include "../../localization/includes/QueryStringMessage.h"
+#include "../../localization/includes/localization.h"
 /*-----------------------------------------------------------------------------------*/
 int C2F(sci_warning) _PARAMS((char *fname,unsigned long fname_len))
 {
@@ -63,7 +63,7 @@ int C2F(sci_warning) _PARAMS((char *fname,unsigned long fname_len))
                        }
                        else if ( getWarningMode() )
                        {
-                               char *MSG=QueryStringMessage("WARNING : %s");
+                               char *MSG=_("WARNING : %s");
                                if (MSG)
                                {
                                        sciprint(MSG,Param);
@@ -75,7 +75,7 @@ int C2F(sci_warning) _PARAMS((char *fname,unsigned long fname_len))
        }
        else
        {
-               error_scilab(999,"Parameter must be a string.");
+               error_scilab(999,_("Parameter must be a string."));
                return 0;
        }
        LhsVar(1)=0;
index 0bd93ac..92cd0d5 100644 (file)
@@ -73,7 +73,7 @@ static void DispInternalFunctions(void)
        int i=0;
 
        sciprint("\n");
-       message_scilab("Internal Functions: ");
+       message_scilab(_("Internal Functions: "));
        sciprint("\n");
        for (i=1;i<SizeLocalFunctionsTab-1;i++)
        {
@@ -90,7 +90,7 @@ static void DispCommands(void)
        char **commandwords = getcommandkeywords(&sizecommandwords);
 
        sciprint("\n");
-       message_scilab("Commands: ");
+       message_scilab(_("Commands: "));
        sciprint("\n");
        for (i=1;i <sizecommandwords+1;i++)
        {
index 8cbbd90..9a64f1d 100644 (file)
@@ -13,13 +13,13 @@ int C2F(sci_where) _PARAMS((char *fname,unsigned long fname_len))
 {
        if (Rhs > 0)
        {
-               error_scilab(39,"incorrect number of arguments.");
+               error_scilab(39,_("incorrect number of arguments."));
                return 0;
        }
 
        if (Lhs != 2)
        {
-               error_scilab(41,"incompatible LHS.");
+               error_scilab(41,_("incompatible LHS."));
                return 0;
        }
 
index 1331ac8..7edbe50 100644 (file)
@@ -93,7 +93,7 @@ int C2F(sci_who) _PARAMS((char *fname,unsigned long fname_len))
                                 FreeVariableStructArray(GlobalVariables,NbrVarsGlobal);
                                 FreeVariableStructArray(LocalVariables,NbrVarsLocal);
 
-                                error_scilab(999,"first parameter must be 'local' , 'get' , 'global' or 'sorted'.");
+                                error_scilab(999,_("first parameter must be 'local' , 'get' , 'global' or 'sorted'."));
                                 return 0;
                         }
                 }
@@ -102,7 +102,7 @@ int C2F(sci_who) _PARAMS((char *fname,unsigned long fname_len))
                         FreeVariableStructArray(GlobalVariables,NbrVarsGlobal);
                         FreeVariableStructArray(LocalVariables,NbrVarsLocal);
 
-                        error_scilab(999,"first parameter must be 'local' , 'get' , 'global' or 'sorted'.");
+                        error_scilab(999,_("first parameter must be 'local' , 'get' , 'global' or 'sorted'."));
                         return 0;
                 }
         }
@@ -125,7 +125,7 @@ int C2F(sci_who) _PARAMS((char *fname,unsigned long fname_len))
                                  FreeVariableStructArray(GlobalVariables,NbrVarsGlobal);
                                  FreeVariableStructArray(LocalVariables,NbrVarsLocal);
 
-                                 error_scilab(999,"second parameter must be 'sorted'.");
+                                 error_scilab(999,_("second parameter must be 'sorted'."));
                                  return 0;
                          }
                          else
@@ -162,7 +162,7 @@ int C2F(sci_who) _PARAMS((char *fname,unsigned long fname_len))
                                        FreeVariableStructArray(GlobalVariables,NbrVarsGlobal);
                                        FreeVariableStructArray(LocalVariables,NbrVarsLocal);
 
-                                       error_scilab(999,"first parameter must be 'local' , 'get' or 'global'.");
+                                       error_scilab(999,_("first parameter must be 'local' , 'get' or 'global'."));
                                        return 0;
                                 }
                          }
@@ -172,7 +172,7 @@ int C2F(sci_who) _PARAMS((char *fname,unsigned long fname_len))
                         FreeVariableStructArray(GlobalVariables,NbrVarsGlobal);
                         FreeVariableStructArray(LocalVariables,NbrVarsLocal);
 
-                        error_scilab(999,"first parameter must be 'local' , 'get' , 'global' and second parameter must be 'sorted'.");
+                        error_scilab(999,_("first parameter must be 'local' , 'get' , 'global' and second parameter must be 'sorted'."));
                         return 0;
                 }
         }
@@ -223,8 +223,8 @@ static void DispVariables(struct VariableStruct* Vstruct,char *Message,int lenSt
         }
 
         sciprint("\n\n");
-        message_scilab(" using %10d elements out of  %10d.",memused,memtotal);
-        message_scilab(" and   %10d variables out of %10d.",varused,vartotal);
+        message_scilab(_(" using %10d elements out of  %10d."),memused,memtotal);
+        message_scilab(_(" and   %10d variables out of %10d."),varused,vartotal);
 
 }
 /*-----------------------------------------------------------------------------------*/
@@ -300,14 +300,14 @@ static BOOL FreeVariableStructArray(struct VariableStruct* Vstruct,int lenStruct
 
         if (Sorted) SortVarsStructByStrings(LVstruct,LlenStructArray);
 
-        DispVariables(LVstruct,"your variables are :",LlenStructArray,memused,memtotal,varused,vartotal);
+        DispVariables(LVstruct,_("your variables are :"),LlenStructArray,memused,memtotal,varused,vartotal);
 
         C2F(getgstackinfo)(&gmemtotal,&gmemused);
         C2F(getgvariablesinfo)(&gvartotal,&gvarused);
 
         if (Sorted) SortVarsStructByStrings(GVstruct,GlenStructArray);
 
-        DispVariables(GVstruct,"your global variables are :",GlenStructArray,gmemused,gmemtotal,gvarused,gvartotal);
+        DispVariables(GVstruct,_("your global variables are :"),GlenStructArray,gmemused,gmemtotal,gvarused,gvartotal);
 
         LhsVar(1) = 0;
         C2F(putlhsvar)();
index 18dc027..f0731ce 100644 (file)
@@ -36,7 +36,7 @@ int C2F(sci_with_module) _PARAMS((char *fname,unsigned long fname_len))
        }
        else
        {
-               error_scilab(999,"Parameter must be a string.");
+               error_scilab(999,_("Parameter must be a string."));
                return 0;
        }
 
index ab85f67..fb04581 100644 (file)
@@ -39,7 +39,7 @@ static void SetSciEnv(void)
 
   if (ScilabDirectory == NULL)
   {
-       MessageBox (NULL, "Error", "getScilabDirectory()", MB_ICONSTOP | MB_OK);
+       MessageBox (NULL, _("Error"), "getScilabDirectory()", MB_ICONSTOP | MB_OK);
        exit(1);
   }
   SetScilabEnvironmentVariables(ScilabDirectory);
index 6d36c98..a764624 100644 (file)
@@ -14,11 +14,11 @@ void ExceptionMessage(DWORD ExceptionCode,char *functionname)
        char *ExceptionString=GetExceptionString(ExceptionCode);
        if (functionname)
        {
-               message_scilab("Warning !!! exception 2",ExceptionString,functionname);
+               message_scilab(_("Warning !!! exception 2"),ExceptionString,functionname);
        }
        else
        {
-               message_scilab("Warning !!! exception 1",ExceptionString);
+               message_scilab(_("Warning !!! exception 1"),ExceptionString);
        }
        if (ExceptionString) {FREE(ExceptionString);ExceptionString=NULL;}
 }
index 7de630a..298f577 100644 (file)
@@ -76,7 +76,7 @@ char *GetExceptionString(DWORD ExceptionCode)
                        wsprintf(StringOuput,"%s","EXCEPTION_FLT_UNDERFLOW");
                break;
                default:
-               wsprintf(StringOuput,"%s","unknown exception");
+               wsprintf(StringOuput,"%s",_("Unknown exception"));
                break;                          
   }
 
index f0ca5ad..4e67e44 100644 (file)
 #endif
 #include "../../../gui/includes/InitializeGUI.h"
 #include "scilabmode.h"
+#include "SetScilabEnvironment.h"
 /*-----------------------------------------------------------------------------------*/
 int C2F(initscilab)(void)
 {
+
+       SetScilabEnvironment();
+
+       InitializeLocalization();
+
        #ifdef _MSC_VER
        InitializeWindows_tools();
        #endif
 
        InitializeCore();
 
-        InitializeShell();
+       InitializeShell();
 
        if ( getScilabMode() != SCILAB_NWNI ) 
        {
@@ -32,21 +38,19 @@ int C2F(initscilab)(void)
                InitializeJVM();
                InitializeGUI();
                
-                /* create needed data structure if not already created */
+               /* create needed data structure if not already created */
                loadGraphicModule() ;
                 
-                /* Standard mode -> init Java Console */
-                if ( getScilabMode() == SCILAB_STD ) 
-                  {
-                    /* Initialize console: lines... */
-                   InitializeConsole();
-                  }
+               /* Standard mode -> init Java Console */
+               if ( getScilabMode() == SCILAB_STD ) 
+                       {
+                               /* Initialize console: lines... */
+                               InitializeConsole();
+                       }
        }
 
        InitializeTclTk();
 
-       InitializeLocalization();
-       
        return 0;
 }
 /*-----------------------------------------------------------------------------------*/
index 5e513b3..2db254f 100644 (file)
@@ -20,13 +20,11 @@ BOOL InitializeCore(void)
 
        InitializeScilabFilesList();
 
-       SetScilabEnvironment();
-
        getmodules();
 
        if ( create_hashtable_scilab_functions(MAXELEMENTFUNCTIONLIST) == 0 ) 
        {
-               message_scilab("Fatal Error : Can't create table for scilab functions.");
+               message_scilab(_("Fatal Error : Can't create table for scilab functions."));
                exit(1);
        }
 
index 47e0a8a..621b330 100644 (file)
@@ -93,7 +93,7 @@ static BOOL Load_primitives_from_file(char *filename)
 
                        if (doc == NULL) 
                        {
-                               printf("Error: could not parse file %s\n", filename);
+                               printf(_("Error: could not parse file %s\n"), filename);
                                if (encoding) {FREE(encoding);encoding=NULL;}
                                return bOK;
                        }
@@ -149,7 +149,7 @@ static BOOL Load_primitives_from_file(char *filename)
                        }
                        else
                        {
-                               printf("Error : Not a valid gateway file %s (should start with <GATEWAY> and contains <PRIMITIVE gatewayId='' primitiveId='' primitiveName=''>)\n", filename);
+                               printf(_("Error : Not a valid gateway file %s (should start with <GATEWAY> and contains <PRIMITIVE gatewayId='' primitiveId='' primitiveName=''>)\n"), filename);
                                return bOK;
                        }
                        if(xpathObj) xmlXPathFreeObject(xpathObj);
@@ -163,7 +163,7 @@ static BOOL Load_primitives_from_file(char *filename)
                }
                else
                {
-                       printf("Error : Not a valid gateway file %s (encoding not 'utf-8') Encoding '%s' found\n", filename, encoding);
+                       printf(_("Error : Not a valid gateway file %s (encoding not 'utf-8') Encoding '%s' found\n"), filename, encoding);
                }
 
                if (encoding) {FREE(encoding);encoding=NULL;}
index 5b79a32..af7e534 100644 (file)
@@ -54,7 +54,7 @@ int SendScilabJob(char *job)
 
                        if ( ! C2F(cmatptr)("Err", &m, &n, &lp,(unsigned long)strlen("Err")))
                        {
-                               fprintf(stderr,"Error : SendScilabJob (2) 'Err'.\n");
+                               fprintf(stderr,_("Error : SendScilabJob (2) 'Err'.\n"));
                                retCode = -2;
                        }
                        else
@@ -67,7 +67,7 @@ int SendScilabJob(char *job)
                                }
                                else 
                                {
-                                       fprintf(stderr,"Error : SendScilabJob (3) 'Err'.\n");   
+                                       fprintf(stderr,_("Error : SendScilabJob (3) 'Err'.\n"));        
                                        retCode = -3;
                                }
                        }
@@ -79,7 +79,7 @@ int SendScilabJob(char *job)
        }
        else
        {
-               fprintf(stderr,"Error : SendScilabJob (4) 'command' MALLOC.\n");
+               fprintf(stderr,_("Error : SendScilabJob (4) 'command' MALLOC.\n"));
                retCode = -4;
        }
 
@@ -151,13 +151,13 @@ int SendScilabJobs(char **jobs,int numberjobs)
                                        else
                                        {
                                                CleanBuffers(bufCommands,LOCALJOBS,numberjobs);
-                                               fprintf(stderr,"Error : SendScilabJobs (1) 'LOCALJOBS[%d] MALLOC'.\n",i);       
+                                               fprintf(stderr,_("Error : SendScilabJobs (1) 'LOCALJOBS[%d] MALLOC'.\n"),i);    
                                                return retcode;
                                        }
                                }
                                else
                                {
-                                       fprintf(stderr,"Error : SendScilabJobs (2) 'jobs[%d] == NULL'.\n",i);   
+                                       fprintf(stderr,_("Error : SendScilabJobs (2) 'jobs[%d] == NULL'.\n"),i);        
                                        return retcode;
                                }
                        }
@@ -217,20 +217,20 @@ int SendScilabJobs(char **jobs,int numberjobs)
                        else
                        {
                                CleanBuffers(bufCommands,LOCALJOBS,numberjobs);
-                               fprintf(stderr,"Error : SendScilabJobs (3) 'bufCommands MALLOC'.\n");   
+                               fprintf(stderr,_("Error : SendScilabJobs (3) 'bufCommands MALLOC'.\n"));        
                                return retcode;
                        }
                }
                else
                {
                        CleanBuffers(bufCommands,LOCALJOBS,numberjobs);
-                       fprintf(stderr,"Error : SendScilabJobs (4) 'LOCALJOBS == NULL'.\n");    
+                       fprintf(stderr,_("Error : SendScilabJobs (4) 'LOCALJOBS == NULL'.\n")); 
                        return retcode;
                }
        }
        else
        {
-               fprintf(stderr,"Error : SendScilabJobs (5) 'jobs == NULL'.\n"); 
+               fprintf(stderr,_("Error : SendScilabJobs (5) 'jobs == NULL'.\n"));      
                retcode = -10;
        }
        
index a5fed1b..bddb5b5 100644 (file)
@@ -219,7 +219,7 @@ static void ShowInterf(void)
   for ( i = 0 ; i < LastInterf ; i++ ) 
     {
       if ( DynInterf[i].ok == 1 ) 
-       if (debug) message_scilab("Interface %d.",i,DynInterf[i].name);
+       if (debug) message_scilab(_("Interface %d."),i,DynInterf[i].name);
     }
 }
 
@@ -261,7 +261,7 @@ void C2F(userlk)(integer *k)
   int imes = 9999;
   if ( k1 >= LastInterf || k1 < 0 ) 
     {
-      if (getWarningMode()) message_scilab(" results may be inaccurate. rcond = %s",k1);
+      if (getWarningMode()) message_scilab(_(" results may be inaccurate. rcond = %s"),k1);
       C2F(error)(&imes);
       return;
     }
@@ -286,7 +286,7 @@ void C2F(userlk)(integer *k)
   }
   else 
     {
-      if (getWarningMode()) message_scilab("Interface %s not linked.",DynInterf[k1].name);
+      if (getWarningMode()) message_scilab(_("Interface %s not linked."),DynInterf[k1].name);
       C2F(error)(&imes);
       return;
     }
@@ -319,8 +319,8 @@ int  SciLibLoad(int num_names, char **names, char **files, int *nums, int *err)
       /** Linking Files and add entry point name iname */
       if ( inum >=  MAXINTERF ) 
        {
-         if (getWarningMode()) message_scilab("Maximum number of dynamic interfaces %d",MAXINTERF);
-         if (getWarningMode()) message_scilab("has been reached");
+         if (getWarningMode())
+                 message_scilab(_("Maximum number of dynamic interfaces %d has been reached"),MAXINTERF);
          *err=1;
          return -1 ;
        }
@@ -368,7 +368,7 @@ void CallDynInterf(int *pos, int num_names, int namepos, char **names,
     (*DynInterf[*pos].func)();
   else 
     {
-      if (getWarningMode()) message_scilab("Interface %s not linked.",DynInterf[*pos].name);
+      if (getWarningMode()) message_scilab(_("Interface %s not linked."),DynInterf[*pos].name);
       C2F(error)(&imes);
     }
 }  
index e47f582..83ef916 100644 (file)
@@ -28,4 +28,11 @@ int SciLibLoad(int num_names, char **names, char **files, int *nums, int *err);
 void CallDynInterf(int *pos, int num_names, int namepos, char **names,
                                   int *nums, char **files);
 
+/**
+ * <long-description>
+ *
+ * @param int   
+ */
+void RemoveInterf (int);
+
 #endif /*  __ADDINTER_H__ */
index ed1b34c..b84c6bd 100644 (file)
@@ -12,7 +12,7 @@
 void banner(void)
 {
        int i;
-       char *line = "        ___________________________________________        ";
+       char *line = _("        ___________________________________________        ");
        int startVersion = (int)(floor((double)(strlen(line)/2)) - floor((double)(strlen(SCI_VERSION_STRING)/2)));
        
        sciprint("%s\n",line);
@@ -24,30 +24,24 @@ void banner(void)
        }
        
        sciprint("%s\n\n",SCI_VERSION_STRING);
-       message_scilab("                 Copyright (c) 1989-2007                   ");
-       message_scilab("              Consortium Scilab (INRIA, ENPC)              ");
+       message_scilab(_("                 Copyright (c) 1989-2007                   "));
+       message_scilab(_("              Consortium Scilab (INRIA, ENPC)              "));
        sciprint("%s\n",line);
 
        sciprint("\n\n");
-       sciprint("!!! WARNING !!!\n");
-       sciprint("This software is being provided \"as is\", without any express or \n");
-       sciprint("implied warranty.\n");
-       sciprint("This is a development and not at all a final or stable version of Scilab 5.0\n");
-       sciprint("that will be released in the future. A lot of features are missing and buggy.\n");
-       sciprint("In no event will the authors be held liable for any damages arising from,\n");
-       sciprint("out of or in connection with the software or the use or other dealings\n");
-       sciprint("in the software.\n");
+       sciprint(_("!!! WARNING !!!\n"));
+       sciprint(_("This software is being provided \"as is\", without any express or\nimplied warranty.\n"));
+       sciprint(_("This is a development and not at all a final or stable version of Scilab 5.0\nthat will be released in the future. A lot of features are missing and buggy.\n"));
+       sciprint(_("In no event will the authors be held liable for any damages arising from,\nout of or in connection with the software or the use or other dealings\nin the software.\n"));
 
        #if defined(__APPLE__)
                sciprint("\n\n");
-               sciprint("Warning: the operational team of the Scilab Consortium\n");
-               sciprint("   doesn't provide and doesn't support the port of Scilab to MacOS.\n\n");
+               sciprint(_("Warning: the operational team of the Scilab Consortium\n   doesn't provide and doesn't support the port of Scilab to MacOS.\n"));
        #endif /* __APPLE__ */
 
        #if ( defined(_MSC_VER) && ( (_MSC_VER >= 1200) && (_MSC_VER < 1300) ) )
                sciprint("\n\n");
-               sciprint("Warning: the operational team of the Scilab Consortium\n");
-               sciprint("   doesn't provide and doesn't support this version of Scilab built with\n");
+               sciprint(_("Warning: the operational team of the Scilab Consortium\n   doesn't provide and doesn't support this version of Scilab built with\n"));
                sciprint("   ");
   #endif
 }
index 581feb0..0b349be 100644 (file)
@@ -34,7 +34,7 @@ static int c_local_interf = 9999;
 
 int C2F(Nogw_slicot)(void)
 {
-       message_scilab("%s interface not loaded.","slicot");
+       message_scilab(_("%s interface not loaded."),"slicot");
        C2F(error)(&c_local_interf);
        return 0;
 }
@@ -59,7 +59,7 @@ int C2F(callinterf) (int *k)
       if (( returned_from_longjump = setjmp(jmp_env)) != 0 )
        {
          if (sig_ok) signal(SIGINT, controlC_handler);
-         error_scilab(999,"SIGSTP: aborting current computation");
+         error_scilab(999,_("SIGSTP: aborting current computation"));
          count = 0;
          return 0;
        }
@@ -81,18 +81,13 @@ int C2F(callinterf) (int *k)
 static void sci_sigint_addinter(int n)
 {
   int c;
-  message_scilab("Trying to stop scilab in the middle of an interface.");
-  message_scilab("Do you really want to abort computation (y or n ?) ");
+  message_scilab(_("Trying to stop scilab in the middle of an interface."));
+  message_scilab(_("Do you really want to abort computation (y or n ?) "));
   c = getchar();
   if ( c == 'y' ) errjump(n);
 }
 
 
-
-/*-------------------------------------
- * long jump to stop interface computation 
- *-------------------------------------*/
-
 void errjump(int n)
 {
   longjmp(jmp_env,-1); 
index 0862965..ed54b91 100644 (file)
 /* 51 */                                               #include "../../../fftw/includes/gw_fftw.h"
 /* 52 */                                               #include "../../../jvm/includes/gw_jvm.h"
 /* 53 */                                               #include "../../../shell/includes/gw_shell.h"
+
 /* 54 */                                               #include "../../../completion/includes/gw_completion.h"
 /* 55 */                                               #include "../../../history_manager/includes/gw_history_manager.h"
+/* 55 *///                        #include "../../../mpi/includes/gw_mpi.h"
+
 
+/*-------------------------------------
+ * long jump to stop interface computation 
+ * @param n
+ *-------------------------------------*/
 
 void errjump (int n);
 
@@ -143,12 +150,12 @@ static OpTab Interfaces[] = {
        /* 53  */ {C2F(gw_shell)},
        /* 54  */ {C2F(gw_completion)},
        /* 55  */ {C2F(gw_history_manager)},
+       //      /* 55  */ {C2F(gw_mpi)}
 };
 
 
 /**
  * call the apropriate interface according to the value of k 
- * iflagint is no more used here ....
  * @param k the number of the interface
  * @return 
  */
index faeb22d..2a05eb9 100644 (file)
@@ -105,7 +105,7 @@ int StoreCommand1 (char *command,int flag)
                          p = (CommandRec *) MALLOC (sizeof (CommandRec));
                          if (p == (CommandRec *) 0)
                                {
-                                       message_scilab("send_command : No more memory");
+                                       message_scilab(_("send_command : No more memory"));
                                        return (1);
                                }
                          p->flag = 0;
@@ -113,7 +113,7 @@ int StoreCommand1 (char *command,int flag)
                          if (p->command == (char *) 0)
                                {
                                  FREE(p);
-                                 message_scilab("send_command : No more memory");
+                                 message_scilab(_("send_command : No more memory"));
                                  return (1);
                                }
                          strcpy (p->command, command);
@@ -167,8 +167,8 @@ int GetCommand ( char *str)
       FREE (p->command);
       FREE (p);
       if (C2F(iop).ddt==-1) {
-        if (flag==0) { sciprint_full("   Unqueuing %s - No option\n",str); }
-        else         { sciprint_full("   Unqueuing %s - seq\n",str); }
+        if (flag==0) { sciprint_full(_("   Unqueuing %s - No option\n"),str); }
+        else         { sciprint_full(_("   Unqueuing %s - seq\n"),str); }
       }
     }
   return flag;
index fe7475c..a3ae000 100644 (file)
@@ -13,7 +13,6 @@
 /*-----------------------------------------------------------------------------------*/
 #define MSGOUT(msg) C2F(msgout)(&io, &lunit, msg, strlen(msg));
 /*-----------------------------------------------------------------------------------*/
-
 extern int C2F(showstack)();
 extern int C2F(cvname)();
 extern int C2F(prntid)();
@@ -38,18 +37,18 @@ int C2F(errmsg)(integer *n,integer *errtyp)
     {
                        case 1:
                        {
-                               MSGOUT("incorrect assignment");
+                               MSGOUT(_("Incorrect assignment"));
                        }
                        break;
                        case 2:
                        {
-                               MSGOUT("invalid factor");
+                               MSGOUT(("Invalid factor"));
                        *errtyp = 1;
                        }
                        break;
                        case 3:
                        {
-                               MSGOUT("waiting for right parenthesis");
+                               MSGOUT(_("Waiting for right parenthesis"));
                        *errtyp = 1;
                        }
                        break;
@@ -57,7 +56,7 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        {
                                char *Str=NULL;
                                C2F(cvname)(&C2F(recu).ids[(C2F(recu).pt + 1) * 6 - 6], C2F(cha1).buf, &i, 4096L);
-                               Str=(char*)MALLOC( sizeof(char)*( strlen("undefined variable : %s")+1+strlen(C2F(cha1).buf) ) );
+                               Str=(char*)MALLOC( sizeof(char)*( strlen(_("Undefined variable : %s"))+1+strlen(C2F(cha1).buf) ) );
                                sprintf(Str,SCI_ERRMSG4,C2F(cha1).buf);
                                MSGOUT(Str);
                                FREE(Str);
@@ -75,52 +74,52 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 7:
                        {
-                               MSGOUT("dot cannot be used as modifier for this operator");
+                               MSGOUT(_("Dot cannot be used as modifier for this operator"));
                        }
                        break;
                        case 8:
                        {
-                               MSGOUT("inconsistent addition");
+                               MSGOUT(_("Inconsistent addition"));
                        }
                        break;
                        case 9:
                        {
-                               MSGOUT("inconsistent subtraction");
+                               MSGOUT(_("Inconsistent subtraction"));
                        }
                        break;
                        case 10:
                        {
-                               MSGOUT("inconsistent multiplication");
+                               MSGOUT(_("Inconsistent multiplication"));
                        }
                        break;
                        case 11:
                        {
-                               MSGOUT("inconsistent right division ");
+                               MSGOUT(_("Inconsistent right division "));
                        }
                        break;
                        case 12:
                        {
-                               MSGOUT("inconsistent left division");
+                               MSGOUT(_("Inconsistent left division"));
                        }
                        break;
                        case 13:
                        {
-                               MSGOUT("redefining permanent variable");
+                               MSGOUT(_("Redefining permanent variable"));
                        }
                        break;
                        case 14:
                        {
-                               MSGOUT("eye variable undefined in this context");
+                               MSGOUT(_("Eye variable undefined in this context"));
                        }
                        break;
                        case 15:
                        {
-                               MSGOUT("submatrix incorrectly defined");
+                               MSGOUT(_("Submatrix incorrectly defined"));
                        }
                        break;
                        case 16:
                        {
-                               MSGOUT("incorrect command!");
+                               MSGOUT(_("Incorrect command!"));
                                *errtyp = 1;
                        }
                        break;
@@ -130,12 +129,12 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 18:
                        {
-                               MSGOUT("too many variables!");
+                               MSGOUT(_("Too many variables!"));
                        }
                        break;
                        case 19:
                        {
-                               MSGOUT("Problem is singular");
+                               MSGOUT(_("Problem is singular"));
                        }
                        break;
                        case 20:
@@ -144,22 +143,22 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 21:
                        {
-                               MSGOUT("invalid index");
+                               MSGOUT(_("Invalid index"));
                        }
                        break;
                        case 22:
                        {
-                               MSGOUT(" recursion problems. Sorry....");
+                               MSGOUT(_("Recursion problems. Sorry...."));
                        }
                        break;
                        case 23:
                        {
-                               MSGOUT(" Matrix norms available are 1, 2, inf, and fro");
+                               MSGOUT(_("Matrix norms available are 1, 2, inf, and fro"));
                        }
                        break;
                        case 24:
                        {
-                               MSGOUT("convergence problem...");
+                               MSGOUT(_("Convergence problem..."));
                        }
                        break;
                        case 25:
@@ -172,22 +171,22 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 27:
                        {
-                               MSGOUT("division by zero...");
+                               MSGOUT(_("Division by zero..."));
                        }
                        break;
                        case 28:
                        {
-                               MSGOUT("empty function...");
+                               MSGOUT(_("Empty function..."));
                        }
                        break;
                        case 29:
                        {
-                               MSGOUT("matrix is not positive definite");
+                               MSGOUT(_("Matrix is not positive definite"));
                        }
                        break;
                        case 30:
                        {
-                               MSGOUT("invalid exponent");
+                               MSGOUT(_("Invalid exponent"));
                        }
                        break;
                        case 31:
@@ -196,12 +195,12 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 32:
                        {
-                               MSGOUT("singularity of log or tan function");
+                               MSGOUT(_("Singularity of log or tan function"));
                        }
                        break;
                        case 33:
                        {
-                               MSGOUT("too many :");
+                               MSGOUT(_("Too many :"));
                        }
                        break;
                        case 34:
@@ -223,12 +222,12 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 38:
                        {
-                               MSGOUT("file name incorrect");
+                               MSGOUT(_("File name incorrect"));
                        }
                        break;
                        case 39:
                        {
-                               MSGOUT("incorrect number of arguments");
+                               MSGOUT(_("Incorrect number of arguments"));
                        }
                        break;
                        case 40:
@@ -237,17 +236,17 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 41:
                        {
-                               MSGOUT("incompatible LHS");
+                               MSGOUT(_("Incompatible LHS"));
                        }
                        break;
                        case 42:
                        {
-                               MSGOUT("incompatible RHS");
+                               MSGOUT(_("Incompatible RHS"));
                        }
                        break;
                        case 43:
                        {
-                               MSGOUT("not implemented in scilab....");
+                               MSGOUT(_("Not implemented in scilab...."));
                        }
                        break;
                        case 44:
@@ -272,7 +271,7 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 49:
                        {
-                               MSGOUT("incorrect file or format");
+                               MSGOUT(_("Incorrect file or format"));
                        }
                        break;
                        case 50:
@@ -306,7 +305,7 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 57:
                        {
-                               MSGOUT("problem with comparison symbol...");
+                               MSGOUT(_("Problem with comparison symbol..."));
                        }
                        break;
                        case 58:
@@ -319,12 +318,12 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 60:
                        {
-                               MSGOUT("argument with incompatible dimensions");
+                               MSGOUT(_("Argument with incompatible dimensions"));
                        }
                        break;
                        case 61:
                        {
-                               MSGOUT("direct acces : give format");
+                               MSGOUT(_("Direct acces : give format"));
                        }
                        break;
                        case 62:
@@ -337,7 +336,7 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 64:
                        {
-                               MSGOUT("integration fails");
+                               MSGOUT(_("Integration fails"));
                        }
                        break;
                        case 65:
@@ -346,12 +345,12 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 66:
                        {
-                               MSGOUT("no more logical units available!");
+                               MSGOUT(_("No more logical units available!"));
                        }
                        break;
                        case 67:
                        {
-                               MSGOUT("unknown file format ");
+                               MSGOUT(_("Unknown file format "));
                        }
                        break;
                        case 68:
@@ -360,17 +359,17 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 69:
                        {
-                               MSGOUT("floating point exception");
+                               MSGOUT(_("Floating point exception"));
                        }
                        break;
                        case 70:
                        {
-                               MSGOUT("too many arguments in fort (max 30)");
+                               MSGOUT(_("Too many arguments in fort (max 30)"));
                        }
                        break;
                        case 71:
                        {
-                               MSGOUT("this variable is not valid in fort");
+                               MSGOUT(_("This variable is not valid in fort"));
                        }
                        break;
                        case 72:
@@ -379,17 +378,17 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 73:
                        {
-                               MSGOUT("error while linking");
+                               MSGOUT(_("Error while linking"));
                        }
                        break;
                        case 74:
                        {
-                               MSGOUT("Leading coefficient is zero");
+                               MSGOUT(_("Leading coefficient is zero"));
                        }
                        break;
                        case 75:
                        {
-                               MSGOUT("Too high degree (max 100)");
+                               MSGOUT(_("Too high degree (max 100)"));
                        }
                        break;
                        case 76:
@@ -431,22 +430,22 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 85:
                        {
-                               MSGOUT("host does not answer...");
+                               MSGOUT(_("Host does not answer..."));
                        }
                        break;
                        case 86:
                        {
-                               MSGOUT("uncontrollable system");
+                               MSGOUT(_("Uncontrollable system"));
                        }
                        break;
                        case 87:
                        {
-                               MSGOUT("unobservable system");
+                               MSGOUT(_("Unobservable system"));
                        }
                        break;
                        case 88:
                        {
-                               MSGOUT("sfact : singular or assymetric problem");
+                               MSGOUT(_("sfact : singular or assymetric problem"));
                        }
                        break;
                        case 89:
@@ -515,12 +514,12 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 105:
                        {
-                               MSGOUT("undefined fonction");
+                               MSGOUT(_("Undefined fonction"));
                        }
                        break;
                        case 106:
                        {
-                               MSGOUT(" fonction name already used");
+                               MSGOUT(_("Function name already used"));
                        }
                        break;
                        case 107:
@@ -533,7 +532,7 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 109:
                        {
-                               MSGOUT("too large, cant be displayed");
+                               MSGOUT(_("Too large, cant be displayed"));
                        }
                        break;
                        case 110:
@@ -546,17 +545,17 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 112:
                        {
-                               MSGOUT("Cannot allocate more memory");
+                               MSGOUT(_("Cannot allocate more memory"));
                        }
                        break;
                        case 113:
                        {
-                               MSGOUT("too large string");
+                               MSGOUT(_("Too large string"));
                        }
                        break;
                        case 114:
                        {
-                               MSGOUT("too many linked routines");
+                               MSGOUT(_("Too many linked routines"));
                        }
                        break;
                        case 115:
@@ -594,7 +593,7 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 123:
                        {
-                               MSGOUT(" function not bounded from below");
+                               MSGOUT(_("Function not bounded from below"));
                        }
                        break;
                        case 124:
@@ -608,72 +607,72 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 126:
                        {
-                               MSGOUT("Inconsistent constraints");
+                               MSGOUT(_("Inconsistent constraints"));
                        }
                        break;
                        case 127:
                        {
-                               MSGOUT("no feasible solution");
+                               MSGOUT(_("No feasible solution"));
                        }
                        break;
                        case 128:
                        {
-                               MSGOUT("degenerate starting point");
+                               MSGOUT(_("Degenerate starting point"));
                        }
                        break;
                        case 129:
                        {
-                               MSGOUT("no feasible point has been found");
+                               MSGOUT(_("No feasible point has been found"));
                        }
                        break;
                        case 130:
                        {
-                               MSGOUT(" optimization fails: back to initial point");
+                               MSGOUT(_("Optimization fails: back to initial point"));
                        }
                        break;
                        case 131:
                        {
-                               MSGOUT(" optim: stop requested by simulator (ind=0)");
+                               MSGOUT(_("Optim: stop requested by simulator (ind=0)"));
                        }
                        break;
                        case 132:
                        {
-                               MSGOUT(" optim: incorrect input parameters");
+                               MSGOUT(_("Optim: incorrect input parameters"));
                        }
                        break;
                        case 133:
                        {
-                               MSGOUT(" too small memory");
+                               MSGOUT(_("Too small memory"));
                        }
                        break;
                        case 134:
                        {
-                               MSGOUT("optim: problem with initial constants in simul ");
+                               MSGOUT(_("Optim: problem with initial constants in simul "));
                        }
                        break;
                        case 135:
                        {
-                               MSGOUT("optim : bounds and initial guess are incompatible");
+                               MSGOUT(_("Optim : bounds and initial guess are incompatible"));
                        }
                        break;
                        case 136:
                        {
-                               MSGOUT("optim : this method is NOT implemented ");
+                               MSGOUT(_("Optim : this method is NOT implemented "));
                        }
                        break;
                        case 137:
                        {
-                               MSGOUT("NO hot restart available in this method");
+                               MSGOUT(_("NO hot restart available in this method"));
                        }
                        break;
                        case 138:
                        {
-                               MSGOUT("optim : incorrect stopping parameters");
+                               MSGOUT(_("Optim : incorrect stopping parameters"));
                        }
                        break;
                        case 139:
                        {
-                               MSGOUT("optim : incorrect bounds");
+                               MSGOUT(_("Optim : incorrect bounds"));
                        }
                        break;
                        case 140:
@@ -690,7 +689,7 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 143:
                        {
-                               MSGOUT("optim : df0 must be positive !");
+                               MSGOUT(_("Optim : df0 must be positive !"));
                        }
                        break;
                        case 144:
@@ -784,7 +783,7 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 220:
                        {
-                               MSGOUT("null variable cannot be used here");
+                               MSGOUT(_("Null variable cannot be used here"));
                        }
                        break;
                        case 221:
@@ -793,7 +792,7 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 222:
                        {
-                               MSGOUT("lusolve not yet implemented for full RHS");
+                               MSGOUT(_("lusolve not yet implemented for full RHS"));
                        }
                        break;
                        case 223:
@@ -802,22 +801,22 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 224:
                        {
-                               MSGOUT("Type data base is full");
+                               MSGOUT(_("Type data base is full"));
                        }
                        break;
                        case 225:
                        {
-                               MSGOUT("This data type is already defined");
+                               MSGOUT(_("This data type is already defined"));
                        }
                        break;
                        case 226:
                        {
-                               MSGOUT("Inequality comparison with empty matrix");
+                               MSGOUT(_("Inequality comparison with empty matrix"));
                        }
                        break;
                        case 227:
                        {
-                               MSGOUT("Missing index");
+                               MSGOUT(_("Missing index"));
                        }
                        break;
                        case 228:
@@ -831,17 +830,17 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 230:
                        {
-                               MSGOUT("semidef fails");
+                               MSGOUT(_("semidef fails"));
                        }
                        break;
                        case 231:
                        {
-                               MSGOUT("First argument must be a single string");
+                               MSGOUT(_("First argument must be a single string"));
                        }
                        break;
                        case 232:
                        {
-                               MSGOUT("Entry name not found");
+                               MSGOUT(_("Entry name not found"));
                        }
                        break;
                        case 233:
@@ -850,17 +849,17 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 234:
                        {
-                               MSGOUT("link: expecting more than one argument");
+                               MSGOUT(_("Link: expecting more than one argument"));
                        }
                        break;
                        case 235:
                        {
-                               MSGOUT("link: problem with one of the entry point");
+                               MSGOUT(_("Link: problem with one of the entry point"));
                        }
                        break;
                        case 236:
                        {
-                               MSGOUT("link: the shared archive was not loaded");
+                               MSGOUT(_("Link: the shared archive was not loaded"));
                        }
                        break;
                        case 237:
@@ -869,7 +868,7 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 238:
                        {
-                               MSGOUT("link: First argument cannot be a number");
+                               MSGOUT(_("Link: First argument cannot be a number"));
                        }
                        break;
                        case 239:
@@ -890,12 +889,12 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 243:
                        {
-                               MSGOUT("C file logical unit not allowed here");
+                               MSGOUT(_("C file logical unit not allowed here"));
                        }
                        break;
                        case 244:
                        {
-                               MSGOUT("Fortran file logical unit not allowed here");
+                               MSGOUT(_("Fortran file logical unit not allowed here"));
                        }
                        break;
                        case 245:
@@ -925,57 +924,57 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 251:
                        {
-                               MSGOUT("bvode: ipar dimensioned at least 11");
+                               MSGOUT(_("bvode: ipar dimensioned at least 11"));
                        }
                        break;
                        case 252:
                        {
-                               MSGOUT("bvode: ltol must be of size ipar(4)");
+                               MSGOUT(_("bvode: ltol must be of size ipar(4)"));
                        }
                        break;
                        case 253:
                        {
-                               MSGOUT("bvode: fixpnt must be of size ipar(11)");
+                               MSGOUT(_("bvode: fixpnt must be of size ipar(11)"));
                        }
                        break;
                        case 254:
                        {
-                               MSGOUT("bvode: ncomp < 20 requested ");
+                               MSGOUT(_("bvode: ncomp < 20 requested "));
                        }
                        break;
                        case 255:
                        {
-                               MSGOUT("bvode: m must be of size ncomp");
+                               MSGOUT(_("bvode: m must be of size ncomp"));
                        }
                        break;
                        case 256:
                        {
-                               MSGOUT("bvode: sum(m) must be less than 40");
+                               MSGOUT(_("bvode: sum(m) must be less than 40"));
                        }
                        break;
                        case 257:
                        {
-                               MSGOUT("bvode: sum(m) must be less than 40");
+                               MSGOUT(_("bvode: sum(m) must be less than 40"));
                        }
                        break;
                        case 258:
                        {
-                               MSGOUT("bvode: input data error");
+                               MSGOUT(_("bvode: input data error"));
                        }
                        break;
                        case 259:
                        {
-                               MSGOUT("bvode: no. of subintervals exceeds storage");
+                               MSGOUT(_("bvode: no. of subintervals exceeds storage"));
                        }
                        break;
                        case 260:
                        {
-                               MSGOUT("bvode: Th colocation matrix is singular");
+                               MSGOUT(_("bvode: Th colocation matrix is singular"));
                        }
                        break;
                        case 261:
                        {
-                               MSGOUT("Interface property table is full");
+                               MSGOUT(_("Interface property table is full"));
                        }
                        break;
                        case 262:
@@ -992,17 +991,17 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 265:
                        {
-                               MSGOUT("A and B must have equal number of rows");
+                               MSGOUT(_("A and B must have equal number of rows"));
                        }
                        break;
                        case 266:
                        {
-                               MSGOUT("A and B must have equal number of columns");
+                               MSGOUT(_("A and B must have equal number of columns"));
                        }
                        break;
                        case 267:
                        {
-                               MSGOUT("A and B must have equal dimensions");
+                               MSGOUT(_("A and B must have equal dimensions"));
                        }
                        break;
                        case 268:
@@ -1023,7 +1022,7 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 272:
                        {
-                               MSGOUT("endfunction is missing");
+                               MSGOUT(_("endfunction is missing"));
                        }
                        break;
                        case 273:
@@ -1036,17 +1035,17 @@ int C2F(errmsg)(integer *n,integer *errtyp)
                        break;
                        case 275:
                        {
-                               MSGOUT("varargout keyword cannot be used here");
+                               MSGOUT(_("varargout keyword cannot be used here"));
                        }
                        break;
                        case 276:
                        {
-                               MSGOUT("Missing operator, comma, or semicolon");
+                               MSGOUT(_("Missing operator, comma, or semicolon"));
                        }
                        break;
                        case 277:
                        {
-                               MSGOUT("Too many commands defined");
+                               MSGOUT(_("Too many commands defined"));
                        }
                        break;
                        case 278:
index 73c9a98..1ec99ba 100644 (file)
@@ -6,7 +6,7 @@
 #include "MALLOC.h"
 #include "Scierror.h"
 #include "sciprint.h"
-#include "../../../localization/includes/QueryStringError.h"
+#include "../../../localization/includes/localization.h"
 /*-----------------------------------------------------------------------------------*/
 #ifdef _MSC_VER
 #define vsnprintf _vsnprintf
@@ -15,7 +15,7 @@
 int error_scilab(int iv,char *Tag,...)
 {
        int ret=0;
-       char *LocalizedString=QueryStringError(Tag);
+       char *LocalizedString=_(Tag);
 
        if (LocalizedString)
        {
@@ -41,7 +41,7 @@ int error_scilab(int iv,char *Tag,...)
        }
        else
        {
-               Scierror(999,"ERROR : localized message not found : %s",Tag);
+               Scierror(999,_("ERROR : localized message not found : %s"),Tag);
                return 0;
        }
 
index 95fd30a..b5d6501 100644 (file)
@@ -68,7 +68,7 @@ static BOOL ReadModulesFile(void)
        SciPath=getSCIpath();
        if (SciPath==NULL)
        {
-               sciprint("The SCI environment variable is not set\n");
+               sciprint(_("The SCI environment variable is not set\n"));
                return FALSE;
        }
 
@@ -85,7 +85,7 @@ static BOOL ReadModulesFile(void)
        }
        else
        {
-               sciprint("Cannot load the module declaration file : %s.\n",ModulesFilename);
+               sciprint(_("Cannot load the module declaration file : %s.\n"),ModulesFilename);
                FREE(ModulesFilename);
                ModulesFilename=NULL;
                return FALSE;
@@ -103,7 +103,7 @@ static BOOL VerifyModule(char *ModuleName)
        SciPath=getSCIpath();
        if (SciPath==NULL)
        {
-               sciprint("The SCI environment variable is not set\n");
+               sciprint(_("The SCI environment variable is not set\n"));
                return FALSE;
        }
 
@@ -147,7 +147,7 @@ static BOOL AppendModules(char *xmlfilename)
 
                        if (doc == NULL) 
                        {
-                               printf("Error: could not parse file %s\n", xmlfilename);
+                               printf(_("Error: could not parse file %s\n"), xmlfilename);
                                if (encoding) {FREE(encoding);encoding=NULL;}
                                return bOK;
                        }
@@ -198,7 +198,7 @@ static BOOL AppendModules(char *xmlfilename)
                                                }
                                                else
                                                {
-                                                       sciprint("%s module not found.\n",name);
+                                                       sciprint(_("%s module not found.\n"),name);
                                                }
                                        }
                                        if (name) {FREE(name);name = NULL;}
@@ -209,7 +209,7 @@ static BOOL AppendModules(char *xmlfilename)
                }
                else
                {
-                       printf("Error : Not a valid module file %s (encoding not 'utf-8') Encoding '%s' found\n", xmlfilename, encoding);
+                       printf(_("Error : Not a valid module file %s (encoding not 'utf-8') Encoding '%s' found\n"), xmlfilename, encoding);
                }
                if (encoding) {FREE(encoding);encoding=NULL;}
        }
index bc8efbe..f30be1c 100644 (file)
@@ -97,8 +97,6 @@ int C2F(getcomp)(char *buf,int *nbuf,long int lbuf)
  */
 int SetSci()
 {
-
-
        int ierr,iflag=0;
        int lbuf=PATH_MAX;
        char *buf=MALLOC(PATH_MAX*sizeof(char));
@@ -107,9 +105,9 @@ int SetSci()
        if ( ierr== 1) 
        {
                #ifdef  _MSC_VER
-               MessageBox(NULL,"SCI not defined.","Warning",MB_ICONWARNING);
+               MessageBox(NULL,_("SCI not defined."),"Warning",MB_ICONWARNING);
                #else
-               printf("SCI not defined.\n");
+               printf(_("SCI not defined.\n"));
                #endif
                exit(1);
        }
@@ -147,9 +145,9 @@ int C2F(getscihome)(char *buf,int *nbuf,long int lbuf)
                if (!setSCIHOME())
                {
                        #ifdef  _MSC_VER
-                               MessageBox(NULL,"SCIHOME not defined.","Warning",MB_ICONWARNING);
+                               MessageBox(NULL,_("SCIHOME not defined."),_("Warning"),MB_ICONWARNING);
                        #else
-                               printf("SCIHOME not defined.\n");
+                               printf(_("SCIHOME not defined.\n"));
                        #endif
                        exit(1);
                }
@@ -174,9 +172,9 @@ int C2F(gettmpdir)(char *buf,int *nbuf,long int lbuf)
        if ( ierr== 1) 
        {
 #ifdef  _MSC_VER
-               MessageBox(NULL,"TMPDIR not defined.","Warning",MB_ICONWARNING);
+               MessageBox(NULL,_("TMPDIR not defined."),_("Warning"),MB_ICONWARNING);
 #else
-               printf("TMPDIR not defined.\n");
+               printf(_("TMPDIR not defined.\n"));
 #endif
                exit(1);
        }
index 6715b4f..6174249 100644 (file)
@@ -11,6 +11,7 @@
 #include "error_scilab.h"
 #include "message_scilab.h"
 #include "cvstr.h"
+#include "machine.h"
 
 /* Table to store variable names */
 static char varnames[isizt][nlgh+1];
@@ -85,7 +86,7 @@ int C2F(macr2tree) _PARAMS((char *fname,unsigned long fname_len))
 
   if (stkdata[0] > 0) /* Not a reference to variable */
     {
-               error_scilab(999,"acr2tree: input argument must be a named variable");
+               error_scilab(999,_("acr2tree: input argument must be a named variable"));
       return 0;
     }
   else
@@ -96,19 +97,19 @@ int C2F(macr2tree) _PARAMS((char *fname,unsigned long fname_len))
   /* Verify good type for input: must be a compiled macro (type 13) */
   if(stkdata[0] != 13)
     {
-               error_scilab(999,"macr2tree: Wrong input type (must be a compiled macro)!");
+               error_scilab(999,_("macr2tree: Wrong input type (must be a compiled macro)!"));
       return 0;
     }
 
   /* Memory allocation */
   if((name=CALLOC(1,sizeof(char)))==NULL)
     {
-               error_scilab(999,"macr2tree: No more memory available.");
+               error_scilab(999,_("macr2tree: No more memory available."));
       return 0;
     }
   if((name[0]=(char *)CALLOC(1,sizeof(char)*(nlgh+1)))==NULL)
     {
-               error_scilab(999,"macr2tree: Out of code");
+               error_scilab(999,_("macr2tree: Out of code"));
       return 0;
     }
   (name[0])[nlgh]='\0';
@@ -158,7 +159,7 @@ int C2F(macr2tree) _PARAMS((char *fname,unsigned long fname_len))
   /* Memory allocation */
   if((data=(int *)CALLOC(1,sizeof(int)*(codelength+ilt+1)))==NULL)
   {
-         error_scilab(999,"macr2tree: No more memory available.");
+         error_scilab(999,_("macr2tree: No more memory available."));
       return 0;
     }
   /* Copy */
@@ -184,7 +185,7 @@ int C2F(macr2tree) _PARAMS((char *fname,unsigned long fname_len))
   /* Error handling (S. Steer */
   if (*Lstk(Top+1) >= *Lstk(Bot)) 
   {
-         error_scilab(17,"%s : stack size exceeded (Use stacksize function to increase it).");
+         error_scilab(17,_("%s : stack size exceeded (Use stacksize function to increase it)."));
 
     /* Free memory */
     FREE(name[0]);
@@ -236,7 +237,7 @@ int C2F(macr2tree) _PARAMS((char *fname,unsigned long fname_len))
          cod_ind++;
          if(cod_ind>codelength+ilt+1)
          {
-                 error_scilab(999,"macr2tree: Out of code");
+                 error_scilab(999,_("macr2tree: Out of code"));
  
              /* Free memory */
              FREE(name[0]);
@@ -251,7 +252,7 @@ int C2F(macr2tree) _PARAMS((char *fname,unsigned long fname_len))
        }
       if(TopSave!=Top-1) 
          {
-                 error_scilab(999,"macr2tree: wrong Top value %d instead of %d",Top,TopSave+1);
+                 error_scilab(999,_("macr2tree: wrong Top value %d instead of %d"),Top,TopSave+1);
 
 
        /* Free memory */
@@ -326,12 +327,12 @@ static int CreateEOLList(void)
   /* Memory allocation */
   if((eol=CALLOC(1,sizeof(char)))==NULL)
     {
-         error_scilab(999,"%s : No more memory available.","CreateEOLList");
+         error_scilab(999,_("%s : No more memory available."),"CreateEOLList");
       return 0;
     }
   if((eol[0]=(char *)CALLOC(1,sizeof(char)*(strlen("EOL")+1)))==NULL)
     {
-      error_scilab(999,"%s : No more memory available.","CreateEOLList");
+      error_scilab(999,_("%s : No more memory available."),"CreateEOLList");
       return 0;
     }
   (eol[0])[3]='\0';
@@ -413,12 +414,12 @@ static int GetInstruction(int *data,int *index2,int *nblines,int *addinstr)
   /* Memory allocation */
   if((name=CALLOC(1,sizeof(char)))==NULL)
     {
-               error_scilab(999,"%s : No more memory available.","GetInstruction");
+               error_scilab(999,_("%s : No more memory available."),"GetInstruction");
         return 0;
     }
   if((name[0]=(char *)CALLOC(1,sizeof(char)*(nlgh+1)))==NULL)
     {
-      error_scilab(999,"%s : No more memory available.","GetInstruction");
+      error_scilab(999,_("%s : No more memory available."),"GetInstruction");
       return 0;
     }
   (name[0])[nlgh]='\0';
@@ -549,17 +550,17 @@ static int GetInstruction(int *data,int *index2,int *nblines,int *addinstr)
     CreateCsteTList("code23",data,index2);
     break;
   case 24: /* Create an object with type 0 */
-    error_scilab(999,"%s : No more memory available.","GetInstruction",data[*index2]);
+    error_scilab(999,_("%s : No more memory available."),"GetInstruction",data[*index2]);
     break;
   case 25: /* Compute profiling data */
  /* This code is ignored */
     *index2 += 2;
     break;
   case 26: /* Vector of strings */
-    error_scilab(999,"%s : No more memory available.","GetInstruction",data[*index2]);
+    error_scilab(999,_("%s : No more memory available."),"GetInstruction",data[*index2]);
     break;
   case 27: /* varfunptr */
-    error_scilab(999,"%s : No more memory available.","GetInstruction",data[*index2]);
+    error_scilab(999,_("%s : No more memory available."),"GetInstruction",data[*index2]);
     break;
   case 28: /* continue */
     CreateFuncallTList("datacode",data,index2);
@@ -590,7 +591,7 @@ static int GetInstruction(int *data,int *index2,int *nblines,int *addinstr)
       }
     else
       {
-       error_scilab(999,"GetInstruction: unknown code %d at index2 %d.",data[*index2],*index2 );
+       error_scilab(999,_("GetInstruction: unknown code %d at index2 %d."),data[*index2],*index2 );
        return 0;
       }
     break;
@@ -679,12 +680,12 @@ static int GetControlInstruction(int *data,int *index2,int *nblines)
       /* Memory allocation */
       if((name=CALLOC(1,sizeof(char)))==NULL)
        {
-         error_scilab(999,"%s : No more memory available.","GetControlInstruction");
+         error_scilab(999,_("%s : No more memory available."),"GetControlInstruction");
          return 0;
        }
       if((name[0]=(char *)CALLOC(1,sizeof(char)*(nlgh+1)))==NULL)
        {
-         error_scilab(999,"%s : No more memory available.","GetControlInstruction");
+         error_scilab(999,_("%s : No more memory available."),"GetControlInstruction");
          return 0;
        }
       (name[0])[nlgh]='\0';
@@ -779,7 +780,7 @@ static int GetControlInstruction(int *data,int *index2,int *nblines)
        {
          /* This part will not be written */
          /* No more used */
-         error_scilab(999,"GetControlInstruction: old version of if and while not yet implemented.");
+         error_scilab(999,_("GetControlInstruction: old version of if and while not yet implemented."));
          return 0;
        }
       else
@@ -988,17 +989,17 @@ static int CreateCsteTList(char *type,int *data,int *index2)
       /* Memory allocation */
       if((str=CALLOC(1,sizeof(char)))==NULL)
        {
-         error_scilab(999,"%s : No more memory available.","CreateCsteTList");
+         error_scilab(999,_("%s : No more memory available."),"CreateCsteTList");
          return 0;
        }
       if((str[0]=(char *)CALLOC(1,sizeof(char)*(strlgth+1)))==NULL)
        {
-         error_scilab(999,"%s : No more memory available.","CreateCsteTList");
+         error_scilab(999,_("%s : No more memory available."),"CreateCsteTList");
          return 0;
        }
       if((int_str=(int *)CALLOC(1,sizeof(int)*(strlgth+1)))==NULL)
        {
-         error_scilab(999,"%s : No more memory available.","CreateCsteTList");
+         error_scilab(999,_("%s : No more memory available."),"CreateCsteTList");
          return 0;
        }
       /* Fill int_str */
@@ -1026,12 +1027,12 @@ static int CreateCsteTList(char *type,int *data,int *index2)
       /* Memory allocation */
       if((str=CALLOC(1,sizeof(char)))==NULL)
        {
-         error_scilab(999,"%s : No more memory available.","CreateCsteTList");
+         error_scilab(999,_("%s : No more memory available."),"CreateCsteTList");
          return 0;
        }
       if((str[0]=(char *)CALLOC(1,sizeof(char)*(strlgth+1)))==NULL)
        {
-         error_scilab(999,"%s : No more memory available.","CreateCsteTList");
+         error_scilab(999,_("%s : No more memory available."),"CreateCsteTList");
          return 0;
        }
 
@@ -1054,7 +1055,7 @@ static int CreateCsteTList(char *type,int *data,int *index2)
       /* Memory allocation */
       if((value=(double *)CALLOC(1,sizeof(double)))==NULL)
        {
-         error_scilab(999,"%s : No more memory available.","CreateCsteTList");
+         error_scilab(999,_("%s : No more memory available."),"CreateCsteTList");
          return 0;
        }
       ivalue = (int*) value;
@@ -1087,7 +1088,7 @@ static int CreateCsteTList(char *type,int *data,int *index2)
     }
   else /* Should never happen */
     {
-         error_scilab(999,"CreateCsteTList: wrong type value.",type);
+         error_scilab(999,_("CreateCsteTList: wrong type value."),type);
       return 0;
     }
   
@@ -1132,12 +1133,12 @@ static int CreateOperationTList(int *data,int *index2)
   /* Memory allocation */
   if((operator=CALLOC(1,sizeof(char)))==NULL)
     {
-         error_scilab(999,"%s : No more memory available.","CreateOperationTList");
+         error_scilab(999,_("%s : No more memory available."),"CreateOperationTList");
       return 0;
     }
   if((operator[0]=(char *)CALLOC(1,sizeof(char)*max_op_lgth+1))==NULL)
     {
-      error_scilab(999,"%s : No more memory available.","CreateOperationTList");
+      error_scilab(999,_("%s : No more memory available."),"CreateOperationTList");
       return 0;
     }
   (operator[0])[max_op_lgth] = '\0';
@@ -1163,7 +1164,7 @@ static int CreateOperationTList(int *data,int *index2)
        }
     }
   if(operator_index2<0) {
-         error_scilab(999,"CreateOperationTList: unknown operator %d.",operator_num);
+         error_scilab(999,_("CreateOperationTList: unknown operator %d."),operator_num);
     return 0;
   }
 
@@ -1264,12 +1265,12 @@ static int CreateFuncallTList(char *fromwhat,int *data,int *index2)
   /* Memory allocation */
   if((funname=CALLOC(1,sizeof(char)))==NULL)
     {
-         error_scilab(999,"%s : No more memory available.","CreateFuncallTList");
+         error_scilab(999,_("%s : No more memory available."),"CreateFuncallTList");
       return 0;
     }
   if((funname[0]=(char *)CALLOC(1,sizeof(char)*(nlgh+1)))==NULL)
     {
-         error_scilab(999,"%s : No more memory available.","CreateFuncallTList");
+         error_scilab(999,_("%s : No more memory available."),"CreateFuncallTList");
       return 0;
     }
   (funname[0])[nlgh]='\0';
@@ -1341,7 +1342,7 @@ static int CreateFuncallTList(char *fromwhat,int *data,int *index2)
     }
   else /* Should never happen */
     {
-         error_scilab(999,"CreateEqualTList: wrong fromwhat value %s",fromwhat);
+         error_scilab(999,_("CreateEqualTList: wrong fromwhat value %s"),fromwhat);
       return 0;
     }
 
@@ -1430,24 +1431,24 @@ static int CreateEqualTList(char *fromwhat,int *data,int *index2)
   /* Memory allocation */
   if((name=CALLOC(1,sizeof(char)))==NULL)
     {
-         error_scilab(999,"%s : No more memory available.","CreateEqualTList");
+         error_scilab(999,_("%s : No more memory available."),"CreateEqualTList");
       return 0;
     }
   if((name[0]=(char *)CALLOC(1,sizeof(char)*(nlgh+1)))==NULL)
     {
-         error_scilab(999,"%s : No more memory available.","CreateEqualTList");
+         error_scilab(999,_("%s : No more memory available."),"CreateEqualTList");
       return 0;
     }
   (name[0])[nlgh] = '\0';
 
   if((operator=CALLOC(1,sizeof(char)))==NULL)
     {
-      error_scilab(999,"%s : No more memory available.","CreateEqualTList");
+      error_scilab(999,_("%s : No more memory available."),"CreateEqualTList");
       return 0;
     }
   if((operator[0]=(char *)CALLOC(1,sizeof(char)*4))==NULL)
     {
-      error_scilab(999,"%s : No more memory available.","CreateEqualTList");
+      error_scilab(999,_("%s : No more memory available."),"CreateEqualTList");
       return 0;
     }
   strcpy(operator[0],"ins");
@@ -1476,12 +1477,12 @@ static int CreateEqualTList(char *fromwhat,int *data,int *index2)
        {
          if((endsymbol=CALLOC(1,sizeof(char)))==NULL)
            {
-             error_scilab(999,"%s : No more memory available.","CreateEqualTList");
+             error_scilab(999,_("%s : No more memory available."),"CreateEqualTList");
              return 0;
            }
          if((endsymbol[0]=(char *)CALLOC(1,sizeof(char)*2))==NULL)
            {
-             error_scilab(999,"%s : No more memory available.","CreateEqualTList");
+             error_scilab(999,_("%s : No more memory available."),"CreateEqualTList");
              return 0;
            }
          strcpy(endsymbol[0],";");
@@ -1491,12 +1492,12 @@ static int CreateEqualTList(char *fromwhat,int *data,int *index2)
        {
          if((endsymbol=CALLOC(1,sizeof(char)))==NULL)
            {
-             error_scilab(999,"%s : No more memory available.","CreateEqualTList");
+             error_scilab(999,_("%s : No more memory available."),"CreateEqualTList");
              return 0;
            }
          if((endsymbol[0]=(char *)CALLOC(1,sizeof(char)*2))==NULL)
            {
-             error_scilab(999,"%s : No more memory available.","CreateEqualTList");
+             error_scilab(999,_("%s : No more memory available."),"CreateEqualTList");
              return 0;
            }
          strcpy(endsymbol[0],",");
@@ -1506,12 +1507,12 @@ static int CreateEqualTList(char *fromwhat,int *data,int *index2)
        {
          if((endsymbol=CALLOC(1,sizeof(char)))==NULL)
            {
-             error_scilab(999,"%s : No more memory available.","CreateEqualTList");
+             error_scilab(999,_("%s : No more memory available."),"CreateEqualTList");
              return 0;
            }
          if((endsymbol[0]=(char *)CALLOC(1,sizeof(char)*1))==NULL)
            {
-             error_scilab(999,"%s : No more memory available.","CreateEqualTList");
+             error_scilab(999,_("%s : No more memory available."),"CreateEqualTList");
              return 0;
            }
          (endsymbol[0])[0] = '\0';
@@ -1605,12 +1606,12 @@ static int CreateEqualTList(char *fromwhat,int *data,int *index2)
       /* Symbol */
       if((endsymbol=CALLOC(1,sizeof(char)))==NULL)
        {
-         error_scilab(999,"%s : No more memory available.","CreateEqualTList");
+         error_scilab(999,_("%s : No more memory available."),"CreateEqualTList");
          return 0;
        }
       if((endsymbol[0]=(char *)CALLOC(1,sizeof(char)*1))==NULL)
        {
-         error_scilab(999,"%s : No more memory available.","CreateEqualTList");
+         error_scilab(999,_("%s : No more memory available."),"CreateEqualTList");
          return 0;
        }
       (endsymbol[0])[0] = '\0';
@@ -1648,12 +1649,12 @@ static int CreateEqualTList(char *fromwhat,int *data,int *index2)
       /* Symbol */
       if((endsymbol=CALLOC(1,sizeof(char)))==NULL)
        {
-         error_scilab(999,"%s : No more memory available.","CreateEqualTList");
+         error_scilab(999,_("%s : No more memory available."),"CreateEqualTList");
          return 0;
        }
       if((endsymbol[0]=(char *)CALLOC(1,sizeof(char)*1))==NULL)
        {
-         error_scilab(999,"%s : No more memory available.","CreateEqualTList");
+         error_scilab(999,_("%s : No more memory available."),"CreateEqualTList");
          return 0;
        }
       (endsymbol[0])[0] = '\0';
@@ -1681,12 +1682,12 @@ static int CreateEqualTList(char *fromwhat,int *data,int *index2)
       /* Symbol */
       if((endsymbol=CALLOC(1,sizeof(char)))==NULL)
        {
-         error_scilab(999,"%s : No more memory available.","CreateEqualTList");
+         error_scilab(999,_("%s : No more memory available."),"CreateEqualTList");
          return 0;
        }
       if((endsymbol[0]=(char *)CALLOC(1,sizeof(char)*1))==NULL)
        {
-         error_scilab(999,"%s : No more memory available.","CreateEqualTList");
+         error_scilab(999,_("%s : No more memory available."),"CreateEqualTList");
          return 0;
        }
       (endsymbol[0])[0] = '\0';
@@ -1702,7 +1703,7 @@ static int CreateEqualTList(char *fromwhat,int *data,int *index2)
     }
   else /* Should not happen */
     {
-         error_scilab(999,"CreateEqualTList: wrong fromwhat value %s",fromwhat);
+         error_scilab(999,_("CreateEqualTList: wrong fromwhat value %s"),fromwhat);
       return 0;
     }
 
@@ -1748,7 +1749,7 @@ static int CreateCommentTList(int *data,int *index2)
   /* Memory allocation */
   if((text=(char *)CALLOC(1,sizeof(char)*(strlgth+1)))==NULL)
     {
-      error_scilab(999,"%s : No more memory available.","CreateCsteTList");
+      error_scilab(999,_("%s : No more memory available."),"CreateCsteTList");
       return 0;
     }
   CvStr(&strlgth,&(data[*index2]),text,&job1,strlgth);
@@ -1986,7 +1987,7 @@ int complexity(int *data,int *index2,int *lgth)
            }
          else
            {
-             message_scilab("complexity: wrong code %d.",data[cur_ind]);
+             message_scilab(_("complexity: wrong code %d."),data[cur_ind]);
              return -1;
            }
          break;
index 94f06ba..b759c33 100644 (file)
 
 static void Underscores __PARAMS((int isfor,char *ename,char *ename1));
 static int SearchFandS  __PARAMS( ( char *,int ));
+static void ShowDynLinks(void);
 int LinkStatus __PARAMS((void)) ;
 int C2F(scilinknorhs)(void);
-void C2F(iislink)(char *buf, integer *irep);
-void ulinkall(void);
-void C2F(iscilink)(int *descla, int *ptrdescla, int *nvla, int *desc, int *ptrdesc, int *nv, char *strf, int *ilib, int *iflag, int *rhs);
+
+
 /*********************************************
  * Structure to keep the entry points 
  *********************************************/
@@ -51,11 +51,9 @@ typedef struct {
   int      Nshared;           /* number of the shared file */
 } Epoints;
 
-#define TMPL 256
-
 typedef struct {
   int ok;
-  char tmp_file[TMPL];
+  char tmp_file[PATH_MAX];
   unsigned long  shl;
 } Hd;
 
@@ -83,7 +81,7 @@ int C2F(scilinknorhs)()
                        char *EntryName=(char *)MALLOC(strlen(EP[i].name)*sizeof(char));
                        if ( hd[i].ok == OK) 
                        {
-                               sprintf(EntryName,"%s",EP[i].name);
+                               strcpy(EntryName,EP[i].name);
                                ReturnArrayString[j]=EntryName;
                                j++;
                        }
@@ -179,7 +177,7 @@ void C2F(iscilink)(int *descla, int *ptrdescla, int *nvla, int *desc, int *ptrde
     }
   if (*ilib >= 0) 
   {
-         if (getWarningMode()) message_scilab("Link done.");
+         if (getWarningMode()) message_scilab(_("Link done."));
   }
 }
 
@@ -218,14 +216,14 @@ void SciLink(iflag,rhs,ilib,files,en_names,strf)
      int iflag,*ilib,*rhs;
      char *files[],*en_names[],*strf;
 {
-  if (