Localization add primitives : gettext , addtext ,removetext
Allan Cornet [Thu, 1 Mar 2007 13:09:40 +0000 (13:09 +0000)]
split xml (localization) errors,messages,menus (empty)

split sciquit --> Terminate<Module_name>

345 files changed:
scilab/modules/arnoldi/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/arnoldi/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/arnoldi/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/arnoldi/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/arnoldi/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/arnoldi/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/boolean/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/boolean/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/boolean/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/boolean/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/boolean/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/boolean/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/cacsd/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/cacsd/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/cacsd/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/cacsd/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/cacsd/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/cacsd/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/core/Makefile.am
scilab/modules/core/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/core/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/core/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/core/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/core/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/core/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/core/src/c/TerminateCore.c [new file with mode: 0644]
scilab/modules/core/src/c/TerminateCore.h [new file with mode: 0644]
scilab/modules/core/src/c/core.vcproj
scilab/modules/core/src/c/sciquit.c
scilab/modules/data_structures/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/data_structures/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/data_structures/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/data_structures/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/data_structures/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/data_structures/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/development_tools/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/development_tools/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/development_tools/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/development_tools/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/development_tools/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/development_tools/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/differential_equations/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/differential_equations/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/differential_equations/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/differential_equations/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/differential_equations/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/differential_equations/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/double/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/double/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/double/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/double/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/double/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/double/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/elementaries_functions/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/elementaries_functions/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/elementaries_functions/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/elementaries_functions/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/elementaries_functions/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/elementaries_functions/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/fftw/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/fftw/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/fftw/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/fftw/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/fftw/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/fftw/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/fileio/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/fileio/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/fileio/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/fileio/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/fileio/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/fileio/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/functions/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/functions/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/functions/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/functions/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/functions/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/functions/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/graphics/Makefile.am
scilab/modules/graphics/graphics.vcproj
scilab/modules/graphics/includes/TerminateGraphics.h [new file with mode: 0644]
scilab/modules/graphics/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/graphics/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/graphics/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/graphics/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/graphics/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/graphics/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/graphics/src/c/TerminateGraphics.c [new file with mode: 0644]
scilab/modules/gui/Makefile.am
scilab/modules/gui/includes/TerminateGui.h [new file with mode: 0644]
scilab/modules/gui/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/gui/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/gui/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/gui/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/gui/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/gui/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/gui/src/c/TerminateGui.c [new file with mode: 0644]
scilab/modules/gui/src/c/gui.vcproj
scilab/modules/helptools/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/helptools/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/helptools/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/helptools/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/helptools/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/helptools/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/incremental_link/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/incremental_link/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/incremental_link/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/incremental_link/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/incremental_link/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/incremental_link/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/integer/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/integer/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/integer/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/integer/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/integer/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/integer/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/interpolation/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/interpolation/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/interpolation/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/interpolation/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/interpolation/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/interpolation/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/intersci/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/intersci/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/intersci/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/intersci/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/intersci/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/intersci/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/io/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/io/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/io/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/io/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/io/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/io/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/javasci/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/javasci/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/javasci/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/javasci/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/javasci/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/javasci/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/jvm/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/jvm/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/jvm/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/jvm/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/jvm/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/jvm/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/linear_algebra/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/linear_algebra/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/linear_algebra/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/linear_algebra/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/linear_algebra/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/linear_algebra/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/localization/Makefile.am
scilab/modules/localization/includes/TerminateLocalization.h [new file with mode: 0644]
scilab/modules/localization/includes/gw_localization.h
scilab/modules/localization/includes/localization.h
scilab/modules/localization/includes/setgetlanguage.h
scilab/modules/localization/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/localization/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/localization/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/localization/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/localization/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/localization/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/localization/sci_gateway/gw_localization.c
scilab/modules/localization/sci_gateway/localization
scilab/modules/localization/sci_gateway/sci_addtext.c [new file with mode: 0644]
scilab/modules/localization/sci_gateway/sci_gettext.c [new file with mode: 0644]
scilab/modules/localization/sci_gateway/sci_removetext.c [new file with mode: 0644]
scilab/modules/localization/sci_gateway/sci_setlanguage.c
scilab/modules/localization/src/LibScilab_Import.def
scilab/modules/localization/src/c/InitializeLocalization.c
scilab/modules/localization/src/c/TerminateLocalization.c [new file with mode: 0644]
scilab/modules/localization/src/c/getentrieshashtable.c [new file with mode: 0644]
scilab/modules/localization/src/c/getentrieshashtable.h [new file with mode: 0644]
scilab/modules/localization/src/c/hashtable_localization.c
scilab/modules/localization/src/c/hashtable_localization.h
scilab/modules/localization/src/c/loadhashtableslocalization.c [new file with mode: 0644]
scilab/modules/localization/src/c/loadhashtableslocalization.h [new file with mode: 0644]
scilab/modules/localization/src/c/loadsavelanguage.c
scilab/modules/localization/src/c/localization.c
scilab/modules/localization/src/c/setgetlanguage.c
scilab/modules/localization/src/localization.vcproj
scilab/modules/localization/xml/errors-chinese.xml [deleted file]
scilab/modules/localization/xml/errors.xml [deleted file]
scilab/modules/localization/xml/localization.dtd [new file with mode: 0644]
scilab/modules/m2sci/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/m2sci/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/m2sci/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/m2sci/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/m2sci/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/m2sci/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/maple2scilab/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/maple2scilab/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/maple2scilab/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/maple2scilab/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/maple2scilab/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/maple2scilab/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/metanet/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/metanet/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/metanet/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/metanet/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/metanet/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/metanet/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/mexlib/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/mexlib/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/mexlib/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/mexlib/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/mexlib/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/mexlib/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/optimization/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/optimization/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/optimization/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/optimization/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/optimization/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/optimization/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/others/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/others/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/others/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/others/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/others/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/others/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/overloading/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/overloading/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/overloading/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/overloading/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/overloading/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/overloading/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/polynomials/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/polynomials/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/polynomials/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/polynomials/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/polynomials/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/polynomials/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/pvm/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/pvm/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/pvm/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/pvm/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/pvm/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/pvm/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/randlib/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/randlib/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/randlib/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/randlib/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/randlib/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/randlib/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/sci2c/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/sci2c/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/sci2c/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/sci2c/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/sci2c/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/sci2c/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/scicos/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/scicos/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/scicos/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/scicos/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/scicos/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/scicos/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/scilab2fortran/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/scilab2fortran/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/scilab2fortran/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/scilab2fortran/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/scilab2fortran/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/scilab2fortran/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/scipad/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/scipad/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/scipad/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/scipad/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/scipad/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/scipad/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/signal_processing/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/signal_processing/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/signal_processing/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/signal_processing/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/signal_processing/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/signal_processing/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/sound/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/sound/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/sound/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/sound/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/sound/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/sound/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/sparse/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/sparse/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/sparse/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/sparse/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/sparse/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/sparse/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/special_functions/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/special_functions/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/special_functions/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/special_functions/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/special_functions/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/special_functions/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/statistics/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/statistics/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/statistics/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/statistics/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/statistics/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/statistics/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/string/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/string/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/string/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/string/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/string/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/string/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/symbolic/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/symbolic/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/symbolic/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/symbolic/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/symbolic/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/symbolic/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/tclsci/Makefile.am
scilab/modules/tclsci/includes/TerminateTclTk.h [new file with mode: 0644]
scilab/modules/tclsci/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/tclsci/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/tclsci/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/tclsci/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/tclsci/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/tclsci/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/tclsci/src/c/TerminateTclTk.c [new file with mode: 0644]
scilab/modules/tclsci/src/notclsci/notclsci.c
scilab/modules/tclsci/tclsci.vcproj
scilab/modules/texmacs/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/texmacs/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/texmacs/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/texmacs/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/texmacs/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/texmacs/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/tfds/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/tfds/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/tfds/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/tfds/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/tfds/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/tfds/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/time/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/time/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/time/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/time/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/time/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/time/languages/fr_FR/messages.xml [new file with mode: 0644]
scilab/modules/wintools/languages/en_US/errors.xml [new file with mode: 0644]
scilab/modules/wintools/languages/en_US/menus.xml [new file with mode: 0644]
scilab/modules/wintools/languages/en_US/messages.xml [new file with mode: 0644]
scilab/modules/wintools/languages/fr_FR/errors.xml [new file with mode: 0644]
scilab/modules/wintools/languages/fr_FR/menus.xml [new file with mode: 0644]
scilab/modules/wintools/languages/fr_FR/messages.xml [new file with mode: 0644]

diff --git a/scilab/modules/arnoldi/languages/en_US/errors.xml b/scilab/modules/arnoldi/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/arnoldi/languages/en_US/menus.xml b/scilab/modules/arnoldi/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/arnoldi/languages/en_US/messages.xml b/scilab/modules/arnoldi/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/arnoldi/languages/fr_FR/errors.xml b/scilab/modules/arnoldi/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/arnoldi/languages/fr_FR/menus.xml b/scilab/modules/arnoldi/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/arnoldi/languages/fr_FR/messages.xml b/scilab/modules/arnoldi/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/boolean/languages/en_US/errors.xml b/scilab/modules/boolean/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/boolean/languages/en_US/menus.xml b/scilab/modules/boolean/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/boolean/languages/en_US/messages.xml b/scilab/modules/boolean/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/boolean/languages/fr_FR/errors.xml b/scilab/modules/boolean/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/boolean/languages/fr_FR/menus.xml b/scilab/modules/boolean/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/boolean/languages/fr_FR/messages.xml b/scilab/modules/boolean/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/cacsd/languages/en_US/errors.xml b/scilab/modules/cacsd/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/cacsd/languages/en_US/menus.xml b/scilab/modules/cacsd/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/cacsd/languages/en_US/messages.xml b/scilab/modules/cacsd/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/cacsd/languages/fr_FR/errors.xml b/scilab/modules/cacsd/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/cacsd/languages/fr_FR/menus.xml b/scilab/modules/cacsd/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/cacsd/languages/fr_FR/messages.xml b/scilab/modules/cacsd/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
index c782f75..29f5975 100644 (file)
@@ -70,6 +70,7 @@ src/c/scirun.c \
 src/c/SCIHOME.c \
 src/c/warningmode.c \
 src/c/InitializeCore.c \
+src/c/TerminateCore.c \
 src/c/coretable.c
 
 
diff --git a/scilab/modules/core/languages/en_US/errors.xml b/scilab/modules/core/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/core/languages/en_US/menus.xml b/scilab/modules/core/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/core/languages/en_US/messages.xml b/scilab/modules/core/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/core/languages/fr_FR/errors.xml b/scilab/modules/core/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/core/languages/fr_FR/menus.xml b/scilab/modules/core/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/core/languages/fr_FR/messages.xml b/scilab/modules/core/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/core/src/c/TerminateCore.c b/scilab/modules/core/src/c/TerminateCore.c
new file mode 100644 (file)
index 0000000..363ced3
--- /dev/null
@@ -0,0 +1,41 @@
+/*-----------------------------------------------------------------------------------*/\r
+/* INRIA 2007 */\r
+/* Allan CORNET */\r
+/*-----------------------------------------------------------------------------------*/ \r
+#include "TerminateCore.h"\r
+/*-----------------------------------------------------------------------------------*/ \r
+#include "realmain.h" /* Get_no_startup_flag */\r
+#include "inffic.h" /* get_sci_data_strings */\r
+#include "scirun.h" /* scirun */\r
+#include "getmodules.h"\r
+#include "scimem.h" /* freegmem */\r
+#include "tmpdir.h" /* tmpdirc */\r
+#include "hashtable_core.h" /* destroy_hashtable_scilab_functions */\r
+/*-----------------------------------------------------------------------------------*/ \r
+BOOL TerminateCorePart1(void)\r
+{\r
+       if ( Get_no_startup_flag() == 0) \r
+       {\r
+               char *quit_script =  get_sci_data_strings(5);\r
+               C2F(scirun)(quit_script,strlen(quit_script));\r
+       }\r
+       return TRUE;\r
+}\r
+/*-----------------------------------------------------------------------------------*/ \r
+BOOL TerminateCorePart2(void)\r
+{\r
+       #ifdef _MSC_VER /* Bug sous Linux lors de la liberation memoire */\r
+               C2F(freegmem)();\r
+               C2F(freemem)();\r
+       #endif\r
+\r
+       DisposeModulesInfo();\r
+\r
+       destroy_hashtable_scilab_functions();\r
+\r
+       /** clean tmpfiles **/\r
+       C2F(tmpdirc)();\r
+\r
+       return TRUE;\r
+}\r
+/*-----------------------------------------------------------------------------------*/ \r
diff --git a/scilab/modules/core/src/c/TerminateCore.h b/scilab/modules/core/src/c/TerminateCore.h
new file mode 100644 (file)
index 0000000..afbb59d
--- /dev/null
@@ -0,0 +1,13 @@
+/*-----------------------------------------------------------------------------------*/\r
+/* INRIA 2007 */\r
+/* Allan CORNET */\r
+/*-----------------------------------------------------------------------------------*/ \r
+#ifndef _TERMINATECORE_H__\r
+#define _TERMINATECORE_H__\r
+#include "machine.h"\r
+\r
+BOOL TerminateCorePart1(void);\r
+BOOL TerminateCorePart2(void);\r
+\r
+#endif /* _TERMINATECORE_H__ */\r
+/*-----------------------------------------------------------------------------------*/ \r
index 9a3d7e8..c0ed90a 100644 (file)
                                >
                        </File>
                        <File
+                               RelativePath=".\TerminateCore.c"
+                               >
+                       </File>
+                       <File
                                RelativePath=".\texmacs.c"
                                >
                        </File>
                                >
                        </File>
                        <File
+                               RelativePath=".\TerminateCore.h"
+                               >
+                       </File>
+                       <File
                                RelativePath="..\..\includes\version.h"
                                >
                        </File>
index 62955a2..118a59d 100644 (file)
        #include <sys/ieeefp.h>
        #endif
 #endif
-
-#ifdef _MSC_VER
-#include "wtext.h"
-#endif
-
-#include "xscion.h"
-#include "MALLOC.h"
 #include "sciquit.h"
-#include "getmodules.h"
-#include "scimem.h" /* freegmem */
-#include "fromjava.h" /* IsFromJava */
-#include "hashtable_core.h" /* destroy_hashtable_scilab_functions */
-#include "tmpdir.h" /* tmpdirc */
-#include "realmain.h" /* Get_no_startup_flag */
-#include "inffic.h" /* get_sci_data_strings */
-#include "scirun.h" /* scirun */
-
-#include "../../../graphics/includes/DestroyObjects.h"
-#include "../../../graphics/includes/graphicModuleLoad.h"
 /*-----------------------------------------------------------------------------------*/ 
-extern int C2F(deletewin)(integer *number);
-
-#ifdef _MSC_VER
-extern LPTW GetTextWinScilab(void);
-extern BOOL IsWindowInterface(void);
-extern void RestoreConsoleColors(void);
-extern int TerminateJVMs(void);
-extern int DisposeHashTableScilabErrors(void);
-extern int IsFromC(void);
-#endif
-
+#include "TerminateCore.h"
+#include "../../../graphics/includes/TerminateGraphics.h"
 #ifdef WITH_TK
-extern int CloseTCLsci(void);
+#include "../../../tclsci/includes/TerminateTclTk.h"
 #endif
+#include "../../../gui/includes/TerminateGui.h"
+#include "../../../localization/includes/TerminateLocalization.h"
 /*-----------------------------------------------------------------------------------*/ 
-static int CloseConsoleGUI(void);
-static int CloseConsoleGUI(void);
-
-int C2F(sciquit)(void);
-void sci_exit(int n);
+#ifdef _MSC_VER
+extern int TerminateJVMs(void);
+#endif
 /*-----------------------------------------------------------------------------------*/ 
-static int CloseConsoleGUI(void)
-{
-       #ifdef _MSC_VER
-       LPTW lptw=GetTextWinScilab();
-       TextClose (lptw);
-       TextMessage ();         /* process messages */
-       #else
-
-       #endif
-       return 0;
-}
-/*-----------------------------------------------------------------------------------*/
 int ExitScilab(void)
 {
-    if ( Get_no_startup_flag() == 0) 
-    {
-      char *quit_script =  get_sci_data_strings(5);
-      C2F(scirun)(quit_script,strlen(quit_script));
-    }
-
-    closeGraphicModule() ;
+       TerminateCorePart1();
 
+       TerminateGraphics();
 
-       #ifdef _MSC_VER
-               if ( IsWindowInterface() ) 
-               {
-                       CloseConsoleGUI();
-               }
-               else
-               {
-                       if ( !IsFromC() && !IsFromJava() )  RestoreConsoleColors();
-               }
-       #else
-        {
-          int i = 0 ;
-         C2F (xscion) (&i);
-         if (i != 0) CloseConsoleGUI();
-        }
-       #endif
-       
-       #ifdef _MSC_VER /* Bug sous Linux lors de la liberation memoire */
-               C2F(freegmem)();
-               C2F(freemem)();
-       #endif
-
+       TerminateGUI();
+  
        #ifdef WITH_TK
-               CloseTCLsci();
+       TerminateTclTk();
        #endif
 
        #ifdef _MSC_VER
-               TerminateJVMs();
+       TerminateJVMs();
        #endif
 
-       DisposeModulesInfo();
-
-       #ifdef _MSC_VER
-       DisposeHashTableScilabErrors();
-       #endif
-
-       destroy_hashtable_scilab_functions();
-
+       TerminateLocalization();
 
-       /** clean tmpfiles **/
-       C2F(tmpdirc)();
+       TerminateCorePart2();
 
        return 0;
 }
diff --git a/scilab/modules/data_structures/languages/en_US/errors.xml b/scilab/modules/data_structures/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/data_structures/languages/en_US/menus.xml b/scilab/modules/data_structures/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/data_structures/languages/en_US/messages.xml b/scilab/modules/data_structures/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/data_structures/languages/fr_FR/errors.xml b/scilab/modules/data_structures/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/data_structures/languages/fr_FR/menus.xml b/scilab/modules/data_structures/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/data_structures/languages/fr_FR/messages.xml b/scilab/modules/data_structures/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/development_tools/languages/en_US/errors.xml b/scilab/modules/development_tools/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/development_tools/languages/en_US/menus.xml b/scilab/modules/development_tools/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/development_tools/languages/en_US/messages.xml b/scilab/modules/development_tools/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/development_tools/languages/fr_FR/errors.xml b/scilab/modules/development_tools/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/development_tools/languages/fr_FR/menus.xml b/scilab/modules/development_tools/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/development_tools/languages/fr_FR/messages.xml b/scilab/modules/development_tools/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/differential_equations/languages/en_US/errors.xml b/scilab/modules/differential_equations/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/differential_equations/languages/en_US/menus.xml b/scilab/modules/differential_equations/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/differential_equations/languages/en_US/messages.xml b/scilab/modules/differential_equations/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/differential_equations/languages/fr_FR/errors.xml b/scilab/modules/differential_equations/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/differential_equations/languages/fr_FR/menus.xml b/scilab/modules/differential_equations/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/differential_equations/languages/fr_FR/messages.xml b/scilab/modules/differential_equations/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/double/languages/en_US/errors.xml b/scilab/modules/double/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/double/languages/en_US/menus.xml b/scilab/modules/double/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/double/languages/en_US/messages.xml b/scilab/modules/double/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/double/languages/fr_FR/errors.xml b/scilab/modules/double/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/double/languages/fr_FR/menus.xml b/scilab/modules/double/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/double/languages/fr_FR/messages.xml b/scilab/modules/double/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/elementaries_functions/languages/en_US/errors.xml b/scilab/modules/elementaries_functions/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/elementaries_functions/languages/en_US/menus.xml b/scilab/modules/elementaries_functions/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/elementaries_functions/languages/en_US/messages.xml b/scilab/modules/elementaries_functions/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/elementaries_functions/languages/fr_FR/errors.xml b/scilab/modules/elementaries_functions/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/elementaries_functions/languages/fr_FR/menus.xml b/scilab/modules/elementaries_functions/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/elementaries_functions/languages/fr_FR/messages.xml b/scilab/modules/elementaries_functions/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/fftw/languages/en_US/errors.xml b/scilab/modules/fftw/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/fftw/languages/en_US/menus.xml b/scilab/modules/fftw/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/fftw/languages/en_US/messages.xml b/scilab/modules/fftw/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/fftw/languages/fr_FR/errors.xml b/scilab/modules/fftw/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/fftw/languages/fr_FR/menus.xml b/scilab/modules/fftw/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/fftw/languages/fr_FR/messages.xml b/scilab/modules/fftw/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/fileio/languages/en_US/errors.xml b/scilab/modules/fileio/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/fileio/languages/en_US/menus.xml b/scilab/modules/fileio/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/fileio/languages/en_US/messages.xml b/scilab/modules/fileio/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/fileio/languages/fr_FR/errors.xml b/scilab/modules/fileio/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/fileio/languages/fr_FR/menus.xml b/scilab/modules/fileio/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/fileio/languages/fr_FR/messages.xml b/scilab/modules/fileio/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/functions/languages/en_US/errors.xml b/scilab/modules/functions/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/functions/languages/en_US/menus.xml b/scilab/modules/functions/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/functions/languages/en_US/messages.xml b/scilab/modules/functions/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/functions/languages/fr_FR/errors.xml b/scilab/modules/functions/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/functions/languages/fr_FR/menus.xml b/scilab/modules/functions/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/functions/languages/fr_FR/messages.xml b/scilab/modules/functions/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
index a08c5cd..5fa4d5f 100644 (file)
@@ -331,7 +331,8 @@ src/c/handleDrawing/drawRectangleEntity.c \
 src/c/handleDrawing/drawSegsEntity.c \
 src/c/handleDrawing/drawSubWinEntity.c \
 src/c/handleDrawing/drawSurfaceEntity.c \
-src/c/handleDrawing/drawTextEntity.c
+src/c/handleDrawing/drawTextEntity.c \
+src/c/TerminateGraphics.c
 
 
 GATEWAY_C_SOURCES = sci_gateway/sci_swap_handles.c \
index 40ab614..7a1c226 100644 (file)
                                >
                        </File>
                        <File
+                               RelativePath=".\src\c\TerminateGraphics.c"
+                               >
+                       </File>
+                       <File
                                RelativePath=".\src\c\Vect2Matrix.c"
                                >
                        </File>
                                >
                        </File>
                        <File
+                               RelativePath=".\includes\TerminateGraphics.h"
+                               >
+                       </File>
+                       <File
                                RelativePath=".\includes\Vect2Matrix.h"
                                >
                        </File>
diff --git a/scilab/modules/graphics/includes/TerminateGraphics.h b/scilab/modules/graphics/includes/TerminateGraphics.h
new file mode 100644 (file)
index 0000000..f27061e
--- /dev/null
@@ -0,0 +1,12 @@
+/*-----------------------------------------------------------------------------------*/\r
+/* INRIA 2007 */\r
+/* Allan CORNET */\r
+/*-----------------------------------------------------------------------------------*/ \r
+#ifndef _TERMINATEGRAPHICS_H__\r
+#define _TERMINATEGRAPHICS_H__\r
+#include "machine.h"\r
+\r
+BOOL TerminateGraphics(void);\r
+\r
+#endif /* _TERMINATEGRAPHICS_H__ */\r
+/*-----------------------------------------------------------------------------------*/ \r
diff --git a/scilab/modules/graphics/languages/en_US/errors.xml b/scilab/modules/graphics/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/graphics/languages/en_US/menus.xml b/scilab/modules/graphics/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/graphics/languages/en_US/messages.xml b/scilab/modules/graphics/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/graphics/languages/fr_FR/errors.xml b/scilab/modules/graphics/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/graphics/languages/fr_FR/menus.xml b/scilab/modules/graphics/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/graphics/languages/fr_FR/messages.xml b/scilab/modules/graphics/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/graphics/src/c/TerminateGraphics.c b/scilab/modules/graphics/src/c/TerminateGraphics.c
new file mode 100644 (file)
index 0000000..db92e7a
--- /dev/null
@@ -0,0 +1,14 @@
+/*-----------------------------------------------------------------------------------*/\r
+/* INRIA 2007 */\r
+/* Allan CORNET */\r
+/*-----------------------------------------------------------------------------------*/ \r
+#include "TerminateGraphics.h"\r
+/*-----------------------------------------------------------------------------------*/ \r
+#include "graphicModuleLoad.h"\r
+/*-----------------------------------------------------------------------------------*/ \r
+BOOL TerminateGraphics(void)\r
+{\r
+  closeGraphicModule() ;\r
+  return TRUE;\r
+}\r
+/*-----------------------------------------------------------------------------------*/ \r
index babf3e3..6730b96 100644 (file)
@@ -54,7 +54,8 @@ src/c/xmen_dialog.c \
 src/c/xmen_Utils.c \
 src/c/men_choice.c \
 src/c/men_print.c \
-src/c/guitable.c
+src/c/guitable.c \
+src/c/TerminateGui.c
 
 GATEWAY_C_SOURCES = sci_gateway/c/sci_x_choice.c \
 sci_gateway/c/sci_clc.c \
diff --git a/scilab/modules/gui/includes/TerminateGui.h b/scilab/modules/gui/includes/TerminateGui.h
new file mode 100644 (file)
index 0000000..4752a15
--- /dev/null
@@ -0,0 +1,12 @@
+/*-----------------------------------------------------------------------------------*/\r
+/* INRIA 2007 */\r
+/* Allan CORNET */\r
+/*-----------------------------------------------------------------------------------*/ \r
+#ifndef __TERMINATEGUI_H__\r
+#define __TERMINATEGUI_H__\r
+#include "machine.h"\r
+\r
+BOOL TerminateGUI(void);\r
+\r
+#endif /* _TERMINATEGUI_H__ */\r
+/*-----------------------------------------------------------------------------------*/ \r
diff --git a/scilab/modules/gui/languages/en_US/errors.xml b/scilab/modules/gui/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/gui/languages/en_US/menus.xml b/scilab/modules/gui/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/gui/languages/en_US/messages.xml b/scilab/modules/gui/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/gui/languages/fr_FR/errors.xml b/scilab/modules/gui/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/gui/languages/fr_FR/menus.xml b/scilab/modules/gui/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/gui/languages/fr_FR/messages.xml b/scilab/modules/gui/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/gui/src/c/TerminateGui.c b/scilab/modules/gui/src/c/TerminateGui.c
new file mode 100644 (file)
index 0000000..6abbb11
--- /dev/null
@@ -0,0 +1,52 @@
+/*-----------------------------------------------------------------------------------*/\r
+/* INRIA 2007 */\r
+/* Allan CORNET */\r
+/*-----------------------------------------------------------------------------------*/ \r
+#include "TerminateGui.h"\r
+/*-----------------------------------------------------------------------------------*/ \r
+#include "xscion.h"\r
+#include "fromjava.h" /* IsFromJava */\r
+/*-----------------------------------------------------------------------------------*/ \r
+static int CloseConsoleGUI(void);\r
+/*-----------------------------------------------------------------------------------*/ \r
+#ifdef _MSC_VER\r
+#include "wsci/wtext.h"\r
+extern LPTW GetTextWinScilab(void);\r
+extern BOOL IsWindowInterface(void);\r
+extern void RestoreConsoleColors(void);\r
+extern int IsFromC(void);\r
+#endif\r
+/*-----------------------------------------------------------------------------------*/ \r
+BOOL TerminateGUI(void)\r
+{\r
+#ifdef _MSC_VER\r
+       if ( IsWindowInterface() ) \r
+       {\r
+               CloseConsoleGUI();\r
+       }\r
+       else\r
+       {\r
+               if ( !IsFromC() && !IsFromJava() )  RestoreConsoleColors();\r
+       }\r
+#else\r
+       {\r
+               int i = 0 ;\r
+               C2F (xscion) (&i);\r
+               if (i != 0) CloseConsoleGUI();\r
+       }\r
+#endif\r
+       return TRUE;\r
+}\r
+/*-----------------------------------------------------------------------------------*/ \r
+static int CloseConsoleGUI(void)\r
+{\r
+#ifdef _MSC_VER\r
+       LPTW lptw=GetTextWinScilab();\r
+       TextClose (lptw);\r
+       TextMessage ();         /* process messages */\r
+#else\r
+\r
+#endif\r
+       return 0;\r
+}\r
+/*-----------------------------------------------------------------------------------*/ \r
index 234040b..2617089 100644 (file)
                                >
                        </File>
                        <File
+                               RelativePath=".\TerminateGui.c"
+                               >
+                       </File>
+                       <File
                                RelativePath=".\wmen_choice.c"
                                >
                        </File>
                                >
                        </File>
                        <File
+                               RelativePath="..\..\includes\TerminateGui.h"
+                               >
+                       </File>
+                       <File
                                RelativePath="..\..\includes\wmen_scilab.h"
                                >
                        </File>
diff --git a/scilab/modules/helptools/languages/en_US/errors.xml b/scilab/modules/helptools/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/helptools/languages/en_US/menus.xml b/scilab/modules/helptools/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/helptools/languages/en_US/messages.xml b/scilab/modules/helptools/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/helptools/languages/fr_FR/errors.xml b/scilab/modules/helptools/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/helptools/languages/fr_FR/menus.xml b/scilab/modules/helptools/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/helptools/languages/fr_FR/messages.xml b/scilab/modules/helptools/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/incremental_link/languages/en_US/errors.xml b/scilab/modules/incremental_link/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/incremental_link/languages/en_US/menus.xml b/scilab/modules/incremental_link/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/incremental_link/languages/en_US/messages.xml b/scilab/modules/incremental_link/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/incremental_link/languages/fr_FR/errors.xml b/scilab/modules/incremental_link/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/incremental_link/languages/fr_FR/menus.xml b/scilab/modules/incremental_link/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/incremental_link/languages/fr_FR/messages.xml b/scilab/modules/incremental_link/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/integer/languages/en_US/errors.xml b/scilab/modules/integer/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/integer/languages/en_US/menus.xml b/scilab/modules/integer/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/integer/languages/en_US/messages.xml b/scilab/modules/integer/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/integer/languages/fr_FR/errors.xml b/scilab/modules/integer/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/integer/languages/fr_FR/menus.xml b/scilab/modules/integer/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/integer/languages/fr_FR/messages.xml b/scilab/modules/integer/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/interpolation/languages/en_US/errors.xml b/scilab/modules/interpolation/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/interpolation/languages/en_US/menus.xml b/scilab/modules/interpolation/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/interpolation/languages/en_US/messages.xml b/scilab/modules/interpolation/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/interpolation/languages/fr_FR/errors.xml b/scilab/modules/interpolation/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/interpolation/languages/fr_FR/menus.xml b/scilab/modules/interpolation/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/interpolation/languages/fr_FR/messages.xml b/scilab/modules/interpolation/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/intersci/languages/en_US/errors.xml b/scilab/modules/intersci/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/intersci/languages/en_US/menus.xml b/scilab/modules/intersci/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/intersci/languages/en_US/messages.xml b/scilab/modules/intersci/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/intersci/languages/fr_FR/errors.xml b/scilab/modules/intersci/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/intersci/languages/fr_FR/menus.xml b/scilab/modules/intersci/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/intersci/languages/fr_FR/messages.xml b/scilab/modules/intersci/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/io/languages/en_US/errors.xml b/scilab/modules/io/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/io/languages/en_US/menus.xml b/scilab/modules/io/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/io/languages/en_US/messages.xml b/scilab/modules/io/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/io/languages/fr_FR/errors.xml b/scilab/modules/io/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/io/languages/fr_FR/menus.xml b/scilab/modules/io/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/io/languages/fr_FR/messages.xml b/scilab/modules/io/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/javasci/languages/en_US/errors.xml b/scilab/modules/javasci/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/javasci/languages/en_US/menus.xml b/scilab/modules/javasci/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/javasci/languages/en_US/messages.xml b/scilab/modules/javasci/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/javasci/languages/fr_FR/errors.xml b/scilab/modules/javasci/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/javasci/languages/fr_FR/menus.xml b/scilab/modules/javasci/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/javasci/languages/fr_FR/messages.xml b/scilab/modules/javasci/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/jvm/languages/en_US/errors.xml b/scilab/modules/jvm/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/jvm/languages/en_US/menus.xml b/scilab/modules/jvm/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/jvm/languages/en_US/messages.xml b/scilab/modules/jvm/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/jvm/languages/fr_FR/errors.xml b/scilab/modules/jvm/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/jvm/languages/fr_FR/menus.xml b/scilab/modules/jvm/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/jvm/languages/fr_FR/messages.xml b/scilab/modules/jvm/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/linear_algebra/languages/en_US/errors.xml b/scilab/modules/linear_algebra/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/linear_algebra/languages/en_US/menus.xml b/scilab/modules/linear_algebra/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/linear_algebra/languages/en_US/messages.xml b/scilab/modules/linear_algebra/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/linear_algebra/languages/fr_FR/errors.xml b/scilab/modules/linear_algebra/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/linear_algebra/languages/fr_FR/menus.xml b/scilab/modules/linear_algebra/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/linear_algebra/languages/fr_FR/messages.xml b/scilab/modules/linear_algebra/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
index 5691548..e7caec5 100644 (file)
@@ -7,13 +7,20 @@ LOCALIZATION_C_SOURCES = src/c/hashtable_localization.c \
 src/c/localization.c \
 src/c/setgetlanguage.c \
 src/c/InitializeLocalization.c \
-src/c/loadsavelanguage.c
+src/c/loadsavelanguage.c \
+src/c/getentrieshatable.c \
+src/c/loadhashtableslocalization.c \
+src/c/TerminateLocalization.c
 
 GATEWAY_C_SOURCES = sci_gateway/gw_localization.c \
 sci_gateway/sci_setlanguage.c \
 sci_gateway/sci_getlanguage.c \
 sci_gateway/sci_getlanguagealias.c \
-sci_gateway/sci_getlanguagestable.c
+sci_gateway/sci_getlanguagestable.c \
+sci_gateway/sci_addtext.c \
+sci_gateway/sci_removetext.c \
+sci_gateway/sci_gettext.c
+
 
 libscilocalization_la_CFLAGS=  -Iincludes/ -Isrc/c/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/libs/hashtable/ $(XML_FLAGS)
 
diff --git a/scilab/modules/localization/includes/TerminateLocalization.h b/scilab/modules/localization/includes/TerminateLocalization.h
new file mode 100644 (file)
index 0000000..dea43ef
--- /dev/null
@@ -0,0 +1,12 @@
+/*-----------------------------------------------------------------------------------*/\r
+/* INRIA 2007 */\r
+/* Allan CORNET */\r
+/*-----------------------------------------------------------------------------------*/ \r
+#ifndef __TERMINATELOCALIZATION_H__\r
+#define __TERMINATELOCALIZATION_H__\r
+#include "machine.h"\r
+\r
+BOOL TerminateLocalization(void);\r
+\r
+#endif /* __TERMINATELOCALIZATION_H__ */\r
+/*-----------------------------------------------------------------------------------*/ \r
index 2d256b9..d80bfdf 100644 (file)
@@ -21,6 +21,9 @@ int C2F(sci_setlanguage) _PARAMS((char *fname,unsigned long fname_len));
 int C2F(sci_getlanguage) _PARAMS((char *fname,unsigned long fname_len));
 int C2F(sci_getlanguagealias) _PARAMS((char *fname,unsigned long fname_len));
 int C2F(sci_getlanguagestable) _PARAMS((char *fname,unsigned long fname_len));
+int C2F(sci_gettext) _PARAMS((char *fname,unsigned long fname_len));
+int C2F(sci_addtext) _PARAMS((char *fname,unsigned long fname_len));
+int C2F(sci_removetext) _PARAMS((char *fname,unsigned long fname_len));
 
 int C2F(gw_localization)(void);
 
index b7baac6..ee5e09d 100644 (file)
@@ -1,13 +1,11 @@
 /*-----------------------------------------------------------------------------------*/ 
 /* INRIA 2006 */
 /* HUANG Xu */
+/* Allan CORNET */
 /*-----------------------------------------------------------------------------------*/ 
 #ifndef __LOCALIZATION_H__
 #define __LOCALIZATION_H__
 /*-----------------------------------------------------------------------------------*/ 
-#include "libxml/xmlreader.h"
-#include <string.h>
-#include <iconv.h>
 #include "hashtable_localization.h"
 /*-----------------------------------------------------------------------------------*/ 
 #ifdef _MSC_VER
        #define IMPORT_EXPORT_LOCALIZATION_DLL extern 
 #endif
 /*-----------------------------------------------------------------------------------*/ 
-/*load the xmlfile into the hashtable*/
-IMPORT_EXPORT_LOCALIZATION_DLL int AppendXmlFile(const char *filename, struct hashtable *table);
-/*return pointer on HashTable Scilab Errors*/
-IMPORT_EXPORT_LOCALIZATION_DLL struct hashtable *GetHashTableScilabErrors(void);
-IMPORT_EXPORT_LOCALIZATION_DLL int InitializeHashTableScilabErrors(char* SCIPATH);
-IMPORT_EXPORT_LOCALIZATION_DLL int DisposeHashTableScilabErrors(void);
 IMPORT_EXPORT_LOCALIZATION_DLL char *QueryStringError(char *Tag);
+IMPORT_EXPORT_LOCALIZATION_DLL char *QueryStringMessage(char *Tag);
+IMPORT_EXPORT_LOCALIZATION_DLL char *QueryStringMenu(char *Tag);
+/*-----------------------------------------------------------------------------------*/ 
+struct hashtable *GetHashTableScilabErrors(void);
+struct hashtable *GetHashTableScilabMessages(void);
+struct hashtable *GetHashTableScilabMenus(void);
+/*-----------------------------------------------------------------------------------*/ 
+BOOL InitializeHashTableScilabErrors(void);
+BOOL InitializeHashTableScilabMessages(void);
+BOOL InitializeHashTableScilabMenus(void);
+/*-----------------------------------------------------------------------------------*/ 
+int DisposeHashTableScilabErrors(void);
+int DisposeHashTableScilabMessages(void);
+int DisposeHashTableScilabMenus(void);
+/*-----------------------------------------------------------------------------------*/ 
+BOOL AppendHashTableLocalization(struct hashtable *Table,char *Tag,char* MsgStr);
 /*-----------------------------------------------------------------------------------*/ 
 #endif /* __LOCALIZATION_H__ */
 /*-----------------------------------------------------------------------------------*/ 
index b08e466..6071b81 100644 (file)
@@ -8,37 +8,67 @@
 #include "machine.h"
 
 /** TODO
+ * change language
  * @param lang
  */
-BOOL setlanguage(char *lang);
+BOOL setlanguage(char *lang,BOOL updateHelpIndex,BOOL updateMenus);
 
 
 /** TODO
+ * returns current language
  * @return
  */
 char *getlanguage(void);
 
 /** TODO
+ * returns current alias 
+ * example : en_US --> en
  * @return
  */
 char *getlanguagealias(void);
 
 /** TODO
+ * return internal code associated with a language
  * @return
  */
 int getcurrentlanguagecode(void);
 
 /** TODO
+ * returns language of code
  * @param code
  * @return
  */
 char *getlanguagefromcode(int code);
 
 /** TODO
+ * get code of a language
  * @param language
  * @return
  */
 int getcodefromlanguage(char *language);
 
+/** TODO
+* compare 2 languages same or not ?
+* @param language
+* @return
+*/
+int comparelanguages(char *language1,char *language2);
+
+/** TODO
+* test if we need to change language
+* @param language
+* @return
+*/
+BOOL needtochangelanguage(char *language);
+
+
+/** TODO
+* try to convert strlanguage (alias) to a good language string
+* @param language
+* @return
+*/
+char *convertlanguagealias(char *strlanguage);
+
+
 #endif /* __SETGETLANGUAGE_H__ */
 /*-----------------------------------------------------------------------------------*/ 
diff --git a/scilab/modules/localization/languages/en_US/errors.xml b/scilab/modules/localization/languages/en_US/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/localization/languages/en_US/menus.xml b/scilab/modules/localization/languages/en_US/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/localization/languages/en_US/messages.xml b/scilab/modules/localization/languages/en_US/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/localization/languages/fr_FR/errors.xml b/scilab/modules/localization/languages/fr_FR/errors.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/localization/languages/fr_FR/menus.xml b/scilab/modules/localization/languages/fr_FR/menus.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
diff --git a/scilab/modules/localization/languages/fr_FR/messages.xml b/scilab/modules/localization/languages/fr_FR/messages.xml
new file mode 100644 (file)
index 0000000..21c50a7
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!DOCTYPE LOCALIZATION SYSTEM "../../../localization/xml/localization.dtd">\r
+<LOCALIZATION>\r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+               \r
+<entry>\r
+       <tag></tag>\r
+       <string></string>\r
+</entry>       \r
+\r
+</LOCALIZATION>\r
index 52ad2ef..21e0dad 100644 (file)
@@ -1,9 +1,9 @@
-#include "gw_localization.h"
 /*-----------------------------------------------------------------------------------*/
 /* INRIA 2005 */
 /* Allan CORNET */
 /*-----------------------------------------------------------------------------------*/
-#ifdef _MSC_VER
+#include "gw_localization.h"
+#if _MSC_VER
 #include <Windows.h>
 #include "ExceptionMessage.h"
 #endif
@@ -14,13 +14,16 @@ static LocalizationTable Tab[]=
        {C2F(sci_setlanguage),"setlanguage"},
        {C2F(sci_getlanguage),"getlanguage"},
        {C2F(sci_getlanguagealias),"getlanguagealias"},
-       {C2F(sci_getlanguagestable),"getlanguagestable"}
+       {C2F(sci_getlanguagestable),"getlanguagestable"},
+       {C2F(sci_gettext),"gettext"},
+       {C2F(sci_addtext),"addtext"},
+       {C2F(sci_removetext),"removetext"}
 };
 /*-----------------------------------------------------------------------------------*/
 int C2F(gw_localization)()
 {  
        Rhs = Max(0, Rhs);
-#ifdef _MSC_VER
+#if _MSC_VER
 #ifndef _DEBUG
        _try
        {
index bd69678..3d2f852 100644 (file)
@@ -10,4 +10,7 @@
 50 2 getlanguage
 50 3 getlanguagealias
 50 4 getlanguagestable
+50 5 gettext
+50 6 addtext
+50 7 removetext
 ; --------------------------
diff --git a/scilab/modules/localization/sci_gateway/sci_addtext.c b/scilab/modules/localization/sci_gateway/sci_addtext.c
new file mode 100644 (file)
index 0000000..3cf7c97
--- /dev/null
@@ -0,0 +1,114 @@
+/*-----------------------------------------------------------------------------------*/\r
+/* INRIA 2007 */\r
+/* Allan CORNET */\r
+/*-----------------------------------------------------------------------------------*/\r
+#include "machine.h"\r
+#include "stack-c.h"\r
+#include "localization.h"\r
+#include "Scierror.h"\r
+#include "MALLOC.h"\r
+/*-----------------------------------------------------------------------------------*/\r
+static struct hashtable *GetLocalizationHashTable(char *param1);\r
+/*-----------------------------------------------------------------------------------*/\r
+int C2F(sci_addtext) _PARAMS((char *fname,unsigned long fname_len))\r
+{\r
+       static int l1,n1,m1;\r
+       static int l2,n2,m2;\r
+       static int l3,n3,m3;\r
+\r
+       CheckRhs(3,3);\r
+       CheckLhs(0,1);\r
+\r
+       if ( (GetType(1) == sci_strings) && (GetType(2) == sci_strings) && (GetType(3) == sci_strings) )\r
+       {\r
+               char *param1=NULL;\r
+               char **param2=NULL;\r
+               char **param3=NULL;\r
+\r
+               GetRhsVar(1,"c",&m1,&n1,&l1);\r
+               param1=cstk(l1);\r
+\r
+               if ((strcmp(param1,"errors")==0) || (strcmp(param1,"messages")==0) || (strcmp(param1,"menus")==0))\r
+               {\r
+                       struct hashtable *Table=NULL;\r
+\r
+                       Table=GetLocalizationHashTable(param1);\r
+\r
+                       if (Table)\r
+                       {\r
+                               GetRhsVar(2,"S",&m2,&n2,&param2);\r
+                               GetRhsVar(3,"S",&m3,&n3,&param3);\r
+                               if ( (m2==m3) && (n2==n3) )\r
+                               {\r
+                                       int i=0;\r
+\r
+                                       for (i=0;i<m2*n2;i++)\r
+                                       {\r
+                                               if (!AppendHashTableLocalization(Table,param2[i],param3[i]))\r
+                                               {\r
+                                                       n1=1;\r
+                                                       CreateVar(Rhs+1, "b", &n1,&n1,&l1);\r
+                                                       *istk(l1)=(int)(FALSE);\r
+                                                       LhsVar(1)=Rhs+1;\r
+                                                       C2F(putlhsvar)();\r
+                                                       return 0;\r
+\r
+                                               }\r
+                                       }\r
+\r
+                                       /* it is okay ;) */\r
+                                       n1=1;\r
+                                       CreateVar(Rhs+1, "b", &n1,&n1,&l1);\r
+                                       *istk(l1)=(int)(TRUE);\r
+                                       LhsVar(1)=Rhs+1;\r
+                                       C2F(putlhsvar)();\r
+                               }\r
+                               else\r
+                               {\r
+                                       Scierror(999,"parameter 2 and 3 must have the same dimensions. See help addtext.\n");\r
+                                       return 0;\r
+                               }\r
+                       }\r
+                       else\r
+                       {\r
+                               n1=1;\r
+                               CreateVar(Rhs+1, "b", &n1,&n1,&l1);\r
+                               *istk(l1)=(int)(FALSE);\r
+                               LhsVar(1)=Rhs+1;\r
+                               C2F(putlhsvar)();\r
+                       }\r
+               }\r
+               else\r
+               {\r
+                       Scierror(999,"invalid first parameter. See help addtext.\n");\r
+                       return 0;\r
+               }\r
+       }\r
+       else\r
+       {\r
+               Scierror(999,"invalid parameter(s).\n");\r
+               return 0;\r
+       }\r
+       return 0;\r
+}\r
+/*-----------------------------------------------------------------------------------*/\r
+static struct hashtable *GetLocalizationHashTable(char *param1)\r
+{\r
+       struct hashtable *Table=NULL;\r
+\r
+       if (strcmp(param1,"errors")==0)\r
+       {\r
+               Table=GetHashTableScilabErrors();       \r
+       }\r
+       else\r
+       if (strcmp(param1,"messages")==0)\r
+       {\r
+               Table=GetHashTableScilabMessages();     \r
+       }\r
+       else /* menus */\r
+       {\r
+               Table=GetHashTableScilabMenus();        \r
+       }\r
+       return Table;\r
+}\r
+/*-----------------------------------------------------------------------------------*/
\ No newline at end of file
diff --git a/scilab/modules/localization/sci_gateway/sci_gettext.c b/scilab/modules/localization/sci_gateway/sci_gettext.c
new file mode 100644 (file)
index 0000000..308ab82
--- /dev/null
@@ -0,0 +1,204 @@
+/*-----------------------------------------------------------------------------------*/\r
+/* INRIA 2007 */\r
+/* Allan CORNET */\r
+/*-----------------------------------------------------------------------------------*/\r
+#include "machine.h"\r
+#include "stack-c.h"\r
+#include "localization.h"\r
+#include "hashtable.h"\r
+#include "getentrieshashtable.h"\r
+/*-----------------------------------------------------------------------------------*/\r
+static int OneRhs_gettext(void);\r
+static int TwoRhs_gettext(void);\r
+static BOOL FreeElmsArray(char **ElemsArray,int nbrElems);\r
+/*-----------------------------------------------------------------------------------*/\r
+int C2F(sci_gettext) _PARAMS((char *fname,unsigned long fname_len))\r
+{\r
+       CheckRhs(1,2);\r
+       CheckLhs(1,2);\r
+\r
+       if (Rhs == 1)\r
+       {\r
+               OneRhs_gettext();\r
+       }\r
+       else /* Rhs == 2 */\r
+       {\r
+               TwoRhs_gettext();\r
+       }\r
+       return 0;\r
+}\r
+/*-----------------------------------------------------------------------------------*/\r
+static int TwoRhs_gettext(void)\r
+{\r
+       if ( (GetType(1) == sci_strings) && (GetType(2) == sci_strings) )\r
+       {\r
+               static int l1,n1,m1;\r
+\r
+               char *param1=NULL;\r
+               char *param2=NULL;\r
+\r
+               GetRhsVar(1,"c",&m1,&n1,&l1);\r
+               param1=cstk(l1);\r
+\r
+               GetRhsVar(2,"c",&m1,&n1,&l1);\r
+               param2=cstk(l1);\r
+\r
+               if ((strcmp(param1,"errors")==0) || (strcmp(param1,"messages")==0) || (strcmp(param1,"menus")==0))\r
+               {\r
+                       char *TranslatedString=NULL;\r
+\r
+                       if (strcmp(param1,"errors")==0)\r
+                       {\r
+                               TranslatedString=QueryStringError(param2);              \r
+                       }\r
+                       else\r
+                       if (strcmp(param1,"messages")==0)\r
+                       {\r
+                               TranslatedString=QueryStringMessage(param2);    \r
+                       }\r
+                       else /* menus */\r
+                       {\r
+                               TranslatedString=QueryStringMenu(param2);       \r
+                       }\r
+\r
+                       if (TranslatedString)\r
+                       {\r
+                               n1=1;\r
+                               CreateVarFromPtr( 1, "c",(m1=(int)strlen(TranslatedString), &m1),&n1,&TranslatedString);\r
+                               LhsVar(1) = 1;\r
+                               C2F(putlhsvar)();       \r
+                               if (TranslatedString) {FREE(TranslatedString);TranslatedString=NULL;}\r
+                       }\r
+                       else\r
+                       {\r
+                               m1=0;\r
+                               n1=0;\r
+                               l1=0;\r
+                               CreateVar(1,"d",  &m1, &n1, &l1);\r
+                               LhsVar(1)=1;\r
+                               C2F(putlhsvar)();\r
+                       }\r
+               }\r
+               else\r
+               {\r
+                       Scierror(999,"invalid first parameter. See help gettext.\n");\r
+                       return 0;\r
+               }\r
+       }\r
+       else\r
+       {\r
+               Scierror(999,"invalid parameter(s).\n");\r
+               return 0;\r
+       }\r
+       return 0;\r
+}\r
+/*-----------------------------------------------------------------------------------*/\r
+static int OneRhs_gettext(void)\r
+{\r
+       if (GetType(1) == sci_strings)\r
+       {\r
+               static int l1,n1,m1;\r
+               char *param1=NULL;\r
+\r
+               GetRhsVar(1,"c",&m1,&n1,&l1);\r
+               param1=cstk(l1);\r
+\r
+               if ((strcmp(param1,"errors")==0) || (strcmp(param1,"messages")==0) || (strcmp(param1,"menus")==0))\r
+               {\r
+                       struct hashtable *Table=NULL;\r
+\r
+                       if (strcmp(param1,"errors")==0)\r
+                       {\r
+                               Table=GetHashTableScilabErrors();       \r
+                       }\r
+                       else\r
+                       if (strcmp(param1,"messages")==0)\r
+                       {\r
+                               Table=GetHashTableScilabMessages();     \r
+                       }\r
+                       else /* menus */\r
+                       {\r
+                               Table=GetHashTableScilabMenus();        \r
+                       }\r
+\r
+                       if (Table)\r
+                       {\r
+                               int numberselemTAGS=0;\r
+                               int numberselemSTRINGS=0;\r
+                               char **Tags=NULL;\r
+                               char **Strings=NULL;\r
+                               int n=0;\r
+                               int m=0;\r
+\r
+                               Tags=getTAGSinhashtable(Table,&numberselemTAGS);\r
+                               Strings=getSTRINGSinhashtable(Table,&numberselemSTRINGS);\r
+\r
+                               if (numberselemSTRINGS != numberselemTAGS)\r
+                               {\r
+                                       Scierror(999,"Problem(s) with hashtable (1).\n");\r
+                                       return 0;\r
+                               }\r
+                               else\r
+                               {\r
+                                       m=numberselemTAGS;\r
+                                       n=1;\r
+\r
+                                       CreateVarFromPtr(Rhs+1, "S", &m, &n,Tags);\r
+                                       LhsVar(1) = Rhs+1;\r
+\r
+                                       m=numberselemSTRINGS;\r
+                                       n=1;\r
+\r
+                                       CreateVarFromPtr(Rhs+2, "S", &m, &n, Strings);\r
+                                       LhsVar(2) = Rhs+2;\r
+\r
+                                       C2F(putlhsvar)();\r
+\r
+                                       FreeElmsArray(Tags,numberselemTAGS);\r
+                                       FreeElmsArray(Strings,numberselemSTRINGS);\r
+                               }\r
+                       }\r
+                       else\r
+                       {\r
+                               Scierror(999,"Problem(s) with hashtable (2).\n");\r
+                               return 0;\r
+                       }\r
+               }\r
+               else\r
+               {\r
+                       Scierror(999,"invalid parameter. See help gettext.\n");\r
+                       return 0;\r
+               }\r
+       }\r
+       else\r
+       {\r
+               Scierror(999,"invalid first parameter. See help gettext.\n");\r
+               return 0;\r
+       }\r
+               \r
+       return 0;\r
+}\r
+/*-----------------------------------------------------------------------------------*/\r
+static BOOL FreeElmsArray(char **ElemsArray,int nbrElems)\r
+{\r
+       BOOL bOK=FALSE;\r
+\r
+       if (ElemsArray)\r
+       {\r
+               int i=0;\r
+               for (i=0;i<nbrElems;i++)\r
+               {\r
+                       if (ElemsArray[i])\r
+                       {\r
+                               FREE(ElemsArray[i]);\r
+                               ElemsArray[i]=NULL;\r
+                       }\r
+               }\r
+               FREE(ElemsArray);\r
+               ElemsArray=NULL;\r
+               bOK=TRUE;\r
+       }\r
+\r
+       return bOK;\r
+}\r
+/*-----------------------------------------------------------------------------------*/\r
diff --git a/scilab/modules/localization/sci_gateway/sci_removetext.c b/scilab/modules/localization/sci_gateway/sci_removetext.c
new file mode 100644 (file)
index 0000000..ef313cd
--- /dev/null
@@ -0,0 +1,78 @@
+/*-----------------------------------------------------------------------------------*/\r
+/* INRIA 2007 */\r
+/* Allan CORNET */\r
+/*-----------------------------------------------------------------------------------*/\r
+#include "machine.h"\r
+#include "stack-c.h"\r
+#include "localization.h"\r
+/*-----------------------------------------------------------------------------------*/\r
+int C2F(sci_removetext) _PARAMS((char *fname,unsigned long fname_len))\r
+{\r
+       static int l1,n1,m1;\r
+\r
+       CheckRhs(2,2);\r
+       CheckLhs(0,1);\r
+\r
+       if ( (GetType(1) == sci_strings) && (GetType(2) == sci_strings) )\r
+       {\r
+               char *param1=NULL;\r
+               char *param2=NULL;\r
+\r
+               GetRhsVar(1,"c",&m1,&n1,&l1);\r
+               param1=cstk(l1);\r
+\r
+               GetRhsVar(2,"c",&m1,&n1,&l1);\r
+               param2=cstk(l1);\r
+\r
+               if ((strcmp(param1,"errors")==0) || (strcmp(param1,"messages")==0) || (strcmp(param1,"menus")==0))\r
+               {\r
+                       BOOL bOK=FALSE;\r
+                       struct hashtable *Table=NULL;\r
+\r
+                       if (strcmp(param1,"errors")==0)\r
+                       {\r
+                               Table=GetHashTableScilabErrors();       \r
+                       }\r
+                       else\r
+                       if (strcmp(param1,"messages")==0)\r
+                       {\r
+                               Table=GetHashTableScilabMessages();     \r
+                       }\r
+                       else /* menus */\r
+                       {\r
+                               Table=GetHashTableScilabMenus();        \r
+                       }\r
+\r
+                       if (Table) bOK=RemoveHastable_string(Table,param2);\r
+\r
+                       n1=1;\r
+                       if (bOK)\r
+                       {\r
+                               CreateVar(Rhs+1, "b", &n1,&n1,&l1);\r
+                               *istk(l1)=(int)(TRUE);\r
+                       }\r
+                       else\r
+                       {\r
+                               CreateVar(Rhs+1, "b", &n1,&n1,&l1);\r
+                               *istk(l1)=(int)(FALSE);\r
+                       }\r
+\r
+                       LhsVar(1)=Rhs+1;\r
+                       C2F(putlhsvar)();\r
+\r
+               }\r
+               else\r
+               {\r
+                       Scierror(999,"invalid first parameter. See help gettext.\n");\r
+                       return 0;\r
+               }\r
+       }\r
+       else\r
+       {\r
+               Scierror(999,"invalid parameter(s).\n");\r
+               return 0;\r
+       }\r
+\r
+       return 0;\r
+}\r
+/*-----------------------------------------------------------------------------------*/
\ No newline at end of file
index eeee671..8edb05b 100644 (file)
@@ -8,8 +8,8 @@
 #include "Scierror.h"
 #include "sciprint.h"
 #include "warningmode.h"
-/*-----------------------------------------------------------------------------------*/ 
-extern int C2F(syncexec)(char *str, int *ns, int *ierr, int *seq, long int str_len);
+#include "MALLOC.h"
+#include "loadhashtableslocalization.h"
 /*-----------------------------------------------------------------------------------*/ 
 int C2F(sci_setlanguage) _PARAMS((char *fname,unsigned long fname_len))
 {
@@ -21,38 +21,49 @@ int C2F(sci_setlanguage) _PARAMS((char *fname,unsigned long fname_len))
        if (GetType(1) == sci_strings)
        {
                char *param=NULL;
+               char *newlanguage=NULL;
 
                GetRhsVar(1,"c",&m1,&n1,&l1);
                param=cstk(l1);
-               if (!setlanguage(param))
+
+               newlanguage=convertlanguagealias(param);
+
+               if (newlanguage)
                {
-                       if (getWarningMode())
+                       if (needtochangelanguage(newlanguage))
                        {
-                               sciprint("\nUnsupported language \"%s\".\n",param);
-                               sciprint("Choosing default language : \"%s\".\n\n",SCILABDEFAULTLANGUAGE);
+                               if (!setlanguage(newlanguage,TRUE,TRUE))
+                               {
+                                       CreateVar(Rhs+1, "b", &n1,&n1,&l1);
+                                       *istk(l1)=(int)(FALSE);
+                               }
+                               else
+                               {
+                                       CreateVar(Rhs+1, "b", &n1,&n1,&l1);
+                                       *istk(l1)=(int)(TRUE);
+                               }
+                       }
+                       else
+                       {
+                               /* do nothing */
+                               CreateVar(Rhs+1, "b", &n1,&n1,&l1);
+                               *istk(l1)=(int)(TRUE);
                        }
-                       
-                       CreateVar(Rhs+1, "b", &n1,&n1,&l1);
-                       *istk(l1)=(int)(FALSE);
                }
                else
                {
-                       /* Update Scilab help index */
-                       /* to move in helptools */
+                       if (getWarningMode())
                        {
-                               #define UPDATESCILABHELPMACRO "try update_scilab_help();catch end;" 
-                               integer ierr ;
-                               integer seq = 1 ;
-                               int macroCallLength = (int)strlen(UPDATESCILABHELPMACRO);
-
-                               C2F(syncexec)(UPDATESCILABHELPMACRO,&macroCallLength,&ierr,&seq, macroCallLength);
+                               sciprint("\nUnsupported language \"%s\".\n",param);
+                               sciprint("Choosing default language : \"%s\".\n\n",SCILABDEFAULTLANGUAGE);
                        }
 
                        CreateVar(Rhs+1, "b", &n1,&n1,&l1);
-                       *istk(l1)=(int)(TRUE);
+                       *istk(l1)=(int)(FALSE);
                }
                LhsVar(1)=Rhs+1;
                C2F(putlhsvar)();
+               if (newlanguage) {FREE(newlanguage);newlanguage=NULL;}
        }
        else
        {
index 79cd5fe..f9bd608 100644 (file)
@@ -22,5 +22,9 @@ EXPORTS
  getSCIHOME
  getWarningMode
  syncexec_
+ FileExist
+ getmodules
  
  
\ No newline at end of file
index 545976a..233f7fb 100644 (file)
@@ -5,6 +5,8 @@
 #include "InitializeLocalization.h"
 #include "localization.h"
 #include "loadsavelanguage.h"
+#include "loadhashtableslocalization.h"
+#include "tableslanguages.h"
 #include "setgetSCIpath.h"
 #include "MALLOC.h"
 /*-----------------------------------------------------------------------------------*/ 
@@ -12,14 +14,22 @@ BOOL InitializeLocalization(void)
 {
        BOOL bOK=FALSE;
 
-       char *SCIPATH=NULL;
-       SCIPATH=getSCIpath();
-       InitializeHashTableScilabErrors(SCIPATH);
-
-       loadlanguagepref();
-
-       if (SCIPATH) {FREE(SCIPATH);SCIPATH=NULL;}
+       if ( InitializeHashTableScilabErrors() && InitializeHashTableScilabMessages() && InitializeHashTableScilabMenus() )
+       {
+               LoadHashTablesLocalization(SCILABDEFAULTLANGUAGE);
+               loadlanguagepref();
+       }
+       else
+       {
+               #ifdef _MSC_VER
+               MessageBox(NULL,"Problem(s) in Localization module.\nScilab doesn't work.","Error", MB_ICONSTOP | MB_OK); 
+               #else
+               printf("\nError : Problem(s) in Localization module.\nScilab doesn't work.\n");
+               #endif
+               exit(1);
+       }
 
+       bOK=TRUE;
        return bOK;
 }
 /*-----------------------------------------------------------------------------------*/ 
diff --git a/scilab/modules/localization/src/c/TerminateLocalization.c b/scilab/modules/localization/src/c/TerminateLocalization.c
new file mode 100644 (file)
index 0000000..7441aff
--- /dev/null
@@ -0,0 +1,16 @@
+/*-----------------------------------------------------------------------------------*/\r
+/* INRIA 2007 */\r
+/* Allan CORNET */\r
+/*-----------------------------------------------------------------------------------*/ \r
+#include "TerminateLocalization.h"\r
+/*-----------------------------------------------------------------------------------*/ \r
+#include "localization.h"\r
+/*-----------------------------------------------------------------------------------*/ \r
+BOOL TerminateLocalization(void)\r
+{\r
+       DisposeHashTableScilabErrors();\r
+       DisposeHashTableScilabMessages();\r
+       DisposeHashTableScilabMenus();\r
+       return TRUE;\r
+}\r
+/*-----------------------------------------------------------------------------------*/ \r
diff --git a/scilab/modules/localization/src/c/getentrieshashtable.c b/scilab/modules/localization/src/c/getentrieshashtable.c
new file mode 100644 (file)
index 0000000..a83c744
--- /dev/null
@@ -0,0 +1,75 @@
+/*-----------------------------------------------------------------------------------*/\r
+/* INRIA 2007 */\r
+/* Allan CORNET */\r
+/*-----------------------------------------------------------------------------------*/\r
+#include "getentrieshashtable.h"\r
+#include "hashtable_private.h"\r
+#include "MALLOC.h"\r
+#include "hashtable_localization.h"\r
+/*-----------------------------------------------------------------------------------*/\r
+char **getTAGSinhashtable(struct hashtable *tableIN,int *numbersEntries)\r
+{\r
+       char **return_entries=NULL;\r
+       unsigned int i=0;\r
+       unsigned int j=0;\r
+       struct entry *e=NULL;\r
+       struct entry **table = tableIN->table;\r
+\r
+       *numbersEntries=tableIN->entrycount;\r
+       if (*numbersEntries>0)\r
+       {\r
+               return_entries=(char **)MALLOC(sizeof(char *)*tableIN->entrycount);\r
+               if (return_entries)\r
+               {\r
+                       j=0;\r
+                       for (i = 0; i < tableIN->tablelength; i++)\r
+                       {\r
+                               e = table[i];\r
+                               while (NULL != e)\r
+                               { \r
+                                       struct key_string *Key=NULL;\r
+                                       Key=e->k;\r
+                                       return_entries[j]=(char *)MALLOC(sizeof(char)*(strlen(Key->Key_String)+1));\r
+                                       if (return_entries[j]) strcpy(return_entries[j],Key->Key_String);\r
+                                       e = e->next;\r
+                                       j++;\r
+                               }\r
+                       }\r
+               }\r
+       }\r
+       return return_entries;\r
+}\r
+/*-----------------------------------------------------------------------------------*/\r
+char **getSTRINGSinhashtable(struct hashtable *tableIN,int *numbersEntries)\r
+{\r
+       char **return_entries=NULL;\r
+       unsigned int i=0;\r
+       unsigned int j=0;\r
+       struct entry *e=NULL;\r
+       struct entry **table = tableIN->table;\r
+\r
+       *numbersEntries=tableIN->entrycount;\r
+       if (*numbersEntries>0)\r
+       {\r
+               return_entries=(char **)MALLOC(sizeof(char *)*tableIN->entrycount);\r
+               if (return_entries)\r
+               {\r
+                       j=0;\r
+                       for (i = 0; i < tableIN->tablelength; i++)\r
+                       {\r
+                               e = table[i];\r
+                               while (NULL != e)\r
+                               { \r
+                                       struct value_string *Key=NULL;\r
+                                       Key=e->v;\r
+                                       return_entries[j]=(char *)MALLOC(sizeof(char)*(strlen(Key->Value_String)+1));\r
+                                       if (return_entries[j]) strcpy(return_entries[j],Key->Value_String);\r
+                                       e = e->next;\r
+                                       j++;\r
+                               }\r
+                       }\r
+               }\r
+       }\r
+       return return_entries;\r
+}\r
+/*-----------------------------------------------------------------------------------*/\r
diff --git a/scilab/modules/localization/src/c/getentrieshashtable.h b/scilab/modules/localization/src/c/getentrieshashtable.h
new file mode 100644 (file)
index 0000000..7f748fa
--- /dev/null
@@ -0,0 +1,15 @@
+/*-----------------------------------------------------------------------------------*/\r
+/* INRIA 2007 */\r
+/* Allan CORNET */\r
+/*-----------------------------------------------------------------------------------*/\r
+#ifndef __GETENTRIESHASHTABLE_H__\r
+#define __GETENTRIESHASHTABLE_H__\r
+\r
+#include "hashtable.h"\r
+\r
+/* get a array of strings from hastable tableIN */\r
+char **getTAGSinhashtable(struct hashtable *tableIN,int *numbersEntries);\r
+char **getSTRINGSinhashtable(struct hashtable *tableIN,int *numbersEntries);\r
+\r
+#endif\r
+/*-----------------------------------------------------------------------------------*/\r
index 41d3de2..a382edd 100644 (file)
@@ -16,10 +16,9 @@ static unsigned int hashfromkey_string(void *ky)
        int c;
                
        k =     (struct key_string *)ky;
-       str=k->Key_String;
+       str=(unsigned char*)k->Key_String;
 
-       while ((c = *str++))
-               hash = ((hash << 5) + hash) + c; /* hash * 33 + c */
+       while ((c = *str++)) hash = ((hash << 5) + hash) + c; /* hash * 33 + c */
 
        return hash;
 
@@ -76,3 +75,28 @@ int InsertHashtable_string(struct hashtable *hash_table,struct key_string *k, st
        return hashtable_insert(hash_table,k,v);
 }
 /*-----------------------------------------------------------------------------------*/ 
+BOOL RemoveHastable_string(struct hashtable *hash_table, const char* key)
+{
+       BOOL bOK=FALSE;
+       struct value_string *kElem=NULL;
+       struct key_string *k;
+
+       k=(struct key_string*)MALLOC(sizeof(struct key_string));
+       k->Key_String=MALLOC((strlen(key)+1)*sizeof(char));
+       strcpy(k->Key_String,key);
+
+       kElem=hashtable_remove(hash_table,k);
+       FREE(k);
+
+       if (kElem)
+       {
+               bOK=TRUE;
+               FREE(kElem);
+       }
+       else
+       {
+               bOK=FALSE;
+       }
+       return bOK;
+}
+/*-----------------------------------------------------------------------------------*/ 
index c0dbbe4..9e8de3e 100644 (file)
@@ -6,6 +6,7 @@
 #define __HASHTABLE_LOCALIZATION_H__
 /*-----------------------------------------------------------------------------------*/ 
 #include "hashtable.h"
+#include "machine.h" /* BOOL */
 #include "MALLOC.h"
 #include <stdlib.h>
 
@@ -32,6 +33,8 @@ char *SearchHashtable_string(struct hashtable *hash_table, const char* key);
 /* Insert a element in Hashtable */
 int InsertHashtable_string(struct hashtable *hash_table,struct key_string *k, struct value_string *v);
 
+/* Remove a element in Hastable */
+BOOL RemoveHastable_string(struct hashtable *hash_table, const char* key);
 /*-----------------------------------------------------------------------------------*/ 
 #endif /* __HASHTABLE_LOCALIZATION_H__ */
 /*-----------------------------------------------------------------------------------*/ 
diff --git a/scilab/modules/localization/src/c/loadhashtableslocalization.c b/scilab/modules/localization/src/c/loadhashtableslocalization.c
new file mode 100644 (file)
index 0000000..62f44bb
--- /dev/null
@@ -0,0 +1,262 @@
+/*-----------------------------------------------------------------------------------*/ \r
+/* INRIA 2007 */\r
+/* Allan CORNET */\r
+/*-----------------------------------------------------------------------------------*/ \r
+#include <iconv.h>\r
+#include <string.h> /* strcmp */\r
+#include "loadhashtableslocalization.h"\r
+#include "localization.h"\r
+#include "getmodules.h"\r
+#include "setgetSCIpath.h"\r
+#include "libxml/xmlreader.h"\r
+#include "../../fileio/includes/FileExist.h"\r
+/*-----------------------------------------------------------------------------------*/ \r
+#define FILEERRORS "errors"\r
+#define FILEMSGS "messages"\r
+#define FILEMENUS "menus"\r
+#define FILEFORMATPATH "%s/modules/%s/languages/%s/%s.xml"\r
+/*-----------------------------------------------------------------------------------*/ \r
+BOOL LoadHashTableLocalization(struct hashtable *table,char *filenamexml);\r
+static char *GetXmlFileEncoding(const char *filename);\r
+static unsigned char* ConvertEncoding(char *encodingFrom, char *encodingTo, char* inputStr);\r
+/*-----------------------------------------------------------------------------------*/ \r
+BOOL LoadHashTablesLocalization(char *language)\r
+{\r
+       BOOL bOK=FALSE;\r
+       char *SciPath=NULL;\r
+       int i=0;\r
+\r
+       struct hashtable *Table_Errors=NULL;\r
+       struct hashtable *Table_Messages=NULL;\r
+       struct hashtable *Table_Menus=NULL;\r
+\r
+       struct MODULESLIST *moduleslist=NULL;\r
+       moduleslist=getmodules();\r
+\r
+       Table_Errors=GetHashTableScilabErrors();        \r
+       Table_Messages=GetHashTableScilabMessages();    \r
+       Table_Menus=GetHashTableScilabMenus();  \r
+\r
+       SciPath=getSCIpath();\r
+       \r
+       for(i=0;i<moduleslist->numberofModules;i++)\r
+       {\r
+               char *full_filename_errors=NULL;\r
+               char *full_filename_messages=NULL;\r
+               char *full_filename_menus=NULL;\r
+\r
+               full_filename_errors=(char*)MALLOC(sizeof(char)*(strlen(SciPath)+strlen(FILEFORMATPATH)+strlen(moduleslist->ModuleList[i])+strlen(FILEERRORS)+strlen(language)+1));\r
+               full_filename_messages=(char*)MALLOC(sizeof(char)*(strlen(SciPath)+strlen(FILEFORMATPATH)+strlen(moduleslist->ModuleList[i])+strlen(FILEMSGS)+strlen(language)+1));\r
+               full_filename_menus=(char*)MALLOC(sizeof(char)*(strlen(SciPath)+strlen(FILEFORMATPATH)+strlen(moduleslist->ModuleList[i])+strlen(FILEMENUS)+strlen(language)+1));\r
+\r
+               sprintf(full_filename_errors,FILEFORMATPATH,SciPath,moduleslist->ModuleList[i],language,FILEERRORS);\r
+               sprintf(full_filename_messages,FILEFORMATPATH,SciPath,moduleslist->ModuleList[i],language,FILEMSGS);\r
+               sprintf(full_filename_menus,FILEFORMATPATH,SciPath,moduleslist->ModuleList[i],language,FILEMENUS);\r
+\r
+               if (FileExist(full_filename_errors)) LoadHashTableLocalization(Table_Errors,full_filename_errors);\r
+               if (FileExist(full_filename_messages)) LoadHashTableLocalization(Table_Messages,full_filename_messages);\r
+               if (FileExist(full_filename_menus)) LoadHashTableLocalization(Table_Menus,full_filename_menus);\r
+\r
+               if (full_filename_errors) {FREE(full_filename_errors);full_filename_errors=NULL;}\r
+               if (full_filename_messages) {FREE(full_filename_messages);full_filename_messages=NULL;}\r
+               if (full_filename_menus) {FREE(full_filename_menus);full_filename_menus=NULL;}\r
+               bOK=TRUE;\r
+       }\r
+\r
+       if (SciPath) {FREE(SciPath); SciPath=NULL;}\r
+\r
+       return bOK;\r
+}\r
+/*-----------------------------------------------------------------------------------*/ \r
+BOOL LoadHashTableLocalization(struct hashtable *table,char *filenamexml)\r
+{\r
+       BOOL bOK=FALSE;\r
+       BOOL bUTF_8_Mode=FALSE;\r
+\r
+       char *TAGVALUE=NULL;\r
+       char *STRINGVALUE=NULL;\r
+\r
+       xmlTextReaderPtr reader;\r
+       int ret=0;\r
+       char *encoding=GetXmlFileEncoding(filenamexml);\r
+\r
+       if((strcmp("utf-8", encoding)==0)||(strcmp("UTF-8", encoding)==0)) bUTF_8_Mode=TRUE;\r
+       else bUTF_8_Mode=FALSE;\r
+\r
+       reader = xmlReaderForFile(filenamexml, encoding, 0);\r
+\r
+       ret = xmlTextReaderRead (reader);\r
+\r
+       while (ret == 1)\r
+       {\r
+               const xmlChar *balise=NULL;\r
+               xmlReaderTypes type;\r
+\r
+               type = xmlTextReaderNodeType (reader);\r
+               if (type ==  XML_READER_TYPE_ELEMENT )\r
+               {\r
+                       balise = xmlTextReaderConstName (reader);\r
+\r
+                       if (xmlStrEqual (balise, (const xmlChar *)"tag"))\r
+                       {\r
+                               ret = xmlTextReaderRead (reader);\r
+                               type = xmlTextReaderNodeType (reader);\r
+                               if (type ==  XML_READER_TYPE_TEXT )\r
+                               {\r
+                                       const xmlChar *node_value;\r
+                                       if (bUTF_8_Mode)\r
+                                       {\r
+                                               node_value=(const xmlChar *)xmlTextReaderConstValue(reader);\r
+                                       }\r
+                                       else\r
+                                       {\r
+                                               node_value=ConvertEncoding("UTF-8",encoding,(char *)xmlTextReaderConstValue(reader));\r
+                                       }\r
+\r
+                                       TAGVALUE=(char*)node_value;\r
+                               }\r
+                       }\r
+\r
+                       if (xmlStrEqual (balise, (const xmlChar *)"string"))\r
+                       {\r
+                               ret = xmlTextReaderRead (reader);\r
+                               type = xmlTextReaderNodeType (reader);\r
+                               if (type ==  XML_READER_TYPE_TEXT )\r
+                               {\r
+                                       const xmlChar *node_value;\r
+                                       if (bUTF_8_Mode)\r
+                                       {\r
+                                               node_value=(const xmlChar *)xmlTextReaderConstValue(reader);\r
+                                       }\r
+                                       else\r
+                                       {\r
+                                               node_value=ConvertEncoding("UTF-8",encoding,(char *)xmlTextReaderConstValue(reader));\r
+                                       }\r
+\r
+                                       STRINGVALUE=(char*)node_value;\r
+                               }\r
+                       }\r
+               }\r
+\r
+               if ( (TAGVALUE) && (STRINGVALUE))\r
+               {\r
+                       /* remove case TAGVALUE=''  STRINGVALUE='' */\r
+                       if ( (strlen(TAGVALUE)>0) & (strlen(STRINGVALUE)>0) ) \r
+                       {\r
+                               AppendHashTableLocalization(table,TAGVALUE,STRINGVALUE);\r
+                       }\r
+                       if (bUTF_8_Mode)\r
+                       {\r
+                               TAGVALUE=NULL;\r
+                               STRINGVALUE=NULL;\r
+                       }\r
+                       else\r
+                       {\r
+                               FREE(TAGVALUE);\r
+                               FREE(STRINGVALUE);\r
+                               TAGVALUE=NULL;\r
+                               STRINGVALUE=NULL;\r
+                       }\r
+               }\r
+               \r
+               ret = xmlTextReaderRead (reader);\r
+       }\r
+\r
+       if (bUTF_8_Mode)\r
+       {\r
+               TAGVALUE=NULL;\r
+               STRINGVALUE=NULL;\r
+       }\r
+       else\r
+       {\r
+               FREE(TAGVALUE);\r
+               FREE(STRINGVALUE);\r
+               TAGVALUE=NULL;\r
+               STRINGVALUE=NULL;\r
+       }\r
+\r
+       xmlFreeTextReader(reader);\r
+       /*\r
+       * Cleanup function for the XML library.\r
+       */\r
+       xmlCleanupParser();\r
+\r
+       return bOK;\r
+}\r
+/*-----------------------------------------------------------------------------------*/ \r
+static char *GetXmlFileEncoding(const char *filename)\r
+{\r
+       FILE *stream;\r
+       char *encoding;\r
+       encoding=(char *)MALLOC(sizeof(char)*32);\r
+\r
+       if( (stream  = fopen(filename, "r" )) != NULL ) // C4996\r
+       {\r
+               char FirstLine[256];\r
+               if( fgets( FirstLine, 256, stream ) == NULL)\r
+               {\r
+                       printf( "fgets error\n" );\r
+                       return NULL;\r
+               }\r
+               else\r
+               {\r
+                       char *pEncodingStart;\r
+                       char *pQuotationStart;\r
+                       char *pQuotationEnd;\r
+                       char *pTemp;\r
+                       size_t length;\r
+\r
+                       pEncodingStart=strstr(FirstLine, "encoding");\r
+                       pQuotationStart=strchr(pEncodingStart,'"');\r
+                       pTemp=pQuotationStart+1;\r
+                       pQuotationEnd=strchr(pTemp,'"');\r
+                       length=pQuotationEnd-pTemp;\r
+                       strncpy(encoding, pTemp, length);\r
+                       strcpy(encoding+length,"\0");\r
+               }\r
+               fclose( stream );\r
+       }\r
+       else\r
+       {\r
+               printf( "ERROR:xmlfile %s was not opened or xmlfile %s doesn't exist\n", filename, filename);//what to add to exit the whole program???\r
+       }\r
+\r
+       if(encoding==NULL)\r
+       {\r
+               strcpy(encoding,"utf-8");\r
+       }\r
+       return encoding;\r
+\r
+}\r
+/*-----------------------------------------------------------------------------------*/ \r
+static unsigned char* ConvertEncoding(char *encodingFrom, char *encodingTo, char* inputStr)\r
+{\r
+       unsigned char *strBufOut=NULL;\r
+       unsigned char *outputStr=NULL;\r
+       size_t inputLen, outputLen, result;\r
+       iconv_t c_pt;\r
+\r
+       strBufOut=(unsigned char *)MALLOC(sizeof(unsigned char)*2048);\r
+\r
+       if ((c_pt = iconv_open(encodingTo, encodingFrom)) == (iconv_t)(-1))\r
+       {\r
+               printf("iconv_open failed!\n");\r
+               return NULL;\r
+       }\r
+\r
+       iconv(c_pt, NULL, NULL, NULL, NULL);\r
+\r
+       inputLen = strlen(inputStr) + 1;\r
+       outputLen = 2048;\r
+       outputStr = strBufOut;\r
+       result = iconv(c_pt, &inputStr, &inputLen,  (char**)(&outputStr), &outputLen);\r
+\r
+       if (result == -1)\r
+       {\r
+               return NULL;\r
+       }\r
+\r
+       iconv_close(c_pt);\r
+       return strBufOut;\r
+}\r
+/*-----------------------------------------------------------------------------------*/\r
diff --git a/scilab/modules/localization/src/c/loadhashtableslocalization.h b/scilab/modules/localization/src/c/loadhashtableslocalization.h
new file mode 100644 (file)
index 0000000..1ba4812
--- /dev/null
@@ -0,0 +1,11 @@
+/*-----------------------------------------------------------------------------------*/ \r
+/* INRIA 2007 */\r
+/* Allan CORNET */\r
+/*-----------------------------------------------------------------------------------*/ \r
+#include "machine.h"\r
+/*-----------------------------------------------------------------------------------*/ \r
+/**\r
+* load hash tables for localization\r
+*/\r
+BOOL LoadHashTablesLocalization(char *language);\r
+/*-----------------------------------------------------------------------------------*/ 
\ No newline at end of file
index 018c72b..7178ff1 100644 (file)
@@ -2,7 +2,7 @@
 /* INRIA 2007 */
 /* Allan CORNET */
 /*-----------------------------------------------------------------------------------*/ 
-#ifdef _MSC_VER
+#if _MSC_VER
 #include <Windows.h>
 #include "version.h"
 #endif 
@@ -13,6 +13,7 @@
 #include "setgetlanguage.h"
 #include "SCIHOME.h"
 #include "MALLOC.h"
+#include "iconv.h"
 /*-----------------------------------------------------------------------------------*/ 
 #define LINELENGTHMAX 1024
 #define TAGLANGUAGE "LANGUAGE"
@@ -111,7 +112,7 @@ static BOOL savelanguagepref_linux(void)
 #ifndef _MSC_VER
 static char *getfilenamelanguagepref(void)
 {
-#ifdef _MSC_VER
+#if _MSC_VER
 #define namelanguagepref "\\language.ini"
 #else
 #define namelanguagepref "/.language"
@@ -129,7 +130,7 @@ static char *getfilenamelanguagepref(void)
 }
 #endif
 /*-----------------------------------------------------------------------------------*/ 
-#ifdef _MSC_VER
+#if _MSC_VER
 static BOOL loadlanguagepref_windows(void)
 {
        BOOL bOK=FALSE;
@@ -154,7 +155,7 @@ static BOOL loadlanguagepref_windows(void)
 
                        if (LANGUAGE)
                        {
-                               setlanguage(LANGUAGE);
+                               setlanguage(LANGUAGE,FALSE,TRUE);
                                bOK=TRUE;
                                FREE(LANGUAGE);
                                LANGUAGE=NULL;
@@ -166,7 +167,7 @@ static BOOL loadlanguagepref_windows(void)
 }
 #endif
 /*-----------------------------------------------------------------------------------*/ 
-#ifdef _MSC_VER
+#if _MSC_VER
 static BOOL savelanguagepref_windows(void)
 {
        BOOL bOK=FALSE;
@@ -180,7 +181,6 @@ static BOOL savelanguagepref_windows(void)
        char Clef[LINELENGTHMAX];
        char *LANGUAGE=NULL;
        int LanguageCode=0;
-       LONG TstRegCreateKeyEx=0;
 
        LANGUAGE=getlanguage();
        LanguageCode=getcodefromlanguage(LANGUAGE);
index 131e949..fd40b6d 100644 (file)
 /* HUANG Xu */
 /* Allan CORNET */
 /*-----------------------------------------------------------------------------------*/ 
+#include <stdio.h>
 #include "localization.h"
 #include "MALLOC.h" /* MALLOC */
-
 /*-----------------------------------------------------------------------------------*/ 
-#define LENGTH_OUTPUT 1024
 static int count=0;//count the number of the #text and type==3 node 
-
 static char *Key_String=NULL;
 static char *Key_Value=NULL;
 
-static char strBufOut[LENGTH_OUTPUT];
-
 static struct hashtable *Table_Scilab_Errors=NULL;
+static struct hashtable *Table_Scilab_Messages=NULL;
+static struct hashtable *Table_Scilab_Menus=NULL;
 
 static char *ReplaceChars(char *s1, char *s2, char *s3);
-char* ConvertEncoding(char *encodingFrom, char *encodingTo, char* inputStr);
-void ProcessNode(xmlTextReaderPtr reader, struct hashtable *table, char *encoding);
-char *GetXmlFileEncoding(const char *filename);
-
+static char *QueryString(struct hashtable *Table,char *Tag);
 /*-----------------------------------------------------------------------------------*/ 
-char* ConvertEncoding(char *encodingFrom, char *encodingTo, char* inputStr)
+BOOL AppendHashTableLocalization(struct hashtable *Table,char *Tag,char* MsgStr)
 {
+       BOOL bOK=FALSE;
+       struct key_string *k=NULL;
+       struct value_string *v=NULL;
+       char *Key_Tag=NULL;
+       char *Key_Value=NULL;
 
-  char * outputStr;
-  size_t inputLen, outputLen, result;
+       k=(struct key_string*)MALLOC(sizeof(struct key_string));
+       v=(struct value_string*)MALLOC(sizeof(struct value_string));
 
-  iconv_t c_pt;
-  if ((c_pt = iconv_open(encodingTo, encodingFrom)) == (iconv_t)(-1))
-  {
-    printf("iconv_open failed!\n");
-    return NULL;
-  }
-  iconv(c_pt, NULL, NULL, NULL, NULL);
+       Key_Tag=(char*)MALLOC(sizeof(char)*(strlen(Tag)+1));
+       Key_Value=(char*)MALLOC(sizeof(char)*(strlen(MsgStr)+1));
 
-  inputLen = strlen(inputStr) + 1;
-  outputLen = LENGTH_OUTPUT;
-  outputStr = strBufOut;
-  result = iconv(c_pt, &inputStr, &inputLen, &outputStr, &outputLen);
-
-  if (result == -1)
-  {
-    return NULL;
-  }
-  
-  iconv_close(c_pt);
-  return strBufOut;
-}
-/*-----------------------------------------------------------------------------------*/ 
-void ProcessNode(xmlTextReaderPtr reader, struct hashtable *table, char *encoding) 
-{
-       if(xmlTextReaderNodeType(reader)==3)//to get all nodes whose type is 3(#text node)
+       if (k && v && Key_Tag && Key_Value)
        {
+               strcpy(Key_Tag,Tag);
+               strcpy(Key_Value,MsgStr);
 
-               
-               const char *node_value;
-               count++;
-               
-               if((strcmp("utf-8", encoding)==0)||(strcmp("UTF-8", encoding)==0))
-               {
-                       node_value=(const char *)xmlTextReaderConstValue(reader);
-               }
-               else
-               {
-                       node_value=ConvertEncoding("UTF-8",encoding,(char *)xmlTextReaderConstValue(reader));
-               }
-               
-               if((count%2)!=0)//odd, tag
-               {
-                       Key_String=(char *)MALLOC(strlen(node_value)+1);
-                       strcpy(Key_String,node_value);
-               }
-               else//even, string
-               {
-                       struct key_string *k;
-                       struct value_string *v;
-
-                       Key_Value=(char *)MALLOC(strlen(node_value)+1);
-                       strcpy(Key_Value,node_value);
+               k->Key_String=Key_Tag;
+               v->Value_String=Key_Value;
 
-                       k=(struct key_string*)MALLOC(sizeof(struct key_string));
-                       v=(struct value_string*)MALLOC(sizeof(struct value_string));
+               if (InsertHashtable_string(Table,k, v)) bOK=TRUE;
 
-                       k->Key_String=Key_String;
-                       v->Value_String=Key_Value;
-               
-                       InsertHashtable_string(table,k, v);
-               }
        }
+       return bOK;
+
 }
 /*-----------------------------------------------------------------------------------*/
-char *GetXmlFileEncoding(const char *filename)
+struct hashtable *GetHashTableScilabErrors(void)
 {
-       FILE *stream;
-       char *encoding;
-       encoding=(char *)MALLOC(sizeof(char)*32);
-       
-       if( (stream  = fopen(filename, "r" )) != NULL ) // C4996
-       {
-               char FirstLine[256];
-               if( fgets( FirstLine, 256, stream ) == NULL)
-               {
-               printf( "fgets error\n" );
-                       return NULL;
-               }
-           else
-               {
-                       char *pEncodingStart;
-                       char *pQuotationStart;
-                       char *pQuotationEnd;
-                       char *pTemp;
-                       size_t length;
-
-                       pEncodingStart=strstr(FirstLine, "encoding");
-                       pQuotationStart=strchr(pEncodingStart,'"');
-                       pTemp=pQuotationStart+1;
-                       pQuotationEnd=strchr(pTemp,'"');
-                       length=pQuotationEnd-pTemp;
-                       strncpy(encoding, pTemp, length);
-                       strcpy(encoding+length,"\0");
-               }
-               fclose( stream );
-       }
-       else
-       {
-               printf( "ERROR:xmlfile %s was not opened or xmlfile %s doesn't exist\n", filename, filename);//what to add to exit the whole program???
-       }
-
-       if(encoding==NULL)
-       {
-               strcpy(encoding,"utf-8");
-       }
-       return encoding;
-
+       return Table_Scilab_Errors;
 }
-/*-----------------------------------------------------------------------------------*/
-IMPORT_EXPORT_LOCALIZATION_DLL int AppendXmlFile(const char *filename, struct hashtable *table)
+/*-----------------------------------------------------------------------------------*/ 
+struct hashtable *GetHashTableScilabMessages(void)
 {
-       int bOK=0;
-    xmlTextReaderPtr reader;
-    int ret;
-       char *encoding=GetXmlFileEncoding(filename);
-
-       reader = xmlReaderForFile(filename, encoding, 0);
-
-    if (reader != NULL) 
-       {
-        ret = xmlTextReaderRead(reader);
-        while (ret == 1)
-               {
-            ProcessNode(reader, table, encoding);
-            ret = xmlTextReaderRead(reader);
-        }
+       return Table_Scilab_Messages;
+}
+/*-----------------------------------------------------------------------------------*/ 
+struct hashtable *GetHashTableScilabMenus(void)
+{
+       return Table_Scilab_Menus;
+}
+/*-----------------------------------------------------------------------------------*/ 
+BOOL InitializeHashTableScilabErrors(void)
+{
+       BOOL bOK=FALSE;
 
-        xmlFreeTextReader(reader);
-               /*
-               * Cleanup function for the XML library.
-               */
-               xmlCleanupParser();
-               /*
-               * this is to debug memory for regression tests
-               */
-               xmlMemoryDump();
+       Table_Scilab_Errors=CreateHashtable_string();
+       if (Table_Scilab_Errors) bOK=TRUE;
+       else bOK=FALSE;
 
-        if (ret != 0) 
-               {
-            bOK=0;
-               }
-               else
-               {
-                       bOK=1;
-               }
-       }
-       else 
-       {
-               bOK=0;
-       }
-       if (encoding) {FREE(encoding);encoding=NULL;}
        return bOK;
-       
 }
 /*-----------------------------------------------------------------------------------*/ 
-IMPORT_EXPORT_LOCALIZATION_DLL struct hashtable *GetHashTableScilabErrors(void)
+BOOL InitializeHashTableScilabMessages(void)
 {
-       return Table_Scilab_Errors;
+       BOOL bOK=FALSE;
+
+       Table_Scilab_Messages=CreateHashtable_string();
+       if (Table_Scilab_Messages) bOK=TRUE;
+       else bOK=FALSE;
+
+       return bOK;
 }
 /*-----------------------------------------------------------------------------------*/ 
-IMPORT_EXPORT_LOCALIZATION_DLL int InitializeHashTableScilabErrors(char* SCIPATH)
+BOOL InitializeHashTableScilabMenus(void)
 {
-       char *FileLanguage=NULL;
-       Table_Scilab_Errors=CreateHashtable_string();
-
-       FileLanguage=(char*)MALLOC( (strlen(SCIPATH)+strlen("/modules/localization/xml/errors.xml")+1)*sizeof(char));
-       strcpy(FileLanguage,SCIPATH);
-       strcat(FileLanguage,"/modules/localization/xml/errors.xml");
+       BOOL bOK=FALSE;
 
-       AppendXmlFile(FileLanguage, Table_Scilab_Errors);
+       Table_Scilab_Menus=CreateHashtable_string();
+       if (Table_Scilab_Menus) bOK=TRUE;
+       else bOK=FALSE;
 
-       FREE(FileLanguage);
-       
-       return 0;
+       return bOK;
 }
 /*-----------------------------------------------------------------------------------*/ 
-IMPORT_EXPORT_LOCALIZATION_DLL int DisposeHashTableScilabErrors(void)
+int DisposeHashTableScilabErrors(void)
 {
        if (Table_Scilab_Errors)
        {
@@ -215,11 +105,68 @@ IMPORT_EXPORT_LOCALIZATION_DLL int DisposeHashTableScilabErrors(void)
        return 0;
 }
 /*-----------------------------------------------------------------------------------*/ 
+int DisposeHashTableScilabMessages(void)
+{
+       if (Table_Scilab_Messages)
+       {
+               hashtable_destroy( Table_Scilab_Messages, 0 ) ;
+               Table_Scilab_Messages=NULL;
+       }
+       return 0;
+}
+/*-----------------------------------------------------------------------------------*/ 
+int DisposeHashTableScilabMenus(void)
+{
+       if (Table_Scilab_Menus)
+       {
+               hashtable_destroy(Table_Scilab_Menus, 0 ) ;
+               Table_Scilab_Menus=NULL;
+       }
+       return 0;
+}
+/*-----------------------------------------------------------------------------------*/ 
 IMPORT_EXPORT_LOCALIZATION_DLL char *QueryStringError(char *Tag)
 {      
+       return QueryString(Table_Scilab_Errors,Tag);
+}
+/*-----------------------------------------------------------------------------------*/ 
+IMPORT_EXPORT_LOCALIZATION_DLL char *QueryStringMessage(char *Tag)
+{
+       return QueryString(Table_Scilab_Messages,Tag);
+}
+/*-----------------------------------------------------------------------------------*/ 
+IMPORT_EXPORT_LOCALIZATION_DLL char *QueryStringMenu(char *Tag)
+{
+       return QueryString(Table_Scilab_Menus,Tag);
+}
+/*-----------------------------------------------------------------------------------*/ 
+static char *ReplaceChars(char *S1, char *S2, char *S3) 
+{
+       char *buffer=NULL;
+
+       if ( (S1) && (strlen(S1)>0) )
+       {
+               char *p=NULL;
+               buffer = (char*)MALLOC((strlen(S1)*2)*sizeof(char));
+               if(!(p = strstr(S1, S2))) 
+               {
+                       sprintf(buffer,"%s",S1);
+                       return buffer;
+               }
+
+               strncpy(buffer, S1, p-S1);
+               buffer[p-S1] = '\0';
+
+               sprintf(buffer+(p-S1), "%s%s", S3, p+strlen(S2));
+       }
+       return buffer;
+}
+/*-----------------------------------------------------------------------------------*/ 
+static char *QueryString(struct hashtable *Table,char *Tag)
+{
        char oldpiece[8];
        char newpiece[8];
-       char *StringError=NULL;
+       char *RetString=NULL;
        char *StringWithoutSomeChars=NULL;
 
        if (strcmp(Tag,"\r\n"))
@@ -229,41 +176,22 @@ IMPORT_EXPORT_LOCALIZATION_DLL char *QueryStringError(char *Tag)
                strcpy(newpiece,"\\r\\n");
                StringWithoutSomeChars=ReplaceChars( Tag,oldpiece,newpiece);
 
-               StringError=SearchHashtable_string(Table_Scilab_Errors,StringWithoutSomeChars);
-               if (StringWithoutSomeChars) FREE(StringWithoutSomeChars);
-
-               if (StringError)
+               if (StringWithoutSomeChars)
                {
-                       /* Replace \\r\\n by \r\n */
-                       strcpy(oldpiece,"\\r\\n");
-                       strcpy(newpiece,"\r\n");
-                       StringWithoutSomeChars=ReplaceChars(StringError,oldpiece,newpiece);
-                       if (StringError) FREE(StringError);
-                       StringError = StringWithoutSomeChars;
+                       RetString=SearchHashtable_string(Table,StringWithoutSomeChars);
+                       if (StringWithoutSomeChars) FREE(StringWithoutSomeChars);
+
+                       if (RetString)
+                       {
+                               /* Replace \\r\\n by \r\n */
+                               strcpy(oldpiece,"\\r\\n");
+                               strcpy(newpiece,"\r\n");
+                               StringWithoutSomeChars=ReplaceChars(RetString,oldpiece,newpiece);
+                               if (RetString) FREE(RetString);
+                               RetString = StringWithoutSomeChars;
+                       }
                }
        }
-       
-       return StringError;
-}
-/*-----------------------------------------------------------------------------------*/ 
-static char *ReplaceChars(char *S1, char *S2, char *S3) 
-{
-       char *buffer=NULL;
-       char *p=NULL;
-
-       buffer = (char*)MALLOC((strlen(S1)*2)*sizeof(char));
-
-       if(!(p = strstr(S1, S2))) 
-       {
-               sprintf(buffer,"%s",S1);
-               return buffer;
-       }
-
-       strncpy(buffer, S1, p-S1);
-       buffer[p-S1] = '\0';
-
-       sprintf(buffer+(p-S1), "%s%s", S3, p+strlen(S2));
-
-       return buffer;
+       return RetString;
 }
 /*-----------------------------------------------------------------------------------*/ 
index d488241..9beef63 100644 (file)
@@ -8,6 +8,7 @@
 #include "MALLOC.h"
 #include "tableslanguages.h"
 #include "loadsavelanguage.h"
+#include "loadhashtableslocalization.h"
 /*-----------------------------------------------------------------------------------*/ 
 static char CURRENTLANGUAGESTRING[LengthAlphacode]=SCILABDEFAULTLANGUAGE;
 static int  CURRENTLANGUAGECODE=SCILABDEFAULTLANGUAGECODE;
@@ -18,45 +19,45 @@ static BOOL setlanguagecode(char *lang);
 static char *FindAlias(char *lang);
 static char *GetLanguageFromAlias(char *langAlias);
 /*-----------------------------------------------------------------------------------*/ 
-BOOL setlanguage(char *lang)
+extern int C2F(syncexec)(char *str, int *ns, int *ierr, int *seq, long int str_len);
+/*-----------------------------------------------------------------------------------*/ 
+BOOL setlanguage(char *lang,BOOL updateHelpIndex, BOOL updateMenus)
 {
        BOOL bOK=FALSE;
        if (lang)
        {
-               char LANGUAGETMP[LengthAlphacode];
-               if (strlen(lang)==2)
-               {
-                       char *ptrLang=NULL;
-                       ptrLang=GetLanguageFromAlias(lang);
-                       if (ptrLang)
-                       {
-                               strcpy(LANGUAGETMP,ptrLang);
-                               FREE(ptrLang);
-                               ptrLang=NULL;
-                       }
-               }
-               else if (strcmp(lang,"eng")==0) /* compatibility previous scilab */
+               if ( LanguageIsOK(lang) )
                {
-                       char *ptrLang=NULL;
-                       ptrLang=GetLanguageFromAlias("en");
-                       if (ptrLang)
+                       if (needtochangelanguage(lang))
                        {
-                               strcpy(LANGUAGETMP,ptrLang);
-                               FREE(ptrLang);
-                               ptrLang=NULL;
-                       }
-               }
-               else
-               {
-                       strcpy(LANGUAGETMP,lang);
-               }
+                               /* change language */
+                               strcpy(CURRENTLANGUAGESTRING,lang);
+                               setlanguagecode(lang);
 
-               if ( LanguageIsOK(LANGUAGETMP) )
-               {
-                       strcpy(CURRENTLANGUAGESTRING,LANGUAGETMP);
-                       setlanguagecode(LANGUAGETMP);
-                       savelanguagepref();
-                       bOK=TRUE;
+                               if (updateHelpIndex)
+                               {
+                                       #define UPDATESCILABHELPMACRO "try update_scilab_help();catch end;" 
+                                       integer ierr ;
+                                       integer seq = 1 ;
+                                       int macroCallLength=0;
+
+                                       /* update help index */
+                                       macroCallLength = (int)strlen(UPDATESCILABHELPMACRO);
+                                       C2F(syncexec)(UPDATESCILABHELPMACRO,&macroCallLength,&ierr,&seq, macroCallLength);
+                               }
+
+                               /* save language pref. */
+                               savelanguagepref();
+
+