summaryrefslogtreecommitdiff
path: root/modules/localization
diff options
context:
space:
mode:
authorShashank2017-05-29 12:40:26 +0530
committerShashank2017-05-29 12:40:26 +0530
commit0345245e860375a32c9a437c4a9d9cae807134e9 (patch)
treead51ecbfa7bcd3cc5f09834f1bb8c08feaa526a4 /modules/localization
downloadscilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.gz
scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.bz2
scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.zip
CMSCOPE changed
Diffstat (limited to 'modules/localization')
-rwxr-xr-xmodules/localization/.libs/libscilocalization-algo.abin0 -> 196480 bytes
l---------modules/localization/.libs/libscilocalization-algo.la1
l---------modules/localization/.libs/libscilocalization.la1
-rwxr-xr-xmodules/localization/.libs/libscilocalization.lai41
l---------modules/localization/.libs/libscilocalization.so1
l---------modules/localization/.libs/libscilocalization.so.51
-rwxr-xr-xmodules/localization/.libs/libscilocalization.so.5.5.2bin0 -> 157488 bytes
-rwxr-xr-xmodules/localization/Makefile1573
-rwxr-xr-xmodules/localization/Makefile.am109
-rwxr-xr-xmodules/localization/Makefile.in1573
-rwxr-xr-xmodules/localization/build.xml20
-rwxr-xr-xmodules/localization/build/classes/org/scilab/modules/localization/LocaleToLCID.classbin0 -> 361 bytes
-rwxr-xr-xmodules/localization/build/classes/org/scilab/modules/localization/LocaleToLCIDJNI.classbin0 -> 970 bytes
-rwxr-xr-xmodules/localization/build/classes/org/scilab/modules/localization/Messages.classbin0 -> 465 bytes
-rwxr-xr-xmodules/localization/build/classes/org/scilab/modules/localization/MessagesJNI.classbin0 -> 1251 bytes
-rwxr-xr-xmodules/localization/build/classes/org/scilab/modules/localization/WindowsDefaultLanguage.classbin0 -> 459 bytes
-rwxr-xr-xmodules/localization/build/classes/org/scilab/modules/localization/WindowsDefaultLanguageJNI.classbin0 -> 979 bytes
-rwxr-xr-xmodules/localization/data/header.pot19
-rwxr-xr-xmodules/localization/etc/localization.quit10
-rwxr-xr-xmodules/localization/etc/localization.start26
-rwxr-xr-xmodules/localization/help/en_US/addchapter.sce11
-rwxr-xr-xmodules/localization/help/en_US/addlocalizationdomain.xml67
-rwxr-xr-xmodules/localization/help/en_US/dgettext.xml63
-rwxr-xr-xmodules/localization/help/en_US/getdefaultlanguage.xml47
-rwxr-xr-xmodules/localization/help/en_US/getlanguage.xml44
-rwxr-xr-xmodules/localization/help/en_US/gettext.xml91
-rwxr-xr-xmodules/localization/help/en_US/setdefaultlanguage.xml75
-rwxr-xr-xmodules/localization/help/en_US/setlanguage.xml66
-rwxr-xr-xmodules/localization/help/fr_FR/addchapter.sce11
-rwxr-xr-xmodules/localization/help/fr_FR/language.xml12
-rwxr-xr-xmodules/localization/help/fr_FR/setlanguage.xml41
-rwxr-xr-xmodules/localization/help/ja_JP/addchapter.sce11
-rwxr-xr-xmodules/localization/help/ja_JP/addlocalizationdomain.xml121
-rwxr-xr-xmodules/localization/help/ja_JP/dgettext.xml121
-rwxr-xr-xmodules/localization/help/ja_JP/getdefaultlanguage.xml83
-rwxr-xr-xmodules/localization/help/ja_JP/getlanguage.xml76
-rwxr-xr-xmodules/localization/help/ja_JP/gettext.xml172
-rwxr-xr-xmodules/localization/help/ja_JP/setdefaultlanguage.xml132
-rwxr-xr-xmodules/localization/help/ja_JP/setlanguage.xml114
-rwxr-xr-xmodules/localization/help/pt_BR/addchapter.sce11
-rwxr-xr-xmodules/localization/help/ru_RU/addchapter.sce11
-rwxr-xr-xmodules/localization/help/ru_RU/dgettext.xml64
-rwxr-xr-xmodules/localization/help/ru_RU/getdefaultlanguage.xml47
-rwxr-xr-xmodules/localization/help/ru_RU/getlanguage.xml44
-rwxr-xr-xmodules/localization/help/ru_RU/gettext.xml57
-rwxr-xr-xmodules/localization/help/ru_RU/language.xml37
-rwxr-xr-xmodules/localization/help/ru_RU/setdefaultlanguage.xml75
-rwxr-xr-xmodules/localization/help/ru_RU/setlanguage.xml66
-rwxr-xr-xmodules/localization/help/ru_RU/underscore.xml60
-rwxr-xr-xmodules/localization/includes/InitializeLocalization.h21
-rwxr-xr-xmodules/localization/includes/TerminateLocalization.h18
-rwxr-xr-xmodules/localization/includes/charEncoding.h88
-rwxr-xr-xmodules/localization/includes/dynlib_localization.h28
-rwxr-xr-xmodules/localization/includes/gw_localization.h33
-rwxr-xr-xmodules/localization/includes/localization.h50
-rwxr-xr-xmodules/localization/includes/localizationJava.h42
-rwxr-xr-xmodules/localization/includes/setgetlanguage.h104
-rwxr-xr-xmodules/localization/jar/org.scilab.modules.localization.jarbin0 -> 4814 bytes
-rwxr-xr-xmodules/localization/libscilocalization-algo.la41
-rwxr-xr-xmodules/localization/libscilocalization.la41
-rwxr-xr-xmodules/localization/license.txt10
-rwxr-xr-xmodules/localization/locales/ca_ES.po70
-rwxr-xr-xmodules/localization/locales/cs_CZ.po67
-rwxr-xr-xmodules/localization/locales/de_DE.po69
-rwxr-xr-xmodules/localization/locales/es_ES.po70
-rwxr-xr-xmodules/localization/locales/fr_FR.po75
-rwxr-xr-xmodules/localization/locales/it_IT.po73
-rwxr-xr-xmodules/localization/locales/ja_JP.po75
-rwxr-xr-xmodules/localization/locales/localization.pot106
-rwxr-xr-xmodules/localization/locales/pl_PL.po70
-rwxr-xr-xmodules/localization/locales/pt_BR.po71
-rwxr-xr-xmodules/localization/locales/ru_RU.po67
-rwxr-xr-xmodules/localization/locales/uk_UA.po72
-rwxr-xr-xmodules/localization/locales/zh_CN.po67
-rwxr-xr-xmodules/localization/locales/zh_TW.po67
-rwxr-xr-xmodules/localization/localization.iss53
-rwxr-xr-xmodules/localization/macros/buildmacros.bat1
-rwxr-xr-xmodules/localization/macros/buildmacros.sce15
-rwxr-xr-xmodules/localization/macros/cleanmacros.bat3
-rwxr-xr-xmodules/localization/sci_gateway/c/.deps/.dirstamp0
-rwxr-xr-xmodules/localization/sci_gateway/c/.deps/libscilocalization_la-gw_localization.Plo275
-rwxr-xr-xmodules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_addlocalizationdomain.Plo310
-rwxr-xr-xmodules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_getdefaultlanguage.Plo217
-rwxr-xr-xmodules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_getlanguage.Plo220
-rwxr-xr-xmodules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_gettext.Plo304
-rwxr-xr-xmodules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_setdefaultlanguage.Plo216
-rwxr-xr-xmodules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_setlanguage.Plo240
-rwxr-xr-xmodules/localization/sci_gateway/c/.dirstamp0
-rwxr-xr-xmodules/localization/sci_gateway/c/.libs/libscilocalization_la-gw_localization.obin0 -> 6952 bytes
-rwxr-xr-xmodules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_addlocalizationdomain.obin0 -> 12208 bytes
-rwxr-xr-xmodules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_getdefaultlanguage.obin0 -> 8664 bytes
-rwxr-xr-xmodules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_getlanguage.obin0 -> 7888 bytes
-rwxr-xr-xmodules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_gettext.obin0 -> 22640 bytes
-rwxr-xr-xmodules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_setdefaultlanguage.obin0 -> 8576 bytes
-rwxr-xr-xmodules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_setlanguage.obin0 -> 14392 bytes
-rwxr-xr-xmodules/localization/sci_gateway/c/gw_localization.c43
-rwxr-xr-xmodules/localization/sci_gateway/c/libscilocalization_la-gw_localization.lo12
-rwxr-xr-xmodules/localization/sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo12
-rwxr-xr-xmodules/localization/sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo12
-rwxr-xr-xmodules/localization/sci_gateway/c/libscilocalization_la-sci_getlanguage.lo12
-rwxr-xr-xmodules/localization/sci_gateway/c/libscilocalization_la-sci_gettext.lo12
-rwxr-xr-xmodules/localization/sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo12
-rwxr-xr-xmodules/localization/sci_gateway/c/libscilocalization_la-sci_setlanguage.lo12
-rwxr-xr-xmodules/localization/sci_gateway/c/sci_addlocalizationdomain.c115
-rwxr-xr-xmodules/localization/sci_gateway/c/sci_getdefaultlanguage.c35
-rwxr-xr-xmodules/localization/sci_gateway/c/sci_getlanguage.c36
-rwxr-xr-xmodules/localization/sci_gateway/c/sci_getlanguagealias.c54
-rwxr-xr-xmodules/localization/sci_gateway/c/sci_getlanguagestable.c66
-rwxr-xr-xmodules/localization/sci_gateway/c/sci_gettext.c277
-rwxr-xr-xmodules/localization/sci_gateway/c/sci_setdefaultlanguage.c190
-rwxr-xr-xmodules/localization/sci_gateway/c/sci_setlanguage.c114
-rwxr-xr-xmodules/localization/sci_gateway/localization_gateway.xml41
-rwxr-xr-xmodules/localization/src/c/.deps/.dirstamp0
-rwxr-xr-xmodules/localization/src/c/.deps/libscilocalization_algo_la-InitializeLocalization.Plo173
-rwxr-xr-xmodules/localization/src/c/.deps/libscilocalization_algo_la-charEncoding.Plo150
-rwxr-xr-xmodules/localization/src/c/.deps/libscilocalization_algo_la-getLcidString.Plo151
-rwxr-xr-xmodules/localization/src/c/.deps/libscilocalization_algo_la-getLocaleInfo_Apple.Plo1
-rwxr-xr-xmodules/localization/src/c/.deps/libscilocalization_algo_la-setdefaultlanguage.Plo4
-rwxr-xr-xmodules/localization/src/c/.deps/libscilocalization_algo_la-setgetlanguage.Plo154
-rwxr-xr-xmodules/localization/src/c/.dirstamp0
-rwxr-xr-xmodules/localization/src/c/.libs/libscilocalization_algo_la-InitializeLocalization.obin0 -> 15864 bytes
-rwxr-xr-xmodules/localization/src/c/.libs/libscilocalization_algo_la-charEncoding.obin0 -> 16880 bytes
-rwxr-xr-xmodules/localization/src/c/.libs/libscilocalization_algo_la-getLcidString.obin0 -> 7312 bytes
-rwxr-xr-xmodules/localization/src/c/.libs/libscilocalization_algo_la-setdefaultlanguage.obin0 -> 3344 bytes
-rwxr-xr-xmodules/localization/src/c/.libs/libscilocalization_algo_la-setgetlanguage.obin0 -> 54096 bytes
-rwxr-xr-xmodules/localization/src/c/DllmainLocalization.c33
-rwxr-xr-xmodules/localization/src/c/InitializeLocalization.c178
-rwxr-xr-xmodules/localization/src/c/LanguagePreferences_Windows.c246
-rwxr-xr-xmodules/localization/src/c/LanguagePreferences_Windows.h47
-rwxr-xr-xmodules/localization/src/c/LocaleNameToLCID_Windows.c38
-rwxr-xr-xmodules/localization/src/c/LocaleNameToLCID_Windows.h30
-rwxr-xr-xmodules/localization/src/c/charEncoding.c266
-rwxr-xr-xmodules/localization/src/c/defaultlanguage.h24
-rwxr-xr-xmodules/localization/src/c/getLcidString.c90
-rwxr-xr-xmodules/localization/src/c/getLcidString.h26
-rwxr-xr-xmodules/localization/src/c/getLocaleInfo_Apple.c33
-rwxr-xr-xmodules/localization/src/c/getLocaleInfo_Apple.h22
-rwxr-xr-xmodules/localization/src/c/getLocaleInfo_Windows.c105
-rwxr-xr-xmodules/localization/src/c/getLocaleInfo_Windows.h32
-rwxr-xr-xmodules/localization/src/c/getentrieshashtable.c125
-rwxr-xr-xmodules/localization/src/c/getentrieshashtable.h25
-rwxr-xr-xmodules/localization/src/c/hashtable_localization.h50
-rwxr-xr-xmodules/localization/src/c/libscilocalization_algo_la-InitializeLocalization.lo12
-rwxr-xr-xmodules/localization/src/c/libscilocalization_algo_la-charEncoding.lo12
-rwxr-xr-xmodules/localization/src/c/libscilocalization_algo_la-getLcidString.lo12
-rwxr-xr-xmodules/localization/src/c/libscilocalization_algo_la-setdefaultlanguage.lo12
-rwxr-xr-xmodules/localization/src/c/libscilocalization_algo_la-setgetlanguage.lo12
-rwxr-xr-xmodules/localization/src/c/loadhashtableslocalization.h21
-rwxr-xr-xmodules/localization/src/c/setdefaultlanguage.c46
-rwxr-xr-xmodules/localization/src/c/setgetlanguage.c413
-rwxr-xr-xmodules/localization/src/c/tableslanguages.h324
-rwxr-xr-xmodules/localization/src/core_Import.def22
-rwxr-xr-xmodules/localization/src/io_Import.def10
-rwxr-xr-xmodules/localization/src/java/org/scilab/modules/localization/LocaleToLCID.java28
-rwxr-xr-xmodules/localization/src/java/org/scilab/modules/localization/LocaleToLCIDJNI.java42
-rwxr-xr-xmodules/localization/src/java/org/scilab/modules/localization/Messages.java32
-rwxr-xr-xmodules/localization/src/java/org/scilab/modules/localization/MessagesJNI.java49
-rwxr-xr-xmodules/localization/src/java/org/scilab/modules/localization/WindowsDefaultLanguage.java42
-rwxr-xr-xmodules/localization/src/java/org/scilab/modules/localization/WindowsDefaultLanguageJNI.java43
-rwxr-xr-xmodules/localization/src/jni/.deps/.dirstamp0
-rwxr-xr-xmodules/localization/src/jni/.deps/libscilocalization_algo_la-LocaleToLCID_wrap.Plo128
-rwxr-xr-xmodules/localization/src/jni/.deps/libscilocalization_algo_la-Messages_wrap.Plo147
-rwxr-xr-xmodules/localization/src/jni/.deps/libscilocalization_algo_la-setdefaultlanguage_wrap.Plo131
-rwxr-xr-xmodules/localization/src/jni/.dirstamp0
-rwxr-xr-xmodules/localization/src/jni/.libs/libscilocalization_algo_la-LocaleToLCID_wrap.obin0 -> 31448 bytes
-rwxr-xr-xmodules/localization/src/jni/.libs/libscilocalization_algo_la-Messages_wrap.obin0 -> 33536 bytes
-rwxr-xr-xmodules/localization/src/jni/.libs/libscilocalization_algo_la-setdefaultlanguage_wrap.obin0 -> 32248 bytes
-rwxr-xr-xmodules/localization/src/jni/LocaleToLCID.i87
-rwxr-xr-xmodules/localization/src/jni/LocaleToLCID_wrap.c219
-rwxr-xr-xmodules/localization/src/jni/Messages.i99
-rwxr-xr-xmodules/localization/src/jni/Messages_wrap.c246
-rwxr-xr-xmodules/localization/src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo12
-rwxr-xr-xmodules/localization/src/jni/libscilocalization_algo_la-Messages_wrap.lo12
-rwxr-xr-xmodules/localization/src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo12
-rwxr-xr-xmodules/localization/src/jni/setdefaultlanguage.i95
-rwxr-xr-xmodules/localization/src/jni/setdefaultlanguage_wrap.c227
-rwxr-xr-xmodules/localization/src/localization.rc96
-rwxr-xr-xmodules/localization/src/localization.vcxproj304
-rwxr-xr-xmodules/localization/src/localization.vcxproj.filters165
-rwxr-xr-xmodules/localization/src/localization_export.def23
-rwxr-xr-xmodules/localization/src/perl/check_po_files.pl328
-rwxr-xr-xmodules/localization/tests/nonreg_tests/bug_10654.dia.ref16
-rwxr-xr-xmodules/localization/tests/nonreg_tests/bug_10654.tst18
-rwxr-xr-xmodules/localization/tests/nonreg_tests/bug_2670.dia.ref13
-rwxr-xr-xmodules/localization/tests/nonreg_tests/bug_2670.tst17
-rwxr-xr-xmodules/localization/tests/nonreg_tests/bug_2705.dia.ref21
-rwxr-xr-xmodules/localization/tests/nonreg_tests/bug_2705.tst27
-rwxr-xr-xmodules/localization/tests/nonreg_tests/bug_3069.dia.ref18
-rwxr-xr-xmodules/localization/tests/nonreg_tests/bug_3069.tst20
-rwxr-xr-xmodules/localization/tests/nonreg_tests/bug_3784.dia.ref16
-rwxr-xr-xmodules/localization/tests/nonreg_tests/bug_3784.tst18
-rwxr-xr-xmodules/localization/tests/nonreg_tests/bug_3802.dia.ref19
-rwxr-xr-xmodules/localization/tests/nonreg_tests/bug_3802.tst22
-rwxr-xr-xmodules/localization/tests/nonreg_tests/bug_3832.tst24
-rwxr-xr-xmodules/localization/tests/nonreg_tests/bug_4393.tst20
-rwxr-xr-xmodules/localization/tests/nonreg_tests/bug_7220.tst20
-rwxr-xr-xmodules/localization/tests/nonreg_tests/bug_8399.dia.ref15
-rwxr-xr-xmodules/localization/tests/nonreg_tests/bug_8399.tst17
-rwxr-xr-xmodules/localization/tests/nonreg_tests/bug_9424.dia.ref16
-rwxr-xr-xmodules/localization/tests/nonreg_tests/bug_9424.tst18
-rwxr-xr-xmodules/localization/tests/unit_tests/CreateDir.sce39
-rwxr-xr-xmodules/localization/tests/unit_tests/addlocalizationdomain.dia.ref18
-rwxr-xr-xmodules/localization/tests/unit_tests/addlocalizationdomain.tst22
-rwxr-xr-xmodules/localization/tests/unit_tests/dgettext.dia.ref37
-rwxr-xr-xmodules/localization/tests/unit_tests/dgettext.tst54
-rwxr-xr-xmodules/localization/tests/unit_tests/getdefaultlanguage.dia.ref18
-rwxr-xr-xmodules/localization/tests/unit_tests/getdefaultlanguage.tst23
-rwxr-xr-xmodules/localization/tests/unit_tests/getlanguage.dia.ref17
-rwxr-xr-xmodules/localization/tests/unit_tests/getlanguage.tst23
-rwxr-xr-xmodules/localization/tests/unit_tests/gettext.dia.ref27
-rwxr-xr-xmodules/localization/tests/unit_tests/gettext.tst38
-rwxr-xr-xmodules/localization/tests/unit_tests/io_encoding.dia.ref10
-rwxr-xr-xmodules/localization/tests/unit_tests/io_encoding.tst14
-rwxr-xr-xmodules/localization/tests/unit_tests/locale/en_US/LC_MESSAGES/tbx.mobin0 -> 459 bytes
-rwxr-xr-xmodules/localization/tests/unit_tests/locale/en_US/LC_MESSAGES/tbx.po27
-rwxr-xr-xmodules/localization/tests/unit_tests/locale/fr_FR/LC_MESSAGES/tbx.mobin0 -> 627 bytes
-rwxr-xr-xmodules/localization/tests/unit_tests/locale/fr_FR/LC_MESSAGES/tbx.po27
-rwxr-xr-xmodules/localization/tests/unit_tests/setdefaultlanguage.tst50
-rwxr-xr-xmodules/localization/tests/unit_tests/setdefaultlanguage.unix.dia.ref34
-rwxr-xr-xmodules/localization/tests/unit_tests/setdefaultlanguage.win.dia.ref34
-rwxr-xr-xmodules/localization/tests/unit_tests/setlanguage.dia.ref55
-rwxr-xr-xmodules/localization/tests/unit_tests/setlanguage.tst48
-rwxr-xr-xmodules/localization/tests/unit_tests/unicode_charset.dia.ref10
-rwxr-xr-xmodules/localization/tests/unit_tests/unicode_charset.tst15
-rwxr-xr-xmodules/localization/tests/unit_tests/unicode_io.dia.ref59
-rwxr-xr-xmodules/localization/tests/unit_tests/unicode_io.tst56
-rwxr-xr-xmodules/localization/tests/unit_tests/unicode_io.win.dia.ref75
-rwxr-xr-xmodules/localization/xml/localization.dtd16
228 files changed, 16276 insertions, 0 deletions
diff --git a/modules/localization/.libs/libscilocalization-algo.a b/modules/localization/.libs/libscilocalization-algo.a
new file mode 100755
index 000000000..847e104de
--- /dev/null
+++ b/modules/localization/.libs/libscilocalization-algo.a
Binary files differ
diff --git a/modules/localization/.libs/libscilocalization-algo.la b/modules/localization/.libs/libscilocalization-algo.la
new file mode 120000
index 000000000..3cfed62f3
--- /dev/null
+++ b/modules/localization/.libs/libscilocalization-algo.la
@@ -0,0 +1 @@
+../libscilocalization-algo.la \ No newline at end of file
diff --git a/modules/localization/.libs/libscilocalization.la b/modules/localization/.libs/libscilocalization.la
new file mode 120000
index 000000000..807f08263
--- /dev/null
+++ b/modules/localization/.libs/libscilocalization.la
@@ -0,0 +1 @@
+../libscilocalization.la \ No newline at end of file
diff --git a/modules/localization/.libs/libscilocalization.lai b/modules/localization/.libs/libscilocalization.lai
new file mode 100755
index 000000000..73b1a0477
--- /dev/null
+++ b/modules/localization/.libs/libscilocalization.lai
@@ -0,0 +1,41 @@
+# libscilocalization.la - a libtool library file
+# Generated by libtool (GNU libtool) 2.4.2
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='libscilocalization.so.5'
+
+# Names of this library.
+library_names='libscilocalization.so.5.5.2 libscilocalization.so.5 libscilocalization.so'
+
+# The name of the static archive.
+old_library=''
+
+# Linker flags that can not go in dependency_libs.
+inherited_linker_flags=''
+
+# Libraries that this one depends upon.
+dependency_libs=' -lpthread -ldl -lcurses -lm'
+
+# Names of additional weak libraries provided by this library
+weak_library_names=''
+
+# Version information for libscilocalization.
+current=10
+age=5
+revision=2
+
+# Is this an already installed library?
+installed=yes
+
+# Should we warn about portability when linking against -modules?
+shouldnotlink=no
+
+# Files to dlopen/dlpreopen
+dlopen=''
+dlpreopen=''
+
+# Directory that this library needs to be installed in:
+libdir='/usr/local/lib/scilab'
diff --git a/modules/localization/.libs/libscilocalization.so b/modules/localization/.libs/libscilocalization.so
new file mode 120000
index 000000000..50aa77397
--- /dev/null
+++ b/modules/localization/.libs/libscilocalization.so
@@ -0,0 +1 @@
+libscilocalization.so.5.5.2 \ No newline at end of file
diff --git a/modules/localization/.libs/libscilocalization.so.5 b/modules/localization/.libs/libscilocalization.so.5
new file mode 120000
index 000000000..50aa77397
--- /dev/null
+++ b/modules/localization/.libs/libscilocalization.so.5
@@ -0,0 +1 @@
+libscilocalization.so.5.5.2 \ No newline at end of file
diff --git a/modules/localization/.libs/libscilocalization.so.5.5.2 b/modules/localization/.libs/libscilocalization.so.5.5.2
new file mode 100755
index 000000000..7d0cfd370
--- /dev/null
+++ b/modules/localization/.libs/libscilocalization.so.5.5.2
Binary files differ
diff --git a/modules/localization/Makefile b/modules/localization/Makefile
new file mode 100755
index 000000000..43b7dbe50
--- /dev/null
+++ b/modules/localization/Makefile
@@ -0,0 +1,1573 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# modules/localization/Makefile. Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+# Copyright (C) 2006-2008 - INRIA - Sylvestre LEDRU
+#
+# This file must be used under the terms of the CeCILL.
+# This source file is licensed as described in the file COPYING, which
+# you should have received as part of this distribution. The terms
+# are also available at
+# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+# Copyright (C) 2006-2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
+# Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr>
+#
+# This file must be used under the terms of the CeCILL.
+# This source file is licensed as described in the file COPYING, which
+# you should have received as part of this distribution. The terms
+# are also available at
+# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+#
+
+##########
+### Makefile included stuff
+### Target, variable, suffixes which are supposed to be useful in every makefile.am
+##########
+
+
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+ case $${target_option-} in \
+ ?) ;; \
+ *) echo "am__make_running_with_option: internal error: invalid" \
+ "target option '$${target_option-}' specified" >&2; \
+ exit 1;; \
+ esac; \
+ has_opt=no; \
+ sane_makeflags=$$MAKEFLAGS; \
+ if $(am__is_gnu_make); then \
+ sane_makeflags=$$MFLAGS; \
+ else \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ bs=\\; \
+ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
+ esac; \
+ fi; \
+ skip_next=no; \
+ strip_trailopt () \
+ { \
+ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+ }; \
+ for flg in $$sane_makeflags; do \
+ test $$skip_next = yes && { skip_next=no; continue; }; \
+ case $$flg in \
+ *=*|--*) continue;; \
+ -*I) strip_trailopt 'I'; skip_next=yes;; \
+ -*I?*) strip_trailopt 'I';; \
+ -*O) strip_trailopt 'O'; skip_next=yes;; \
+ -*O?*) strip_trailopt 'O';; \
+ -*l) strip_trailopt 'l'; skip_next=yes;; \
+ -*l?*) strip_trailopt 'l';; \
+ -[dEDm]) skip_next=yes;; \
+ -[JT]) skip_next=yes;; \
+ esac; \
+ case $$flg in \
+ *$$target_option*) has_opt=yes; break;; \
+ esac; \
+ done; \
+ test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/scilab
+pkgincludedir = $(includedir)/scilab
+pkglibdir = $(libdir)/scilab
+pkglibexecdir = $(libexecdir)/scilab
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+am__append_1 = src/jni/Messages_wrap.c \
+src/jni/LocaleToLCID_wrap.c \
+src/jni/setdefaultlanguage_wrap.c
+
+#am__append_2 = src/c/getLocaleInfo_Apple.c
+
+# FIXME: platform dependent things should be in configure.ac
+#am__append_3 = -framework Cocoa
+#am__append_4 = -lintl
+#am__append_5 = -framework Cocoa
+DIST_COMMON = $(top_srcdir)/Makefile.incl.am $(srcdir)/Makefile.in \
+ $(srcdir)/Makefile.am $(top_srcdir)/config/mkinstalldirs \
+ $(top_srcdir)/config/depcomp \
+ $(libscilocalization_la_include_HEADERS)
+am__append_6 = java
+subdir = modules/localization
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/backtrace.m4 \
+ $(top_srcdir)/m4/compiler.m4 $(top_srcdir)/m4/curl.m4 \
+ $(top_srcdir)/m4/docbook.m4 $(top_srcdir)/m4/doxygen.m4 \
+ $(top_srcdir)/m4/fftw.m4 $(top_srcdir)/m4/fortran.m4 \
+ $(top_srcdir)/m4/giws.m4 $(top_srcdir)/m4/hdf5.m4 \
+ $(top_srcdir)/m4/intel_compiler.m4 \
+ $(top_srcdir)/m4/java-thirdparty.m4 $(top_srcdir)/m4/java.m4 \
+ $(top_srcdir)/m4/largefile.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/libsmath.m4 $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/ltoptions.m4 \
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/macosx.m4 \
+ $(top_srcdir)/m4/mpi.m4 $(top_srcdir)/m4/ocaml.m4 \
+ $(top_srcdir)/m4/pcre.m4 $(top_srcdir)/m4/pkg.m4 \
+ $(top_srcdir)/m4/relocatable.m4 $(top_srcdir)/m4/swig.m4 \
+ $(top_srcdir)/m4/symlinks.m4 $(top_srcdir)/m4/tcltk.m4 \
+ $(top_srcdir)/m4/umfpack.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/modules/core/includes/machine.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__uninstall_files_from_dir = { \
+ test -z "$$files" \
+ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+ $(am__cd) "$$dir" && rm -f $$files; }; \
+ }
+am__installdirs = "$(DESTDIR)$(pkglibdir)" \
+ "$(DESTDIR)$(libscilocalization_la_etcdir)" \
+ "$(DESTDIR)$(libscilocalization_la_rootdir)" \
+ "$(DESTDIR)$(libscilocalization_la_sci_gatewaydir)" \
+ "$(DESTDIR)$(libscilocalization_la_includedir)"
+LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkglib_LTLIBRARIES)
+libscilocalization_algo_la_LIBADD =
+am__libscilocalization_algo_la_SOURCES_DIST = \
+ src/c/InitializeLocalization.c src/c/setgetlanguage.c \
+ src/c/getLcidString.c src/c/charEncoding.c \
+ src/c/setdefaultlanguage.c src/jni/Messages_wrap.c \
+ src/jni/LocaleToLCID_wrap.c src/jni/setdefaultlanguage_wrap.c \
+ src/c/getLocaleInfo_Apple.c
+am__dirstamp = $(am__leading_dot)dirstamp
+am__objects_1 = src/jni/libscilocalization_algo_la-Messages_wrap.lo \
+ src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo \
+ src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo
+#am__objects_2 = src/c/libscilocalization_algo_la-getLocaleInfo_Apple.lo
+am__objects_3 = \
+ src/c/libscilocalization_algo_la-InitializeLocalization.lo \
+ src/c/libscilocalization_algo_la-setgetlanguage.lo \
+ src/c/libscilocalization_algo_la-getLcidString.lo \
+ src/c/libscilocalization_algo_la-charEncoding.lo \
+ src/c/libscilocalization_algo_la-setdefaultlanguage.lo \
+ $(am__objects_1) $(am__objects_2)
+am_libscilocalization_algo_la_OBJECTS = $(am__objects_3)
+libscilocalization_algo_la_OBJECTS = \
+ $(am_libscilocalization_algo_la_OBJECTS)
+AM_V_lt = $(am__v_lt_$(V))
+am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
+am__v_lt_0 = --silent
+am__v_lt_1 =
+libscilocalization_algo_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
+ $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) \
+ $(libscilocalization_algo_la_LDFLAGS) $(LDFLAGS) -o $@
+am__DEPENDENCIES_1 =
+libscilocalization_la_DEPENDENCIES = libscilocalization-algo.la \
+ $(am__DEPENDENCIES_1)
+am__objects_4 = \
+ sci_gateway/c/libscilocalization_la-gw_localization.lo \
+ sci_gateway/c/libscilocalization_la-sci_gettext.lo \
+ sci_gateway/c/libscilocalization_la-sci_setlanguage.lo \
+ sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo \
+ sci_gateway/c/libscilocalization_la-sci_getlanguage.lo \
+ sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo \
+ sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo
+am_libscilocalization_la_OBJECTS = $(am__objects_4)
+libscilocalization_la_OBJECTS = $(am_libscilocalization_la_OBJECTS)
+libscilocalization_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
+ $(libscilocalization_la_CFLAGS) $(CFLAGS) \
+ $(libscilocalization_la_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo " GEN " $@;
+am__v_GEN_1 =
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 =
+DEFAULT_INCLUDES = -I. -I$(top_builddir)/modules/core/includes
+depcomp = $(SHELL) $(top_srcdir)/config/depcomp
+am__depfiles_maybe = depfiles
+am__mv = mv -f
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_$(V))
+am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
+am__v_CC_0 = @echo " CC " $@;
+am__v_CC_1 =
+CCLD = $(CC)
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_$(V))
+am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
+am__v_CCLD_0 = @echo " CCLD " $@;
+am__v_CCLD_1 =
+SOURCES = $(libscilocalization_algo_la_SOURCES) \
+ $(libscilocalization_la_SOURCES)
+DIST_SOURCES = $(am__libscilocalization_algo_la_SOURCES_DIST) \
+ $(libscilocalization_la_SOURCES)
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
+DATA = $(libscilocalization_la_etc_DATA) \
+ $(libscilocalization_la_root_DATA) \
+ $(libscilocalization_la_sci_gateway_DATA)
+HEADERS = $(libscilocalization_la_include_HEADERS)
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+# Read a list of newline-separated strings from the standard input,
+# and print each of them once, without duplicates. Input order is
+# *not* preserved.
+am__uniquify_input = $(AWK) '\
+ BEGIN { nonempty = 0; } \
+ { items[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in items) print i; }; } \
+'
+# Make sure the list of sources is unique. This is necessary because,
+# e.g., the same source file might be shared among _SOURCES variables
+# for different programs/libraries.
+am__define_uniq_tagged_files = \
+ list='$(am__tagged_files)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | $(am__uniquify_input)`
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing aclocal-1.14
+ALL_LINGUAS = en_US fr_FR zh_CN zh_TW ru_RU ca_ES de_DE es_ES pt_BR ja_JP it_IT uk_UA pl_PL cs_CZ
+ALL_LINGUAS_DOC = en_US fr_FR pt_BR ja_JP ru_RU
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+ANT = /usr/bin/ant
+ANTLR = /usr/share/java/antlr.jar
+AR = ar
+ARPACK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -larpack
+ASM3 = /usr/share/java/asm3-3.3.2.jar
+AUTOCONF = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing autoconf
+AUTOHEADER = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing autoheader
+AUTOMAKE = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing automake-1.14
+AVALON_FRAMEWORK = /home/shashank/scilab-master_5.5.2/thirdparty/avalon-framework.jar
+AWK = mawk
+BATIK = /home/shashank/scilab-master_5.5.2/thirdparty/batik-all-1.7.jar
+BLAS_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lblas
+CC = gcc
+CCACHE =
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CHECKSTYLE =
+COBERTURA = /usr/share/java/cobertura.jar
+COMMONS_BEANUTILS =
+COMMONS_IO = /home/shashank/scilab-master_5.5.2/thirdparty/commons-io.jar
+COMMONS_LOGGING = /home/shashank/scilab-master_5.5.2/thirdparty/commons-logging.jar
+CPP = gcc -E
+CPPFLAGS =
+CURL_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include
+CURL_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/curl-config
+CURL_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lcurl -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -lssl -lcrypto -lrt -lz
+CURL_VERSION = libcurl 7.19.7
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEMOTOOLS_ENABLE = yes
+DEPDIR = .deps
+DLLTOOL = false
+DOCBOOK_ROOT = /home/shashank/scilab-master_5.5.2/thirdparty/docbook/
+DOXYGEN_BIN =
+DSYMUTIL =
+DUMPBIN =
+ECHO_C =
+ECHO_N = -n
+ECHO_T =
+ECJ = /home/shashank/scilab-master_5.5.2/thirdparty/ecj.jar
+EGREP = /bin/grep -E
+EXEEXT =
+F77 = gfortran
+FFLAGS = -g -O2
+FFTW3_LIB = -L/home/shashank/scilab-master_5.5.2/usr/lib -lfftw3
+FFTW_ENABLE = yes
+FGREP = /bin/grep -F
+FLEXDOCK = /home/shashank/scilab-master_5.5.2/thirdparty/flexdock-1.2.4.jar
+FLIBS = -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. -lpthread -ldl -lcurses -lgfortran -lm -lquadmath
+FOP = /home/shashank/scilab-master_5.5.2/thirdparty/fop.jar
+FREEHEP_GRAPHICS2D = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphics2d.jar
+FREEHEP_GRAPHICSIO = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphicsio.jar
+FREEHEP_GRAPHICSIO_EMF = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphicsio-emf.jar
+FREEHEP_IO = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-io.jar
+FREEHEP_UTIL = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-util.jar
+GENHTML =
+GETTEXT_MACRO_VERSION = 0.19
+GIWS_BIN =
+GLUEGEN2_RT = /home/shashank/scilab-master_5.5.2/thirdparty/gluegen2-rt.jar
+GMSGFMT = /usr/bin/msgfmt
+GMSGFMT_015 = /usr/bin/msgfmt
+GRAPHICS_ENABLE = yes
+GREP = /bin/grep
+GUI_ENABLE = yes
+HDF5_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include
+HDF5_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lhdf5 -lhdf5_hl
+HELP_ENABLE = yes
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+INTLLIBS =
+INTL_MACOSX_LIBS =
+JAR = /usr/lib/jvm/java-8-openjdk-amd64/bin/jar
+JAVA = /usr/lib/jvm/java-8-openjdk-amd64/bin/java
+JAVAC = /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
+JAVAC_DEBUG = off
+JAVADOC = /usr/lib/jvm/java-8-openjdk-amd64/bin/javadoc
+JAVAH = /usr/lib/jvm/java-8-openjdk-amd64/bin/javah
+JAVASCI_ENABLE = yes
+JAVA_ENABLE = yes
+JAVA_G = /usr/lib/jvm/java-8-openjdk-amd64/bin/java
+JAVA_HOME = /usr/lib/jvm/java-8-openjdk-amd64
+JAVA_JNI_INCLUDE = -I/usr/lib/jvm/java-8-openjdk-amd64/include -I/usr/lib/jvm/java-8-openjdk-amd64/include/linux
+JAVA_JNI_LIBS = -L/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64 -ljava -lverify -L/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server -ljvm
+JDB = /usr/lib/jvm/java-8-openjdk-amd64/bin/jdb
+JEUCLID_CORE = /home/shashank/scilab-master_5.5.2/thirdparty/jeuclid-core.jar
+JGRAPHX = /home/shashank/scilab-master_5.5.2/thirdparty/jgraphx.jar
+JHALL = /home/shashank/scilab-master_5.5.2/thirdparty/jhall.jar
+JLATEXMATH = /home/shashank/scilab-master_5.5.2/thirdparty/jlatexmath-1.0.3.jar
+JLATEXMATH_FOP = /home/shashank/scilab-master_5.5.2/thirdparty/jlatexmath-fop-1.0.3.jar
+JOGL2 = /home/shashank/scilab-master_5.5.2/thirdparty/jogl2.jar
+JROSETTA_API = /home/shashank/scilab-master_5.5.2/thirdparty/jrosetta-API.jar
+JROSETTA_ENGINE = /home/shashank/scilab-master_5.5.2/thirdparty/jrosetta-engine.jar
+JUNIT4 = /usr/share/java/junit4.jar
+LAPACK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -llapack
+LCOV =
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = -Wl,--no-as-needed
+LIBICONV = -liconv
+LIBINTL =
+LIBM = -lm
+LIBOBJS =
+LIBS = -lpthread -ldl -lcurses -lm
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIPO =
+LN_S = ln -s
+LOGGING_LEVEL = SEVERE
+LOOKS = /home/shashank/scilab-master_5.5.2/thirdparty/looks-2.1.1.jar
+LTLIBICONV = -liconv
+LTLIBINTL =
+LTLIBOBJS =
+MAINT = #
+MAKEINFO = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing makeinfo
+MANIFEST_TOOL = :
+MATIO_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include
+MATIO_ENABLE = yes
+MATIO_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lm -lz -lmatio -lhdf5
+MKDIR_P = /bin/mkdir -p
+MPI_ENABLE = no
+MSGCAT = /usr/bin/msgcat
+MSGFMT = /usr/bin/msgfmt
+MSGFMT_015 = /usr/bin/msgfmt
+MSGMERGE = /usr/bin/msgmerge
+NM = nm
+NMEDIT =
+OBJDUMP = objdump
+OBJEXT = o
+OCAMLC = ocamlc
+OCAMLDEP = ocamldep
+OCAMLLEX = ocamllex
+OCAMLOPT = ocamlopt
+OCAMLYACC = ocamlyacc
+OPENMPI_CC =
+OPENMPI_CFLAGS =
+OPENMPI_CXX =
+OPENMPI_CXXFLAGS =
+OPENMPI_LIBS =
+OPENMP_CFLAGS = -fopenmp
+OPENMP_CXXFLAGS = -fopenmp
+OPENMP_ENABLE = yes
+OPENMP_LIBS = -lgomp -lstdc++
+OTOOL =
+OTOOL64 =
+PACKAGE = scilab
+PACKAGE_BUGREPORT = http://bugzilla.scilab.org/
+PACKAGE_NAME = Scilab
+PACKAGE_STRING = Scilab 5
+PACKAGE_TARNAME = scilab
+PACKAGE_URL =
+PACKAGE_VERSION = 5
+PATH_SEPARATOR = :
+PCRE_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include
+PCRE_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/pcre-config
+PCRE_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lpcreposix -lpcre
+PCRE_VERSION = 8.35
+PKG_CONFIG = /usr/bin/pkg-config
+POSUB = po
+POW_LIB =
+PYTHON =
+RANLIB = ranlib
+RELOCATABLE = no
+RT_LIB = -lrt
+SAXON = /home/shashank/scilab-master_5.5.2/thirdparty/saxon9he.jar
+SCILAB_BINARY_VERSION = 5.5.2
+SCILAB_LIBRARY_VERSION = 5:5:2
+SCILAB_VERSION_MAINTENANCE = 2
+SCILAB_VERSION_MAJOR = 5
+SCILAB_VERSION_MINOR = 5
+SCIRENDERER = ${modules.dir}/scirenderer/${build.jar.dir}/scirenderer.jar
+SCIRENDERER_CP = $SCILAB/modules/scirenderer/jar/scirenderer.jar
+SCI_CFLAGS = -D_LARGEFILE64_SOURCE -DNDEBUG -m64 -fno-stack-protector
+SCI_CXXFLAGS = -DNDEBUG -fno-stack-protector
+SCI_FFLAGS = -DNDEBUG -m64 -fPIC
+SCI_LDFLAGS =
+SED = /bin/sed
+SET_MAKE =
+SET_RELOCATABLE =
+SHELL = /bin/bash
+SKINLF = /home/shashank/scilab-master_5.5.2/thirdparty/skinlf.jar
+SPLINT = no
+STRIP = strip
+SWIG_BIN =
+SWIG_JAVA =
+SWIG_RUNTIME_LIBS_DIR =
+SWIG_SCILAB =
+TCLTK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -ltk8.5 -L/home/shashank/scilab-master_5.5.2/usr/lib -ltcl8.5 -ldl
+TCL_INC_PATH = -I/home/shashank/scilab-master_5.5.2/usr/include
+TK_INC_PATH = -I/home/shashank/scilab-master_5.5.2/usr/include
+UMFPACK_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include
+UMFPACK_ENABLE = yes
+UMFPACK_LIB = -L/home/shashank/scilab-master_5.5.2/usr/lib -lumfpack -lamd
+USE_NLS = yes
+VERSION = 5
+WITH_OCAML =
+WITH_TKSCI = yes
+XCOS_ENABLE = yes
+XGETTEXT = /usr/bin/xgettext
+XGETTEXT_015 = /usr/bin/xgettext
+XGETTEXT_EXTRA_OPTIONS =
+XMKMF =
+XMLGRAPHICS_COMMONS = /home/shashank/scilab-master_5.5.2/thirdparty/xmlgraphics-commons-1.4.jar
+XML_APIS_EXT = /home/shashank/scilab-master_5.5.2/thirdparty/xml-apis-ext.jar
+XML_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/xml2-config
+XML_FLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include/libxml2
+XML_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lxml2 -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -lz -lm -ldl
+XML_VERSION = 2.9.1
+X_CFLAGS =
+X_EXTRA_LIBS =
+X_LIBS =
+X_PRE_LIBS =
+abs_builddir = /home/shashank/scilab-master_5.5.2/modules/localization
+abs_srcdir = /home/shashank/scilab-master_5.5.2/modules/localization
+abs_top_builddir = /home/shashank/scilab-master_5.5.2
+abs_top_srcdir = /home/shashank/scilab-master_5.5.2
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN =
+ac_ct_F77 = gfortran
+am__include = include
+am__leading_dot = .
+am__quote =
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias =
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+cxx_present = yes
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias =
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /home/shashank/scilab-master_5.5.2/config/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+sysconfdir = ${prefix}/etc
+target_alias =
+top_build_prefix = ../../
+top_builddir = ../..
+top_srcdir = ../..
+LOCALIZATION_C_SOURCES = src/c/InitializeLocalization.c \
+ src/c/setgetlanguage.c src/c/getLcidString.c \
+ src/c/charEncoding.c src/c/setdefaultlanguage.c \
+ $(am__append_1) $(am__append_2)
+GATEWAY_C_SOURCES = sci_gateway/c/gw_localization.c \
+sci_gateway/c/sci_gettext.c \
+sci_gateway/c/sci_setlanguage.c \
+sci_gateway/c/sci_getdefaultlanguage.c \
+sci_gateway/c/sci_getlanguage.c \
+sci_gateway/c/sci_setdefaultlanguage.c \
+sci_gateway/c/sci_addlocalizationdomain.c
+
+libscilocalization_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
+ -I$(srcdir)/includes/ \
+ -I$(srcdir)/src/c/ \
+ -I$(top_srcdir)/modules/string/includes/ \
+ -I$(top_srcdir)/modules/fileio/includes/ \
+ -I$(top_srcdir)/modules/api_scilab/includes/ \
+ -I$(top_srcdir)/modules/output_stream/includes \
+ -I$(top_srcdir)/modules/localization/includes \
+ $(AM_CPPFLAGS)
+
+pkglib_LTLIBRARIES = libscilocalization.la
+noinst_LTLIBRARIES = libscilocalization-algo.la
+libscilocalization_la_LDFLAGS = $(AM_LDFLAGS) $(am__append_3)
+libscilocalization_la_CFLAGS = $(AM_CFLAGS) $(am__append_5)
+libscilocalization_algo_la_SOURCES = $(LOCALIZATION_C_SOURCES)
+libscilocalization_la_SOURCES = $(GATEWAY_C_SOURCES)
+libscilocalization_algo_la_CPPFLAGS = $(libscilocalization_la_CPPFLAGS)
+libscilocalization_algo_la_CFLAGS = $(libscilocalization_la_CFLAGS)
+libscilocalization_algo_la_LDFLAGS = $(libscilocalization_la_LDFLAGS)
+
+# For the code check (splint)
+CHECK_SRC = $(libscilocalization_la_SOURCES)
+INCLUDE_FLAGS = $(libscilocalization_la_CPPFLAGS)
+libscilocalization_la_LIBADD = libscilocalization-algo.la \
+ $(am__append_4)
+
+# $(top_builddir)/modules/io/libsciio.la
+#### Target ######
+modulename = localization
+
+#### localization : Conf files ####
+libscilocalization_la_rootdir = $(mydatadir)
+libscilocalization_la_root_DATA = license.txt
+
+####localization : init scripts ####
+libscilocalization_la_etcdir = $(mydatadir)/etc
+libscilocalization_la_etc_DATA = etc/localization.quit etc/localization.start
+
+####�localization : gateway declaration ####
+libscilocalization_la_sci_gatewaydir = $(mydatadir)/sci_gateway
+libscilocalization_la_sci_gateway_DATA = sci_gateway/localization_gateway.xml
+
+####localization : include files ####
+libscilocalization_la_includedir = $(pkgincludedir)
+libscilocalization_la_include_HEADERS = includes/localization.h \
+includes/setgetlanguage.h \
+includes/charEncoding.h
+
+USEANT = 1
+
+#### SWIG Declaration ####
+SWIG_WRAPPERS = src/jni/Messages.i \
+src/jni/LocaleToLCID.i
+
+#BUILT_SOURCES = swig
+
+# Where all the Scilab stuff is installed (macros, help, ...)
+mydatadir = $(pkgdatadir)/modules/$(modulename)
+
+# Set AM_* SCI detected settings
+AM_CPPFLAGS = $(SCI_CPPFLAGS)
+AM_CFLAGS = $(SCI_CFLAGS)
+AM_CXXFLAGS = $(SCI_CXXFLAGS)
+# append includes to AM_FFLAGS to manage fortran includes
+AM_FFLAGS = $(SCI_FFLAGS) -I$(top_srcdir)/modules/core/includes/
+
+# Tag shared libraries with the Scilab version
+AM_LDFLAGS = $(SCI_LDFLAGS) -version-number $(SCILAB_LIBRARY_VERSION)
+
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
+########################### JAVA ######################################
+#### We are delegating java compilation to ant... Thanks to that
+#### the procedure will be the same with Microsoft Windows (C)
+#### and Linux/Unix
+#######################################################################
+TARGETS_ALL = $(am__append_6)
+
+################ MACROS ######################
+# Rule to build a macro
+# NOT USED AT THE MOMENT
+SUFFIXES = .sci
+
+########### INSTALL DOCUMENTATION ###################
+
+# Install documentation files into the right target
+# We do not use the automake mechanism (libxxxx_la_help_fr_DATA) because
+# automake needs the html files to be present which is not the case when
+# we are building Scilab
+
+# Where it should be installed
+pkgdocdir = $(mydatadir)
+
+# What is the mask of the help source
+DOCMASKXML = *.xml
+
+# What is the mask of the MathML sources
+DOCMASKMML = *.mml
+
+########### INSTALL DATA ###################
+# Install macros, help & demos
+# Where it should be installed
+pkgmacrosdir = $(mydatadir)
+# Which directory we process
+MACRODIRS = macros/
+# Mask of the Scilab sources macros
+MACROMASK = *.sci
+# Mask of the Scilab executable sources macros
+MACROBUILDMASK = *.sce
+# Mask of the Scilab compiled macros
+MACROBINMASK = *.bin
+# List of the standard directory for tests
+TESTS_DIR = tests/benchmarks tests/nonreg_tests tests/unit_tests tests/java
+# Where the demos should be installed
+pkgdemosdir = $(mydatadir)
+# List of the standard directory for demos
+DEMOS_DIR = demos
+# List of the standard directory for examples
+EXAMPLES_DIR = examples
+# Where to export JAVA archives (.jar)
+JARDIR = jar/
+# JAR files mask
+JARMASK = *.jar
+# Chapter file
+HELP_CHAPTERDIR = help/
+HELP_CHAPTERFILE = addchapter.sce
+HELP_CHAPTERLANG = en_US fr_FR pt_BR
+all: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) all-am
+
+.SUFFIXES:
+.SUFFIXES: .sci .bin .c .lo .o .obj
+$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/Makefile.incl.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign modules/localization/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign modules/localization/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+$(top_srcdir)/Makefile.incl.am:
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: # $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+clean-noinstLTLIBRARIES:
+ -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
+ @list='$(noinst_LTLIBRARIES)'; \
+ locs=`for p in $$list; do echo $$p; done | \
+ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
+ sort -u`; \
+ test -z "$$locs" || { \
+ echo rm -f $${locs}; \
+ rm -f $${locs}; \
+ }
+
+install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES)
+ @$(NORMAL_INSTALL)
+ @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \
+ list2=; for p in $$list; do \
+ if test -f $$p; then \
+ list2="$$list2 $$p"; \
+ else :; fi; \
+ done; \
+ test -z "$$list2" || { \
+ echo " $(MKDIR_P) '$(DESTDIR)$(pkglibdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" || exit 1; \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkglibdir)'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkglibdir)"; \
+ }
+
+uninstall-pkglibLTLIBRARIES:
+ @$(NORMAL_UNINSTALL)
+ @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \
+ for p in $$list; do \
+ $(am__strip_dir) \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \
+ done
+
+clean-pkglibLTLIBRARIES:
+ -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES)
+ @list='$(pkglib_LTLIBRARIES)'; \
+ locs=`for p in $$list; do echo $$p; done | \
+ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
+ sort -u`; \
+ test -z "$$locs" || { \
+ echo rm -f $${locs}; \
+ rm -f $${locs}; \
+ }
+src/c/$(am__dirstamp):
+ @$(MKDIR_P) src/c
+ @: > src/c/$(am__dirstamp)
+src/c/$(DEPDIR)/$(am__dirstamp):
+ @$(MKDIR_P) src/c/$(DEPDIR)
+ @: > src/c/$(DEPDIR)/$(am__dirstamp)
+src/c/libscilocalization_algo_la-InitializeLocalization.lo: \
+ src/c/$(am__dirstamp) src/c/$(DEPDIR)/$(am__dirstamp)
+src/c/libscilocalization_algo_la-setgetlanguage.lo: \
+ src/c/$(am__dirstamp) src/c/$(DEPDIR)/$(am__dirstamp)
+src/c/libscilocalization_algo_la-getLcidString.lo: \
+ src/c/$(am__dirstamp) src/c/$(DEPDIR)/$(am__dirstamp)
+src/c/libscilocalization_algo_la-charEncoding.lo: \
+ src/c/$(am__dirstamp) src/c/$(DEPDIR)/$(am__dirstamp)
+src/c/libscilocalization_algo_la-setdefaultlanguage.lo: \
+ src/c/$(am__dirstamp) src/c/$(DEPDIR)/$(am__dirstamp)
+src/jni/$(am__dirstamp):
+ @$(MKDIR_P) src/jni
+ @: > src/jni/$(am__dirstamp)
+src/jni/$(DEPDIR)/$(am__dirstamp):
+ @$(MKDIR_P) src/jni/$(DEPDIR)
+ @: > src/jni/$(DEPDIR)/$(am__dirstamp)
+src/jni/libscilocalization_algo_la-Messages_wrap.lo: \
+ src/jni/$(am__dirstamp) src/jni/$(DEPDIR)/$(am__dirstamp)
+src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo: \
+ src/jni/$(am__dirstamp) src/jni/$(DEPDIR)/$(am__dirstamp)
+src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo: \
+ src/jni/$(am__dirstamp) src/jni/$(DEPDIR)/$(am__dirstamp)
+src/c/libscilocalization_algo_la-getLocaleInfo_Apple.lo: \
+ src/c/$(am__dirstamp) src/c/$(DEPDIR)/$(am__dirstamp)
+
+libscilocalization-algo.la: $(libscilocalization_algo_la_OBJECTS) $(libscilocalization_algo_la_DEPENDENCIES) $(EXTRA_libscilocalization_algo_la_DEPENDENCIES)
+ $(AM_V_CCLD)$(libscilocalization_algo_la_LINK) $(libscilocalization_algo_la_OBJECTS) $(libscilocalization_algo_la_LIBADD) $(LIBS)
+sci_gateway/c/$(am__dirstamp):
+ @$(MKDIR_P) sci_gateway/c
+ @: > sci_gateway/c/$(am__dirstamp)
+sci_gateway/c/$(DEPDIR)/$(am__dirstamp):
+ @$(MKDIR_P) sci_gateway/c/$(DEPDIR)
+ @: > sci_gateway/c/$(DEPDIR)/$(am__dirstamp)
+sci_gateway/c/libscilocalization_la-gw_localization.lo: \
+ sci_gateway/c/$(am__dirstamp) \
+ sci_gateway/c/$(DEPDIR)/$(am__dirstamp)
+sci_gateway/c/libscilocalization_la-sci_gettext.lo: \
+ sci_gateway/c/$(am__dirstamp) \
+ sci_gateway/c/$(DEPDIR)/$(am__dirstamp)
+sci_gateway/c/libscilocalization_la-sci_setlanguage.lo: \
+ sci_gateway/c/$(am__dirstamp) \
+ sci_gateway/c/$(DEPDIR)/$(am__dirstamp)
+sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo: \
+ sci_gateway/c/$(am__dirstamp) \
+ sci_gateway/c/$(DEPDIR)/$(am__dirstamp)
+sci_gateway/c/libscilocalization_la-sci_getlanguage.lo: \
+ sci_gateway/c/$(am__dirstamp) \
+ sci_gateway/c/$(DEPDIR)/$(am__dirstamp)
+sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo: \
+ sci_gateway/c/$(am__dirstamp) \
+ sci_gateway/c/$(DEPDIR)/$(am__dirstamp)
+sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo: \
+ sci_gateway/c/$(am__dirstamp) \
+ sci_gateway/c/$(DEPDIR)/$(am__dirstamp)
+
+libscilocalization.la: $(libscilocalization_la_OBJECTS) $(libscilocalization_la_DEPENDENCIES) $(EXTRA_libscilocalization_la_DEPENDENCIES)
+ $(AM_V_CCLD)$(libscilocalization_la_LINK) -rpath $(pkglibdir) $(libscilocalization_la_OBJECTS) $(libscilocalization_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+ -rm -f sci_gateway/c/*.$(OBJEXT)
+ -rm -f sci_gateway/c/*.lo
+ -rm -f src/c/*.$(OBJEXT)
+ -rm -f src/c/*.lo
+ -rm -f src/jni/*.$(OBJEXT)
+ -rm -f src/jni/*.lo
+
+distclean-compile:
+ -rm -f *.tab.c
+
+include sci_gateway/c/$(DEPDIR)/libscilocalization_la-gw_localization.Plo
+include sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_addlocalizationdomain.Plo
+include sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_getdefaultlanguage.Plo
+include sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_getlanguage.Plo
+include sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_gettext.Plo
+include sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_setdefaultlanguage.Plo
+include sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_setlanguage.Plo
+include src/c/$(DEPDIR)/libscilocalization_algo_la-InitializeLocalization.Plo
+include src/c/$(DEPDIR)/libscilocalization_algo_la-charEncoding.Plo
+include src/c/$(DEPDIR)/libscilocalization_algo_la-getLcidString.Plo
+include src/c/$(DEPDIR)/libscilocalization_algo_la-getLocaleInfo_Apple.Plo
+include src/c/$(DEPDIR)/libscilocalization_algo_la-setdefaultlanguage.Plo
+include src/c/$(DEPDIR)/libscilocalization_algo_la-setgetlanguage.Plo
+include src/jni/$(DEPDIR)/libscilocalization_algo_la-LocaleToLCID_wrap.Plo
+include src/jni/$(DEPDIR)/libscilocalization_algo_la-Messages_wrap.Plo
+include src/jni/$(DEPDIR)/libscilocalization_algo_la-setdefaultlanguage_wrap.Plo
+
+.c.o:
+ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
+ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
+ $(am__mv) $$depbase.Tpo $$depbase.Po
+# $(AM_V_CC)source='$<' object='$@' libtool=no \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(AM_V_CC_no)$(COMPILE) -c -o $@ $<
+
+.c.obj:
+ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
+ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
+ $(am__mv) $$depbase.Tpo $$depbase.Po
+# $(AM_V_CC)source='$<' object='$@' libtool=no \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+.c.lo:
+ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
+ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
+ $(am__mv) $$depbase.Tpo $$depbase.Plo
+# $(AM_V_CC)source='$<' object='$@' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(AM_V_CC_no)$(LTCOMPILE) -c -o $@ $<
+
+src/c/libscilocalization_algo_la-InitializeLocalization.lo: src/c/InitializeLocalization.c
+ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -MT src/c/libscilocalization_algo_la-InitializeLocalization.lo -MD -MP -MF src/c/$(DEPDIR)/libscilocalization_algo_la-InitializeLocalization.Tpo -c -o src/c/libscilocalization_algo_la-InitializeLocalization.lo `test -f 'src/c/InitializeLocalization.c' || echo '$(srcdir)/'`src/c/InitializeLocalization.c
+ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscilocalization_algo_la-InitializeLocalization.Tpo src/c/$(DEPDIR)/libscilocalization_algo_la-InitializeLocalization.Plo
+# $(AM_V_CC)source='src/c/InitializeLocalization.c' object='src/c/libscilocalization_algo_la-InitializeLocalization.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -c -o src/c/libscilocalization_algo_la-InitializeLocalization.lo `test -f 'src/c/InitializeLocalization.c' || echo '$(srcdir)/'`src/c/InitializeLocalization.c
+
+src/c/libscilocalization_algo_la-setgetlanguage.lo: src/c/setgetlanguage.c
+ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -MT src/c/libscilocalization_algo_la-setgetlanguage.lo -MD -MP -MF src/c/$(DEPDIR)/libscilocalization_algo_la-setgetlanguage.Tpo -c -o src/c/libscilocalization_algo_la-setgetlanguage.lo `test -f 'src/c/setgetlanguage.c' || echo '$(srcdir)/'`src/c/setgetlanguage.c
+ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscilocalization_algo_la-setgetlanguage.Tpo src/c/$(DEPDIR)/libscilocalization_algo_la-setgetlanguage.Plo
+# $(AM_V_CC)source='src/c/setgetlanguage.c' object='src/c/libscilocalization_algo_la-setgetlanguage.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -c -o src/c/libscilocalization_algo_la-setgetlanguage.lo `test -f 'src/c/setgetlanguage.c' || echo '$(srcdir)/'`src/c/setgetlanguage.c
+
+src/c/libscilocalization_algo_la-getLcidString.lo: src/c/getLcidString.c
+ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -MT src/c/libscilocalization_algo_la-getLcidString.lo -MD -MP -MF src/c/$(DEPDIR)/libscilocalization_algo_la-getLcidString.Tpo -c -o src/c/libscilocalization_algo_la-getLcidString.lo `test -f 'src/c/getLcidString.c' || echo '$(srcdir)/'`src/c/getLcidString.c
+ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscilocalization_algo_la-getLcidString.Tpo src/c/$(DEPDIR)/libscilocalization_algo_la-getLcidString.Plo
+# $(AM_V_CC)source='src/c/getLcidString.c' object='src/c/libscilocalization_algo_la-getLcidString.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -c -o src/c/libscilocalization_algo_la-getLcidString.lo `test -f 'src/c/getLcidString.c' || echo '$(srcdir)/'`src/c/getLcidString.c
+
+src/c/libscilocalization_algo_la-charEncoding.lo: src/c/charEncoding.c
+ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -MT src/c/libscilocalization_algo_la-charEncoding.lo -MD -MP -MF src/c/$(DEPDIR)/libscilocalization_algo_la-charEncoding.Tpo -c -o src/c/libscilocalization_algo_la-charEncoding.lo `test -f 'src/c/charEncoding.c' || echo '$(srcdir)/'`src/c/charEncoding.c
+ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscilocalization_algo_la-charEncoding.Tpo src/c/$(DEPDIR)/libscilocalization_algo_la-charEncoding.Plo
+# $(AM_V_CC)source='src/c/charEncoding.c' object='src/c/libscilocalization_algo_la-charEncoding.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -c -o src/c/libscilocalization_algo_la-charEncoding.lo `test -f 'src/c/charEncoding.c' || echo '$(srcdir)/'`src/c/charEncoding.c
+
+src/c/libscilocalization_algo_la-setdefaultlanguage.lo: src/c/setdefaultlanguage.c
+ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -MT src/c/libscilocalization_algo_la-setdefaultlanguage.lo -MD -MP -MF src/c/$(DEPDIR)/libscilocalization_algo_la-setdefaultlanguage.Tpo -c -o src/c/libscilocalization_algo_la-setdefaultlanguage.lo `test -f 'src/c/setdefaultlanguage.c' || echo '$(srcdir)/'`src/c/setdefaultlanguage.c
+ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscilocalization_algo_la-setdefaultlanguage.Tpo src/c/$(DEPDIR)/libscilocalization_algo_la-setdefaultlanguage.Plo
+# $(AM_V_CC)source='src/c/setdefaultlanguage.c' object='src/c/libscilocalization_algo_la-setdefaultlanguage.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -c -o src/c/libscilocalization_algo_la-setdefaultlanguage.lo `test -f 'src/c/setdefaultlanguage.c' || echo '$(srcdir)/'`src/c/setdefaultlanguage.c
+
+src/jni/libscilocalization_algo_la-Messages_wrap.lo: src/jni/Messages_wrap.c
+ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -MT src/jni/libscilocalization_algo_la-Messages_wrap.lo -MD -MP -MF src/jni/$(DEPDIR)/libscilocalization_algo_la-Messages_wrap.Tpo -c -o src/jni/libscilocalization_algo_la-Messages_wrap.lo `test -f 'src/jni/Messages_wrap.c' || echo '$(srcdir)/'`src/jni/Messages_wrap.c
+ $(AM_V_at)$(am__mv) src/jni/$(DEPDIR)/libscilocalization_algo_la-Messages_wrap.Tpo src/jni/$(DEPDIR)/libscilocalization_algo_la-Messages_wrap.Plo
+# $(AM_V_CC)source='src/jni/Messages_wrap.c' object='src/jni/libscilocalization_algo_la-Messages_wrap.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -c -o src/jni/libscilocalization_algo_la-Messages_wrap.lo `test -f 'src/jni/Messages_wrap.c' || echo '$(srcdir)/'`src/jni/Messages_wrap.c
+
+src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo: src/jni/LocaleToLCID_wrap.c
+ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -MT src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo -MD -MP -MF src/jni/$(DEPDIR)/libscilocalization_algo_la-LocaleToLCID_wrap.Tpo -c -o src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo `test -f 'src/jni/LocaleToLCID_wrap.c' || echo '$(srcdir)/'`src/jni/LocaleToLCID_wrap.c
+ $(AM_V_at)$(am__mv) src/jni/$(DEPDIR)/libscilocalization_algo_la-LocaleToLCID_wrap.Tpo src/jni/$(DEPDIR)/libscilocalization_algo_la-LocaleToLCID_wrap.Plo
+# $(AM_V_CC)source='src/jni/LocaleToLCID_wrap.c' object='src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -c -o src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo `test -f 'src/jni/LocaleToLCID_wrap.c' || echo '$(srcdir)/'`src/jni/LocaleToLCID_wrap.c
+
+src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo: src/jni/setdefaultlanguage_wrap.c
+ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -MT src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo -MD -MP -MF src/jni/$(DEPDIR)/libscilocalization_algo_la-setdefaultlanguage_wrap.Tpo -c -o src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo `test -f 'src/jni/setdefaultlanguage_wrap.c' || echo '$(srcdir)/'`src/jni/setdefaultlanguage_wrap.c
+ $(AM_V_at)$(am__mv) src/jni/$(DEPDIR)/libscilocalization_algo_la-setdefaultlanguage_wrap.Tpo src/jni/$(DEPDIR)/libscilocalization_algo_la-setdefaultlanguage_wrap.Plo
+# $(AM_V_CC)source='src/jni/setdefaultlanguage_wrap.c' object='src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -c -o src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo `test -f 'src/jni/setdefaultlanguage_wrap.c' || echo '$(srcdir)/'`src/jni/setdefaultlanguage_wrap.c
+
+src/c/libscilocalization_algo_la-getLocaleInfo_Apple.lo: src/c/getLocaleInfo_Apple.c
+ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -MT src/c/libscilocalization_algo_la-getLocaleInfo_Apple.lo -MD -MP -MF src/c/$(DEPDIR)/libscilocalization_algo_la-getLocaleInfo_Apple.Tpo -c -o src/c/libscilocalization_algo_la-getLocaleInfo_Apple.lo `test -f 'src/c/getLocaleInfo_Apple.c' || echo '$(srcdir)/'`src/c/getLocaleInfo_Apple.c
+ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscilocalization_algo_la-getLocaleInfo_Apple.Tpo src/c/$(DEPDIR)/libscilocalization_algo_la-getLocaleInfo_Apple.Plo
+# $(AM_V_CC)source='src/c/getLocaleInfo_Apple.c' object='src/c/libscilocalization_algo_la-getLocaleInfo_Apple.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -c -o src/c/libscilocalization_algo_la-getLocaleInfo_Apple.lo `test -f 'src/c/getLocaleInfo_Apple.c' || echo '$(srcdir)/'`src/c/getLocaleInfo_Apple.c
+
+sci_gateway/c/libscilocalization_la-gw_localization.lo: sci_gateway/c/gw_localization.c
+ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscilocalization_la-gw_localization.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscilocalization_la-gw_localization.Tpo -c -o sci_gateway/c/libscilocalization_la-gw_localization.lo `test -f 'sci_gateway/c/gw_localization.c' || echo '$(srcdir)/'`sci_gateway/c/gw_localization.c
+ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscilocalization_la-gw_localization.Tpo sci_gateway/c/$(DEPDIR)/libscilocalization_la-gw_localization.Plo
+# $(AM_V_CC)source='sci_gateway/c/gw_localization.c' object='sci_gateway/c/libscilocalization_la-gw_localization.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscilocalization_la-gw_localization.lo `test -f 'sci_gateway/c/gw_localization.c' || echo '$(srcdir)/'`sci_gateway/c/gw_localization.c
+
+sci_gateway/c/libscilocalization_la-sci_gettext.lo: sci_gateway/c/sci_gettext.c
+ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscilocalization_la-sci_gettext.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_gettext.Tpo -c -o sci_gateway/c/libscilocalization_la-sci_gettext.lo `test -f 'sci_gateway/c/sci_gettext.c' || echo '$(srcdir)/'`sci_gateway/c/sci_gettext.c
+ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_gettext.Tpo sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_gettext.Plo
+# $(AM_V_CC)source='sci_gateway/c/sci_gettext.c' object='sci_gateway/c/libscilocalization_la-sci_gettext.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscilocalization_la-sci_gettext.lo `test -f 'sci_gateway/c/sci_gettext.c' || echo '$(srcdir)/'`sci_gateway/c/sci_gettext.c
+
+sci_gateway/c/libscilocalization_la-sci_setlanguage.lo: sci_gateway/c/sci_setlanguage.c
+ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscilocalization_la-sci_setlanguage.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_setlanguage.Tpo -c -o sci_gateway/c/libscilocalization_la-sci_setlanguage.lo `test -f 'sci_gateway/c/sci_setlanguage.c' || echo '$(srcdir)/'`sci_gateway/c/sci_setlanguage.c
+ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_setlanguage.Tpo sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_setlanguage.Plo
+# $(AM_V_CC)source='sci_gateway/c/sci_setlanguage.c' object='sci_gateway/c/libscilocalization_la-sci_setlanguage.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscilocalization_la-sci_setlanguage.lo `test -f 'sci_gateway/c/sci_setlanguage.c' || echo '$(srcdir)/'`sci_gateway/c/sci_setlanguage.c
+
+sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo: sci_gateway/c/sci_getdefaultlanguage.c
+ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_getdefaultlanguage.Tpo -c -o sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo `test -f 'sci_gateway/c/sci_getdefaultlanguage.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getdefaultlanguage.c
+ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_getdefaultlanguage.Tpo sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_getdefaultlanguage.Plo
+# $(AM_V_CC)source='sci_gateway/c/sci_getdefaultlanguage.c' object='sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo `test -f 'sci_gateway/c/sci_getdefaultlanguage.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getdefaultlanguage.c
+
+sci_gateway/c/libscilocalization_la-sci_getlanguage.lo: sci_gateway/c/sci_getlanguage.c
+ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscilocalization_la-sci_getlanguage.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_getlanguage.Tpo -c -o sci_gateway/c/libscilocalization_la-sci_getlanguage.lo `test -f 'sci_gateway/c/sci_getlanguage.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getlanguage.c
+ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_getlanguage.Tpo sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_getlanguage.Plo
+# $(AM_V_CC)source='sci_gateway/c/sci_getlanguage.c' object='sci_gateway/c/libscilocalization_la-sci_getlanguage.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscilocalization_la-sci_getlanguage.lo `test -f 'sci_gateway/c/sci_getlanguage.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getlanguage.c
+
+sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo: sci_gateway/c/sci_setdefaultlanguage.c
+ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_setdefaultlanguage.Tpo -c -o sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo `test -f 'sci_gateway/c/sci_setdefaultlanguage.c' || echo '$(srcdir)/'`sci_gateway/c/sci_setdefaultlanguage.c
+ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_setdefaultlanguage.Tpo sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_setdefaultlanguage.Plo
+# $(AM_V_CC)source='sci_gateway/c/sci_setdefaultlanguage.c' object='sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo `test -f 'sci_gateway/c/sci_setdefaultlanguage.c' || echo '$(srcdir)/'`sci_gateway/c/sci_setdefaultlanguage.c
+
+sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo: sci_gateway/c/sci_addlocalizationdomain.c
+ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_addlocalizationdomain.Tpo -c -o sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo `test -f 'sci_gateway/c/sci_addlocalizationdomain.c' || echo '$(srcdir)/'`sci_gateway/c/sci_addlocalizationdomain.c
+ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_addlocalizationdomain.Tpo sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_addlocalizationdomain.Plo
+# $(AM_V_CC)source='sci_gateway/c/sci_addlocalizationdomain.c' object='sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo `test -f 'sci_gateway/c/sci_addlocalizationdomain.c' || echo '$(srcdir)/'`sci_gateway/c/sci_addlocalizationdomain.c
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+ -rm -rf sci_gateway/c/.libs sci_gateway/c/_libs
+ -rm -rf src/c/.libs src/c/_libs
+ -rm -rf src/jni/.libs src/jni/_libs
+install-libscilocalization_la_etcDATA: $(libscilocalization_la_etc_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(libscilocalization_la_etc_DATA)'; test -n "$(libscilocalization_la_etcdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(libscilocalization_la_etcdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(libscilocalization_la_etcdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscilocalization_la_etcdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(libscilocalization_la_etcdir)" || exit $$?; \
+ done
+
+uninstall-libscilocalization_la_etcDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(libscilocalization_la_etc_DATA)'; test -n "$(libscilocalization_la_etcdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(libscilocalization_la_etcdir)'; $(am__uninstall_files_from_dir)
+install-libscilocalization_la_rootDATA: $(libscilocalization_la_root_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(libscilocalization_la_root_DATA)'; test -n "$(libscilocalization_la_rootdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(libscilocalization_la_rootdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(libscilocalization_la_rootdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscilocalization_la_rootdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(libscilocalization_la_rootdir)" || exit $$?; \
+ done
+
+uninstall-libscilocalization_la_rootDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(libscilocalization_la_root_DATA)'; test -n "$(libscilocalization_la_rootdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(libscilocalization_la_rootdir)'; $(am__uninstall_files_from_dir)
+install-libscilocalization_la_sci_gatewayDATA: $(libscilocalization_la_sci_gateway_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(libscilocalization_la_sci_gateway_DATA)'; test -n "$(libscilocalization_la_sci_gatewaydir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(libscilocalization_la_sci_gatewaydir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(libscilocalization_la_sci_gatewaydir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscilocalization_la_sci_gatewaydir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(libscilocalization_la_sci_gatewaydir)" || exit $$?; \
+ done
+
+uninstall-libscilocalization_la_sci_gatewayDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(libscilocalization_la_sci_gateway_DATA)'; test -n "$(libscilocalization_la_sci_gatewaydir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(libscilocalization_la_sci_gatewaydir)'; $(am__uninstall_files_from_dir)
+install-libscilocalization_la_includeHEADERS: $(libscilocalization_la_include_HEADERS)
+ @$(NORMAL_INSTALL)
+ @list='$(libscilocalization_la_include_HEADERS)'; test -n "$(libscilocalization_la_includedir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(libscilocalization_la_includedir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(libscilocalization_la_includedir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libscilocalization_la_includedir)'"; \
+ $(INSTALL_HEADER) $$files "$(DESTDIR)$(libscilocalization_la_includedir)" || exit $$?; \
+ done
+
+uninstall-libscilocalization_la_includeHEADERS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(libscilocalization_la_include_HEADERS)'; test -n "$(libscilocalization_la_includedir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(libscilocalization_la_includedir)'; $(am__uninstall_files_from_dir)
+
+ID: $(am__tagged_files)
+ $(am__define_uniq_tagged_files); mkid -fID $$unique
+tags: tags-am
+TAGS: tags
+
+tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+ set x; \
+ here=`pwd`; \
+ $(am__define_uniq_tagged_files); \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
+ctags: ctags-am
+
+CTAGS: ctags
+ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+ $(am__define_uniq_tagged_files); \
+ test -z "$(CTAGS_ARGS)$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
+cscopelist: cscopelist-am
+
+cscopelist-am: $(am__tagged_files)
+ list='$(am__tagged_files)'; \
+ case "$(srcdir)" in \
+ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
+ *) sdir=$(subdir)/$(srcdir) ;; \
+ esac; \
+ for i in $$list; do \
+ if test -f "$$i"; then \
+ echo "$(subdir)/$$i"; \
+ else \
+ echo "$$sdir/$$i"; \
+ fi; \
+ done >> $(top_builddir)/cscope.files
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+ $(MAKE) $(AM_MAKEFLAGS) check-local
+check: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) check-am
+all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS) all-local
+installdirs:
+ for dir in "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(libscilocalization_la_etcdir)" "$(DESTDIR)$(libscilocalization_la_rootdir)" "$(DESTDIR)$(libscilocalization_la_sci_gatewaydir)" "$(DESTDIR)$(libscilocalization_la_includedir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+ -rm -f sci_gateway/c/$(DEPDIR)/$(am__dirstamp)
+ -rm -f sci_gateway/c/$(am__dirstamp)
+ -rm -f src/c/$(DEPDIR)/$(am__dirstamp)
+ -rm -f src/c/$(am__dirstamp)
+ -rm -f src/jni/$(DEPDIR)/$(am__dirstamp)
+ -rm -f src/jni/$(am__dirstamp)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+ -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
+clean: clean-am
+
+clean-am: clean-generic clean-libtool clean-local \
+ clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES mostlyclean-am
+
+distclean: distclean-am
+ -rm -rf sci_gateway/c/$(DEPDIR) src/c/$(DEPDIR) src/jni/$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-local distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-data-local \
+ install-libscilocalization_la_etcDATA \
+ install-libscilocalization_la_includeHEADERS \
+ install-libscilocalization_la_rootDATA \
+ install-libscilocalization_la_sci_gatewayDATA
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am: install-pkglibLTLIBRARIES
+
+install-html: install-html-am
+
+install-html-am: install-html-local
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -rf sci_gateway/c/$(DEPDIR) src/c/$(DEPDIR) src/jni/$(DEPDIR)
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-libscilocalization_la_etcDATA \
+ uninstall-libscilocalization_la_includeHEADERS \
+ uninstall-libscilocalization_la_rootDATA \
+ uninstall-libscilocalization_la_sci_gatewayDATA \
+ uninstall-pkglibLTLIBRARIES
+
+.MAKE: all check check-am install install-am install-strip
+
+.PHONY: CTAGS GTAGS TAGS all all-am all-local check check-am \
+ check-local clean clean-generic clean-libtool clean-local \
+ clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES cscopelist-am \
+ ctags ctags-am distclean distclean-compile distclean-generic \
+ distclean-libtool distclean-local distclean-tags distdir dvi \
+ dvi-am html html-am info info-am install install-am \
+ install-data install-data-am install-data-local install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-html-local install-info \
+ install-info-am install-libscilocalization_la_etcDATA \
+ install-libscilocalization_la_includeHEADERS \
+ install-libscilocalization_la_rootDATA \
+ install-libscilocalization_la_sci_gatewayDATA install-man \
+ install-pdf install-pdf-am install-pkglibLTLIBRARIES \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ tags tags-am uninstall uninstall-am \
+ uninstall-libscilocalization_la_etcDATA \
+ uninstall-libscilocalization_la_includeHEADERS \
+ uninstall-libscilocalization_la_rootDATA \
+ uninstall-libscilocalization_la_sci_gatewayDATA \
+ uninstall-pkglibLTLIBRARIES
+
+
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin test
+ if test -d $(mydatadir)/tests; then \
+ @COMMAND="try test_run('$(modulename)');catch exit(-1);end;exit(0)"; export LANG=C; $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+ fi
+check-code:
+ if test -f build.xml; then \
+ $(ANT) checkstyle; \
+ fi
+ if test -x "$(SPLINT)"; then \
+ $(SPLINT) $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC); \
+ fi
+java:
+# Some configurations needs to export JAVA_HOME in the current env
+ @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
+ if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \
+ if test -f build.xml -a $$USEANT -eq 1; then \
+ $(ANT); \
+ fi
+
+clean-java:
+# Some configurations needs to export JAVA_HOME in the current env
+ @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
+ if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \
+ if test -f build.xml -a $$USEANT -eq 1; then \
+ $(ANT) clean; \
+ fi;
+
+# If the user request for the SWIG generation of the wrappers Java => C/C++
+# We call the target swig-build on the variable SWIG_WRAPPERS
+
+#swig: $(SWIG_WRAPPERS)
+# @SWIG_PACKAGENAME=org.scilab.modules.$(modulename); \
+# SWIG_OUTDIR=src/java/org/scilab/modules/$(modulename)/; \
+# if test -n "$(SWIG_WRAPPERS)"; then \
+# for file in $(SWIG_WRAPPERS) ; do \
+# echo "Swig process of $$file (Java) ..."; \
+# $(SWIG_BIN) $(SWIG_JAVA) -package $$SWIG_PACKAGENAME -outdir $$SWIG_OUTDIR $$file; \
+# done; \
+# fi
+
+#swig-scilab: $(SWIG_SCILAB_WRAPPERS)
+# @SWIG_OUTDIR=src/swig/; \
+# if test -n "$(SWIG_SCILAB_WRAPPERS)"; then \
+# for file in $(SWIG_SCILAB_WRAPPERS) ; do \
+# echo "Swig process of $$file (Scilab) ..."; \
+# $(SWIG_BIN) $(SWIG_SCILAB) -outdir $$SWIG_OUTDIR $$file; \
+# done; \
+# fi
+
+# If the user request for the SWIG generation of the wrappers Java => C/C++
+# We call the target swig-build on the variable SWIG_WRAPPERS
+
+#giws: $(GIWS_WRAPPERS)
+# @GIWS_OUTPUTDIR=src/jni/; \
+# MANDATORY_OPTIONS="--throws-exception-on-error --description-file"; \
+# if test -n "$(GIWS_WRAPPERS)"; then \
+# for file in $(GIWS_WRAPPERS) ; do \
+# echo "GIWS process of $$file ..."; \
+# if test -z "$(GIWS_OPTIONS)"; then \
+# $(GIWS_BIN) --disable-return-size-array --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \
+# else \
+# echo "Custom GIWS call with '$$GIWS_OPTIONS'"; \
+# $(GIWS_BIN) $$GIWS_OPTIONS --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \
+# fi \
+# done; \
+# fi
+
+#giws-exception:
+# @GIWS_OUTPUTDIR=src/jni/;\
+# echo "GIWS: Generation of exception class ..."; \
+# $(GIWS_BIN) --generate-exception-class --output-dir $$GIWS_OUTPUTDIR
+
+macros:
+ -@( if test ! -x $(top_builddir)/scilab-bin; then \
+ echo "Error : Cannot build $< : Scilab has not been built"; \
+ else \
+ $(top_builddir)/bin/scilab -ns -nwni -e "exec('macros/buildmacros.sce');quit;";\
+ fi)
+
+# Removes the macros
+clean-macros:
+# Removes macros (*.bin generated from .sci)
+ @for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \
+ echo "rm -f $(builddir)/$$dir/$(MACROBINMASK)"; \
+ rm -f $(builddir)/$$dir/$(MACROBINMASK); \
+ done
+
+test:
+# More tests could be added here
+ @if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \
+ if test -f build.xml -a $$USEANT -eq 1; then \
+ $(ANT) test; \
+ fi
+
+all-local: $(TARGETS_ALL)
+
+.sci.bin:
+ -@( if test ! -x $(top_builddir)/scilab-bin; then \
+ echo "Error : Cannot build $< : Scilab has not been build"; \
+ else \
+ echo "Creating $@"; \
+ $(top_builddir)/bin/scilab -ns -nwni -e "exec('$(abs_srcdir)/$<');save('$(abs_srcdir)/$@');exit;"; \
+ fi )
+
+install-html-local:
+
+install-data-local-local:
+# Mainly for javasci
+ @if test -d $(srcdir)/javadoc; then \
+ cp -R $(srcdir)/javadoc $(DESTDIR)/$(mydatadir)/; \
+ fi
+# If the user wants the help sources to be installed
+ @echo "-------- Install of XML sources of help files --------"; \
+ for lang in $(ALL_LINGUAS); do \
+ if test -d $(srcdir)/help/$$lang; then \
+ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/$$lang && \
+ if ls -lLd $(srcdir)/help/$$lang/$(DOCMASKXML) >/dev/null 2>&1; then \
+ for file in $(srcdir)/help/$$lang/$(DOCMASKXML) ; do \
+ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/$$lang" ; \
+ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/$$lang ; \
+ done ; \
+ fi; \
+ fi; \
+ done; \
+ @echo "-------- Install of MathML sources --------"; \
+ if test -d $(srcdir)/help/mml/; then \
+ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/mml/ && \
+ if ls -lLd $(srcdir)/help/mml/$(DOCMASKMML) >/dev/null 2>&1; then \
+ for file in $(srcdir)/help/mml/$(DOCMASKMML) ; do \
+ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/mml" ; \
+ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/mml ; \
+ done ; \
+ fi; \
+ fi
+install-data-local:
+# Install the tests
+ @echo "-------- Install tests (if any) --------"; \
+ for dir in $(TESTS_DIR) $(TESTS_DIREXT) ; do \
+ if test -d $(srcdir)/$$dir/; then \
+ $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \
+ for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \
+ if test -d "$(srcdir)/$$dir/$$file"; then \
+ echo $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir/$$file; \
+ $(mkinstalldirs) "$(DESTDIR)$(pkgmacrosdir)/$$dir/$$file"; \
+ else \
+ echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \
+ $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \
+ fi \
+ done; \
+ fi; \
+ done
+# Install the help chapter
+ @echo "-------- Install the help chapter (if any) --------"; \
+ for lang in $(HELP_CHAPTERLANG); do \
+ HELPFILE=$(srcdir)/$(HELP_CHAPTERDIR)$$lang/$(HELP_CHAPTERFILE); \
+ if test -f $$HELPFILE; then \
+ echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \
+ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \
+ echo $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \
+ $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \
+ fi; \
+ done
+# Install the demos & examples
+ @echo "-------- Install demos & examples (if any) --------"; \
+ for dir in $(DEMOS_DIR) $(DEMOS_DIREXT) $(EXAMPLES_DIR) $(EXAMPLES_DIREXT) ; do \
+ if test -d $(srcdir)/$$dir/; then \
+ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \
+ for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \
+ if test -d "$(srcdir)/$$dir/$$file"; then \
+ echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir/$$file; \
+ $(mkinstalldirs) "$(DESTDIR)$(pkgdocdir)/$$dir/$$file"; \
+ else \
+ echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \
+ $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \
+ fi \
+ done; \
+ fi; \
+ done
+# Install the macros
+ @echo "-------- Install macros (if any) --------"; \
+ for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \
+ $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \
+ if test -d $(srcdir)/$$dir/; then \
+ FILELIST="$(srcdir)/$$dir/$(MACROMASK) $(srcdir)/$$dir/$(MACROBINMASK) $(srcdir)/$$dir/$(MACROBUILDMASK) $(srcdir)/$$dir/names $(srcdir)/$$dir/lib";\
+ if test -n "$(MACROSSPECIALEXT)"; then \
+ specialExtDir=""; \
+ for specialExt in $(MACROSSPECIALEXT); do \
+ specialExtDir="$$specialExtDir $(srcdir)/$$dir/$$specialExt"; \
+ done; \
+ FILELIST="$$FILELIST $$specialExtDir"; \
+ fi; \
+ for file in `ls -1 $$FILELIST 2>/dev/null`; do \
+ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgmacrosdir)/$$dir" ; \
+ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgmacrosdir)/$$dir ; \
+ done; \
+ fi; \
+ done
+# Install java files (.jar)
+ @if ls -lLd $(srcdir)/$(JARDIR)$(JARMASK) >/dev/null 2>&1; then \
+ echo "-------- Install jar files --------"; \
+ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(JARDIR); \
+ for file in $(srcdir)/$(JARDIR)$(JARMASK); do\
+ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$(JARDIR)" ; \
+ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$(JARDIR) ; \
+ done ; \
+ fi
+
+########### CLEAN ###################
+# Clean help (generated automatically by Scilab)
+# It used to clean the macro (clean-macros) but this was causing
+# make clean && make to fail Scilab startup
+clean-local: clean-java
+#clean-local:
+
+distclean-local:
+ rm -f $(builddir)/help/*/.last_successful_build_javaHelp $(builddir)/help/*/.list_*
+
+.PHONY: macros java swig giws
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/modules/localization/Makefile.am b/modules/localization/Makefile.am
new file mode 100755
index 000000000..28339d540
--- /dev/null
+++ b/modules/localization/Makefile.am
@@ -0,0 +1,109 @@
+# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+# Copyright (C) 2006-2008 - INRIA - Sylvestre LEDRU
+#
+# This file must be used under the terms of the CeCILL.
+# This source file is licensed as described in the file COPYING, which
+# you should have received as part of this distribution. The terms
+# are also available at
+# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+
+LOCALIZATION_C_SOURCES = \
+src/c/InitializeLocalization.c \
+src/c/setgetlanguage.c \
+src/c/getLcidString.c \
+src/c/charEncoding.c \
+src/c/setdefaultlanguage.c
+
+if NEED_JAVA
+LOCALIZATION_C_SOURCES+=src/jni/Messages_wrap.c \
+src/jni/LocaleToLCID_wrap.c \
+src/jni/setdefaultlanguage_wrap.c
+endif
+
+if IS_MACOSX
+LOCALIZATION_C_SOURCES += src/c/getLocaleInfo_Apple.c
+endif
+
+GATEWAY_C_SOURCES = sci_gateway/c/gw_localization.c \
+sci_gateway/c/sci_gettext.c \
+sci_gateway/c/sci_setlanguage.c \
+sci_gateway/c/sci_getdefaultlanguage.c \
+sci_gateway/c/sci_getlanguage.c \
+sci_gateway/c/sci_setdefaultlanguage.c \
+sci_gateway/c/sci_addlocalizationdomain.c
+
+
+libscilocalization_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
+ -I$(srcdir)/includes/ \
+ -I$(srcdir)/src/c/ \
+ -I$(top_srcdir)/modules/string/includes/ \
+ -I$(top_srcdir)/modules/fileio/includes/ \
+ -I$(top_srcdir)/modules/api_scilab/includes/ \
+ -I$(top_srcdir)/modules/output_stream/includes \
+ -I$(top_srcdir)/modules/localization/includes \
+ $(AM_CPPFLAGS)
+
+pkglib_LTLIBRARIES = libscilocalization.la
+noinst_LTLIBRARIES = libscilocalization-algo.la
+
+libscilocalization_la_LDFLAGS = $(AM_LDFLAGS)
+libscilocalization_la_CFLAGS = $(AM_CFLAGS)
+
+libscilocalization_algo_la_SOURCES = $(LOCALIZATION_C_SOURCES)
+libscilocalization_la_SOURCES = $(GATEWAY_C_SOURCES)
+libscilocalization_algo_la_CPPFLAGS = $(libscilocalization_la_CPPFLAGS)
+libscilocalization_algo_la_CFLAGS = $(libscilocalization_la_CFLAGS)
+libscilocalization_algo_la_LDFLAGS = $(libscilocalization_la_LDFLAGS)
+
+# For the code check (splint)
+CHECK_SRC= $(libscilocalization_la_SOURCES)
+INCLUDE_FLAGS = $(libscilocalization_la_CPPFLAGS)
+
+libscilocalization_la_LIBADD = libscilocalization-algo.la
+
+# FIXME: platform dependent things should be in configure.ac
+if IS_MACOSX
+libscilocalization_la_LDFLAGS += -framework Cocoa
+libscilocalization_la_LIBADD += -lintl
+libscilocalization_la_CFLAGS += -framework Cocoa
+endif
+
+# $(top_builddir)/modules/io/libsciio.la
+#### Target ######
+modulename=localization
+
+#### localization : Conf files ####
+libscilocalization_la_rootdir = $(mydatadir)
+libscilocalization_la_root_DATA = license.txt
+
+
+####localization : init scripts ####
+libscilocalization_la_etcdir = $(mydatadir)/etc
+libscilocalization_la_etc_DATA = etc/localization.quit etc/localization.start
+
+####�localization : gateway declaration ####
+libscilocalization_la_sci_gatewaydir = $(mydatadir)/sci_gateway
+libscilocalization_la_sci_gateway_DATA = sci_gateway/localization_gateway.xml
+
+
+####localization : include files ####
+libscilocalization_la_includedir=$(pkgincludedir)
+libscilocalization_la_include_HEADERS = includes/localization.h \
+includes/setgetlanguage.h \
+includes/charEncoding.h
+
+if GUI
+USEANT=1
+endif
+
+#### SWIG Declaration ####
+SWIG_WRAPPERS = src/jni/Messages.i \
+src/jni/LocaleToLCID.i
+
+if SWIG
+BUILT_SOURCES=swig
+endif
+
+
+include $(top_srcdir)/Makefile.incl.am
diff --git a/modules/localization/Makefile.in b/modules/localization/Makefile.in
new file mode 100755
index 000000000..c91d8ebf4
--- /dev/null
+++ b/modules/localization/Makefile.in
@@ -0,0 +1,1573 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+# Copyright (C) 2006-2008 - INRIA - Sylvestre LEDRU
+#
+# This file must be used under the terms of the CeCILL.
+# This source file is licensed as described in the file COPYING, which
+# you should have received as part of this distribution. The terms
+# are also available at
+# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+# Copyright (C) 2006-2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
+# Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr>
+#
+# This file must be used under the terms of the CeCILL.
+# This source file is licensed as described in the file COPYING, which
+# you should have received as part of this distribution. The terms
+# are also available at
+# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+#
+
+##########
+### Makefile included stuff
+### Target, variable, suffixes which are supposed to be useful in every makefile.am
+##########
+
+
+
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+ case $${target_option-} in \
+ ?) ;; \
+ *) echo "am__make_running_with_option: internal error: invalid" \
+ "target option '$${target_option-}' specified" >&2; \
+ exit 1;; \
+ esac; \
+ has_opt=no; \
+ sane_makeflags=$$MAKEFLAGS; \
+ if $(am__is_gnu_make); then \
+ sane_makeflags=$$MFLAGS; \
+ else \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ bs=\\; \
+ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
+ esac; \
+ fi; \
+ skip_next=no; \
+ strip_trailopt () \
+ { \
+ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+ }; \
+ for flg in $$sane_makeflags; do \
+ test $$skip_next = yes && { skip_next=no; continue; }; \
+ case $$flg in \
+ *=*|--*) continue;; \
+ -*I) strip_trailopt 'I'; skip_next=yes;; \
+ -*I?*) strip_trailopt 'I';; \
+ -*O) strip_trailopt 'O'; skip_next=yes;; \
+ -*O?*) strip_trailopt 'O';; \
+ -*l) strip_trailopt 'l'; skip_next=yes;; \
+ -*l?*) strip_trailopt 'l';; \
+ -[dEDm]) skip_next=yes;; \
+ -[JT]) skip_next=yes;; \
+ esac; \
+ case $$flg in \
+ *$$target_option*) has_opt=yes; break;; \
+ esac; \
+ done; \
+ test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+@NEED_JAVA_TRUE@am__append_1 = src/jni/Messages_wrap.c \
+@NEED_JAVA_TRUE@src/jni/LocaleToLCID_wrap.c \
+@NEED_JAVA_TRUE@src/jni/setdefaultlanguage_wrap.c
+
+@IS_MACOSX_TRUE@am__append_2 = src/c/getLocaleInfo_Apple.c
+
+# FIXME: platform dependent things should be in configure.ac
+@IS_MACOSX_TRUE@am__append_3 = -framework Cocoa
+@IS_MACOSX_TRUE@am__append_4 = -lintl
+@IS_MACOSX_TRUE@am__append_5 = -framework Cocoa
+DIST_COMMON = $(top_srcdir)/Makefile.incl.am $(srcdir)/Makefile.in \
+ $(srcdir)/Makefile.am $(top_srcdir)/config/mkinstalldirs \
+ $(top_srcdir)/config/depcomp \
+ $(libscilocalization_la_include_HEADERS)
+@NEED_JAVA_TRUE@am__append_6 = java
+subdir = modules/localization
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/backtrace.m4 \
+ $(top_srcdir)/m4/compiler.m4 $(top_srcdir)/m4/curl.m4 \
+ $(top_srcdir)/m4/docbook.m4 $(top_srcdir)/m4/doxygen.m4 \
+ $(top_srcdir)/m4/fftw.m4 $(top_srcdir)/m4/fortran.m4 \
+ $(top_srcdir)/m4/giws.m4 $(top_srcdir)/m4/hdf5.m4 \
+ $(top_srcdir)/m4/intel_compiler.m4 \
+ $(top_srcdir)/m4/java-thirdparty.m4 $(top_srcdir)/m4/java.m4 \
+ $(top_srcdir)/m4/largefile.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/libsmath.m4 $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/ltoptions.m4 \
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/macosx.m4 \
+ $(top_srcdir)/m4/mpi.m4 $(top_srcdir)/m4/ocaml.m4 \
+ $(top_srcdir)/m4/pcre.m4 $(top_srcdir)/m4/pkg.m4 \
+ $(top_srcdir)/m4/relocatable.m4 $(top_srcdir)/m4/swig.m4 \
+ $(top_srcdir)/m4/symlinks.m4 $(top_srcdir)/m4/tcltk.m4 \
+ $(top_srcdir)/m4/umfpack.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/modules/core/includes/machine.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__uninstall_files_from_dir = { \
+ test -z "$$files" \
+ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+ $(am__cd) "$$dir" && rm -f $$files; }; \
+ }
+am__installdirs = "$(DESTDIR)$(pkglibdir)" \
+ "$(DESTDIR)$(libscilocalization_la_etcdir)" \
+ "$(DESTDIR)$(libscilocalization_la_rootdir)" \
+ "$(DESTDIR)$(libscilocalization_la_sci_gatewaydir)" \
+ "$(DESTDIR)$(libscilocalization_la_includedir)"
+LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkglib_LTLIBRARIES)
+libscilocalization_algo_la_LIBADD =
+am__libscilocalization_algo_la_SOURCES_DIST = \
+ src/c/InitializeLocalization.c src/c/setgetlanguage.c \
+ src/c/getLcidString.c src/c/charEncoding.c \
+ src/c/setdefaultlanguage.c src/jni/Messages_wrap.c \
+ src/jni/LocaleToLCID_wrap.c src/jni/setdefaultlanguage_wrap.c \
+ src/c/getLocaleInfo_Apple.c
+am__dirstamp = $(am__leading_dot)dirstamp
+@NEED_JAVA_TRUE@am__objects_1 = src/jni/libscilocalization_algo_la-Messages_wrap.lo \
+@NEED_JAVA_TRUE@ src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo \
+@NEED_JAVA_TRUE@ src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo
+@IS_MACOSX_TRUE@am__objects_2 = src/c/libscilocalization_algo_la-getLocaleInfo_Apple.lo
+am__objects_3 = \
+ src/c/libscilocalization_algo_la-InitializeLocalization.lo \
+ src/c/libscilocalization_algo_la-setgetlanguage.lo \
+ src/c/libscilocalization_algo_la-getLcidString.lo \
+ src/c/libscilocalization_algo_la-charEncoding.lo \
+ src/c/libscilocalization_algo_la-setdefaultlanguage.lo \
+ $(am__objects_1) $(am__objects_2)
+am_libscilocalization_algo_la_OBJECTS = $(am__objects_3)
+libscilocalization_algo_la_OBJECTS = \
+ $(am_libscilocalization_algo_la_OBJECTS)
+AM_V_lt = $(am__v_lt_@AM_V@)
+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
+am__v_lt_0 = --silent
+am__v_lt_1 =
+libscilocalization_algo_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
+ $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) \
+ $(libscilocalization_algo_la_LDFLAGS) $(LDFLAGS) -o $@
+am__DEPENDENCIES_1 =
+libscilocalization_la_DEPENDENCIES = libscilocalization-algo.la \
+ $(am__DEPENDENCIES_1)
+am__objects_4 = \
+ sci_gateway/c/libscilocalization_la-gw_localization.lo \
+ sci_gateway/c/libscilocalization_la-sci_gettext.lo \
+ sci_gateway/c/libscilocalization_la-sci_setlanguage.lo \
+ sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo \
+ sci_gateway/c/libscilocalization_la-sci_getlanguage.lo \
+ sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo \
+ sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo
+am_libscilocalization_la_OBJECTS = $(am__objects_4)
+libscilocalization_la_OBJECTS = $(am_libscilocalization_la_OBJECTS)
+libscilocalization_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
+ $(libscilocalization_la_CFLAGS) $(CFLAGS) \
+ $(libscilocalization_la_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo " GEN " $@;
+am__v_GEN_1 =
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 =
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/modules/core/includes
+depcomp = $(SHELL) $(top_srcdir)/config/depcomp
+am__depfiles_maybe = depfiles
+am__mv = mv -f
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_@AM_V@)
+am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
+am__v_CC_0 = @echo " CC " $@;
+am__v_CC_1 =
+CCLD = $(CC)
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_@AM_V@)
+am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
+am__v_CCLD_0 = @echo " CCLD " $@;
+am__v_CCLD_1 =
+SOURCES = $(libscilocalization_algo_la_SOURCES) \
+ $(libscilocalization_la_SOURCES)
+DIST_SOURCES = $(am__libscilocalization_algo_la_SOURCES_DIST) \
+ $(libscilocalization_la_SOURCES)
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
+DATA = $(libscilocalization_la_etc_DATA) \
+ $(libscilocalization_la_root_DATA) \
+ $(libscilocalization_la_sci_gateway_DATA)
+HEADERS = $(libscilocalization_la_include_HEADERS)
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+# Read a list of newline-separated strings from the standard input,
+# and print each of them once, without duplicates. Input order is
+# *not* preserved.
+am__uniquify_input = $(AWK) '\
+ BEGIN { nonempty = 0; } \
+ { items[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in items) print i; }; } \
+'
+# Make sure the list of sources is unique. This is necessary because,
+# e.g., the same source file might be shared among _SOURCES variables
+# for different programs/libraries.
+am__define_uniq_tagged_files = \
+ list='$(am__tagged_files)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | $(am__uniquify_input)`
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+ALL_LINGUAS = @ALL_LINGUAS@
+ALL_LINGUAS_DOC = @ALL_LINGUAS_DOC@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+ANT = @ANT@
+ANTLR = @ANTLR@
+AR = @AR@
+ARPACK_LIBS = @ARPACK_LIBS@
+ASM3 = @ASM3@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AVALON_FRAMEWORK = @AVALON_FRAMEWORK@
+AWK = @AWK@
+BATIK = @BATIK@
+BLAS_LIBS = @BLAS_LIBS@
+CC = @CC@
+CCACHE = @CCACHE@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CHECKSTYLE = @CHECKSTYLE@
+COBERTURA = @COBERTURA@
+COMMONS_BEANUTILS = @COMMONS_BEANUTILS@
+COMMONS_IO = @COMMONS_IO@
+COMMONS_LOGGING = @COMMONS_LOGGING@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CURL_CFLAGS = @CURL_CFLAGS@
+CURL_CONFIG = @CURL_CONFIG@
+CURL_LIBS = @CURL_LIBS@
+CURL_VERSION = @CURL_VERSION@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEMOTOOLS_ENABLE = @DEMOTOOLS_ENABLE@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DOCBOOK_ROOT = @DOCBOOK_ROOT@
+DOXYGEN_BIN = @DOXYGEN_BIN@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+ECJ = @ECJ@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+FFTW3_LIB = @FFTW3_LIB@
+FFTW_ENABLE = @FFTW_ENABLE@
+FGREP = @FGREP@
+FLEXDOCK = @FLEXDOCK@
+FLIBS = @FLIBS@
+FOP = @FOP@
+FREEHEP_GRAPHICS2D = @FREEHEP_GRAPHICS2D@
+FREEHEP_GRAPHICSIO = @FREEHEP_GRAPHICSIO@
+FREEHEP_GRAPHICSIO_EMF = @FREEHEP_GRAPHICSIO_EMF@
+FREEHEP_IO = @FREEHEP_IO@
+FREEHEP_UTIL = @FREEHEP_UTIL@
+GENHTML = @GENHTML@
+GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
+GIWS_BIN = @GIWS_BIN@
+GLUEGEN2_RT = @GLUEGEN2_RT@
+GMSGFMT = @GMSGFMT@
+GMSGFMT_015 = @GMSGFMT_015@
+GRAPHICS_ENABLE = @GRAPHICS_ENABLE@
+GREP = @GREP@
+GUI_ENABLE = @GUI_ENABLE@
+HDF5_CFLAGS = @HDF5_CFLAGS@
+HDF5_LIBS = @HDF5_LIBS@
+HELP_ENABLE = @HELP_ENABLE@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
+JAR = @JAR@
+JAVA = @JAVA@
+JAVAC = @JAVAC@
+JAVAC_DEBUG = @JAVAC_DEBUG@
+JAVADOC = @JAVADOC@
+JAVAH = @JAVAH@
+JAVASCI_ENABLE = @JAVASCI_ENABLE@
+JAVA_ENABLE = @JAVA_ENABLE@
+JAVA_G = @JAVA_G@
+JAVA_HOME = @JAVA_HOME@
+JAVA_JNI_INCLUDE = @JAVA_JNI_INCLUDE@
+JAVA_JNI_LIBS = @JAVA_JNI_LIBS@
+JDB = @JDB@
+JEUCLID_CORE = @JEUCLID_CORE@
+JGRAPHX = @JGRAPHX@
+JHALL = @JHALL@
+JLATEXMATH = @JLATEXMATH@
+JLATEXMATH_FOP = @JLATEXMATH_FOP@
+JOGL2 = @JOGL2@
+JROSETTA_API = @JROSETTA_API@
+JROSETTA_ENGINE = @JROSETTA_ENGINE@
+JUNIT4 = @JUNIT4@
+LAPACK_LIBS = @LAPACK_LIBS@
+LCOV = @LCOV@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBM = @LIBM@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LOGGING_LEVEL = @LOGGING_LEVEL@
+LOOKS = @LOOKS@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MATIO_CFLAGS = @MATIO_CFLAGS@
+MATIO_ENABLE = @MATIO_ENABLE@
+MATIO_LIBS = @MATIO_LIBS@
+MKDIR_P = @MKDIR_P@
+MPI_ENABLE = @MPI_ENABLE@
+MSGCAT = @MSGCAT@
+MSGFMT = @MSGFMT@
+MSGFMT_015 = @MSGFMT_015@
+MSGMERGE = @MSGMERGE@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OCAMLC = @OCAMLC@
+OCAMLDEP = @OCAMLDEP@
+OCAMLLEX = @OCAMLLEX@
+OCAMLOPT = @OCAMLOPT@
+OCAMLYACC = @OCAMLYACC@
+OPENMPI_CC = @OPENMPI_CC@
+OPENMPI_CFLAGS = @OPENMPI_CFLAGS@
+OPENMPI_CXX = @OPENMPI_CXX@
+OPENMPI_CXXFLAGS = @OPENMPI_CXXFLAGS@
+OPENMPI_LIBS = @OPENMPI_LIBS@
+OPENMP_CFLAGS = @OPENMP_CFLAGS@
+OPENMP_CXXFLAGS = @OPENMP_CXXFLAGS@
+OPENMP_ENABLE = @OPENMP_ENABLE@
+OPENMP_LIBS = @OPENMP_LIBS@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PCRE_CFLAGS = @PCRE_CFLAGS@
+PCRE_CONFIG = @PCRE_CONFIG@
+PCRE_LIBS = @PCRE_LIBS@
+PCRE_VERSION = @PCRE_VERSION@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+POW_LIB = @POW_LIB@
+PYTHON = @PYTHON@
+RANLIB = @RANLIB@
+RELOCATABLE = @RELOCATABLE@
+RT_LIB = @RT_LIB@
+SAXON = @SAXON@
+SCILAB_BINARY_VERSION = @SCILAB_BINARY_VERSION@
+SCILAB_LIBRARY_VERSION = @SCILAB_LIBRARY_VERSION@
+SCILAB_VERSION_MAINTENANCE = @SCILAB_VERSION_MAINTENANCE@
+SCILAB_VERSION_MAJOR = @SCILAB_VERSION_MAJOR@
+SCILAB_VERSION_MINOR = @SCILAB_VERSION_MINOR@
+SCIRENDERER = @SCIRENDERER@
+SCIRENDERER_CP = @SCIRENDERER_CP@
+SCI_CFLAGS = @SCI_CFLAGS@
+SCI_CXXFLAGS = @SCI_CXXFLAGS@
+SCI_FFLAGS = @SCI_FFLAGS@
+SCI_LDFLAGS = @SCI_LDFLAGS@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SET_RELOCATABLE = @SET_RELOCATABLE@
+SHELL = @SHELL@
+SKINLF = @SKINLF@
+SPLINT = @SPLINT@
+STRIP = @STRIP@
+SWIG_BIN = @SWIG_BIN@
+SWIG_JAVA = @SWIG_JAVA@
+SWIG_RUNTIME_LIBS_DIR = @SWIG_RUNTIME_LIBS_DIR@
+SWIG_SCILAB = @SWIG_SCILAB@
+TCLTK_LIBS = @TCLTK_LIBS@
+TCL_INC_PATH = @TCL_INC_PATH@
+TK_INC_PATH = @TK_INC_PATH@
+UMFPACK_CFLAGS = @UMFPACK_CFLAGS@
+UMFPACK_ENABLE = @UMFPACK_ENABLE@
+UMFPACK_LIB = @UMFPACK_LIB@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+WITH_OCAML = @WITH_OCAML@
+WITH_TKSCI = @WITH_TKSCI@
+XCOS_ENABLE = @XCOS_ENABLE@
+XGETTEXT = @XGETTEXT@
+XGETTEXT_015 = @XGETTEXT_015@
+XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
+XMKMF = @XMKMF@
+XMLGRAPHICS_COMMONS = @XMLGRAPHICS_COMMONS@
+XML_APIS_EXT = @XML_APIS_EXT@
+XML_CONFIG = @XML_CONFIG@
+XML_FLAGS = @XML_FLAGS@
+XML_LIBS = @XML_LIBS@
+XML_VERSION = @XML_VERSION@
+X_CFLAGS = @X_CFLAGS@
+X_EXTRA_LIBS = @X_EXTRA_LIBS@
+X_LIBS = @X_LIBS@
+X_PRE_LIBS = @X_PRE_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+ac_ct_F77 = @ac_ct_F77@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+cxx_present = @cxx_present@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+LOCALIZATION_C_SOURCES = src/c/InitializeLocalization.c \
+ src/c/setgetlanguage.c src/c/getLcidString.c \
+ src/c/charEncoding.c src/c/setdefaultlanguage.c \
+ $(am__append_1) $(am__append_2)
+GATEWAY_C_SOURCES = sci_gateway/c/gw_localization.c \
+sci_gateway/c/sci_gettext.c \
+sci_gateway/c/sci_setlanguage.c \
+sci_gateway/c/sci_getdefaultlanguage.c \
+sci_gateway/c/sci_getlanguage.c \
+sci_gateway/c/sci_setdefaultlanguage.c \
+sci_gateway/c/sci_addlocalizationdomain.c
+
+libscilocalization_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
+ -I$(srcdir)/includes/ \
+ -I$(srcdir)/src/c/ \
+ -I$(top_srcdir)/modules/string/includes/ \
+ -I$(top_srcdir)/modules/fileio/includes/ \
+ -I$(top_srcdir)/modules/api_scilab/includes/ \
+ -I$(top_srcdir)/modules/output_stream/includes \
+ -I$(top_srcdir)/modules/localization/includes \
+ $(AM_CPPFLAGS)
+
+pkglib_LTLIBRARIES = libscilocalization.la
+noinst_LTLIBRARIES = libscilocalization-algo.la
+libscilocalization_la_LDFLAGS = $(AM_LDFLAGS) $(am__append_3)
+libscilocalization_la_CFLAGS = $(AM_CFLAGS) $(am__append_5)
+libscilocalization_algo_la_SOURCES = $(LOCALIZATION_C_SOURCES)
+libscilocalization_la_SOURCES = $(GATEWAY_C_SOURCES)
+libscilocalization_algo_la_CPPFLAGS = $(libscilocalization_la_CPPFLAGS)
+libscilocalization_algo_la_CFLAGS = $(libscilocalization_la_CFLAGS)
+libscilocalization_algo_la_LDFLAGS = $(libscilocalization_la_LDFLAGS)
+
+# For the code check (splint)
+CHECK_SRC = $(libscilocalization_la_SOURCES)
+INCLUDE_FLAGS = $(libscilocalization_la_CPPFLAGS)
+libscilocalization_la_LIBADD = libscilocalization-algo.la \
+ $(am__append_4)
+
+# $(top_builddir)/modules/io/libsciio.la
+#### Target ######
+modulename = localization
+
+#### localization : Conf files ####
+libscilocalization_la_rootdir = $(mydatadir)
+libscilocalization_la_root_DATA = license.txt
+
+####localization : init scripts ####
+libscilocalization_la_etcdir = $(mydatadir)/etc
+libscilocalization_la_etc_DATA = etc/localization.quit etc/localization.start
+
+####�localization : gateway declaration ####
+libscilocalization_la_sci_gatewaydir = $(mydatadir)/sci_gateway
+libscilocalization_la_sci_gateway_DATA = sci_gateway/localization_gateway.xml
+
+####localization : include files ####
+libscilocalization_la_includedir = $(pkgincludedir)
+libscilocalization_la_include_HEADERS = includes/localization.h \
+includes/setgetlanguage.h \
+includes/charEncoding.h
+
+@GUI_TRUE@USEANT = 1
+
+#### SWIG Declaration ####
+SWIG_WRAPPERS = src/jni/Messages.i \
+src/jni/LocaleToLCID.i
+
+@SWIG_TRUE@BUILT_SOURCES = swig
+
+# Where all the Scilab stuff is installed (macros, help, ...)
+mydatadir = $(pkgdatadir)/modules/$(modulename)
+
+# Set AM_* SCI detected settings
+AM_CPPFLAGS = $(SCI_CPPFLAGS)
+AM_CFLAGS = $(SCI_CFLAGS)
+AM_CXXFLAGS = $(SCI_CXXFLAGS)
+# append includes to AM_FFLAGS to manage fortran includes
+AM_FFLAGS = $(SCI_FFLAGS) -I$(top_srcdir)/modules/core/includes/
+
+# Tag shared libraries with the Scilab version
+AM_LDFLAGS = $(SCI_LDFLAGS) -version-number $(SCILAB_LIBRARY_VERSION)
+
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
+########################### JAVA ######################################
+#### We are delegating java compilation to ant... Thanks to that
+#### the procedure will be the same with Microsoft Windows (C)
+#### and Linux/Unix
+#######################################################################
+TARGETS_ALL = $(am__append_6)
+
+################ MACROS ######################
+# Rule to build a macro
+# NOT USED AT THE MOMENT
+SUFFIXES = .sci
+
+########### INSTALL DOCUMENTATION ###################
+
+# Install documentation files into the right target
+# We do not use the automake mechanism (libxxxx_la_help_fr_DATA) because
+# automake needs the html files to be present which is not the case when
+# we are building Scilab
+
+# Where it should be installed
+pkgdocdir = $(mydatadir)
+
+# What is the mask of the help source
+DOCMASKXML = *.xml
+
+# What is the mask of the MathML sources
+DOCMASKMML = *.mml
+
+########### INSTALL DATA ###################
+# Install macros, help & demos
+# Where it should be installed
+pkgmacrosdir = $(mydatadir)
+# Which directory we process
+MACRODIRS = macros/
+# Mask of the Scilab sources macros
+MACROMASK = *.sci
+# Mask of the Scilab executable sources macros
+MACROBUILDMASK = *.sce
+# Mask of the Scilab compiled macros
+MACROBINMASK = *.bin
+# List of the standard directory for tests
+TESTS_DIR = tests/benchmarks tests/nonreg_tests tests/unit_tests tests/java
+# Where the demos should be installed
+pkgdemosdir = $(mydatadir)
+# List of the standard directory for demos
+DEMOS_DIR = demos
+# List of the standard directory for examples
+EXAMPLES_DIR = examples
+# Where to export JAVA archives (.jar)
+JARDIR = jar/
+# JAR files mask
+JARMASK = *.jar
+# Chapter file
+HELP_CHAPTERDIR = help/
+HELP_CHAPTERFILE = addchapter.sce
+HELP_CHAPTERLANG = en_US fr_FR pt_BR
+all: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) all-am
+
+.SUFFIXES:
+.SUFFIXES: .sci .bin .c .lo .o .obj
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.incl.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign modules/localization/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign modules/localization/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+$(top_srcdir)/Makefile.incl.am:
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+clean-noinstLTLIBRARIES:
+ -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
+ @list='$(noinst_LTLIBRARIES)'; \
+ locs=`for p in $$list; do echo $$p; done | \
+ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
+ sort -u`; \
+ test -z "$$locs" || { \
+ echo rm -f $${locs}; \
+ rm -f $${locs}; \
+ }
+
+install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES)
+ @$(NORMAL_INSTALL)
+ @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \
+ list2=; for p in $$list; do \
+ if test -f $$p; then \
+ list2="$$list2 $$p"; \
+ else :; fi; \
+ done; \
+ test -z "$$list2" || { \
+ echo " $(MKDIR_P) '$(DESTDIR)$(pkglibdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" || exit 1; \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkglibdir)'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkglibdir)"; \
+ }
+
+uninstall-pkglibLTLIBRARIES:
+ @$(NORMAL_UNINSTALL)
+ @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \
+ for p in $$list; do \
+ $(am__strip_dir) \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \
+ done
+
+clean-pkglibLTLIBRARIES:
+ -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES)
+ @list='$(pkglib_LTLIBRARIES)'; \
+ locs=`for p in $$list; do echo $$p; done | \
+ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
+ sort -u`; \
+ test -z "$$locs" || { \
+ echo rm -f $${locs}; \
+ rm -f $${locs}; \
+ }
+src/c/$(am__dirstamp):
+ @$(MKDIR_P) src/c
+ @: > src/c/$(am__dirstamp)
+src/c/$(DEPDIR)/$(am__dirstamp):
+ @$(MKDIR_P) src/c/$(DEPDIR)
+ @: > src/c/$(DEPDIR)/$(am__dirstamp)
+src/c/libscilocalization_algo_la-InitializeLocalization.lo: \
+ src/c/$(am__dirstamp) src/c/$(DEPDIR)/$(am__dirstamp)
+src/c/libscilocalization_algo_la-setgetlanguage.lo: \
+ src/c/$(am__dirstamp) src/c/$(DEPDIR)/$(am__dirstamp)
+src/c/libscilocalization_algo_la-getLcidString.lo: \
+ src/c/$(am__dirstamp) src/c/$(DEPDIR)/$(am__dirstamp)
+src/c/libscilocalization_algo_la-charEncoding.lo: \
+ src/c/$(am__dirstamp) src/c/$(DEPDIR)/$(am__dirstamp)
+src/c/libscilocalization_algo_la-setdefaultlanguage.lo: \
+ src/c/$(am__dirstamp) src/c/$(DEPDIR)/$(am__dirstamp)
+src/jni/$(am__dirstamp):
+ @$(MKDIR_P) src/jni
+ @: > src/jni/$(am__dirstamp)
+src/jni/$(DEPDIR)/$(am__dirstamp):
+ @$(MKDIR_P) src/jni/$(DEPDIR)
+ @: > src/jni/$(DEPDIR)/$(am__dirstamp)
+src/jni/libscilocalization_algo_la-Messages_wrap.lo: \
+ src/jni/$(am__dirstamp) src/jni/$(DEPDIR)/$(am__dirstamp)
+src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo: \
+ src/jni/$(am__dirstamp) src/jni/$(DEPDIR)/$(am__dirstamp)
+src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo: \
+ src/jni/$(am__dirstamp) src/jni/$(DEPDIR)/$(am__dirstamp)
+src/c/libscilocalization_algo_la-getLocaleInfo_Apple.lo: \
+ src/c/$(am__dirstamp) src/c/$(DEPDIR)/$(am__dirstamp)
+
+libscilocalization-algo.la: $(libscilocalization_algo_la_OBJECTS) $(libscilocalization_algo_la_DEPENDENCIES) $(EXTRA_libscilocalization_algo_la_DEPENDENCIES)
+ $(AM_V_CCLD)$(libscilocalization_algo_la_LINK) $(libscilocalization_algo_la_OBJECTS) $(libscilocalization_algo_la_LIBADD) $(LIBS)
+sci_gateway/c/$(am__dirstamp):
+ @$(MKDIR_P) sci_gateway/c
+ @: > sci_gateway/c/$(am__dirstamp)
+sci_gateway/c/$(DEPDIR)/$(am__dirstamp):
+ @$(MKDIR_P) sci_gateway/c/$(DEPDIR)
+ @: > sci_gateway/c/$(DEPDIR)/$(am__dirstamp)
+sci_gateway/c/libscilocalization_la-gw_localization.lo: \
+ sci_gateway/c/$(am__dirstamp) \
+ sci_gateway/c/$(DEPDIR)/$(am__dirstamp)
+sci_gateway/c/libscilocalization_la-sci_gettext.lo: \
+ sci_gateway/c/$(am__dirstamp) \
+ sci_gateway/c/$(DEPDIR)/$(am__dirstamp)
+sci_gateway/c/libscilocalization_la-sci_setlanguage.lo: \
+ sci_gateway/c/$(am__dirstamp) \
+ sci_gateway/c/$(DEPDIR)/$(am__dirstamp)
+sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo: \
+ sci_gateway/c/$(am__dirstamp) \
+ sci_gateway/c/$(DEPDIR)/$(am__dirstamp)
+sci_gateway/c/libscilocalization_la-sci_getlanguage.lo: \
+ sci_gateway/c/$(am__dirstamp) \
+ sci_gateway/c/$(DEPDIR)/$(am__dirstamp)
+sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo: \
+ sci_gateway/c/$(am__dirstamp) \
+ sci_gateway/c/$(DEPDIR)/$(am__dirstamp)
+sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo: \
+ sci_gateway/c/$(am__dirstamp) \
+ sci_gateway/c/$(DEPDIR)/$(am__dirstamp)
+
+libscilocalization.la: $(libscilocalization_la_OBJECTS) $(libscilocalization_la_DEPENDENCIES) $(EXTRA_libscilocalization_la_DEPENDENCIES)
+ $(AM_V_CCLD)$(libscilocalization_la_LINK) -rpath $(pkglibdir) $(libscilocalization_la_OBJECTS) $(libscilocalization_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+ -rm -f sci_gateway/c/*.$(OBJEXT)
+ -rm -f sci_gateway/c/*.lo
+ -rm -f src/c/*.$(OBJEXT)
+ -rm -f src/c/*.lo
+ -rm -f src/jni/*.$(OBJEXT)
+ -rm -f src/jni/*.lo
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscilocalization_la-gw_localization.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_addlocalizationdomain.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_getdefaultlanguage.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_getlanguage.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_gettext.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_setdefaultlanguage.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_setlanguage.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscilocalization_algo_la-InitializeLocalization.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscilocalization_algo_la-charEncoding.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscilocalization_algo_la-getLcidString.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscilocalization_algo_la-getLocaleInfo_Apple.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscilocalization_algo_la-setdefaultlanguage.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscilocalization_algo_la-setgetlanguage.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@src/jni/$(DEPDIR)/libscilocalization_algo_la-LocaleToLCID_wrap.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@src/jni/$(DEPDIR)/libscilocalization_algo_la-Messages_wrap.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@src/jni/$(DEPDIR)/libscilocalization_algo_la-setdefaultlanguage_wrap.Plo@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
+@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
+@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
+@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
+@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
+
+src/c/libscilocalization_algo_la-InitializeLocalization.lo: src/c/InitializeLocalization.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -MT src/c/libscilocalization_algo_la-InitializeLocalization.lo -MD -MP -MF src/c/$(DEPDIR)/libscilocalization_algo_la-InitializeLocalization.Tpo -c -o src/c/libscilocalization_algo_la-InitializeLocalization.lo `test -f 'src/c/InitializeLocalization.c' || echo '$(srcdir)/'`src/c/InitializeLocalization.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscilocalization_algo_la-InitializeLocalization.Tpo src/c/$(DEPDIR)/libscilocalization_algo_la-InitializeLocalization.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/InitializeLocalization.c' object='src/c/libscilocalization_algo_la-InitializeLocalization.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -c -o src/c/libscilocalization_algo_la-InitializeLocalization.lo `test -f 'src/c/InitializeLocalization.c' || echo '$(srcdir)/'`src/c/InitializeLocalization.c
+
+src/c/libscilocalization_algo_la-setgetlanguage.lo: src/c/setgetlanguage.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -MT src/c/libscilocalization_algo_la-setgetlanguage.lo -MD -MP -MF src/c/$(DEPDIR)/libscilocalization_algo_la-setgetlanguage.Tpo -c -o src/c/libscilocalization_algo_la-setgetlanguage.lo `test -f 'src/c/setgetlanguage.c' || echo '$(srcdir)/'`src/c/setgetlanguage.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscilocalization_algo_la-setgetlanguage.Tpo src/c/$(DEPDIR)/libscilocalization_algo_la-setgetlanguage.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/setgetlanguage.c' object='src/c/libscilocalization_algo_la-setgetlanguage.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -c -o src/c/libscilocalization_algo_la-setgetlanguage.lo `test -f 'src/c/setgetlanguage.c' || echo '$(srcdir)/'`src/c/setgetlanguage.c
+
+src/c/libscilocalization_algo_la-getLcidString.lo: src/c/getLcidString.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -MT src/c/libscilocalization_algo_la-getLcidString.lo -MD -MP -MF src/c/$(DEPDIR)/libscilocalization_algo_la-getLcidString.Tpo -c -o src/c/libscilocalization_algo_la-getLcidString.lo `test -f 'src/c/getLcidString.c' || echo '$(srcdir)/'`src/c/getLcidString.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscilocalization_algo_la-getLcidString.Tpo src/c/$(DEPDIR)/libscilocalization_algo_la-getLcidString.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/getLcidString.c' object='src/c/libscilocalization_algo_la-getLcidString.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -c -o src/c/libscilocalization_algo_la-getLcidString.lo `test -f 'src/c/getLcidString.c' || echo '$(srcdir)/'`src/c/getLcidString.c
+
+src/c/libscilocalization_algo_la-charEncoding.lo: src/c/charEncoding.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -MT src/c/libscilocalization_algo_la-charEncoding.lo -MD -MP -MF src/c/$(DEPDIR)/libscilocalization_algo_la-charEncoding.Tpo -c -o src/c/libscilocalization_algo_la-charEncoding.lo `test -f 'src/c/charEncoding.c' || echo '$(srcdir)/'`src/c/charEncoding.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscilocalization_algo_la-charEncoding.Tpo src/c/$(DEPDIR)/libscilocalization_algo_la-charEncoding.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/charEncoding.c' object='src/c/libscilocalization_algo_la-charEncoding.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -c -o src/c/libscilocalization_algo_la-charEncoding.lo `test -f 'src/c/charEncoding.c' || echo '$(srcdir)/'`src/c/charEncoding.c
+
+src/c/libscilocalization_algo_la-setdefaultlanguage.lo: src/c/setdefaultlanguage.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -MT src/c/libscilocalization_algo_la-setdefaultlanguage.lo -MD -MP -MF src/c/$(DEPDIR)/libscilocalization_algo_la-setdefaultlanguage.Tpo -c -o src/c/libscilocalization_algo_la-setdefaultlanguage.lo `test -f 'src/c/setdefaultlanguage.c' || echo '$(srcdir)/'`src/c/setdefaultlanguage.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscilocalization_algo_la-setdefaultlanguage.Tpo src/c/$(DEPDIR)/libscilocalization_algo_la-setdefaultlanguage.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/setdefaultlanguage.c' object='src/c/libscilocalization_algo_la-setdefaultlanguage.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -c -o src/c/libscilocalization_algo_la-setdefaultlanguage.lo `test -f 'src/c/setdefaultlanguage.c' || echo '$(srcdir)/'`src/c/setdefaultlanguage.c
+
+src/jni/libscilocalization_algo_la-Messages_wrap.lo: src/jni/Messages_wrap.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -MT src/jni/libscilocalization_algo_la-Messages_wrap.lo -MD -MP -MF src/jni/$(DEPDIR)/libscilocalization_algo_la-Messages_wrap.Tpo -c -o src/jni/libscilocalization_algo_la-Messages_wrap.lo `test -f 'src/jni/Messages_wrap.c' || echo '$(srcdir)/'`src/jni/Messages_wrap.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/jni/$(DEPDIR)/libscilocalization_algo_la-Messages_wrap.Tpo src/jni/$(DEPDIR)/libscilocalization_algo_la-Messages_wrap.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/jni/Messages_wrap.c' object='src/jni/libscilocalization_algo_la-Messages_wrap.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -c -o src/jni/libscilocalization_algo_la-Messages_wrap.lo `test -f 'src/jni/Messages_wrap.c' || echo '$(srcdir)/'`src/jni/Messages_wrap.c
+
+src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo: src/jni/LocaleToLCID_wrap.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -MT src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo -MD -MP -MF src/jni/$(DEPDIR)/libscilocalization_algo_la-LocaleToLCID_wrap.Tpo -c -o src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo `test -f 'src/jni/LocaleToLCID_wrap.c' || echo '$(srcdir)/'`src/jni/LocaleToLCID_wrap.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/jni/$(DEPDIR)/libscilocalization_algo_la-LocaleToLCID_wrap.Tpo src/jni/$(DEPDIR)/libscilocalization_algo_la-LocaleToLCID_wrap.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/jni/LocaleToLCID_wrap.c' object='src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -c -o src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo `test -f 'src/jni/LocaleToLCID_wrap.c' || echo '$(srcdir)/'`src/jni/LocaleToLCID_wrap.c
+
+src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo: src/jni/setdefaultlanguage_wrap.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -MT src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo -MD -MP -MF src/jni/$(DEPDIR)/libscilocalization_algo_la-setdefaultlanguage_wrap.Tpo -c -o src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo `test -f 'src/jni/setdefaultlanguage_wrap.c' || echo '$(srcdir)/'`src/jni/setdefaultlanguage_wrap.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/jni/$(DEPDIR)/libscilocalization_algo_la-setdefaultlanguage_wrap.Tpo src/jni/$(DEPDIR)/libscilocalization_algo_la-setdefaultlanguage_wrap.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/jni/setdefaultlanguage_wrap.c' object='src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -c -o src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo `test -f 'src/jni/setdefaultlanguage_wrap.c' || echo '$(srcdir)/'`src/jni/setdefaultlanguage_wrap.c
+
+src/c/libscilocalization_algo_la-getLocaleInfo_Apple.lo: src/c/getLocaleInfo_Apple.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -MT src/c/libscilocalization_algo_la-getLocaleInfo_Apple.lo -MD -MP -MF src/c/$(DEPDIR)/libscilocalization_algo_la-getLocaleInfo_Apple.Tpo -c -o src/c/libscilocalization_algo_la-getLocaleInfo_Apple.lo `test -f 'src/c/getLocaleInfo_Apple.c' || echo '$(srcdir)/'`src/c/getLocaleInfo_Apple.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscilocalization_algo_la-getLocaleInfo_Apple.Tpo src/c/$(DEPDIR)/libscilocalization_algo_la-getLocaleInfo_Apple.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/getLocaleInfo_Apple.c' object='src/c/libscilocalization_algo_la-getLocaleInfo_Apple.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_algo_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_algo_la_CFLAGS) $(CFLAGS) -c -o src/c/libscilocalization_algo_la-getLocaleInfo_Apple.lo `test -f 'src/c/getLocaleInfo_Apple.c' || echo '$(srcdir)/'`src/c/getLocaleInfo_Apple.c
+
+sci_gateway/c/libscilocalization_la-gw_localization.lo: sci_gateway/c/gw_localization.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscilocalization_la-gw_localization.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscilocalization_la-gw_localization.Tpo -c -o sci_gateway/c/libscilocalization_la-gw_localization.lo `test -f 'sci_gateway/c/gw_localization.c' || echo '$(srcdir)/'`sci_gateway/c/gw_localization.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscilocalization_la-gw_localization.Tpo sci_gateway/c/$(DEPDIR)/libscilocalization_la-gw_localization.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/gw_localization.c' object='sci_gateway/c/libscilocalization_la-gw_localization.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscilocalization_la-gw_localization.lo `test -f 'sci_gateway/c/gw_localization.c' || echo '$(srcdir)/'`sci_gateway/c/gw_localization.c
+
+sci_gateway/c/libscilocalization_la-sci_gettext.lo: sci_gateway/c/sci_gettext.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscilocalization_la-sci_gettext.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_gettext.Tpo -c -o sci_gateway/c/libscilocalization_la-sci_gettext.lo `test -f 'sci_gateway/c/sci_gettext.c' || echo '$(srcdir)/'`sci_gateway/c/sci_gettext.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_gettext.Tpo sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_gettext.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_gettext.c' object='sci_gateway/c/libscilocalization_la-sci_gettext.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscilocalization_la-sci_gettext.lo `test -f 'sci_gateway/c/sci_gettext.c' || echo '$(srcdir)/'`sci_gateway/c/sci_gettext.c
+
+sci_gateway/c/libscilocalization_la-sci_setlanguage.lo: sci_gateway/c/sci_setlanguage.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscilocalization_la-sci_setlanguage.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_setlanguage.Tpo -c -o sci_gateway/c/libscilocalization_la-sci_setlanguage.lo `test -f 'sci_gateway/c/sci_setlanguage.c' || echo '$(srcdir)/'`sci_gateway/c/sci_setlanguage.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_setlanguage.Tpo sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_setlanguage.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_setlanguage.c' object='sci_gateway/c/libscilocalization_la-sci_setlanguage.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscilocalization_la-sci_setlanguage.lo `test -f 'sci_gateway/c/sci_setlanguage.c' || echo '$(srcdir)/'`sci_gateway/c/sci_setlanguage.c
+
+sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo: sci_gateway/c/sci_getdefaultlanguage.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_getdefaultlanguage.Tpo -c -o sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo `test -f 'sci_gateway/c/sci_getdefaultlanguage.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getdefaultlanguage.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_getdefaultlanguage.Tpo sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_getdefaultlanguage.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_getdefaultlanguage.c' object='sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo `test -f 'sci_gateway/c/sci_getdefaultlanguage.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getdefaultlanguage.c
+
+sci_gateway/c/libscilocalization_la-sci_getlanguage.lo: sci_gateway/c/sci_getlanguage.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscilocalization_la-sci_getlanguage.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_getlanguage.Tpo -c -o sci_gateway/c/libscilocalization_la-sci_getlanguage.lo `test -f 'sci_gateway/c/sci_getlanguage.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getlanguage.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_getlanguage.Tpo sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_getlanguage.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_getlanguage.c' object='sci_gateway/c/libscilocalization_la-sci_getlanguage.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscilocalization_la-sci_getlanguage.lo `test -f 'sci_gateway/c/sci_getlanguage.c' || echo '$(srcdir)/'`sci_gateway/c/sci_getlanguage.c
+
+sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo: sci_gateway/c/sci_setdefaultlanguage.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_setdefaultlanguage.Tpo -c -o sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo `test -f 'sci_gateway/c/sci_setdefaultlanguage.c' || echo '$(srcdir)/'`sci_gateway/c/sci_setdefaultlanguage.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_setdefaultlanguage.Tpo sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_setdefaultlanguage.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_setdefaultlanguage.c' object='sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo `test -f 'sci_gateway/c/sci_setdefaultlanguage.c' || echo '$(srcdir)/'`sci_gateway/c/sci_setdefaultlanguage.c
+
+sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo: sci_gateway/c/sci_addlocalizationdomain.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_addlocalizationdomain.Tpo -c -o sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo `test -f 'sci_gateway/c/sci_addlocalizationdomain.c' || echo '$(srcdir)/'`sci_gateway/c/sci_addlocalizationdomain.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_addlocalizationdomain.Tpo sci_gateway/c/$(DEPDIR)/libscilocalization_la-sci_addlocalizationdomain.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_addlocalizationdomain.c' object='sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscilocalization_la_CPPFLAGS) $(CPPFLAGS) $(libscilocalization_la_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo `test -f 'sci_gateway/c/sci_addlocalizationdomain.c' || echo '$(srcdir)/'`sci_gateway/c/sci_addlocalizationdomain.c
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+ -rm -rf sci_gateway/c/.libs sci_gateway/c/_libs
+ -rm -rf src/c/.libs src/c/_libs
+ -rm -rf src/jni/.libs src/jni/_libs
+install-libscilocalization_la_etcDATA: $(libscilocalization_la_etc_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(libscilocalization_la_etc_DATA)'; test -n "$(libscilocalization_la_etcdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(libscilocalization_la_etcdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(libscilocalization_la_etcdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscilocalization_la_etcdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(libscilocalization_la_etcdir)" || exit $$?; \
+ done
+
+uninstall-libscilocalization_la_etcDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(libscilocalization_la_etc_DATA)'; test -n "$(libscilocalization_la_etcdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(libscilocalization_la_etcdir)'; $(am__uninstall_files_from_dir)
+install-libscilocalization_la_rootDATA: $(libscilocalization_la_root_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(libscilocalization_la_root_DATA)'; test -n "$(libscilocalization_la_rootdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(libscilocalization_la_rootdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(libscilocalization_la_rootdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscilocalization_la_rootdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(libscilocalization_la_rootdir)" || exit $$?; \
+ done
+
+uninstall-libscilocalization_la_rootDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(libscilocalization_la_root_DATA)'; test -n "$(libscilocalization_la_rootdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(libscilocalization_la_rootdir)'; $(am__uninstall_files_from_dir)
+install-libscilocalization_la_sci_gatewayDATA: $(libscilocalization_la_sci_gateway_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(libscilocalization_la_sci_gateway_DATA)'; test -n "$(libscilocalization_la_sci_gatewaydir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(libscilocalization_la_sci_gatewaydir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(libscilocalization_la_sci_gatewaydir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscilocalization_la_sci_gatewaydir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(libscilocalization_la_sci_gatewaydir)" || exit $$?; \
+ done
+
+uninstall-libscilocalization_la_sci_gatewayDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(libscilocalization_la_sci_gateway_DATA)'; test -n "$(libscilocalization_la_sci_gatewaydir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(libscilocalization_la_sci_gatewaydir)'; $(am__uninstall_files_from_dir)
+install-libscilocalization_la_includeHEADERS: $(libscilocalization_la_include_HEADERS)
+ @$(NORMAL_INSTALL)
+ @list='$(libscilocalization_la_include_HEADERS)'; test -n "$(libscilocalization_la_includedir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(libscilocalization_la_includedir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(libscilocalization_la_includedir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libscilocalization_la_includedir)'"; \
+ $(INSTALL_HEADER) $$files "$(DESTDIR)$(libscilocalization_la_includedir)" || exit $$?; \
+ done
+
+uninstall-libscilocalization_la_includeHEADERS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(libscilocalization_la_include_HEADERS)'; test -n "$(libscilocalization_la_includedir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(libscilocalization_la_includedir)'; $(am__uninstall_files_from_dir)
+
+ID: $(am__tagged_files)
+ $(am__define_uniq_tagged_files); mkid -fID $$unique
+tags: tags-am
+TAGS: tags
+
+tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+ set x; \
+ here=`pwd`; \
+ $(am__define_uniq_tagged_files); \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
+ctags: ctags-am
+
+CTAGS: ctags
+ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+ $(am__define_uniq_tagged_files); \
+ test -z "$(CTAGS_ARGS)$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
+cscopelist: cscopelist-am
+
+cscopelist-am: $(am__tagged_files)
+ list='$(am__tagged_files)'; \
+ case "$(srcdir)" in \
+ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
+ *) sdir=$(subdir)/$(srcdir) ;; \
+ esac; \
+ for i in $$list; do \
+ if test -f "$$i"; then \
+ echo "$(subdir)/$$i"; \
+ else \
+ echo "$$sdir/$$i"; \
+ fi; \
+ done >> $(top_builddir)/cscope.files
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+ $(MAKE) $(AM_MAKEFLAGS) check-local
+check: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) check-am
+all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS) all-local
+installdirs:
+ for dir in "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(libscilocalization_la_etcdir)" "$(DESTDIR)$(libscilocalization_la_rootdir)" "$(DESTDIR)$(libscilocalization_la_sci_gatewaydir)" "$(DESTDIR)$(libscilocalization_la_includedir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+ -rm -f sci_gateway/c/$(DEPDIR)/$(am__dirstamp)
+ -rm -f sci_gateway/c/$(am__dirstamp)
+ -rm -f src/c/$(DEPDIR)/$(am__dirstamp)
+ -rm -f src/c/$(am__dirstamp)
+ -rm -f src/jni/$(DEPDIR)/$(am__dirstamp)
+ -rm -f src/jni/$(am__dirstamp)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+ -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
+clean: clean-am
+
+clean-am: clean-generic clean-libtool clean-local \
+ clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES mostlyclean-am
+
+distclean: distclean-am
+ -rm -rf sci_gateway/c/$(DEPDIR) src/c/$(DEPDIR) src/jni/$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-local distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-data-local \
+ install-libscilocalization_la_etcDATA \
+ install-libscilocalization_la_includeHEADERS \
+ install-libscilocalization_la_rootDATA \
+ install-libscilocalization_la_sci_gatewayDATA
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am: install-pkglibLTLIBRARIES
+
+install-html: install-html-am
+
+install-html-am: install-html-local
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -rf sci_gateway/c/$(DEPDIR) src/c/$(DEPDIR) src/jni/$(DEPDIR)
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-libscilocalization_la_etcDATA \
+ uninstall-libscilocalization_la_includeHEADERS \
+ uninstall-libscilocalization_la_rootDATA \
+ uninstall-libscilocalization_la_sci_gatewayDATA \
+ uninstall-pkglibLTLIBRARIES
+
+.MAKE: all check check-am install install-am install-strip
+
+.PHONY: CTAGS GTAGS TAGS all all-am all-local check check-am \
+ check-local clean clean-generic clean-libtool clean-local \
+ clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES cscopelist-am \
+ ctags ctags-am distclean distclean-compile distclean-generic \
+ distclean-libtool distclean-local distclean-tags distdir dvi \
+ dvi-am html html-am info info-am install install-am \
+ install-data install-data-am install-data-local install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-html-local install-info \
+ install-info-am install-libscilocalization_la_etcDATA \
+ install-libscilocalization_la_includeHEADERS \
+ install-libscilocalization_la_rootDATA \
+ install-libscilocalization_la_sci_gatewayDATA install-man \
+ install-pdf install-pdf-am install-pkglibLTLIBRARIES \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ tags tags-am uninstall uninstall-am \
+ uninstall-libscilocalization_la_etcDATA \
+ uninstall-libscilocalization_la_includeHEADERS \
+ uninstall-libscilocalization_la_rootDATA \
+ uninstall-libscilocalization_la_sci_gatewayDATA \
+ uninstall-pkglibLTLIBRARIES
+
+
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin test
+ if test -d $(mydatadir)/tests; then \
+ @COMMAND="try test_run('$(modulename)');catch exit(-1);end;exit(0)"; export LANG=C; $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+ fi
+check-code:
+ if test -f build.xml; then \
+ $(ANT) checkstyle; \
+ fi
+ if test -x "$(SPLINT)"; then \
+ $(SPLINT) $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC); \
+ fi
+@NEED_JAVA_TRUE@java:
+# Some configurations needs to export JAVA_HOME in the current env
+@NEED_JAVA_TRUE@ @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
+@NEED_JAVA_TRUE@ if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \
+@NEED_JAVA_TRUE@ if test -f build.xml -a $$USEANT -eq 1; then \
+@NEED_JAVA_TRUE@ $(ANT); \
+@NEED_JAVA_TRUE@ fi
+
+@NEED_JAVA_TRUE@clean-java:
+# Some configurations needs to export JAVA_HOME in the current env
+@NEED_JAVA_TRUE@ @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
+@NEED_JAVA_TRUE@ if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \
+@NEED_JAVA_TRUE@ if test -f build.xml -a $$USEANT -eq 1; then \
+@NEED_JAVA_TRUE@ $(ANT) clean; \
+@NEED_JAVA_TRUE@ fi;
+
+# If the user request for the SWIG generation of the wrappers Java => C/C++
+# We call the target swig-build on the variable SWIG_WRAPPERS
+
+@SWIG_TRUE@swig: $(SWIG_WRAPPERS)
+@SWIG_TRUE@ @SWIG_PACKAGENAME=org.scilab.modules.$(modulename); \
+@SWIG_TRUE@ SWIG_OUTDIR=src/java/org/scilab/modules/$(modulename)/; \
+@SWIG_TRUE@ if test -n "$(SWIG_WRAPPERS)"; then \
+@SWIG_TRUE@ for file in $(SWIG_WRAPPERS) ; do \
+@SWIG_TRUE@ echo "Swig process of $$file (Java) ..."; \
+@SWIG_TRUE@ $(SWIG_BIN) $(SWIG_JAVA) -package $$SWIG_PACKAGENAME -outdir $$SWIG_OUTDIR $$file; \
+@SWIG_TRUE@ done; \
+@SWIG_TRUE@ fi
+
+@SWIG_TRUE@swig-scilab: $(SWIG_SCILAB_WRAPPERS)
+@SWIG_TRUE@ @SWIG_OUTDIR=src/swig/; \
+@SWIG_TRUE@ if test -n "$(SWIG_SCILAB_WRAPPERS)"; then \
+@SWIG_TRUE@ for file in $(SWIG_SCILAB_WRAPPERS) ; do \
+@SWIG_TRUE@ echo "Swig process of $$file (Scilab) ..."; \
+@SWIG_TRUE@ $(SWIG_BIN) $(SWIG_SCILAB) -outdir $$SWIG_OUTDIR $$file; \
+@SWIG_TRUE@ done; \
+@SWIG_TRUE@ fi
+
+# If the user request for the SWIG generation of the wrappers Java => C/C++
+# We call the target swig-build on the variable SWIG_WRAPPERS
+
+@GIWS_TRUE@giws: $(GIWS_WRAPPERS)
+@GIWS_TRUE@ @GIWS_OUTPUTDIR=src/jni/; \
+@GIWS_TRUE@ MANDATORY_OPTIONS="--throws-exception-on-error --description-file"; \
+@GIWS_TRUE@ if test -n "$(GIWS_WRAPPERS)"; then \
+@GIWS_TRUE@ for file in $(GIWS_WRAPPERS) ; do \
+@GIWS_TRUE@ echo "GIWS process of $$file ..."; \
+@GIWS_TRUE@ if test -z "$(GIWS_OPTIONS)"; then \
+@GIWS_TRUE@ $(GIWS_BIN) --disable-return-size-array --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \
+@GIWS_TRUE@ else \
+@GIWS_TRUE@ echo "Custom GIWS call with '$$GIWS_OPTIONS'"; \
+@GIWS_TRUE@ $(GIWS_BIN) $$GIWS_OPTIONS --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \
+@GIWS_TRUE@ fi \
+@GIWS_TRUE@ done; \
+@GIWS_TRUE@ fi
+
+@GIWS_TRUE@giws-exception:
+@GIWS_TRUE@ @GIWS_OUTPUTDIR=src/jni/;\
+@GIWS_TRUE@ echo "GIWS: Generation of exception class ..."; \
+@GIWS_TRUE@ $(GIWS_BIN) --generate-exception-class --output-dir $$GIWS_OUTPUTDIR
+
+macros:
+ -@( if test ! -x $(top_builddir)/scilab-bin; then \
+ echo "Error : Cannot build $< : Scilab has not been built"; \
+ else \
+ $(top_builddir)/bin/scilab -ns -nwni -e "exec('macros/buildmacros.sce');quit;";\
+ fi)
+
+# Removes the macros
+clean-macros:
+# Removes macros (*.bin generated from .sci)
+ @for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \
+ echo "rm -f $(builddir)/$$dir/$(MACROBINMASK)"; \
+ rm -f $(builddir)/$$dir/$(MACROBINMASK); \
+ done
+
+test:
+# More tests could be added here
+ @if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \
+ if test -f build.xml -a $$USEANT -eq 1; then \
+ $(ANT) test; \
+ fi
+
+all-local: $(TARGETS_ALL)
+
+.sci.bin:
+ -@( if test ! -x $(top_builddir)/scilab-bin; then \
+ echo "Error : Cannot build $< : Scilab has not been build"; \
+ else \
+ echo "Creating $@"; \
+ $(top_builddir)/bin/scilab -ns -nwni -e "exec('$(abs_srcdir)/$<');save('$(abs_srcdir)/$@');exit;"; \
+ fi )
+
+install-html-local:
+
+install-data-local-local:
+# Mainly for javasci
+ @if test -d $(srcdir)/javadoc; then \
+ cp -R $(srcdir)/javadoc $(DESTDIR)/$(mydatadir)/; \
+ fi
+# If the user wants the help sources to be installed
+@INSTALL_HELP_XML_TRUE@ @echo "-------- Install of XML sources of help files --------"; \
+@INSTALL_HELP_XML_TRUE@ for lang in $(ALL_LINGUAS); do \
+@INSTALL_HELP_XML_TRUE@ if test -d $(srcdir)/help/$$lang; then \
+@INSTALL_HELP_XML_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/$$lang && \
+@INSTALL_HELP_XML_TRUE@ if ls -lLd $(srcdir)/help/$$lang/$(DOCMASKXML) >/dev/null 2>&1; then \
+@INSTALL_HELP_XML_TRUE@ for file in $(srcdir)/help/$$lang/$(DOCMASKXML) ; do \
+@INSTALL_HELP_XML_TRUE@ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/$$lang" ; \
+@INSTALL_HELP_XML_TRUE@ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/$$lang ; \
+@INSTALL_HELP_XML_TRUE@ done ; \
+@INSTALL_HELP_XML_TRUE@ fi; \
+@INSTALL_HELP_XML_TRUE@ fi; \
+@INSTALL_HELP_XML_TRUE@ done; \
+@INSTALL_HELP_XML_TRUE@ @echo "-------- Install of MathML sources --------"; \
+@INSTALL_HELP_XML_TRUE@ if test -d $(srcdir)/help/mml/; then \
+@INSTALL_HELP_XML_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/mml/ && \
+@INSTALL_HELP_XML_TRUE@ if ls -lLd $(srcdir)/help/mml/$(DOCMASKMML) >/dev/null 2>&1; then \
+@INSTALL_HELP_XML_TRUE@ for file in $(srcdir)/help/mml/$(DOCMASKMML) ; do \
+@INSTALL_HELP_XML_TRUE@ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/mml" ; \
+@INSTALL_HELP_XML_TRUE@ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/mml ; \
+@INSTALL_HELP_XML_TRUE@ done ; \
+@INSTALL_HELP_XML_TRUE@ fi; \
+@INSTALL_HELP_XML_TRUE@ fi
+install-data-local:
+# Install the tests
+ @echo "-------- Install tests (if any) --------"; \
+ for dir in $(TESTS_DIR) $(TESTS_DIREXT) ; do \
+ if test -d $(srcdir)/$$dir/; then \
+ $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \
+ for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \
+ if test -d "$(srcdir)/$$dir/$$file"; then \
+ echo $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir/$$file; \
+ $(mkinstalldirs) "$(DESTDIR)$(pkgmacrosdir)/$$dir/$$file"; \
+ else \
+ echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \
+ $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \
+ fi \
+ done; \
+ fi; \
+ done
+# Install the help chapter
+ @echo "-------- Install the help chapter (if any) --------"; \
+ for lang in $(HELP_CHAPTERLANG); do \
+ HELPFILE=$(srcdir)/$(HELP_CHAPTERDIR)$$lang/$(HELP_CHAPTERFILE); \
+ if test -f $$HELPFILE; then \
+ echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \
+ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \
+ echo $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \
+ $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \
+ fi; \
+ done
+# Install the demos & examples
+ @echo "-------- Install demos & examples (if any) --------"; \
+ for dir in $(DEMOS_DIR) $(DEMOS_DIREXT) $(EXAMPLES_DIR) $(EXAMPLES_DIREXT) ; do \
+ if test -d $(srcdir)/$$dir/; then \
+ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \
+ for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \
+ if test -d "$(srcdir)/$$dir/$$file"; then \
+ echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir/$$file; \
+ $(mkinstalldirs) "$(DESTDIR)$(pkgdocdir)/$$dir/$$file"; \
+ else \
+ echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \
+ $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \
+ fi \
+ done; \
+ fi; \
+ done
+# Install the macros
+ @echo "-------- Install macros (if any) --------"; \
+ for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \
+ $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \
+ if test -d $(srcdir)/$$dir/; then \
+ FILELIST="$(srcdir)/$$dir/$(MACROMASK) $(srcdir)/$$dir/$(MACROBINMASK) $(srcdir)/$$dir/$(MACROBUILDMASK) $(srcdir)/$$dir/names $(srcdir)/$$dir/lib";\
+ if test -n "$(MACROSSPECIALEXT)"; then \
+ specialExtDir=""; \
+ for specialExt in $(MACROSSPECIALEXT); do \
+ specialExtDir="$$specialExtDir $(srcdir)/$$dir/$$specialExt"; \
+ done; \
+ FILELIST="$$FILELIST $$specialExtDir"; \
+ fi; \
+ for file in `ls -1 $$FILELIST 2>/dev/null`; do \
+ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgmacrosdir)/$$dir" ; \
+ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgmacrosdir)/$$dir ; \
+ done; \
+ fi; \
+ done
+# Install java files (.jar)
+ @if ls -lLd $(srcdir)/$(JARDIR)$(JARMASK) >/dev/null 2>&1; then \
+ echo "-------- Install jar files --------"; \
+ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(JARDIR); \
+ for file in $(srcdir)/$(JARDIR)$(JARMASK); do\
+ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$(JARDIR)" ; \
+ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$(JARDIR) ; \
+ done ; \
+ fi
+
+########### CLEAN ###################
+# Clean help (generated automatically by Scilab)
+# It used to clean the macro (clean-macros) but this was causing
+# make clean && make to fail Scilab startup
+@NEED_JAVA_TRUE@clean-local: clean-java
+@NEED_JAVA_FALSE@clean-local:
+
+distclean-local:
+ rm -f $(builddir)/help/*/.last_successful_build_javaHelp $(builddir)/help/*/.list_*
+
+.PHONY: macros java swig giws
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/modules/localization/build.xml b/modules/localization/build.xml
new file mode 100755
index 000000000..19aa0a2ff
--- /dev/null
+++ b/modules/localization/build.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<project name="localization" default="jar">
+ <import file="../../build.incl.xml"/>
+ <property name="library.name" value="${library.localization.name}"/>
+ <property name="library.title" value="Localization support"/>
+ <description>
+ Build the Scilab Localization module
+ </description>
+</project>
diff --git a/modules/localization/build/classes/org/scilab/modules/localization/LocaleToLCID.class b/modules/localization/build/classes/org/scilab/modules/localization/LocaleToLCID.class
new file mode 100755
index 000000000..8ddaa9f1e
--- /dev/null
+++ b/modules/localization/build/classes/org/scilab/modules/localization/LocaleToLCID.class
Binary files differ
diff --git a/modules/localization/build/classes/org/scilab/modules/localization/LocaleToLCIDJNI.class b/modules/localization/build/classes/org/scilab/modules/localization/LocaleToLCIDJNI.class
new file mode 100755
index 000000000..eb299a01f
--- /dev/null
+++ b/modules/localization/build/classes/org/scilab/modules/localization/LocaleToLCIDJNI.class
Binary files differ
diff --git a/modules/localization/build/classes/org/scilab/modules/localization/Messages.class b/modules/localization/build/classes/org/scilab/modules/localization/Messages.class
new file mode 100755
index 000000000..4857c1310
--- /dev/null
+++ b/modules/localization/build/classes/org/scilab/modules/localization/Messages.class
Binary files differ
diff --git a/modules/localization/build/classes/org/scilab/modules/localization/MessagesJNI.class b/modules/localization/build/classes/org/scilab/modules/localization/MessagesJNI.class
new file mode 100755
index 000000000..c67ae5fa9
--- /dev/null
+++ b/modules/localization/build/classes/org/scilab/modules/localization/MessagesJNI.class
Binary files differ
diff --git a/modules/localization/build/classes/org/scilab/modules/localization/WindowsDefaultLanguage.class b/modules/localization/build/classes/org/scilab/modules/localization/WindowsDefaultLanguage.class
new file mode 100755
index 000000000..984cf26b7
--- /dev/null
+++ b/modules/localization/build/classes/org/scilab/modules/localization/WindowsDefaultLanguage.class
Binary files differ
diff --git a/modules/localization/build/classes/org/scilab/modules/localization/WindowsDefaultLanguageJNI.class b/modules/localization/build/classes/org/scilab/modules/localization/WindowsDefaultLanguageJNI.class
new file mode 100755
index 000000000..e045de485
--- /dev/null
+++ b/modules/localization/build/classes/org/scilab/modules/localization/WindowsDefaultLanguageJNI.class
Binary files differ
diff --git a/modules/localization/data/header.pot b/modules/localization/data/header.pot
new file mode 100755
index 000000000..554eeb8a4
--- /dev/null
+++ b/modules/localization/data/header.pot
@@ -0,0 +1,19 @@
+# Localization of the module MODULE
+# Please see in SCI/tools/localization for localization management
+# Copyright (C) 2007-2008 - INRIA
+# Copyright (C) 2008-2011 - DIGITEO
+# Copyright (C) 2012-2014 - Scilab-Enterprises
+# This file is distributed under the same license as the Scilab package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Scilab\n"
+"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n"
+"POT-Creation-Date: CREATION-DATE\n"
+"Last-Translator: Vincent COUVERT <vincent.couvert@scilab-enterprises.com>\n"
+"Language-Team: Scilab Localization <localization@lists.scilab.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Revision-Date: REVISION-DATE\n"
+
diff --git a/modules/localization/etc/localization.quit b/modules/localization/etc/localization.quit
new file mode 100755
index 000000000..ab83f0c89
--- /dev/null
+++ b/modules/localization/etc/localization.quit
@@ -0,0 +1,10 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2007-2008 - INRIA
+// Copyright (C) 2009 - DIGITEO
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
diff --git a/modules/localization/etc/localization.start b/modules/localization/etc/localization.start
new file mode 100755
index 000000000..df007eb63
--- /dev/null
+++ b/modules/localization/etc/localization.start
@@ -0,0 +1,26 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2006 - INRIA - Allan CORNET
+// Copyright (C) 2011 - DIGITEO - Allan CORNET
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function startModule()
+
+// Set LANGUAGE ======================================================
+// used mainly for on-line help
+
+ args = sciargs();
+ larg = find(args == "-l");
+
+ if larg<>[] & larg <= size(args, "*") then
+ L = args(larg + 1);
+ setlanguage(L);
+ end
+endfunction
+
+startModule();
+clear startModule;
diff --git a/modules/localization/help/en_US/addchapter.sce b/modules/localization/help/en_US/addchapter.sce
new file mode 100755
index 000000000..c3f0eed2c
--- /dev/null
+++ b/modules/localization/help/en_US/addchapter.sce
@@ -0,0 +1,11 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+add_help_chapter("Localization",SCI+"/modules/localization/help/en_US",%T);
+
diff --git a/modules/localization/help/en_US/addlocalizationdomain.xml b/modules/localization/help/en_US/addlocalizationdomain.xml
new file mode 100755
index 000000000..8ff026e4a
--- /dev/null
+++ b/modules/localization/help/en_US/addlocalizationdomain.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2013 - Scilab Enterprises - Antoine ELIAS
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="addlocalizationdomain">
+ <refnamediv>
+ <refname>addlocalizationdomain</refname>
+ <refpurpose>add a new domain in localization mechanism.</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>msg=addlocalizationdomain(domain, path)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>domain</term>
+ <listitem>
+ <para>a string, the name of the messages domain</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>path</term>
+ <listitem>
+ <para>path to the domain files</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Examples</title>
+ <programlisting role="example"><![CDATA[
+setlanguage("fr_FR");
+gettext("Startup execution:")
+_("Startup execution:")
+addlocalizationdomain("tbx", "SCI/modules/localization/tests/unit_tests/locale")
+gettext("tbx", "%s: something not in Scilab.\n")
+_("tbx", "%s: something not in Scilab.\n")
+ ]]></programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="gettext">gettext</link>
+ </member>
+ </simplelist>
+ </refsection>
+ <refsection>
+ <title>History</title>
+ <revhistory>
+ <revision>
+ <revnumber>5.5.0</revnumber>
+ <revdescription>addlocalizationdomain function added.</revdescription>
+ </revision>
+ </revhistory>
+ </refsection>
+</refentry>
diff --git a/modules/localization/help/en_US/dgettext.xml b/modules/localization/help/en_US/dgettext.xml
new file mode 100755
index 000000000..388952beb
--- /dev/null
+++ b/modules/localization/help/en_US/dgettext.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="dgettext">
+ <refnamediv>
+ <refname>dgettext</refname>
+ <refpurpose>get text translated into the current locale and a specific domain</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>msg=dgettext(domain, myString)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>domain</term>
+ <listitem>
+ <para>a string, the name of the message domain</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>myString</term>
+ <listitem>
+ <para>a string, the message to be translated</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>
+ <literal>dgettext</literal> gets the translation of a string <literal>myString</literal> to the current locale in a specified message domain <literal>domain</literal>.
+ </para>
+ </refsection>
+ <refsection>
+ <title>Examples</title>
+ <programlisting role="example"><![CDATA[
+dgettext('scilab','Startup execution:')
+ ]]></programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="gettext">gettext</link>
+ </member>
+ <member>
+ <link linkend="_">_</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/localization/help/en_US/getdefaultlanguage.xml b/modules/localization/help/en_US/getdefaultlanguage.xml
new file mode 100755
index 000000000..e7650b58b
--- /dev/null
+++ b/modules/localization/help/en_US/getdefaultlanguage.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="getdefaultlanguage">
+ <refnamediv>
+ <refname>getdefaultlanguage</refname>
+ <refpurpose>returns the default language used by Scilab</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>getdefaultlanguage()</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ <literal>getdefaultlanguage()</literal> returns the default language used by Scilab.
+ By default, this function should return <literal>en_US</literal>.
+ </para>
+ </refsection>
+ <refsection>
+ <title>Examples</title>
+ <programlisting role="example"><![CDATA[
+getdefaultlanguage()
+ ]]></programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="setlanguage">setlanguage</link>
+ </member>
+ <member>
+ <link linkend="getlanguage">getlanguage</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/localization/help/en_US/getlanguage.xml b/modules/localization/help/en_US/getlanguage.xml
new file mode 100755
index 000000000..4e67fb1be
--- /dev/null
+++ b/modules/localization/help/en_US/getlanguage.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="getlanguage">
+ <refnamediv>
+ <refname>getlanguage</refname>
+ <refpurpose>returns current language used by Scilab.</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>getlanguage()</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ <literal>getlanguage()</literal> returns current language used by Scilab.
+ </para>
+ </refsection>
+ <refsection>
+ <title>Examples</title>
+ <programlisting role="example"><![CDATA[
+setlanguage('en_US')
+getlanguage()
+ ]]></programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="setlanguage">setlanguage</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/localization/help/en_US/gettext.xml b/modules/localization/help/en_US/gettext.xml
new file mode 100755
index 000000000..536946e23
--- /dev/null
+++ b/modules/localization/help/en_US/gettext.xml
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="gettext">
+ <refnamediv>
+ <refname>gettext</refname>
+ <refpurpose>get text translated into the current locale and domain.</refpurpose>
+ </refnamediv>
+ <refnamediv xml:id="_">
+ <refname>_</refname>
+ <refpurpose>
+ Similar to <link linkend="gettext">gettext</link>
+ </refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>msg=gettext([myDomain,] myString)
+ msg=_([myDomain,] myString)
+ </synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>myDomain</term>
+ <listitem>
+ <para>a string, the name of the messages domain</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>myString</term>
+ <listitem>
+ <para>a string, the message to be translated</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>
+ <literal>gettext(myString)</literal> gets the translation of a string <literal>myString</literal> to the current locale in the current domain.
+ </para>
+ <para>
+ <literal>gettext(myDomain, myString)</literal> gets the translation of a string <literal>myString</literal> to the <literal>myDomain</literal> domain.
+ </para>
+ <para>
+ <code>_(myString)</code> is an alias of <code>gettext(myString)</code>.
+ </para>
+ <para>
+ <code>_(myDomain, myString)</code> is an alias of <code>gettext(myDomain, myString)</code>.
+ </para>
+ </refsection>
+ <refsection>
+ <title>Examples</title>
+ <programlisting role="example"><![CDATA[
+setlanguage("fr_FR");
+gettext("Startup execution:")
+_("Startup execution:")
+addlocalizationdomain("tbx", "SCI/modules/localization/tests/unit_tests/locale")
+gettext("tbx", "%s: something not in Scilab.\n")
+_("tbx", "%s: something not in Scilab.\n")
+ ]]></programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="addlocalizationdomain">addlocalizationdomain</link>
+ </member>
+ </simplelist>
+ </refsection>
+ <refsection>
+ <title>History</title>
+ <revhistory>
+ <revision>
+ <revnumber>5.5.0</revnumber>
+ <revdescription>Domain management added.</revdescription>
+ </revision>
+ </revhistory>
+ </refsection>
+</refentry>
diff --git a/modules/localization/help/en_US/setdefaultlanguage.xml b/modules/localization/help/en_US/setdefaultlanguage.xml
new file mode 100755
index 000000000..858f11b82
--- /dev/null
+++ b/modules/localization/help/en_US/setdefaultlanguage.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="setdefaultlanguage" xml:lang="en">
+ <refnamediv>
+ <refname>setdefaultlanguage</refname>
+ <refpurpose>sets and saves the internal LANGUAGE value.</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>setdefaultlanguage(language)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>language</term>
+ <listitem>
+ <para>a string, can have following values: 'fr', 'en', 'ru_RU', 'zh_TW', ...</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>
+ <literal>setdefaultlanguage(language)</literal> changes current
+ language and saves this value in Scilab.
+ </para>
+ <para>You have to restart Scilab, if you want to use menus.</para>
+ <para>
+ <literal>setdefaultlanguage('')</literal> resets language to the system value.
+ </para>
+ <para>
+ <literal>setdefaultlanguage</literal> is used only Windows. On others operating systems
+ it returns always <literal>%f</literal>.
+ </para>
+ </refsection>
+ <refsection>
+ <title>Examples</title>
+ <programlisting role="example"><![CDATA[
+setdefaultlanguage('en_US')
+
+// restart Scilab
+getlanguage()
+setdefaultlanguage('fr_FR')
+
+// restart Scilab
+getlanguage()
+setdefaultlanguage('')
+
+// restart scilab
+ ]]></programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="getlanguage">getlanguage</link>
+ </member>
+ <member>
+ <link linkend="setlanguage">setlanguage</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/localization/help/en_US/setlanguage.xml b/modules/localization/help/en_US/setlanguage.xml
new file mode 100755
index 000000000..2c40e2c19
--- /dev/null
+++ b/modules/localization/help/en_US/setlanguage.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="setlanguage">
+ <refnamediv>
+ <refname>setlanguage</refname>
+ <refpurpose>sets the internal LANGUAGE
+ value (for Windows only)
+ </refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>setlanguage(language)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>language</term>
+ <listitem>
+ <para>with language='fr' or 'en', ... </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>
+ <literal>setlanguage(language)</literal> changes current language in scilab.
+ </para>
+ </refsection>
+ <refsection>
+ <title>Examples</title>
+ <programlisting role="example"><![CDATA[
+setlanguage('en_US')
+getlanguage()
+setlanguage('en')
+getlanguage()
+setlanguage('fr')
+getlanguage()
+setlanguage('fr_FR')
+getlanguage()
+ ]]></programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="getlanguage">getlanguage</link>
+ </member>
+ <member>
+ <link linkend="setdefaultlanguage">setdefaultlanguage</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/localization/help/fr_FR/addchapter.sce b/modules/localization/help/fr_FR/addchapter.sce
new file mode 100755
index 000000000..7f4861663
--- /dev/null
+++ b/modules/localization/help/fr_FR/addchapter.sce
@@ -0,0 +1,11 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+add_help_chapter("Localisation",SCI+"/modules/localization/help/fr_FR",%T);
+
diff --git a/modules/localization/help/fr_FR/language.xml b/modules/localization/help/fr_FR/language.xml
new file mode 100755
index 000000000..1276a4c21
--- /dev/null
+++ b/modules/localization/help/fr_FR/language.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="LANGUAGE" xml:lang="fr">
+ <refnamediv>
+ <refname>LANGUAGE</refname>
+ <refpurpose>(obsolete)</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>voir getlanguage()</para>
+ <para>LANGUAGE = getlanguage();</para>
+ </refsection>
+</refentry>
diff --git a/modules/localization/help/fr_FR/setlanguage.xml b/modules/localization/help/fr_FR/setlanguage.xml
new file mode 100755
index 000000000..d8de7af84
--- /dev/null
+++ b/modules/localization/help/fr_FR/setlanguage.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="setlanguage" xml:lang="fr">
+ <refnamediv>
+ <refname>setlanguage</refname>
+ <refpurpose>Modifie la langue courante.</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Séquence d'appel</title>
+ <synopsis>setlanguage(language)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Paramètres</title>
+ <variablelist>
+ <varlistentry>
+ <term>language</term>
+ <listitem>
+ <para>avec language='fr' or 'en'</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>
+ <literal>setlanguage(language)</literal> change la langue courante
+ dans scilab.
+ </para>
+ <para>et sauvegarde celle-ci.</para>
+ <para>un redemarrage de scilab est necessaire pour que les menus soient
+ localisés.
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="getlanguage">getlanguage</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/localization/help/ja_JP/addchapter.sce b/modules/localization/help/ja_JP/addchapter.sce
new file mode 100755
index 000000000..0e0916e0e
--- /dev/null
+++ b/modules/localization/help/ja_JP/addchapter.sce
@@ -0,0 +1,11 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+add_help_chapter("Localization",SCI+"/modules/localization/help/ja_JP",%T);
+
diff --git a/modules/localization/help/ja_JP/addlocalizationdomain.xml b/modules/localization/help/ja_JP/addlocalizationdomain.xml
new file mode 100755
index 000000000..4e0a5a7de
--- /dev/null
+++ b/modules/localization/help/ja_JP/addlocalizationdomain.xml
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2013 - Scilab Enterprises - Antoine ELIAS
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="addlocalizationdomain">
+
+ <refnamediv>
+
+ <refname>addlocalizationdomain</refname>
+
+ <refpurpose>ローカライゼーション機構に新規ドメインを追加.</refpurpose>
+
+ </refnamediv>
+
+ <refsynopsisdiv>
+
+ <title>呼び出し手順</title>
+
+ <synopsis>msg=addlocalizationdomain(domain, path)</synopsis>
+
+ </refsynopsisdiv>
+
+ <refsection>
+
+ <title>引数</title>
+
+ <variablelist>
+
+ <varlistentry>
+
+ <term>domain</term>
+
+ <listitem>
+
+ <para>文字列, メッセージドメインの名前</para>
+
+ </listitem>
+
+ </varlistentry>
+
+ <varlistentry>
+
+ <term>path</term>
+
+ <listitem>
+
+ <para>ドメインファイルのパス</para>
+
+ </listitem>
+
+ </varlistentry>
+
+ </variablelist>
+
+ </refsection>
+
+ <refsection>
+
+ <title>例</title>
+
+ <programlisting role="example"><![CDATA[
+setlanguage("fr_FR");
+gettext("Startup execution:")
+_("Startup execution:")
+addlocalizationdomain("tbx", "SCI/modules/localization/tests/unit_tests/locale")
+gettext("tbx", "%s: something not in Scilab.\n")
+_("tbx", "%s: something not in Scilab.\n")
+ ]]></programlisting>
+
+ </refsection>
+
+ <refsection role="see also">
+
+ <title>参照</title>
+
+ <simplelist type="inline">
+
+ <member>
+
+ <link linkend="gettext">gettext</link>
+
+ </member>
+
+ </simplelist>
+
+ </refsection>
+
+ <refsection>
+
+ <title>履歴</title>
+
+ <revhistory>
+
+ <revision>
+
+ <revnumber>5.5.0</revnumber>
+
+ <revdescription>
+
+ addlocalizationdomain 関数が追加されました.
+
+ </revdescription>
+
+ </revision>
+
+ </revhistory>
+
+ </refsection>
+
+</refentry>
+
diff --git a/modules/localization/help/ja_JP/dgettext.xml b/modules/localization/help/ja_JP/dgettext.xml
new file mode 100755
index 000000000..8946307bc
--- /dev/null
+++ b/modules/localization/help/ja_JP/dgettext.xml
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="dgettext">
+
+ <refnamediv>
+
+ <refname>dgettext</refname>
+
+ <refpurpose>
+
+ カレントのロケールおよび指定したドメインに翻訳されたテキストを取得
+
+ </refpurpose>
+
+ </refnamediv>
+
+ <refsynopsisdiv>
+
+ <title>呼び出し手順</title>
+
+ <synopsis>msg=dgettext(domain, myString)</synopsis>
+
+ </refsynopsisdiv>
+
+ <refsection>
+
+ <title>引数</title>
+
+ <variablelist>
+
+ <varlistentry>
+
+ <term>domain</term>
+
+ <listitem>
+
+ <para>文字列, メッセージドメインの名前</para>
+
+ </listitem>
+
+ </varlistentry>
+
+ <varlistentry>
+
+ <term>myString</term>
+
+ <listitem>
+
+ <para>文字列, 翻訳するメッセージ</para>
+
+ </listitem>
+
+ </varlistentry>
+
+ </variablelist>
+
+ </refsection>
+
+ <refsection>
+
+ <title>説明</title>
+
+ <para>
+
+ <literal>dgettext</literal> は文字列 <literal>myString</literal>を
+
+ 指定したメッセージドメイン<literal>domain</literal>の
+
+ カレントのロケールへの翻訳したものを取得します.
+
+ </para>
+
+ </refsection>
+
+ <refsection>
+
+ <title>例</title>
+
+ <programlisting role="example"><![CDATA[
+dgettext('scilab','Startup execution:')
+ ]]></programlisting>
+
+ </refsection>
+
+ <refsection role="see also">
+
+ <title>参照</title>
+
+ <simplelist type="inline">
+
+ <member>
+
+ <link linkend="gettext">gettext</link>
+
+ </member>
+
+ <member>
+
+ <link linkend="_">_</link>
+
+ </member>
+
+ </simplelist>
+
+ </refsection>
+
+</refentry>
+
diff --git a/modules/localization/help/ja_JP/getdefaultlanguage.xml b/modules/localization/help/ja_JP/getdefaultlanguage.xml
new file mode 100755
index 000000000..670fbb008
--- /dev/null
+++ b/modules/localization/help/ja_JP/getdefaultlanguage.xml
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="getdefaultlanguage">
+
+ <refnamediv>
+
+ <refname>getdefaultlanguage</refname>
+
+ <refpurpose>Scilabで使用されるデフォルト言語を返す</refpurpose>
+
+ </refnamediv>
+
+ <refsynopsisdiv>
+
+ <title>呼び出し手順</title>
+
+ <synopsis>getdefaultlanguage()</synopsis>
+
+ </refsynopsisdiv>
+
+ <refsection>
+
+ <title>説明</title>
+
+ <para>
+
+ <literal>getdefaultlanguage()</literal> は,Scilabで使用される
+
+ デフォルトの言語を返します.
+
+ デフォルトで,この関数は<literal>en_US</literal>を返します.
+
+ </para>
+
+ </refsection>
+
+ <refsection>
+
+ <title>例</title>
+
+ <programlisting role="example"><![CDATA[
+getdefaultlanguage()
+ ]]></programlisting>
+
+ </refsection>
+
+ <refsection role="see also">
+
+ <title>参照</title>
+
+ <simplelist type="inline">
+
+ <member>
+
+ <link linkend="setlanguage">setlanguage</link>
+
+ </member>
+
+ <member>
+
+ <link linkend="getlanguage">getlanguage</link>
+
+ </member>
+
+ </simplelist>
+
+ </refsection>
+
+</refentry>
+
diff --git a/modules/localization/help/ja_JP/getlanguage.xml b/modules/localization/help/ja_JP/getlanguage.xml
new file mode 100755
index 000000000..9b0ced5bf
--- /dev/null
+++ b/modules/localization/help/ja_JP/getlanguage.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="getlanguage">
+
+ <refnamediv>
+
+ <refname>getlanguage</refname>
+
+ <refpurpose>Scilabで使用されるカレントの言語を返す.</refpurpose>
+
+ </refnamediv>
+
+ <refsynopsisdiv>
+
+ <title>呼び出し手順</title>
+
+ <synopsis>getlanguage()</synopsis>
+
+ </refsynopsisdiv>
+
+ <refsection>
+
+ <title>説明</title>
+
+ <para>
+
+ <literal>getlanguage()</literal> は,Scilabで使用されるカレントの言語を
+
+ 返します.
+
+ </para>
+
+ </refsection>
+
+ <refsection>
+
+ <title>例</title>
+
+ <programlisting role="example"><![CDATA[
+setlanguage('en_US')
+getlanguage()
+ ]]></programlisting>
+
+ </refsection>
+
+ <refsection role="see also">
+
+ <title>参照</title>
+
+ <simplelist type="inline">
+
+ <member>
+
+ <link linkend="setlanguage">setlanguage</link>
+
+ </member>
+
+ </simplelist>
+
+ </refsection>
+
+</refentry>
+
diff --git a/modules/localization/help/ja_JP/gettext.xml b/modules/localization/help/ja_JP/gettext.xml
new file mode 100755
index 000000000..359f7e2f8
--- /dev/null
+++ b/modules/localization/help/ja_JP/gettext.xml
@@ -0,0 +1,172 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="gettext">
+
+ <refnamediv>
+
+ <refname>gettext</refname>
+
+ <refpurpose>カレントのロケールおよびドメインに翻訳したテキストを取得.</refpurpose>
+
+ </refnamediv>
+
+ <refnamediv xml:id="_">
+
+ <refname>_</refname>
+
+ <refpurpose>
+
+ <link linkend="gettext">gettext</link>に類似
+
+ </refpurpose>
+
+ </refnamediv>
+
+ <refsynopsisdiv>
+
+ <title>呼び出し手順</title>
+
+ <synopsis>msg=gettext([myDomain,] myString)
+
+ msg=_([myDomain,] myString)
+
+ </synopsis>
+
+ </refsynopsisdiv>
+
+ <refsection>
+
+ <title>引数</title>
+
+ <variablelist>
+
+ <varlistentry>
+
+ <term>myDomain</term>
+
+ <listitem>
+
+ <para>文字列, メッセージドメインの名前</para>
+
+ </listitem>
+
+ </varlistentry>
+
+ <varlistentry>
+
+ <term>myString</term>
+
+ <listitem>
+
+ <para>文字列, 翻訳する文字列</para>
+
+ </listitem>
+
+ </varlistentry>
+
+ </variablelist>
+
+ </refsection>
+
+ <refsection>
+
+ <title>説明</title>
+
+ <para>
+
+ <literal>gettext(myString)</literal> は,文字列<literal>myString</literal>を
+
+ カレントのロケールのカレントのドメインに翻訳したものを取得します.
+
+ </para>
+
+ <para>
+
+ <literal>gettext(myDomain, myString)</literal> は,
+
+ 文字列<literal>myString</literal>を
+
+ <literal>myDomain</literal>ドメインに翻訳したものを取得します.
+
+ </para>
+
+ <para>
+
+ <code>_(myString)</code> は,<code>gettext(myString)</code>のエイリアスです.
+
+ </para>
+
+ <para>
+
+ <code>_(myDomain, myString)</code> は,<code>gettext(myDomain, myString)</code>
+
+ のエイリアスです.
+
+ </para>
+
+ </refsection>
+
+ <refsection>
+
+ <title>例</title>
+
+ <programlisting role="example"><![CDATA[
+setlanguage("fr_FR");
+gettext("Startup execution:")
+_("Startup execution:")
+addlocalizationdomain("tbx", "SCI/modules/localization/tests/unit_tests/locale")
+gettext("tbx", "%s: something not in Scilab.\n")
+_("tbx", "%s: something not in Scilab.\n")
+ ]]></programlisting>
+
+ </refsection>
+
+ <refsection role="see also">
+
+ <title>参照</title>
+
+ <simplelist type="inline">
+
+ <member>
+
+ <link linkend="addlocalizationdomain">addlocalizationdomain</link>
+
+ </member>
+
+ </simplelist>
+
+ </refsection>
+
+ <refsection>
+
+ <title>履歴</title>
+
+ <revhistory>
+
+ <revision>
+
+ <revnumber>5.5.0</revnumber>
+
+ <revdescription>ドメイン管理が追加されました.</revdescription>
+
+ </revision>
+
+ </revhistory>
+
+ </refsection>
+
+</refentry>
+
diff --git a/modules/localization/help/ja_JP/setdefaultlanguage.xml b/modules/localization/help/ja_JP/setdefaultlanguage.xml
new file mode 100755
index 000000000..831b479ff
--- /dev/null
+++ b/modules/localization/help/ja_JP/setdefaultlanguage.xml
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="setdefaultlanguage" xml:lang="ja">
+
+ <refnamediv>
+
+ <refname>setdefaultlanguage</refname>
+
+ <refpurpose>内部変数 LANGUAGE の値を設定, 保存.</refpurpose>
+
+ </refnamediv>
+
+ <refsynopsisdiv>
+
+ <title>呼び出し手順</title>
+
+ <synopsis>setdefaultlanguage(language)</synopsis>
+
+ </refsynopsisdiv>
+
+ <refsection>
+
+ <title>引数</title>
+
+ <variablelist>
+
+ <varlistentry>
+
+ <term>language</term>
+
+ <listitem>
+
+ <para>文字列, 以下の値のどれかとします: 'fr', 'en', 'ru_RU', 'zh_TW', ...</para>
+
+ </listitem>
+
+ </varlistentry>
+
+ </variablelist>
+
+ </refsection>
+
+ <refsection>
+
+ <title>説明</title>
+
+ <para>
+
+ <literal>setdefaultlanguage(language)</literal> は,
+
+ カレントの言語を変更し, この値を Scilabに保存します.
+
+ </para>
+
+ <para>メニューを使用する場合, Scilabを再起動する必要があります.</para>
+
+ <para>
+
+ <literal>setdefaultlanguage('')</literal> は,
+
+ 言語をシステム値にリセットします.
+
+ </para>
+
+ <para>
+
+ <literal>setdefaultlanguage</literal> は Windowsのみで使用されます.
+
+ 他のオペレーティングシステムでは,常に
+
+ <literal>%f</literal>を返します.
+
+ </para>
+
+ </refsection>
+
+ <refsection>
+
+ <title>例</title>
+
+ <programlisting role="example"><![CDATA[
+setdefaultlanguage('en_US')
+
+// Scilabを再起動
+getlanguage()
+setdefaultlanguage('fr_FR')
+
+// Scilabを再起動
+getlanguage()
+setdefaultlanguage('')
+
+// scilabを再起動
+ ]]></programlisting>
+
+ </refsection>
+
+ <refsection role="see also">
+
+ <title>参照</title>
+
+ <simplelist type="inline">
+
+ <member>
+
+ <link linkend="getlanguage">getlanguage</link>
+
+ </member>
+
+ <member>
+
+ <link linkend="setlanguage">setlanguage</link>
+
+ </member>
+
+ </simplelist>
+
+ </refsection>
+
+</refentry>
+
diff --git a/modules/localization/help/ja_JP/setlanguage.xml b/modules/localization/help/ja_JP/setlanguage.xml
new file mode 100755
index 000000000..e166077c5
--- /dev/null
+++ b/modules/localization/help/ja_JP/setlanguage.xml
@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="setlanguage">
+
+ <refnamediv>
+
+ <refname>setlanguage</refname>
+
+ <refpurpose>
+
+ 内部変数 LANGUAGE の値を設定(Windows専用)
+
+ </refpurpose>
+
+ </refnamediv>
+
+ <refsynopsisdiv>
+
+ <title>呼び出し手順</title>
+
+ <synopsis>setlanguage(language)</synopsis>
+
+ </refsynopsisdiv>
+
+ <refsection>
+
+ <title>引数</title>
+
+ <variablelist>
+
+ <varlistentry>
+
+ <term>language</term>
+
+ <listitem>
+
+ <para>language='fr' または 'en', ... と指定</para>
+
+ </listitem>
+
+ </varlistentry>
+
+ </variablelist>
+
+ </refsection>
+
+ <refsection>
+
+ <title>説明</title>
+
+ <para>
+
+ <literal>setlanguage(language)</literal> は, Scilabの
+
+ カレントの言語を変更します.
+
+ </para>
+
+ </refsection>
+
+ <refsection>
+
+ <title>例</title>
+
+ <programlisting role="example"><![CDATA[
+setlanguage('en_US')
+getlanguage()
+setlanguage('en')
+getlanguage()
+setlanguage('fr')
+getlanguage()
+setlanguage('fr_FR')
+getlanguage()
+ ]]></programlisting>
+
+ </refsection>
+
+ <refsection role="see also">
+
+ <title>参照</title>
+
+ <simplelist type="inline">
+
+ <member>
+
+ <link linkend="getlanguage">getlanguage</link>
+
+ </member>
+
+ <member>
+
+ <link linkend="setdefaultlanguage">setdefaultlanguage</link>
+
+ </member>
+
+ </simplelist>
+
+ </refsection>
+
+</refentry>
+
diff --git a/modules/localization/help/pt_BR/addchapter.sce b/modules/localization/help/pt_BR/addchapter.sce
new file mode 100755
index 000000000..da42aa129
--- /dev/null
+++ b/modules/localization/help/pt_BR/addchapter.sce
@@ -0,0 +1,11 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+add_help_chapter("Localização",SCI+"/modules/localization/help/pt_BR",%T);
+
diff --git a/modules/localization/help/ru_RU/addchapter.sce b/modules/localization/help/ru_RU/addchapter.sce
new file mode 100755
index 000000000..10e961526
--- /dev/null
+++ b/modules/localization/help/ru_RU/addchapter.sce
@@ -0,0 +1,11 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+add_help_chapter("Локализация",SCI+"/modules/localization/help/ru_RU",%T);
+
diff --git a/modules/localization/help/ru_RU/dgettext.xml b/modules/localization/help/ru_RU/dgettext.xml
new file mode 100755
index 000000000..3739bb50f
--- /dev/null
+++ b/modules/localization/help/ru_RU/dgettext.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="dgettext">
+ <refnamediv>
+ <refname>dgettext</refname>
+ <refpurpose>получение текста, переведённого на язык текущей локали и определённого региона использования</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Последовательность вызова</title>
+ <synopsis>msg=dgettext(domain, myString)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Аргументы</title>
+ <variablelist>
+ <varlistentry>
+ <term>domain</term>
+ <listitem>
+ <para>строка, имя области использования</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>myString</term>
+ <listitem>
+ <para>строка, сообщение, которое нужно перевести</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Описание</title>
+ <para>
+ <literal>dgettext(domain, myString)</literal> получает перевод строки
+ <literal>myString</literal> в определённой области использования <literal>domain</literal>.
+ </para>
+ </refsection>
+ <refsection>
+ <title>Примеры</title>
+ <programlisting role="example"><![CDATA[
+dgettext('scilab','Startup execution:')
+ ]]></programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>Смотрите также</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="gettext">gettext</link>
+ </member>
+ <member>
+ <link linkend="_">_</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/localization/help/ru_RU/getdefaultlanguage.xml b/modules/localization/help/ru_RU/getdefaultlanguage.xml
new file mode 100755
index 000000000..20e18a11f
--- /dev/null
+++ b/modules/localization/help/ru_RU/getdefaultlanguage.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="getdefaultlanguage">
+ <refnamediv>
+ <refname>getdefaultlanguage</refname>
+ <refpurpose>возвращает язык, используемый Scilab'ом по умолчанию</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Последовательность вызова</title>
+ <synopsis>getdefaultlanguage()</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Описание</title>
+ <para>
+ <literal>getdefaultlanguage()</literal> возвращает язык, используемый Scilab'ом по умолчанию.
+ По умолчанию эта функция должна возвращать <literal>en_US</literal>.
+ </para>
+ </refsection>
+ <refsection>
+ <title>Примеры</title>
+ <programlisting role="example"><![CDATA[
+getdefaultlanguage()
+ ]]></programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>Смотрите также</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="setlanguage">setlanguage</link>
+ </member>
+ <member>
+ <link linkend="getlanguage">getlanguage</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/localization/help/ru_RU/getlanguage.xml b/modules/localization/help/ru_RU/getlanguage.xml
new file mode 100755
index 000000000..e9ba05572
--- /dev/null
+++ b/modules/localization/help/ru_RU/getlanguage.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="getlanguage">
+ <refnamediv>
+ <refname>getlanguage</refname>
+ <refpurpose>возвращает текущий язык, используемый Scilab'ом</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Последовательность вызова</title>
+ <synopsis>getlanguage()</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Описание</title>
+ <para>
+ <literal>getlanguage()</literal> возвращает текущий язык, используемый Scilab'ом.
+ </para>
+ </refsection>
+ <refsection>
+ <title>Примеры</title>
+ <programlisting role="example"><![CDATA[
+setlanguage('en_US')
+getlanguage()
+ ]]></programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>Смотрите также</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="setlanguage">setlanguage</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/localization/help/ru_RU/gettext.xml b/modules/localization/help/ru_RU/gettext.xml
new file mode 100755
index 000000000..2e23475a0
--- /dev/null
+++ b/modules/localization/help/ru_RU/gettext.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="gettext">
+ <refnamediv>
+ <refname>gettext</refname>
+ <refpurpose>получение текста, переведённого в текущей локали и регионе использования</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Последовательность вызова</title>
+ <synopsis>msg=gettext(myString)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Аргументы</title>
+ <variablelist>
+ <varlistentry>
+ <term>myString</term>
+ <listitem>
+ <para>строка, сообщение, которое нужно перевести</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Описание</title>
+ <para>
+ <literal>gettext(myString)</literal> получает перевод строки <literal>myString</literal> в текущей локали в текущем регионе использования.
+ </para>
+ </refsection>
+ <refsection>
+ <title>Примеры</title>
+ <programlisting role="example"><![CDATA[
+gettext("Startup execution:")
+ ]]></programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>Смотрите также</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="dgettext">dgettext</link>
+ </member>
+ <member>
+ <link linkend="_">_</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/localization/help/ru_RU/language.xml b/modules/localization/help/ru_RU/language.xml
new file mode 100755
index 000000000..c575722e1
--- /dev/null
+++ b/modules/localization/help/ru_RU/language.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="LANGUAGE">
+ <refnamediv>
+ <refname>LANGUAGE</refname>
+ <refpurpose>переменная, определяющая язык (УСТАРЕЛА)</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Описание</title>
+ <para>
+ <literal>LANGUAGE</literal> устарела. Если вам нужна переменная <literal>LANGUAGE</literal>,
+ то используйте <literal>LANGUAGE=getlanguage()</literal>.
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Смотрите также</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="getlanguage">getlanguage</link>
+ </member>
+ <member>
+ <link linkend="getdefaultlanguage">getdefaultlanguage</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/localization/help/ru_RU/setdefaultlanguage.xml b/modules/localization/help/ru_RU/setdefaultlanguage.xml
new file mode 100755
index 000000000..4c6e87127
--- /dev/null
+++ b/modules/localization/help/ru_RU/setdefaultlanguage.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="setdefaultlanguage" xml:lang="ru">
+ <refnamediv>
+ <refname>setdefaultlanguage</refname>
+ <refpurpose>устанавливает и сохраняет значение внутреннего языка LANGUAGE</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Последовательность вызова</title>
+ <synopsis>setdefaultlanguage(language)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Аргументы</title>
+ <variablelist>
+ <varlistentry>
+ <term>language</term>
+ <listitem>
+ <para>строка, указывающая язык 'fr', 'en', 'ru_RU', 'zh_TW' и др.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Описание</title>
+ <para>
+ <literal>setdefaultlanguage(language)</literal> меняет текущий язык и сохраняет это значение в Scilab'е.
+ </para>
+ <para>
+ Если вы хотите использовать меню, то вам придётся перезапустить Scilab.
+ </para>
+ <para>
+ <literal>setdefaultlanguage('')</literal> сбрасывает язык к системному значению.
+ </para>
+ <para>
+ <literal>setdefaultlanguage</literal> используется только в Windows. В других операционных системах она всегда возвращает <literal>%f</literal>.
+ </para>
+ </refsection>
+ <refsection>
+ <title>Примеры</title>
+ <programlisting role="example"><![CDATA[
+setdefaultlanguage('en_US')
+
+// restart scilab
+getlanguage()
+setdefaultlanguage('fr_FR')
+
+// restart scilab
+getlanguage()
+setdefaultlanguage('')
+
+// restart scilab
+ ]]></programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>Смотрите также</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="getlanguage">getlanguage</link>
+ </member>
+ <member>
+ <link linkend="setlanguage">setlanguage</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/localization/help/ru_RU/setlanguage.xml b/modules/localization/help/ru_RU/setlanguage.xml
new file mode 100755
index 000000000..db4c861e0
--- /dev/null
+++ b/modules/localization/help/ru_RU/setlanguage.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="setlanguage">
+ <refnamediv>
+ <refname>setlanguage</refname>
+ <refpurpose>
+ установка значения внутреннего языка LANGUAGE
+ </refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Последовательность вызова</title>
+ <synopsis>setlanguage(language)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Аргументы</title>
+ <variablelist>
+ <varlistentry>
+ <term>language</term>
+ <listitem>
+ <para>строка, указывающая язык 'fr', 'en', 'ru_RU', 'zh_TW' и др. </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Описание</title>
+ <para>
+ <literal>setlanguage(language)</literal> меняет текущий язык в Scilab.
+ </para>
+ </refsection>
+ <refsection>
+ <title>Примеры</title>
+ <programlisting role="example"><![CDATA[
+setlanguage('en_US')
+getlanguage()
+setlanguage('en')
+getlanguage()
+setlanguage('fr')
+getlanguage()
+setlanguage('fr_FR')
+getlanguage()
+ ]]></programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>Смотрите также</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="getlanguage">getlanguage</link>
+ </member>
+ <member>
+ <link linkend="setdefaultlanguage">setdefaultlanguage</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/localization/help/ru_RU/underscore.xml b/modules/localization/help/ru_RU/underscore.xml
new file mode 100755
index 000000000..a09fa5cff
--- /dev/null
+++ b/modules/localization/help/ru_RU/underscore.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="_">
+ <refnamediv>
+ <refname>_</refname>
+ <refpurpose>
+ получает текст, переведённый на язык текущей локали и региона использования
+ </refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Последовательность вызова</title>
+ <synopsis>msg=_(myString)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Аргументы</title>
+ <variablelist>
+ <varlistentry>
+ <term>string</term>
+ <listitem>
+ <para>строка, которую нужно перевести</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Описание</title>
+ <para>
+ <literal>_</literal> получает текст, переведённый на язык текущей локали и региона
+ использования.
+ </para>
+ </refsection>
+ <refsection>
+ <title>Примеры</title>
+ <programlisting role="example"><![CDATA[
+_('Startup execution:')
+ ]]></programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>Смотрите также</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="gettext">gettext</link>
+ </member>
+ <member>
+ <link linkend="dgettext">dgettext</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/localization/includes/InitializeLocalization.h b/modules/localization/includes/InitializeLocalization.h
new file mode 100755
index 000000000..f8fec2094
--- /dev/null
+++ b/modules/localization/includes/InitializeLocalization.h
@@ -0,0 +1,21 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#ifndef __INITIALIZELOCALIZATION_H__
+#define __INITIALIZELOCALIZATION_H__
+#include "dynlib_localization.h"
+#include "BOOL.h"
+
+LOCALIZATION_IMPEXP BOOL InitializeLocalization(void);
+
+#endif /* __INITIALIZELOCALIZATION_H__ */
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/includes/TerminateLocalization.h b/modules/localization/includes/TerminateLocalization.h
new file mode 100755
index 000000000..eb84732c3
--- /dev/null
+++ b/modules/localization/includes/TerminateLocalization.h
@@ -0,0 +1,18 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+#ifndef __TERMINATELOCALIZATION_H__
+#define __TERMINATELOCALIZATION_H__
+
+BOOL TerminateLocalization(void);
+
+#endif /* __TERMINATELOCALIZATION_H__ */
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/includes/charEncoding.h b/modules/localization/includes/charEncoding.h
new file mode 100755
index 000000000..03dac7ac3
--- /dev/null
+++ b/modules/localization/includes/charEncoding.h
@@ -0,0 +1,88 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) INRIA - Allan CORNET
+* Copyright (C) 2009 - DIGITEO - Antoine ELIAS , Allan CORNET
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution. The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+*
+*/
+#ifndef __CHARENCODING_H__
+#define __CHARENCODING_H__
+
+#include <wchar.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include "MALLOC.h"
+#include "BOOL.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /**
+ * wcfopen macro for fopen Multibyte char multiplatform
+ * @param[out] fp file descriptor
+ * @param[in] x filename
+ * @param[in] y mode
+ */
+
+#ifdef _MSC_VER
+#define wcfopen(fp, x,y) \
+{\
+ wchar_t* wfilename = NULL;\
+ wchar_t* wmode = NULL;\
+ wfilename = to_wide_string(x);\
+ wmode = to_wide_string(y);\
+ if(wfilename == NULL || wmode == NULL){fp = 0;}\
+ else {fp = _wfopen(wfilename, wmode);}\
+ if(wfilename != NULL){FREE(wfilename);}\
+ if(wmode != NULL){FREE(wmode);} \
+}
+#else
+#define wcfopen(fp, x,y) \
+{\
+ fp = fopen(x, y);\
+}
+#endif
+
+ /**
+ * convert a UTF string to wide char string
+ * @param[in] UTF string
+ * @return wide char string converted
+ */
+ wchar_t *to_wide_string(const char *_UTFStr);
+
+ /**
+ * convert a wide char string to UTF-8
+ * @param[in] wide char string
+ * @return UTF string converted
+ */
+ char *wide_string_to_UTF8(const wchar_t *_wide);
+
+ /*file management with UTF filename*/
+#ifdef _MSC_VER
+ int wcstat(char* filename, struct _stat *st);
+#endif
+
+#ifdef _MSC_VER
+#define wcsicmp _wcsicmp
+#else
+ int wcsicmp_others(const wchar_t* s1, const wchar_t* s2);
+#define wcsicmp wcsicmp_others
+#endif
+
+ /**
+ * checks input text is a valid UTF-8 format
+ * @param[in] string to check
+ * @return TRUE or FALSE
+ */
+ BOOL IsValidUTF8(const char* pStText);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __CHARENCODING_H__ */
+
diff --git a/modules/localization/includes/dynlib_localization.h b/modules/localization/includes/dynlib_localization.h
new file mode 100755
index 000000000..fe5c0fbc3
--- /dev/null
+++ b/modules/localization/includes/dynlib_localization.h
@@ -0,0 +1,28 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) DIGITEO - 2009 - Allan CORNET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution. The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+*
+*/
+
+/*--------------------------------------------------------------------------*/
+#ifndef __DYNLIB_LOCALIZATION_H__
+#define __DYNLIB_LOCALIZATION_H__
+
+#ifdef _MSC_VER
+#ifdef EXPORT_LOCALIZATION_DLL
+#define LOCALIZATION_IMPEXP __declspec(dllexport)
+#else
+#define LOCALIZATION_IMPEXP __declspec(dllimport)
+#endif
+#else
+#define LOCALIZATION_IMPEXP
+#endif
+
+#endif /* __DYNLIB_LOCALIZATION_H__ */
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/includes/gw_localization.h b/modules/localization/includes/gw_localization.h
new file mode 100755
index 000000000..52286fb8a
--- /dev/null
+++ b/modules/localization/includes/gw_localization.h
@@ -0,0 +1,33 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007-2008 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#ifndef __GW_LOCALIZATION__
+#define __GW_LOCALIZATION__
+#include "dynlib_localization.h"
+/*--------------------------------------------------------------------------*/
+LOCALIZATION_IMPEXP int gw_localization(void);
+/*--------------------------------------------------------------------------*/
+/* interface for the previous function Table */
+/*--------------------------------------------------------------------------*/
+LOCALIZATION_IMPEXP int sci_setlanguage(char *fname, unsigned long fname_len);
+LOCALIZATION_IMPEXP int sci_getlanguage(char *fname, unsigned long fname_len);
+LOCALIZATION_IMPEXP int sci_getdefaultlanguage(char *fname, unsigned long fname_len);
+LOCALIZATION_IMPEXP int sci_gettext(char *fname, unsigned long fname_len);
+LOCALIZATION_IMPEXP int sci_setdefaultlanguage(char *fname, unsigned long fname_len);
+LOCALIZATION_IMPEXP int sci_addlocalizationdomain(char *fname, unsigned long fname_len);
+
+/*--------------------------------------------------------------------------*/
+#endif /* __GW_LOCALIZATION__ */
+/*--------------------------------------------------------------------------*/
+
+
diff --git a/modules/localization/includes/localization.h b/modules/localization/includes/localization.h
new file mode 100755
index 000000000..b9c5c5814
--- /dev/null
+++ b/modules/localization/includes/localization.h
@@ -0,0 +1,50 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution. The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+*
+*/
+/**
+* Declaration of the basic localization methods
+*/
+#ifndef __LOCALIZATION_H__
+#define __LOCALIZATION_H__
+/*--------------------------------------------------------------------------*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "machine.h" /* HAVE_LIBINTL_H */
+
+#ifdef HAVE_LIBINTL_H
+ /* Have been able to find the libintl.h file on the system */
+#include <libintl.h>
+
+
+
+#define _(String) gettext(String)/** for console message*/
+#define _d(Domain, String) dgettext(Domain, String)
+#define _t(String1,String2,n) ngettext (String1,String2,n)
+
+#else
+ /* Restore the normal behaviour ... all the string will be in english */
+
+#define _(String) ((const char *) (String))
+#define gettext(String) ((const char *) (String))
+#define dgettext(Domain, String) ((const char *) (String))
+#define _d(Domain, String) ((const char *) (String))
+#define _t(String1,String2,n) ngettext (String1,String2,n)
+#define ngettext(String1, String2, n) ((n) == 1 ? (const char *) (String1) : (const char *) (String2))
+
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __LOCALIZATION_H__ */
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/includes/localizationJava.h b/modules/localization/includes/localizationJava.h
new file mode 100755
index 000000000..ac8d5c2db
--- /dev/null
+++ b/modules/localization/includes/localizationJava.h
@@ -0,0 +1,42 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+/**
+ * Declaration of the basic localization methods
+ */
+#ifndef __LOCALIZATIONJAVA_H__
+#define __LOCALIZATIONJAVA_H__
+/*--------------------------------------------------------------------------*/
+#include "machine.h" /* HAVE_LIBINTL_H & NAMELOCALIZATIONDOMAIN*/
+
+#ifdef HAVE_LIBINTL_H
+/* Have been able to find the libintl.h file on the system */
+#include <libintl.h>
+#include "stack-def.h"
+/* This piece of code has been written because of the bug #4005
+ * in version 5.0, we were using two localization system (native and
+ * Java).
+ * Now, only the native one is used.
+ * However, for an unknown reason, gettext() is not working. Only
+ * dgettext is */
+#define scigettext(String1) dgettext(NAMELOCALIZATIONDOMAIN,String1)
+#define scidgettext(String1, String2) dgettext(String1, String2)
+
+#else
+/* Restore the normal behaviour ... all the string will be in english */
+
+#define scigettext(String) ((const char *) (String))
+#define scidgettext(String1, String2) ((const char *) (String2))
+
+#endif
+
+#endif /* __LOCALIZATIONJAVA_H__ */
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/includes/setgetlanguage.h b/modules/localization/includes/setgetlanguage.h
new file mode 100755
index 000000000..7d09d4ccf
--- /dev/null
+++ b/modules/localization/includes/setgetlanguage.h
@@ -0,0 +1,104 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#ifndef __SETGETLANGUAGE_H__
+#define __SETGETLANGUAGE_H__
+
+#include "BOOL.h"
+
+/**
+ * change language
+ * @param lang
+ */
+BOOL setlanguage(char *lang);
+
+
+/**
+ * returns current language
+ * @return
+ */
+char *getlanguage(void);
+
+/**
+ * returns current alias
+ * example : en_US --> en
+ * @return
+ */
+char *getlanguagealias(void);
+
+/**
+ * return internal code associated with a language
+ * @return
+ */
+int getcurrentlanguagecode(void);
+
+/**
+ * returns language of code
+ * @param code
+ * @return
+ */
+char *getlanguagefromcode(int code);
+
+/**
+ * get code of a language
+ * @param language
+ * @return
+ */
+int getcodefromlanguage(char *language);
+
+/**
+* try to convert strlanguage (alias) to a good language string
+* @param language
+* @return
+*/
+char *convertlanguagealias(char *strlanguage);
+
+/**
+* test if lang is defined language
+* @param lang
+* @return TRUE or FALSE
+*/
+BOOL LanguageIsOK(char *lang);
+
+/**
+ * Check if the current language is the same we are trying to switch to
+ *
+ * @param language The language we want to switch to
+ * @return If we need to change the language or not
+ */
+BOOL needtochangelanguage(char *language);
+
+
+/**
+ * Export the locale to the system
+ *
+ * @param the locale we want to export
+ * @return if is worked
+ */
+BOOL exportLocaleToSystem(char *locale);
+
+/**
+ * Set the default language and save it in the registry (Windows)
+ * @param lang the new language
+ */
+void setdefaultlanguage(char * lang);
+
+/**
+ * Get the default language from the registry (Windows)
+ * @return the default language
+ */
+char * getdefaultlanguage();
+
+
+#endif /* __SETGETLANGUAGE_H__ */
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/jar/org.scilab.modules.localization.jar b/modules/localization/jar/org.scilab.modules.localization.jar
new file mode 100755
index 000000000..efcada94f
--- /dev/null
+++ b/modules/localization/jar/org.scilab.modules.localization.jar
Binary files differ
diff --git a/modules/localization/libscilocalization-algo.la b/modules/localization/libscilocalization-algo.la
new file mode 100755
index 000000000..11f30c61d
--- /dev/null
+++ b/modules/localization/libscilocalization-algo.la
@@ -0,0 +1,41 @@
+# libscilocalization-algo.la - a libtool library file
+# Generated by libtool (GNU libtool) 2.4.2
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname=''
+
+# Names of this library.
+library_names=''
+
+# The name of the static archive.
+old_library='libscilocalization-algo.a'
+
+# Linker flags that can not go in dependency_libs.
+inherited_linker_flags=''
+
+# Libraries that this one depends upon.
+dependency_libs=' -lpthread -ldl -lcurses -lm'
+
+# Names of additional weak libraries provided by this library
+weak_library_names=''
+
+# Version information for libscilocalization-algo.
+current=
+age=
+revision=
+
+# Is this an already installed library?
+installed=no
+
+# Should we warn about portability when linking against -modules?
+shouldnotlink=no
+
+# Files to dlopen/dlpreopen
+dlopen=''
+dlpreopen=''
+
+# Directory that this library needs to be installed in:
+libdir=''
diff --git a/modules/localization/libscilocalization.la b/modules/localization/libscilocalization.la
new file mode 100755
index 000000000..5dd4aeb20
--- /dev/null
+++ b/modules/localization/libscilocalization.la
@@ -0,0 +1,41 @@
+# libscilocalization.la - a libtool library file
+# Generated by libtool (GNU libtool) 2.4.2
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='libscilocalization.so.5'
+
+# Names of this library.
+library_names='libscilocalization.so.5.5.2 libscilocalization.so.5 libscilocalization.so'
+
+# The name of the static archive.
+old_library=''
+
+# Linker flags that can not go in dependency_libs.
+inherited_linker_flags=''
+
+# Libraries that this one depends upon.
+dependency_libs=' -lpthread -ldl -lcurses -lm'
+
+# Names of additional weak libraries provided by this library
+weak_library_names=''
+
+# Version information for libscilocalization.
+current=10
+age=5
+revision=2
+
+# Is this an already installed library?
+installed=no
+
+# Should we warn about portability when linking against -modules?
+shouldnotlink=no
+
+# Files to dlopen/dlpreopen
+dlopen=''
+dlpreopen=''
+
+# Directory that this library needs to be installed in:
+libdir='/usr/local/lib/scilab'
diff --git a/modules/localization/license.txt b/modules/localization/license.txt
new file mode 100755
index 000000000..933635069
--- /dev/null
+++ b/modules/localization/license.txt
@@ -0,0 +1,10 @@
+Copyright:
+Copyright (c) 2008 - DIGITEO
+Copyright (c) 1989-2008 - INRIA
+
+License:
+This module must be used under the terms of the CeCILL.
+This module file is licensed as described in the file COPYING, which
+you should have received as part of this distribution. The terms
+are also available at
+http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
diff --git a/modules/localization/locales/ca_ES.po b/modules/localization/locales/ca_ES.po
new file mode 100755
index 000000000..4029276e9
--- /dev/null
+++ b/modules/localization/locales/ca_ES.po
@@ -0,0 +1,70 @@
+# Catalan translation for scilab
+# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2012-04-18 19:16+0000\n"
+"Last-Translator: Marc Coll Carrillo <Unknown>\n"
+"Language-Team: Catalan <ca@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+
+#, c-format
+msgid "%s: Can not read input argument #%d.\n"
+msgstr "%s: no es pot llegir el paràmetre d'entrada #%d.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: String expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Memory allocation error.\n"
+msgstr "%s: error de reserva de memòria.\n"
+
+#, c-format
+msgid "%s: Unable to add new domain %s.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: No more memory.\n"
+msgstr "%s: no hi ha més memòria.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: String expected.\n"
+msgstr ""
+"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser un text.\n"
+
+#, c-format
+msgid "%s: This feature is only used on Windows.\n"
+msgstr "%s: Aquesta característica només s'utilitza a Windows.\n"
+
+#, c-format
+msgid "Unsupported language '%s'.\n"
+msgstr "L'idioma '%s' no està suportat.\n"
+
+msgid "The language for menus cannot be changed on a running console.\n"
+msgstr "No es pot canviar l'idioma dels menús en una consola en execució.\n"
+
+msgid "Restart Scilab to apply to menus.\n"
+msgstr "Reinicieu el Scilab per aplicar-ho als menús.\n"
+
+#, c-format
+msgid "%s: Wrong type for first input argument: String expected.\n"
+msgstr ""
+"%s: El primer argument d'entrada és d'un tipus incorrecte: Ha de ser una "
+"cadena de text.\n"
+
+#, c-format
+msgid "%s: Unsupported language '%s'.\n"
+msgstr "%s: L'idioma '%s' no està suportat.\n"
+
+#, c-format
+msgid "Switching to default language : '%s'.\n"
+msgstr "Es canvia a l'idioma predeterminat: '%s'.\n"
diff --git a/modules/localization/locales/cs_CZ.po b/modules/localization/locales/cs_CZ.po
new file mode 100755
index 000000000..4717132b5
--- /dev/null
+++ b/modules/localization/locales/cs_CZ.po
@@ -0,0 +1,67 @@
+# Czech translation for scilab
+# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2012-02-22 20:55+0000\n"
+"Last-Translator: Zbyněk Schwarz <Unknown>\n"
+"Language-Team: Czech <cs@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+
+#, c-format
+msgid "%s: Can not read input argument #%d.\n"
+msgstr "%s: Nelze přečíst vstupní argument #%d.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: String expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Memory allocation error.\n"
+msgstr "%s: Chyba při přidělování paměti.\n"
+
+#, c-format
+msgid "%s: Unable to add new domain %s.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: No more memory.\n"
+msgstr "%s: Není více paměti.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: String expected.\n"
+msgstr "%s: Špatný typ vstupního argumentu #%d: Byl očekáván string.\n"
+
+#, c-format
+msgid "%s: This feature is only used on Windows.\n"
+msgstr "%s: Tato vlastnost je použitelná pouze na Windows.\n"
+
+#, c-format
+msgid "Unsupported language '%s'.\n"
+msgstr "Nepodporovaný jazyk '%s'.\n"
+
+msgid "The language for menus cannot be changed on a running console.\n"
+msgstr "Jazyk po nabídky nelze změnit na spuštěné konzoli.\n"
+
+msgid "Restart Scilab to apply to menus.\n"
+msgstr "Restartujte Scilab pro použití do nabídek.\n"
+
+#, c-format
+msgid "%s: Wrong type for first input argument: String expected.\n"
+msgstr "%s: Špatný typ vstupního argumentu: Byl očekáván string.\n"
+
+#, c-format
+msgid "%s: Unsupported language '%s'.\n"
+msgstr "%s: Nepodporovaný jazyk '%s'.\n"
+
+#, c-format
+msgid "Switching to default language : '%s'.\n"
+msgstr "Přepnutí k výchozímu jazyku : '%s'.\n"
diff --git a/modules/localization/locales/de_DE.po b/modules/localization/locales/de_DE.po
new file mode 100755
index 000000000..5f7b38138
--- /dev/null
+++ b/modules/localization/locales/de_DE.po
@@ -0,0 +1,69 @@
+# German translation for scilab
+# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2012-05-07 18:46+0000\n"
+"Last-Translator: Dennis Baudys <Unknown>\n"
+"Language-Team: German <de@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+
+#, c-format
+msgid "%s: Can not read input argument #%d.\n"
+msgstr "%s: Eingangsargument #%d kann nicht gelesen werden.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: String expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Memory allocation error.\n"
+msgstr "%s: Speicherreservierungsfehler.\n"
+
+#, c-format
+msgid "%s: Unable to add new domain %s.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: No more memory.\n"
+msgstr "%s: Kein weiterer Speicher verfügbar.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: String expected.\n"
+msgstr "%s: Falscher Typ für Eingangsargument #%d: Zeichenkette erwartet.\n"
+
+#, c-format
+msgid "%s: This feature is only used on Windows.\n"
+msgstr "%s: dieses Funktionalität wird nur unter Windows verwendet\n"
+
+#, c-format
+msgid "Unsupported language '%s'.\n"
+msgstr "Nicht unterstützte Sprache '%s'.\n"
+
+msgid "The language for menus cannot be changed on a running console.\n"
+msgstr ""
+"Die Sprache für Menüs kann nicht bei laufender Konsole geändert werden.\n"
+
+msgid "Restart Scilab to apply to menus.\n"
+msgstr "Starten Sie Scilab, um dies auf Menüs anzuwenden.\n"
+
+#, c-format
+msgid "%s: Wrong type for first input argument: String expected.\n"
+msgstr ""
+"%s: Falscher Typ für erstes Eingangsargument: Zeichenkette erwartet.\n"
+
+#, c-format
+msgid "%s: Unsupported language '%s'.\n"
+msgstr "%s: nicht unterstützte Sprache '%s'.\n"
+
+#, c-format
+msgid "Switching to default language : '%s'.\n"
+msgstr "Wechsle zur voreingestellten Sprache: '%s'.\n"
diff --git a/modules/localization/locales/es_ES.po b/modules/localization/locales/es_ES.po
new file mode 100755
index 000000000..08c71616f
--- /dev/null
+++ b/modules/localization/locales/es_ES.po
@@ -0,0 +1,70 @@
+# Spanish translation for scilab
+# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2009-10-28 17:59+0000\n"
+"Last-Translator: Fido <Unknown>\n"
+"Language-Team: Spanish <es@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+
+#, c-format
+msgid "%s: Can not read input argument #%d.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: String expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Memory allocation error.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Unable to add new domain %s.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: No more memory.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: String expected.\n"
+msgstr ""
+"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba un string.\n"
+
+#, c-format
+msgid "%s: This feature is only used on Windows.\n"
+msgstr "%s: Esta función solo se usa en Windows.\n"
+
+#, c-format
+msgid "Unsupported language '%s'.\n"
+msgstr "Idioma no soportado '%s'.\n"
+
+msgid "The language for menus cannot be changed on a running console.\n"
+msgstr ""
+"El idioma de los menús no puede ser modificado en una consola en ejecución.\n"
+
+msgid "Restart Scilab to apply to menus.\n"
+msgstr "Reinicie Scilab para aplicar a los menús.\n"
+
+#, c-format
+msgid "%s: Wrong type for first input argument: String expected.\n"
+msgstr ""
+"%s: Tipo incorrecto del primer argumento de entrada: Se esperaba un string.\n"
+
+#, c-format
+msgid "%s: Unsupported language '%s'.\n"
+msgstr "%s: Idioma no soportado '%s'.\n"
+
+#, c-format
+msgid "Switching to default language : '%s'.\n"
+msgstr "Cambiando al idioma predeterminado : '%s'.\n"
diff --git a/modules/localization/locales/fr_FR.po b/modules/localization/locales/fr_FR.po
new file mode 100755
index 000000000..3911b4466
--- /dev/null
+++ b/modules/localization/locales/fr_FR.po
@@ -0,0 +1,75 @@
+# French translation for scilab
+# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2013-09-27 09:44+0000\n"
+"Last-Translator: Julie PAUL <Unknown>\n"
+"Language-Team: French <fr@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+
+#, c-format
+msgid "%s: Can not read input argument #%d.\n"
+msgstr "%s : Impossible de lire l'argument d'entrée n°%d.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: String expected.\n"
+msgstr ""
+"%s : Dimension erronée de l'argument d'entrée n°%d : Une chaîne de "
+"caractères attendue.\n"
+
+#, c-format
+msgid "%s: Memory allocation error.\n"
+msgstr "%s : Erreur d'allocation mémoire.\n"
+
+#, c-format
+msgid "%s: Unable to add new domain %s.\n"
+msgstr "%s : Impossible d'ajouter le nouveau domaine %s.\n"
+
+#, c-format
+msgid "%s: No more memory.\n"
+msgstr "%s : Plus de mémoire disponible.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: String expected.\n"
+msgstr ""
+"%s : Type erroné de l'argument d'entrée n°%d : Une chaîne de caractères "
+"attendue.\n"
+
+#, c-format
+msgid "%s: This feature is only used on Windows.\n"
+msgstr "%s : Cette fonctionnalité n'est utilisable que sous Windows.\n"
+
+#, c-format
+msgid "Unsupported language '%s'.\n"
+msgstr "Langage '%s' non supporté.\n"
+
+msgid "The language for menus cannot be changed on a running console.\n"
+msgstr ""
+"Le langage des menus ne peut pas être changé dans une console en cours de "
+"fonctionnement.\n"
+
+msgid "Restart Scilab to apply to menus.\n"
+msgstr "Redémarrer Scilab pour appliquer les changements aux menus.\n"
+
+#, c-format
+msgid "%s: Wrong type for first input argument: String expected.\n"
+msgstr ""
+"%s : Type erroné du premier argument d'entrée : Une chaîne de caractères "
+"attendue.\n"
+
+#, c-format
+msgid "%s: Unsupported language '%s'.\n"
+msgstr "%s : Langage '%s' non supporté.\n"
+
+#, c-format
+msgid "Switching to default language : '%s'.\n"
+msgstr "Passage au langage par défaut : '%s'.\n"
diff --git a/modules/localization/locales/it_IT.po b/modules/localization/locales/it_IT.po
new file mode 100755
index 000000000..ec8c78bce
--- /dev/null
+++ b/modules/localization/locales/it_IT.po
@@ -0,0 +1,73 @@
+# Italian translation for scilab
+# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2015-02-14 21:36+0000\n"
+"Last-Translator: Carml <mighty.carml@gmail.com>\n"
+"Language-Team: Italian <it@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+
+#, c-format
+msgid "%s: Can not read input argument #%d.\n"
+msgstr "%s: Impossibile leggere l'argomento in ingresso #%d.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: String expected.\n"
+msgstr ""
+"%s: L'argomento in ingresso #%d ha una dimensione sbagliata: era attesa una "
+"stringa.\n"
+
+#, c-format
+msgid "%s: Memory allocation error.\n"
+msgstr "%s: Errore di allocazione della memoria.\n"
+
+#, c-format
+msgid "%s: Unable to add new domain %s.\n"
+msgstr "%s: Impossibile aggiungere il nuovo dominio %s.\n"
+
+#, c-format
+msgid "%s: No more memory.\n"
+msgstr "%s: Memoria esaurita.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: String expected.\n"
+msgstr ""
+"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una "
+"stringa.\n"
+
+#, c-format
+msgid "%s: This feature is only used on Windows.\n"
+msgstr "%s: Questa funzionalità è usata solo su Windows.\n"
+
+#, c-format
+msgid "Unsupported language '%s'.\n"
+msgstr "La lingua '%s' non è supportata.\n"
+
+msgid "The language for menus cannot be changed on a running console.\n"
+msgstr "La lingua dei menù non può essere cambiata in un terminale attivo.\n"
+
+msgid "Restart Scilab to apply to menus.\n"
+msgstr "Riavviare Scilab per applicarla ai menù.\n"
+
+#, c-format
+msgid "%s: Wrong type for first input argument: String expected.\n"
+msgstr ""
+"%s: Il primo argomento in ingresso è di tipo sbagliato: era attesa una "
+"stringa.\n"
+
+#, c-format
+msgid "%s: Unsupported language '%s'.\n"
+msgstr "%s: La lingua '%s' non è supportata.\n"
+
+#, c-format
+msgid "Switching to default language : '%s'.\n"
+msgstr "Passaggio alla lingua predefinita '%s' in corso.\n"
diff --git a/modules/localization/locales/ja_JP.po b/modules/localization/locales/ja_JP.po
new file mode 100755
index 000000000..aa8139040
--- /dev/null
+++ b/modules/localization/locales/ja_JP.po
@@ -0,0 +1,75 @@
+# Japanese translation for scilab
+# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2013-10-02 14:11+0000\n"
+"Last-Translator: Rui Hirokawa <Unknown>\n"
+"Language-Team: Japanese <z-saito@guitar.ocn.ne.jp>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+"X-Poedit-Country: Japan\n"
+"X-Poedit-Language: Japanese\n"
+
+#, c-format
+msgid "%s: Can not read input argument #%d.\n"
+msgstr "%s: 入力引数 #%d を読み込めません.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: String expected.\n"
+msgstr "%s: 入力引数 #%d の大きさが間違っています: 文字列を指定してください.\n"
+
+#, c-format
+msgid "%s: Memory allocation error.\n"
+msgstr "%s: メモリ割当エラー.\n"
+
+#, c-format
+msgid "%s: Unable to add new domain %s.\n"
+msgstr "%s: 新規領域 %s を追加できませんでした.\n"
+
+#, c-format
+msgid "%s: No more memory.\n"
+msgstr "%s: メモリ不足です.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: String expected.\n"
+msgstr "%s: 最初の入力引数 #%d の型が間違っています: 文字列を指定してください.\n"
+
+#, c-format
+msgid "%s: This feature is only used on Windows.\n"
+msgstr "%s: この機能は, Windows 専用です.\n"
+
+#
+# File: sci_gateway/c/sci_setdefaultlanguage.c, line: 62
+# File: sci_gateway/c/sci_setlanguage.c, line: 91
+#, c-format
+msgid "Unsupported language '%s'.\n"
+msgstr "言語 '%s' はサポートされていません。\n"
+
+msgid "The language for menus cannot be changed on a running console.\n"
+msgstr "メニューの言語は,実行中のコンソールでは変更できません.\n"
+
+msgid "Restart Scilab to apply to menus.\n"
+msgstr "メニューに適用するためにScilabを再起動してください.\n"
+
+#, c-format
+msgid "%s: Wrong type for first input argument: String expected.\n"
+msgstr "%s: 最初の入力引数の型が間違っています: 文字列を指定してください.\n"
+
+#
+# File: sci_gateway/c/sci_setlanguage.c, line: 48
+# File: sci_gateway/c/sci_setlanguage.c, line: 52
+#, c-format
+msgid "%s: Unsupported language '%s'.\n"
+msgstr "%s: 言語 '%s' はサポートされていません。\n"
+
+#, c-format
+msgid "Switching to default language : '%s'.\n"
+msgstr "デフォルトの言語に切替: '%s'.\n"
diff --git a/modules/localization/locales/localization.pot b/modules/localization/locales/localization.pot
new file mode 100755
index 000000000..a539a240d
--- /dev/null
+++ b/modules/localization/locales/localization.pot
@@ -0,0 +1,106 @@
+# Localization of the module localization
+# Please see in SCI/tools/localization for localization management
+# Copyright (C) 2007-2008 - INRIA
+# Copyright (C) 2008-2011 - DIGITEO
+# Copyright (C) 2012-2014 - Scilab-Enterprises
+# This file is distributed under the same license as the Scilab package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Scilab\n"
+"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"Last-Translator: Vincent COUVERT <vincent.couvert@scilab-enterprises.com>\n"
+"Language-Team: Scilab Localization <localization@lists.scilab.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Revision-Date: 2015-03-27 13:54+0100\n"
+
+# File: sci_gateway/c/sci_addlocalizationdomain.c, line: 51
+# File: sci_gateway/c/sci_addlocalizationdomain.c, line: 72
+# File: sci_gateway/c/sci_gettext.c, line: 56
+# File: sci_gateway/c/sci_gettext.c, line: 78
+#, c-format
+msgid "%s: Can not read input argument #%d.\n"
+msgstr ""
+
+#
+# File: sci_gateway/c/sci_addlocalizationdomain.c, line: 57
+# File: sci_gateway/c/sci_addlocalizationdomain.c, line: 78
+# File: sci_gateway/c/sci_gettext.c, line: 61
+#, c-format
+msgid "%s: Wrong size for input argument #%d: String expected.\n"
+msgstr ""
+
+#
+# File: sci_gateway/c/sci_addlocalizationdomain.c, line: 63
+# File: sci_gateway/c/sci_addlocalizationdomain.c, line: 84
+# File: sci_gateway/c/sci_gettext.c, line: 125
+#, c-format
+msgid "%s: Memory allocation error.\n"
+msgstr ""
+
+#
+# File: sci_gateway/c/sci_addlocalizationdomain.c, line: 96
+# File: sci_gateway/c/sci_addlocalizationdomain.c, line: 105
+#, c-format
+msgid "%s: Unable to add new domain %s.\n"
+msgstr ""
+
+#
+# File: sci_gateway/c/sci_gettext.c, line: 67
+# File: sci_gateway/c/sci_gettext.c, line: 89
+# File: sci_gateway/c/sci_gettext.c, line: 98
+#, c-format
+msgid "%s: No more memory.\n"
+msgstr ""
+
+#
+# File: sci_gateway/c/sci_gettext.c, line: 83
+# File: sci_gateway/c/sci_setlanguage.c, line: 108
+#, c-format
+msgid "%s: Wrong type for input argument #%d: String expected.\n"
+msgstr ""
+
+#
+# File: sci_gateway/c/sci_setdefaultlanguage.c, line: 41
+#, c-format
+msgid "%s: This feature is only used on Windows.\n"
+msgstr ""
+
+#
+# File: sci_gateway/c/sci_setdefaultlanguage.c, line: 63
+# File: sci_gateway/c/sci_setlanguage.c, line: 95
+#, c-format
+msgid "Unsupported language '%s'.\n"
+msgstr ""
+
+#
+# File: sci_gateway/c/sci_setdefaultlanguage.c, line: 130
+msgid "The language for menus cannot be changed on a running console.\n"
+msgstr ""
+
+#
+# File: sci_gateway/c/sci_setdefaultlanguage.c, line: 131
+msgid "Restart Scilab to apply to menus.\n"
+msgstr ""
+
+#
+# File: sci_gateway/c/sci_setdefaultlanguage.c, line: 160
+#, c-format
+msgid "%s: Wrong type for first input argument: String expected.\n"
+msgstr ""
+
+#
+# File: sci_gateway/c/sci_setlanguage.c, line: 48
+# File: sci_gateway/c/sci_setlanguage.c, line: 52
+#, c-format
+msgid "%s: Unsupported language '%s'.\n"
+msgstr ""
+
+#
+# File: sci_gateway/c/sci_setlanguage.c, line: 96
+#, c-format
+msgid "Switching to default language : '%s'.\n"
+msgstr ""
diff --git a/modules/localization/locales/pl_PL.po b/modules/localization/locales/pl_PL.po
new file mode 100755
index 000000000..7807a8323
--- /dev/null
+++ b/modules/localization/locales/pl_PL.po
@@ -0,0 +1,70 @@
+# Polish translation for scilab
+# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2012-10-25 20:49+0000\n"
+"Last-Translator: Grzegorz Szostek <Unknown>\n"
+"Language-Team: Polish <pl@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+
+#, c-format
+msgid "%s: Can not read input argument #%d.\n"
+msgstr "%s: Nie można odczytać argumentu wejściowego #%d.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: String expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Memory allocation error.\n"
+msgstr "%s: Błąd alokacji pamięci.\n"
+
+#, c-format
+msgid "%s: Unable to add new domain %s.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: No more memory.\n"
+msgstr "%s: Brak pamięci.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: String expected.\n"
+msgstr ""
+"%s: Nieprawidłowy typ argumentu wejściowego nr %d: oczekiwano łańcuch.\n"
+
+#, c-format
+msgid "%s: This feature is only used on Windows.\n"
+msgstr "%s: Ta opcja jest wykorzystywana wyłącznie w systemie Windows.\n"
+
+#, c-format
+msgid "Unsupported language '%s'.\n"
+msgstr "Nieobsługiwany język '%s'.\n"
+
+msgid "The language for menus cannot be changed on a running console.\n"
+msgstr ""
+"Zmiana języka menu nie może być wykonana przy uruchomionej konsoli.\n"
+
+msgid "Restart Scilab to apply to menus.\n"
+msgstr "Zrestartuj Scilab, aby zastosować zmiany w menu.\n"
+
+#, c-format
+msgid "%s: Wrong type for first input argument: String expected.\n"
+msgstr ""
+"%s: Nieprawidłowy typ pierwszego argumentu wejściowego: oczekiwano łańcuch.\n"
+
+#, c-format
+msgid "%s: Unsupported language '%s'.\n"
+msgstr "%s: Nieobsługiwany język '%s'.\n"
+
+#, c-format
+msgid "Switching to default language : '%s'.\n"
+msgstr "Przełączenie na domyślny język : '%s'.\n"
diff --git a/modules/localization/locales/pt_BR.po b/modules/localization/locales/pt_BR.po
new file mode 100755
index 000000000..3a7953d7d
--- /dev/null
+++ b/modules/localization/locales/pt_BR.po
@@ -0,0 +1,71 @@
+# Brazilian Portuguese translation for scilab
+# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2012-04-21 23:16+0000\n"
+"Last-Translator: Ramiro Pereira de Magalhães <ramiro.p.magalhaes@gmail.com>\n"
+"Language-Team: Brazilian Portuguese <pt_BR@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+
+#, c-format
+msgid "%s: Can not read input argument #%d.\n"
+msgstr "%s: Não foi possível ler argumento de entrada #%d.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: String expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Memory allocation error.\n"
+msgstr "%s: Erro de alocação de memória.\n"
+
+#, c-format
+msgid "%s: Unable to add new domain %s.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: No more memory.\n"
+msgstr "%s: Memória esgotada.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: String expected.\n"
+msgstr ""
+"%s: Tipo errado para o argumento de entrada #%d: Esperava-se um texto.\n"
+
+#, c-format
+msgid "%s: This feature is only used on Windows.\n"
+msgstr "%s: Este recurso é utilizado apenas no Windows.\n"
+
+#, c-format
+msgid "Unsupported language '%s'.\n"
+msgstr "Linguagem não suportada '%s'.\n"
+
+msgid "The language for menus cannot be changed on a running console.\n"
+msgstr ""
+"O idioma para menus não pode ser modificada em um console que esteja sendo "
+"executado.\n"
+
+msgid "Restart Scilab to apply to menus.\n"
+msgstr "Reinicie o Scilab para aplicar as mudanças aos menus.\n"
+
+#, c-format
+msgid "%s: Wrong type for first input argument: String expected.\n"
+msgstr ""
+"%s: Tipo errado para o primeiro argumento de entrada: Experava-se texto.\n"
+
+#, c-format
+msgid "%s: Unsupported language '%s'.\n"
+msgstr "%s: Linguagem não suportada '%s'.\n"
+
+#, c-format
+msgid "Switching to default language : '%s'.\n"
+msgstr "Mudando para o idioma padrão: '%s'.\n"
diff --git a/modules/localization/locales/ru_RU.po b/modules/localization/locales/ru_RU.po
new file mode 100755
index 000000000..fb81309aa
--- /dev/null
+++ b/modules/localization/locales/ru_RU.po
@@ -0,0 +1,67 @@
+# Russian translation for scilab
+# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2013-10-02 14:41+0000\n"
+"Last-Translator: Stanislav V. Kroter <krotersv@gmail.com>\n"
+"Language-Team: Russian <ru@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+
+#, c-format
+msgid "%s: Can not read input argument #%d.\n"
+msgstr "%s: Не могу прочитать входной аргумент №%d.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: String expected.\n"
+msgstr "%s: Неверный размер входного аргумента №%d: ожидалась строка.\n"
+
+#, c-format
+msgid "%s: Memory allocation error.\n"
+msgstr "%s: Ошибка распределения памяти.\n"
+
+#, c-format
+msgid "%s: Unable to add new domain %s.\n"
+msgstr "%s: Нельзя добавить новый домен %s.\n"
+
+#, c-format
+msgid "%s: No more memory.\n"
+msgstr "%s: Недостаточно памяти.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: String expected.\n"
+msgstr "%s: Неверный тип входного параметра №%d: ожидалась строка.\n"
+
+#, c-format
+msgid "%s: This feature is only used on Windows.\n"
+msgstr "%s: Данная функциональность используется только в Windows.\n"
+
+#, c-format
+msgid "Unsupported language '%s'.\n"
+msgstr "Язык «%s» не поддерживается.\n"
+
+msgid "The language for menus cannot be changed on a running console.\n"
+msgstr "Не удалось сменить язык для меню в запущенном командном окне.\n"
+
+msgid "Restart Scilab to apply to menus.\n"
+msgstr "Перезапустите Scilab для обновления меню.\n"
+
+#, c-format
+msgid "%s: Wrong type for first input argument: String expected.\n"
+msgstr "%s: Неверный тип входного параметра №1: ожидалась строка.\n"
+
+#, c-format
+msgid "%s: Unsupported language '%s'.\n"
+msgstr "%s: Язык «%s» не поддерживается.\n"
+
+#, c-format
+msgid "Switching to default language : '%s'.\n"
+msgstr "Переключение на язык по умолчанию: «%s».\n"
diff --git a/modules/localization/locales/uk_UA.po b/modules/localization/locales/uk_UA.po
new file mode 100755
index 000000000..21a08fa93
--- /dev/null
+++ b/modules/localization/locales/uk_UA.po
@@ -0,0 +1,72 @@
+# Ukrainian translation for scilab
+# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010
+# This file is distributed under the same license as the scilab package.
+#
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
+# Yuri Chornoivan <yurchor@ukr.net>, 2010.
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2013-10-01 10:16+0000\n"
+"Last-Translator: Yuri Chornoivan <yurchor@gmail.com>\n"
+"Language-Team: Ukrainian <translation@linux.org.ua>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+
+#, c-format
+msgid "%s: Can not read input argument #%d.\n"
+msgstr "%s: не вдалося прочитати вхідний параметр №%d.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: String expected.\n"
+msgstr ""
+"%s: помилковий розмір вхідного параметра №%d: слід використовувати рядок.\n"
+
+#, c-format
+msgid "%s: Memory allocation error.\n"
+msgstr "%s: помилка під час спроби виділення пам’яті.\n"
+
+#, c-format
+msgid "%s: Unable to add new domain %s.\n"
+msgstr "%s: не вдалося додати новий домен %s.\n"
+
+#, c-format
+msgid "%s: No more memory.\n"
+msgstr "%s: доступну пам’ять вичерпано.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: String expected.\n"
+msgstr ""
+"%s: помилковий тип вхідного параметра №%d: слід використовувати тип "
+"«string».\n"
+
+#, c-format
+msgid "%s: This feature is only used on Windows.\n"
+msgstr "%s: ця можливість використовується лише у Windows.\n"
+
+#, c-format
+msgid "Unsupported language '%s'.\n"
+msgstr "Непідтримувана мова: «%s».\n"
+
+msgid "The language for menus cannot be changed on a running console.\n"
+msgstr "У запущеній консолі мову меню змінити не можна.\n"
+
+msgid "Restart Scilab to apply to menus.\n"
+msgstr "Перезапустіть Scilab, щоб застосувати зміни у меню.\n"
+
+#, c-format
+msgid "%s: Wrong type for first input argument: String expected.\n"
+msgstr ""
+"%s: помилковий тип першого вхідного параметра: слід використовувати рядок.\n"
+
+#, c-format
+msgid "%s: Unsupported language '%s'.\n"
+msgstr "%s: непідтримувана мова «%s».\n"
+
+#, c-format
+msgid "Switching to default language : '%s'.\n"
+msgstr "Перемикання на типову мову: «%s».\n"
diff --git a/modules/localization/locales/zh_CN.po b/modules/localization/locales/zh_CN.po
new file mode 100755
index 000000000..71763b9d8
--- /dev/null
+++ b/modules/localization/locales/zh_CN.po
@@ -0,0 +1,67 @@
+# Simplified Chinese translation for scilab
+# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2012-03-04 07:50+0000\n"
+"Last-Translator: Wesh <Unknown>\n"
+"Language-Team: Simplified Chinese <zh_CN@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+
+#, c-format
+msgid "%s: Can not read input argument #%d.\n"
+msgstr "%s:不能读取第%d个输入参数。\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: String expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Memory allocation error.\n"
+msgstr "%s:内存分配错误。\n"
+
+#, c-format
+msgid "%s: Unable to add new domain %s.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: No more memory.\n"
+msgstr "%s:内存不足。\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: String expected.\n"
+msgstr "%s:输入参数#%d的类型错误:应该为字符串。\n"
+
+#, c-format
+msgid "%s: This feature is only used on Windows.\n"
+msgstr "%s:改功能只能在Windows下使用。\n"
+
+#, c-format
+msgid "Unsupported language '%s'.\n"
+msgstr "不支持语言 '%s'。\n"
+
+msgid "The language for menus cannot be changed on a running console.\n"
+msgstr "不可以在正在运行的控制台中改变菜单的语言。\n"
+
+msgid "Restart Scilab to apply to menus.\n"
+msgstr "重启 Scilab 以将改变应用到菜单。\n"
+
+#, c-format
+msgid "%s: Wrong type for first input argument: String expected.\n"
+msgstr "%s:第一个输入参数的类型错误:应该为字符串。\n"
+
+#, c-format
+msgid "%s: Unsupported language '%s'.\n"
+msgstr "%s:不支持语言 '%s'.\n"
+
+#, c-format
+msgid "Switching to default language : '%s'.\n"
+msgstr "切换到缺省语言:'%s'。\n"
diff --git a/modules/localization/locales/zh_TW.po b/modules/localization/locales/zh_TW.po
new file mode 100755
index 000000000..8968ee793
--- /dev/null
+++ b/modules/localization/locales/zh_TW.po
@@ -0,0 +1,67 @@
+# Traditional Chinese translation for scilab
+# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2012-04-22 10:30+0000\n"
+"Last-Translator: Alvin Tseng <Unknown>\n"
+"Language-Team: Traditional Chinese <zh_TW@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+
+#, c-format
+msgid "%s: Can not read input argument #%d.\n"
+msgstr "%s: 無法讀取第 #%d 個輸入參數.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: String expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Memory allocation error.\n"
+msgstr "%s: 記憶體配置錯誤。\n"
+
+#, c-format
+msgid "%s: Unable to add new domain %s.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: No more memory.\n"
+msgstr "%s: 記憶體空間不足。\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: String expected.\n"
+msgstr "%s: 第 %d 個輸入參數型態錯誤: 應該是字串型態.\n"
+
+#, c-format
+msgid "%s: This feature is only used on Windows.\n"
+msgstr "%s: 此項功能僅可以在 Windows 系統下使用.\n"
+
+#, c-format
+msgid "Unsupported language '%s'.\n"
+msgstr "不支援 '%s' 語言.\n"
+
+msgid "The language for menus cannot be changed on a running console.\n"
+msgstr "在主控模式下無法切換此選單上的語言.\n"
+
+msgid "Restart Scilab to apply to menus.\n"
+msgstr "重新啟動 Scilab 以套用選單.\n"
+
+#, c-format
+msgid "%s: Wrong type for first input argument: String expected.\n"
+msgstr "%s: 第一個輸入參數的型態錯誤: 應該是字串.\n"
+
+#, c-format
+msgid "%s: Unsupported language '%s'.\n"
+msgstr "%s: 不支援 '%s' 語言.\n"
+
+#, c-format
+msgid "Switching to default language : '%s'.\n"
+msgstr "切換回預設語言: '%s'.\n"
diff --git a/modules/localization/localization.iss b/modules/localization/localization.iss
new file mode 100755
index 000000000..5cff9589b
--- /dev/null
+++ b/modules/localization/localization.iss
@@ -0,0 +1,53 @@
+;
+; Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+; Copyright (C) INRIA - Allan CORNET
+; Copyright (C) DIGITEO - 2010 - Allan CORNET
+;
+; This file must be used under the terms of the CeCILL.
+; This source file is licensed as described in the file COPYING, which
+; you should have received as part of this distribution. The terms
+; are also available at
+; http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+;
+;--------------------------------------------------------------------------------------------------------------
+; Inno Setup Script (5.3 and more) for Scilab (UNICODE version required)
+;
+;--------------------------------------------------------------------------------------------------------------
+; localization module
+;--------------------------------------------------------------------------------------------------------------
+;
+#define LOCALIZATION "localization"
+;
+Source: modules\{#LOCALIZATION}\jar\org.scilab.modules.{#LOCALIZATION}.jar;DestDir: {app}\modules\{#LOCALIZATION}\jar; Components: {#COMPN_SCILAB}
+;
+Source: bin\sci{#LOCALIZATION}.dll; DestDir: {app}\bin; Components: {#COMPN_SCILAB}
+Source: bin\sci{#LOCALIZATION}.lib; DestDir: {app}\bin; Components: {#COMPN_SCILAB}
+;
+Source: modules\{#LOCALIZATION}\license.txt; DestDir: {app}\modules\{#LOCALIZATION}; Components: {#COMPN_SCILAB}
+;
+Source: modules\{#LOCALIZATION}\etc\{#LOCALIZATION}.quit; DestDir: {app}\modules\{#LOCALIZATION}\etc; Components: {#COMPN_SCILAB}
+Source: modules\{#LOCALIZATION}\etc\{#LOCALIZATION}.start; DestDir: {app}\modules\{#LOCALIZATION}\etc; Components: {#COMPN_SCILAB}
+;
+Source: modules\{#LOCALIZATION}\sci_gateway\{#LOCALIZATION}_gateway.xml; DestDir: {app}\modules\{#LOCALIZATION}\sci_gateway; Components: {#COMPN_SCILAB}
+;
+;Source: modules\{#LOCALIZATION}\includes\*.h; DestDir: {app}\modules\{#LOCALIZATION}\includes; Components: {#COMPN_SCILAB}
+Source: modules\{#LOCALIZATION}\includes\localization.h; DestDir: {app}\modules\{#LOCALIZATION}\includes; Components: {#COMPN_SCILAB}
+Source: modules\{#LOCALIZATION}\includes\setgetlanguage.h; DestDir: {app}\modules\{#LOCALIZATION}\includes; Components: {#COMPN_SCILAB}
+Source: modules\{#LOCALIZATION}\includes\charEncoding.h; DestDir: {app}\modules\{#LOCALIZATION}\includes; Components: {#COMPN_SCILAB}
+Source: modules\{#LOCALIZATION}\includes\dynlib_localization.h; DestDir: {app}\modules\{#LOCALIZATION}\includes; Components: {#COMPN_SCILAB}
+;
+;Source: modules\{#LOCALIZATION}\macros\lib; DestDir: {app}\modules\{#LOCALIZATION}\macros; Components: {#COMPN_SCILAB}
+;Source: modules\{#LOCALIZATION}\macros\names; DestDir: {app}\modules\{#LOCALIZATION}\macros; Components: {#COMPN_SCILAB}
+;Source: modules\{#LOCALIZATION}\macros\*.bin; DestDir: {app}\modules\{#LOCALIZATION}\macros; Components: {#COMPN_SCILAB}
+;Source: modules\{#LOCALIZATION}\macros\*.sci; DestDir: {app}\modules\{#LOCALIZATION}\macros; Components: {#COMPN_SCILAB}
+;Source: modules\{#LOCALIZATION}\macros\buildmacros.sce; DestDir: {app}\modules\{#LOCALIZATION}\macros; Components: {#COMPN_SCILAB}
+;Source: modules\{#LOCALIZATION}\macros\buildmacros.bat; DestDir: {app}\modules\{#LOCALIZATION}\macros; Components: {#COMPN_SCILAB}
+;Source: modules\{#LOCALIZATION}\macros\cleanmacros.bat; DestDir: {app}\modules\{#LOCALIZATION}\macros; Components: {#COMPN_SCILAB}
+;
+Source: modules\{#LOCALIZATION}\xml\*.dtd; DestDir: {app}\modules\{#LOCALIZATION}\xml; Components: {#COMPN_SCILAB}
+;
+;Source: modules\{#LOCALIZATION}\demos\*.*; DestDir: {app}\modules\{#LOCALIZATION}\demos; Components: {#COMPN_SCILAB}
+;
+Source: modules\{#LOCALIZATION}\tests\*.*; DestDir: {app}\modules\{#LOCALIZATION}\tests; Flags: recursesubdirs; Components: {#COMPN_SCILAB} and {#COMPN_TESTS}
+;
+;--------------------------------------------------------------------------------------------------------------
diff --git a/modules/localization/macros/buildmacros.bat b/modules/localization/macros/buildmacros.bat
new file mode 100755
index 000000000..c4e35ec40
--- /dev/null
+++ b/modules/localization/macros/buildmacros.bat
@@ -0,0 +1 @@
+@..\..\..\bin\scilex -nwni -ns -e exec('buildmacros.sce');quit; \ No newline at end of file
diff --git a/modules/localization/macros/buildmacros.sce b/modules/localization/macros/buildmacros.sce
new file mode 100755
index 000000000..50caadbb6
--- /dev/null
+++ b/modules/localization/macros/buildmacros.sce
@@ -0,0 +1,15 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2005 - INRIA - Allan CORNET
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+if (isdef("genlib") == %f) then
+ exec(SCI+"/modules/functions/scripts/buildmacros/loadgenlib.sce");
+end
+//------------------------------------
+//genlib('localizationlib','SCI/modules/localization/macros',%f,%t);
+//------------------------------------
diff --git a/modules/localization/macros/cleanmacros.bat b/modules/localization/macros/cleanmacros.bat
new file mode 100755
index 000000000..5079dfd71
--- /dev/null
+++ b/modules/localization/macros/cleanmacros.bat
@@ -0,0 +1,3 @@
+@del *.bin 2>NUL
+@del lib 2>NUL
+@del names 2>NUL \ No newline at end of file
diff --git a/modules/localization/sci_gateway/c/.deps/.dirstamp b/modules/localization/sci_gateway/c/.deps/.dirstamp
new file mode 100755
index 000000000..e69de29bb
--- /dev/null
+++ b/modules/localization/sci_gateway/c/.deps/.dirstamp
diff --git a/modules/localization/sci_gateway/c/.deps/libscilocalization_la-gw_localization.Plo b/modules/localization/sci_gateway/c/.deps/libscilocalization_la-gw_localization.Plo
new file mode 100755
index 000000000..5c763c458
--- /dev/null
+++ b/modules/localization/sci_gateway/c/.deps/libscilocalization_la-gw_localization.Plo
@@ -0,0 +1,275 @@
+sci_gateway/c/libscilocalization_la-gw_localization.lo: \
+ sci_gateway/c/gw_localization.c /usr/include/stdc-predef.h \
+ /usr/include/string.h /usr/include/features.h \
+ /usr/include/x86_64-linux-gnu/sys/cdefs.h \
+ /usr/include/x86_64-linux-gnu/bits/wordsize.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \
+ /usr/include/x86_64-linux-gnu/bits/string.h \
+ /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap.h \
+ /usr/include/x86_64-linux-gnu/bits/types.h \
+ /usr/include/x86_64-linux-gnu/bits/typesizes.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \
+ /usr/include/x86_64-linux-gnu/bits/string3.h includes/gw_localization.h \
+ includes/dynlib_localization.h \
+ ../../modules/api_scilab/includes/api_scilab.h \
+ ../../modules/core/includes/stack-c.h \
+ ../../modules/core/includes/core_math.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \
+ /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \
+ /usr/include/x86_64-linux-gnu/bits/local_lim.h \
+ /usr/include/linux/limits.h \
+ /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \
+ /usr/include/x86_64-linux-gnu/bits/math-vector.h \
+ /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_val.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_valf.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_vall.h \
+ /usr/include/x86_64-linux-gnu/bits/inf.h \
+ /usr/include/x86_64-linux-gnu/bits/nan.h \
+ /usr/include/x86_64-linux-gnu/bits/mathdef.h \
+ /usr/include/x86_64-linux-gnu/bits/mathcalls.h \
+ /usr/include/x86_64-linux-gnu/bits/mathinline.h \
+ /usr/include/x86_64-linux-gnu/bits/waitflags.h \
+ /usr/include/x86_64-linux-gnu/bits/waitstatus.h \
+ /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \
+ /usr/include/x86_64-linux-gnu/sys/select.h \
+ /usr/include/x86_64-linux-gnu/bits/select.h \
+ /usr/include/x86_64-linux-gnu/bits/sigset.h \
+ /usr/include/x86_64-linux-gnu/bits/time.h \
+ /usr/include/x86_64-linux-gnu/bits/select2.h \
+ /usr/include/x86_64-linux-gnu/sys/sysmacros.h \
+ /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib.h \
+ ../../modules/core/includes/stack-def.h \
+ ../../modules/core/includes/machine.h \
+ ../../modules/core/includes/stackTypeVariable.h \
+ ../../modules/core/includes/BOOL.h \
+ ../../modules/core/includes/doublecomplex.h \
+ ../../modules/core/includes/stack1.h \
+ ../../modules/core/includes/scisparse.h \
+ ../../modules/core/includes/stack2.h \
+ ../../modules/core/includes/stack3.h \
+ ../../modules/core/includes/stack-optional.h \
+ ../../modules/core/includes/sci_types.h \
+ ../../modules/api_scilab/includes/api_common.h \
+ ../../modules/api_scilab/includes/api_scilab.h \
+ ../../modules/api_scilab/includes/api_double.h \
+ ../../modules/core/includes/doublecomplex.h \
+ ../../modules/api_scilab/includes/api_string.h /usr/include/wchar.h \
+ /usr/include/stdio.h /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \
+ /usr/include/x86_64-linux-gnu/bits/wchar.h \
+ /usr/include/x86_64-linux-gnu/bits/wchar2.h \
+ ../../modules/api_scilab/includes/api_int.h \
+ ../../modules/api_scilab/includes/api_poly.h \
+ ../../modules/api_scilab/includes/api_sparse.h \
+ ../../modules/api_scilab/includes/api_boolean.h \
+ ../../modules/api_scilab/includes/api_boolean_sparse.h \
+ ../../modules/api_scilab/includes/api_pointer.h \
+ ../../modules/api_scilab/includes/api_list.h \
+ ../../modules/api_scilab/includes/api_error.h \
+ ../../modules/api_scilab/includes/api_handle.h \
+ ../../modules/api_scilab/includes/api_optional.h \
+ ../../modules/core/includes/stack-optional.h \
+ ../../modules/api_scilab/includes/api_hypermat.h \
+ ../../modules/core/includes/core_math.h \
+ ../../modules/core/includes/sci_types.h \
+ ../../modules/core/includes/MALLOC.h \
+ ../../modules/core/includes/sci_mem_alloc.h \
+ ../../modules/core/includes/callFunctionFromGateway.h
+
+/usr/include/stdc-predef.h:
+
+/usr/include/string.h:
+
+/usr/include/features.h:
+
+/usr/include/x86_64-linux-gnu/sys/cdefs.h:
+
+/usr/include/x86_64-linux-gnu/bits/wordsize.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs-64.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:
+
+/usr/include/xlocale.h:
+
+/usr/include/x86_64-linux-gnu/bits/string.h:
+
+/usr/include/x86_64-linux-gnu/bits/string2.h:
+
+/usr/include/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap.h:
+
+/usr/include/x86_64-linux-gnu/bits/types.h:
+
+/usr/include/x86_64-linux-gnu/bits/typesizes.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap-16.h:
+
+/usr/include/stdlib.h:
+
+/usr/include/x86_64-linux-gnu/bits/string3.h:
+
+includes/gw_localization.h:
+
+includes/dynlib_localization.h:
+
+../../modules/api_scilab/includes/api_scilab.h:
+
+../../modules/core/includes/stack-c.h:
+
+../../modules/core/includes/core_math.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h:
+
+/usr/include/limits.h:
+
+/usr/include/x86_64-linux-gnu/bits/posix1_lim.h:
+
+/usr/include/x86_64-linux-gnu/bits/local_lim.h:
+
+/usr/include/linux/limits.h:
+
+/usr/include/x86_64-linux-gnu/bits/posix2_lim.h:
+
+/usr/include/math.h:
+
+/usr/include/x86_64-linux-gnu/bits/math-vector.h:
+
+/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_val.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_valf.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_vall.h:
+
+/usr/include/x86_64-linux-gnu/bits/inf.h:
+
+/usr/include/x86_64-linux-gnu/bits/nan.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathdef.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathcalls.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathinline.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitflags.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitstatus.h:
+
+/usr/include/x86_64-linux-gnu/sys/types.h:
+
+/usr/include/time.h:
+
+/usr/include/x86_64-linux-gnu/sys/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/sigset.h:
+
+/usr/include/x86_64-linux-gnu/bits/time.h:
+
+/usr/include/x86_64-linux-gnu/bits/select2.h:
+
+/usr/include/x86_64-linux-gnu/sys/sysmacros.h:
+
+/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:
+
+/usr/include/alloca.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib.h:
+
+../../modules/core/includes/stack-def.h:
+
+../../modules/core/includes/machine.h:
+
+../../modules/core/includes/stackTypeVariable.h:
+
+../../modules/core/includes/BOOL.h:
+
+../../modules/core/includes/doublecomplex.h:
+
+../../modules/core/includes/stack1.h:
+
+../../modules/core/includes/scisparse.h:
+
+../../modules/core/includes/stack2.h:
+
+../../modules/core/includes/stack3.h:
+
+../../modules/core/includes/stack-optional.h:
+
+../../modules/core/includes/sci_types.h:
+
+../../modules/api_scilab/includes/api_common.h:
+
+../../modules/api_scilab/includes/api_scilab.h:
+
+../../modules/api_scilab/includes/api_double.h:
+
+../../modules/core/includes/doublecomplex.h:
+
+../../modules/api_scilab/includes/api_string.h:
+
+/usr/include/wchar.h:
+
+/usr/include/stdio.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h:
+
+/usr/include/x86_64-linux-gnu/bits/wchar.h:
+
+/usr/include/x86_64-linux-gnu/bits/wchar2.h:
+
+../../modules/api_scilab/includes/api_int.h:
+
+../../modules/api_scilab/includes/api_poly.h:
+
+../../modules/api_scilab/includes/api_sparse.h:
+
+../../modules/api_scilab/includes/api_boolean.h:
+
+../../modules/api_scilab/includes/api_boolean_sparse.h:
+
+../../modules/api_scilab/includes/api_pointer.h:
+
+../../modules/api_scilab/includes/api_list.h:
+
+../../modules/api_scilab/includes/api_error.h:
+
+../../modules/api_scilab/includes/api_handle.h:
+
+../../modules/api_scilab/includes/api_optional.h:
+
+../../modules/core/includes/stack-optional.h:
+
+../../modules/api_scilab/includes/api_hypermat.h:
+
+../../modules/core/includes/core_math.h:
+
+../../modules/core/includes/sci_types.h:
+
+../../modules/core/includes/MALLOC.h:
+
+../../modules/core/includes/sci_mem_alloc.h:
+
+../../modules/core/includes/callFunctionFromGateway.h:
diff --git a/modules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_addlocalizationdomain.Plo b/modules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_addlocalizationdomain.Plo
new file mode 100755
index 000000000..c6af85317
--- /dev/null
+++ b/modules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_addlocalizationdomain.Plo
@@ -0,0 +1,310 @@
+sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo: \
+ sci_gateway/c/sci_addlocalizationdomain.c /usr/include/stdc-predef.h \
+ /usr/include/string.h /usr/include/features.h \
+ /usr/include/x86_64-linux-gnu/sys/cdefs.h \
+ /usr/include/x86_64-linux-gnu/bits/wordsize.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \
+ /usr/include/x86_64-linux-gnu/bits/string.h \
+ /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap.h \
+ /usr/include/x86_64-linux-gnu/bits/types.h \
+ /usr/include/x86_64-linux-gnu/bits/typesizes.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \
+ /usr/include/x86_64-linux-gnu/bits/string3.h \
+ /usr/include/x86_64-linux-gnu/bits/waitflags.h \
+ /usr/include/x86_64-linux-gnu/bits/waitstatus.h \
+ /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \
+ /usr/include/x86_64-linux-gnu/sys/select.h \
+ /usr/include/x86_64-linux-gnu/bits/select.h \
+ /usr/include/x86_64-linux-gnu/bits/sigset.h \
+ /usr/include/x86_64-linux-gnu/bits/time.h \
+ /usr/include/x86_64-linux-gnu/bits/select2.h \
+ /usr/include/x86_64-linux-gnu/sys/sysmacros.h \
+ /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib.h \
+ ../../modules/core/includes/MALLOC.h \
+ ../../modules/core/includes/sci_mem_alloc.h includes/localization.h \
+ ../../modules/core/includes/machine.h /usr/include/libintl.h \
+ /usr/include/locale.h /usr/include/x86_64-linux-gnu/bits/locale.h \
+ includes/gw_localization.h includes/dynlib_localization.h \
+ ../../modules/api_scilab/includes/api_scilab.h \
+ ../../modules/core/includes/stack-c.h \
+ ../../modules/core/includes/core_math.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \
+ /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \
+ /usr/include/x86_64-linux-gnu/bits/local_lim.h \
+ /usr/include/linux/limits.h \
+ /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \
+ /usr/include/x86_64-linux-gnu/bits/math-vector.h \
+ /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_val.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_valf.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_vall.h \
+ /usr/include/x86_64-linux-gnu/bits/inf.h \
+ /usr/include/x86_64-linux-gnu/bits/nan.h \
+ /usr/include/x86_64-linux-gnu/bits/mathdef.h \
+ /usr/include/x86_64-linux-gnu/bits/mathcalls.h \
+ /usr/include/x86_64-linux-gnu/bits/mathinline.h /usr/include/values.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/float.h \
+ ../../modules/core/includes/stack-def.h \
+ ../../modules/core/includes/machine.h \
+ ../../modules/core/includes/stackTypeVariable.h \
+ ../../modules/core/includes/BOOL.h \
+ ../../modules/core/includes/doublecomplex.h \
+ ../../modules/core/includes/stack1.h \
+ ../../modules/core/includes/scisparse.h \
+ ../../modules/core/includes/stack2.h \
+ ../../modules/core/includes/stack3.h \
+ ../../modules/core/includes/stack-optional.h \
+ ../../modules/core/includes/sci_types.h \
+ ../../modules/api_scilab/includes/api_common.h \
+ ../../modules/api_scilab/includes/api_scilab.h \
+ ../../modules/api_scilab/includes/api_double.h \
+ ../../modules/core/includes/doublecomplex.h \
+ ../../modules/api_scilab/includes/api_string.h /usr/include/wchar.h \
+ /usr/include/stdio.h /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \
+ /usr/include/x86_64-linux-gnu/bits/wchar.h \
+ /usr/include/x86_64-linux-gnu/bits/wchar2.h \
+ ../../modules/api_scilab/includes/api_int.h \
+ ../../modules/api_scilab/includes/api_poly.h \
+ ../../modules/api_scilab/includes/api_sparse.h \
+ ../../modules/api_scilab/includes/api_boolean.h \
+ ../../modules/api_scilab/includes/api_boolean_sparse.h \
+ ../../modules/api_scilab/includes/api_pointer.h \
+ ../../modules/api_scilab/includes/api_list.h \
+ ../../modules/api_scilab/includes/api_error.h \
+ ../../modules/api_scilab/includes/api_handle.h \
+ ../../modules/api_scilab/includes/api_optional.h \
+ ../../modules/core/includes/stack-optional.h \
+ ../../modules/api_scilab/includes/api_hypermat.h \
+ ../../modules/core/includes/core_math.h \
+ ../../modules/core/includes/sci_types.h \
+ ../../modules/output_stream/includes/Scierror.h \
+ ../../modules/output_stream/includes/do_error_number.h \
+ ../../modules/string/includes/strsubst.h \
+ ../../modules/string/includes/dynlib_string.h \
+ ../../modules/core/includes/freeArrayOfString.h \
+ ../../modules/fileio/includes/expandPathVariable.h \
+ ../../modules/fileio/includes/dynlib_fileio.h
+
+/usr/include/stdc-predef.h:
+
+/usr/include/string.h:
+
+/usr/include/features.h:
+
+/usr/include/x86_64-linux-gnu/sys/cdefs.h:
+
+/usr/include/x86_64-linux-gnu/bits/wordsize.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs-64.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:
+
+/usr/include/xlocale.h:
+
+/usr/include/x86_64-linux-gnu/bits/string.h:
+
+/usr/include/x86_64-linux-gnu/bits/string2.h:
+
+/usr/include/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap.h:
+
+/usr/include/x86_64-linux-gnu/bits/types.h:
+
+/usr/include/x86_64-linux-gnu/bits/typesizes.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap-16.h:
+
+/usr/include/stdlib.h:
+
+/usr/include/x86_64-linux-gnu/bits/string3.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitflags.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitstatus.h:
+
+/usr/include/x86_64-linux-gnu/sys/types.h:
+
+/usr/include/time.h:
+
+/usr/include/x86_64-linux-gnu/sys/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/sigset.h:
+
+/usr/include/x86_64-linux-gnu/bits/time.h:
+
+/usr/include/x86_64-linux-gnu/bits/select2.h:
+
+/usr/include/x86_64-linux-gnu/sys/sysmacros.h:
+
+/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:
+
+/usr/include/alloca.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib.h:
+
+../../modules/core/includes/MALLOC.h:
+
+../../modules/core/includes/sci_mem_alloc.h:
+
+includes/localization.h:
+
+../../modules/core/includes/machine.h:
+
+/usr/include/libintl.h:
+
+/usr/include/locale.h:
+
+/usr/include/x86_64-linux-gnu/bits/locale.h:
+
+includes/gw_localization.h:
+
+includes/dynlib_localization.h:
+
+../../modules/api_scilab/includes/api_scilab.h:
+
+../../modules/core/includes/stack-c.h:
+
+../../modules/core/includes/core_math.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h:
+
+/usr/include/limits.h:
+
+/usr/include/x86_64-linux-gnu/bits/posix1_lim.h:
+
+/usr/include/x86_64-linux-gnu/bits/local_lim.h:
+
+/usr/include/linux/limits.h:
+
+/usr/include/x86_64-linux-gnu/bits/posix2_lim.h:
+
+/usr/include/math.h:
+
+/usr/include/x86_64-linux-gnu/bits/math-vector.h:
+
+/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_val.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_valf.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_vall.h:
+
+/usr/include/x86_64-linux-gnu/bits/inf.h:
+
+/usr/include/x86_64-linux-gnu/bits/nan.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathdef.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathcalls.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathinline.h:
+
+/usr/include/values.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/float.h:
+
+../../modules/core/includes/stack-def.h:
+
+../../modules/core/includes/machine.h:
+
+../../modules/core/includes/stackTypeVariable.h:
+
+../../modules/core/includes/BOOL.h:
+
+../../modules/core/includes/doublecomplex.h:
+
+../../modules/core/includes/stack1.h:
+
+../../modules/core/includes/scisparse.h:
+
+../../modules/core/includes/stack2.h:
+
+../../modules/core/includes/stack3.h:
+
+../../modules/core/includes/stack-optional.h:
+
+../../modules/core/includes/sci_types.h:
+
+../../modules/api_scilab/includes/api_common.h:
+
+../../modules/api_scilab/includes/api_scilab.h:
+
+../../modules/api_scilab/includes/api_double.h:
+
+../../modules/core/includes/doublecomplex.h:
+
+../../modules/api_scilab/includes/api_string.h:
+
+/usr/include/wchar.h:
+
+/usr/include/stdio.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h:
+
+/usr/include/x86_64-linux-gnu/bits/wchar.h:
+
+/usr/include/x86_64-linux-gnu/bits/wchar2.h:
+
+../../modules/api_scilab/includes/api_int.h:
+
+../../modules/api_scilab/includes/api_poly.h:
+
+../../modules/api_scilab/includes/api_sparse.h:
+
+../../modules/api_scilab/includes/api_boolean.h:
+
+../../modules/api_scilab/includes/api_boolean_sparse.h:
+
+../../modules/api_scilab/includes/api_pointer.h:
+
+../../modules/api_scilab/includes/api_list.h:
+
+../../modules/api_scilab/includes/api_error.h:
+
+../../modules/api_scilab/includes/api_handle.h:
+
+../../modules/api_scilab/includes/api_optional.h:
+
+../../modules/core/includes/stack-optional.h:
+
+../../modules/api_scilab/includes/api_hypermat.h:
+
+../../modules/core/includes/core_math.h:
+
+../../modules/core/includes/sci_types.h:
+
+../../modules/output_stream/includes/Scierror.h:
+
+../../modules/output_stream/includes/do_error_number.h:
+
+../../modules/string/includes/strsubst.h:
+
+../../modules/string/includes/dynlib_string.h:
+
+../../modules/core/includes/freeArrayOfString.h:
+
+../../modules/fileio/includes/expandPathVariable.h:
+
+../../modules/fileio/includes/dynlib_fileio.h:
diff --git a/modules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_getdefaultlanguage.Plo b/modules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_getdefaultlanguage.Plo
new file mode 100755
index 000000000..c9fc3233a
--- /dev/null
+++ b/modules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_getdefaultlanguage.Plo
@@ -0,0 +1,217 @@
+sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo: \
+ sci_gateway/c/sci_getdefaultlanguage.c /usr/include/stdc-predef.h \
+ includes/gw_localization.h includes/dynlib_localization.h \
+ src/c/defaultlanguage.h ../../modules/output_stream/includes/Scierror.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \
+ ../../modules/output_stream/includes/do_error_number.h \
+ ../../modules/core/includes/machine.h \
+ ../../modules/core/includes/MALLOC.h \
+ ../../modules/core/includes/sci_mem_alloc.h /usr/include/stdlib.h \
+ /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \
+ /usr/include/x86_64-linux-gnu/bits/wordsize.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \
+ /usr/include/x86_64-linux-gnu/bits/waitflags.h \
+ /usr/include/x86_64-linux-gnu/bits/waitstatus.h /usr/include/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap.h \
+ /usr/include/x86_64-linux-gnu/bits/types.h \
+ /usr/include/x86_64-linux-gnu/bits/typesizes.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap-16.h \
+ /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \
+ /usr/include/x86_64-linux-gnu/sys/select.h \
+ /usr/include/x86_64-linux-gnu/bits/select.h \
+ /usr/include/x86_64-linux-gnu/bits/sigset.h \
+ /usr/include/x86_64-linux-gnu/bits/time.h \
+ /usr/include/x86_64-linux-gnu/bits/select2.h \
+ /usr/include/x86_64-linux-gnu/sys/sysmacros.h \
+ /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib.h \
+ ../../modules/core/includes/stack-c.h /usr/include/string.h \
+ /usr/include/xlocale.h /usr/include/x86_64-linux-gnu/bits/string.h \
+ /usr/include/x86_64-linux-gnu/bits/string2.h \
+ /usr/include/x86_64-linux-gnu/bits/string3.h \
+ ../../modules/core/includes/core_math.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \
+ /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \
+ /usr/include/x86_64-linux-gnu/bits/local_lim.h \
+ /usr/include/linux/limits.h \
+ /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \
+ /usr/include/x86_64-linux-gnu/bits/math-vector.h \
+ /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_val.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_valf.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_vall.h \
+ /usr/include/x86_64-linux-gnu/bits/inf.h \
+ /usr/include/x86_64-linux-gnu/bits/nan.h \
+ /usr/include/x86_64-linux-gnu/bits/mathdef.h \
+ /usr/include/x86_64-linux-gnu/bits/mathcalls.h \
+ /usr/include/x86_64-linux-gnu/bits/mathinline.h /usr/include/values.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/float.h \
+ ../../modules/core/includes/stack-def.h \
+ ../../modules/core/includes/machine.h \
+ ../../modules/core/includes/stackTypeVariable.h \
+ ../../modules/core/includes/BOOL.h \
+ ../../modules/core/includes/doublecomplex.h \
+ ../../modules/core/includes/stack1.h \
+ ../../modules/core/includes/scisparse.h \
+ ../../modules/core/includes/stack2.h \
+ ../../modules/core/includes/stack3.h \
+ ../../modules/core/includes/stack-optional.h \
+ ../../modules/core/includes/sci_types.h
+
+/usr/include/stdc-predef.h:
+
+includes/gw_localization.h:
+
+includes/dynlib_localization.h:
+
+src/c/defaultlanguage.h:
+
+../../modules/output_stream/includes/Scierror.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h:
+
+../../modules/output_stream/includes/do_error_number.h:
+
+../../modules/core/includes/machine.h:
+
+../../modules/core/includes/MALLOC.h:
+
+../../modules/core/includes/sci_mem_alloc.h:
+
+/usr/include/stdlib.h:
+
+/usr/include/features.h:
+
+/usr/include/x86_64-linux-gnu/sys/cdefs.h:
+
+/usr/include/x86_64-linux-gnu/bits/wordsize.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs-64.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitflags.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitstatus.h:
+
+/usr/include/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap.h:
+
+/usr/include/x86_64-linux-gnu/bits/types.h:
+
+/usr/include/x86_64-linux-gnu/bits/typesizes.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap-16.h:
+
+/usr/include/x86_64-linux-gnu/sys/types.h:
+
+/usr/include/time.h:
+
+/usr/include/x86_64-linux-gnu/sys/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/sigset.h:
+
+/usr/include/x86_64-linux-gnu/bits/time.h:
+
+/usr/include/x86_64-linux-gnu/bits/select2.h:
+
+/usr/include/x86_64-linux-gnu/sys/sysmacros.h:
+
+/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:
+
+/usr/include/alloca.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib.h:
+
+../../modules/core/includes/stack-c.h:
+
+/usr/include/string.h:
+
+/usr/include/xlocale.h:
+
+/usr/include/x86_64-linux-gnu/bits/string.h:
+
+/usr/include/x86_64-linux-gnu/bits/string2.h:
+
+/usr/include/x86_64-linux-gnu/bits/string3.h:
+
+../../modules/core/includes/core_math.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h:
+
+/usr/include/limits.h:
+
+/usr/include/x86_64-linux-gnu/bits/posix1_lim.h:
+
+/usr/include/x86_64-linux-gnu/bits/local_lim.h:
+
+/usr/include/linux/limits.h:
+
+/usr/include/x86_64-linux-gnu/bits/posix2_lim.h:
+
+/usr/include/math.h:
+
+/usr/include/x86_64-linux-gnu/bits/math-vector.h:
+
+/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_val.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_valf.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_vall.h:
+
+/usr/include/x86_64-linux-gnu/bits/inf.h:
+
+/usr/include/x86_64-linux-gnu/bits/nan.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathdef.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathcalls.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathinline.h:
+
+/usr/include/values.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/float.h:
+
+../../modules/core/includes/stack-def.h:
+
+../../modules/core/includes/machine.h:
+
+../../modules/core/includes/stackTypeVariable.h:
+
+../../modules/core/includes/BOOL.h:
+
+../../modules/core/includes/doublecomplex.h:
+
+../../modules/core/includes/stack1.h:
+
+../../modules/core/includes/scisparse.h:
+
+../../modules/core/includes/stack2.h:
+
+../../modules/core/includes/stack3.h:
+
+../../modules/core/includes/stack-optional.h:
+
+../../modules/core/includes/sci_types.h:
diff --git a/modules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_getlanguage.Plo b/modules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_getlanguage.Plo
new file mode 100755
index 000000000..76523e0db
--- /dev/null
+++ b/modules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_getlanguage.Plo
@@ -0,0 +1,220 @@
+sci_gateway/c/libscilocalization_la-sci_getlanguage.lo: \
+ sci_gateway/c/sci_getlanguage.c /usr/include/stdc-predef.h \
+ includes/gw_localization.h includes/dynlib_localization.h \
+ includes/setgetlanguage.h ../../modules/core/includes/BOOL.h \
+ ../../modules/output_stream/includes/Scierror.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \
+ ../../modules/output_stream/includes/do_error_number.h \
+ ../../modules/core/includes/machine.h \
+ ../../modules/core/includes/MALLOC.h \
+ ../../modules/core/includes/sci_mem_alloc.h /usr/include/stdlib.h \
+ /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \
+ /usr/include/x86_64-linux-gnu/bits/wordsize.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \
+ /usr/include/x86_64-linux-gnu/bits/waitflags.h \
+ /usr/include/x86_64-linux-gnu/bits/waitstatus.h /usr/include/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap.h \
+ /usr/include/x86_64-linux-gnu/bits/types.h \
+ /usr/include/x86_64-linux-gnu/bits/typesizes.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap-16.h \
+ /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \
+ /usr/include/x86_64-linux-gnu/sys/select.h \
+ /usr/include/x86_64-linux-gnu/bits/select.h \
+ /usr/include/x86_64-linux-gnu/bits/sigset.h \
+ /usr/include/x86_64-linux-gnu/bits/time.h \
+ /usr/include/x86_64-linux-gnu/bits/select2.h \
+ /usr/include/x86_64-linux-gnu/sys/sysmacros.h \
+ /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib.h \
+ ../../modules/core/includes/stack-c.h /usr/include/string.h \
+ /usr/include/xlocale.h /usr/include/x86_64-linux-gnu/bits/string.h \
+ /usr/include/x86_64-linux-gnu/bits/string2.h \
+ /usr/include/x86_64-linux-gnu/bits/string3.h \
+ ../../modules/core/includes/core_math.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \
+ /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \
+ /usr/include/x86_64-linux-gnu/bits/local_lim.h \
+ /usr/include/linux/limits.h \
+ /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \
+ /usr/include/x86_64-linux-gnu/bits/math-vector.h \
+ /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_val.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_valf.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_vall.h \
+ /usr/include/x86_64-linux-gnu/bits/inf.h \
+ /usr/include/x86_64-linux-gnu/bits/nan.h \
+ /usr/include/x86_64-linux-gnu/bits/mathdef.h \
+ /usr/include/x86_64-linux-gnu/bits/mathcalls.h \
+ /usr/include/x86_64-linux-gnu/bits/mathinline.h /usr/include/values.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/float.h \
+ ../../modules/core/includes/stack-def.h \
+ ../../modules/core/includes/machine.h \
+ ../../modules/core/includes/stackTypeVariable.h \
+ ../../modules/core/includes/BOOL.h \
+ ../../modules/core/includes/doublecomplex.h \
+ ../../modules/core/includes/stack1.h \
+ ../../modules/core/includes/scisparse.h \
+ ../../modules/core/includes/stack2.h \
+ ../../modules/core/includes/stack3.h \
+ ../../modules/core/includes/stack-optional.h \
+ ../../modules/core/includes/sci_types.h
+
+/usr/include/stdc-predef.h:
+
+includes/gw_localization.h:
+
+includes/dynlib_localization.h:
+
+includes/setgetlanguage.h:
+
+../../modules/core/includes/BOOL.h:
+
+../../modules/output_stream/includes/Scierror.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h:
+
+../../modules/output_stream/includes/do_error_number.h:
+
+../../modules/core/includes/machine.h:
+
+../../modules/core/includes/MALLOC.h:
+
+../../modules/core/includes/sci_mem_alloc.h:
+
+/usr/include/stdlib.h:
+
+/usr/include/features.h:
+
+/usr/include/x86_64-linux-gnu/sys/cdefs.h:
+
+/usr/include/x86_64-linux-gnu/bits/wordsize.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs-64.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitflags.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitstatus.h:
+
+/usr/include/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap.h:
+
+/usr/include/x86_64-linux-gnu/bits/types.h:
+
+/usr/include/x86_64-linux-gnu/bits/typesizes.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap-16.h:
+
+/usr/include/x86_64-linux-gnu/sys/types.h:
+
+/usr/include/time.h:
+
+/usr/include/x86_64-linux-gnu/sys/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/sigset.h:
+
+/usr/include/x86_64-linux-gnu/bits/time.h:
+
+/usr/include/x86_64-linux-gnu/bits/select2.h:
+
+/usr/include/x86_64-linux-gnu/sys/sysmacros.h:
+
+/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:
+
+/usr/include/alloca.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib.h:
+
+../../modules/core/includes/stack-c.h:
+
+/usr/include/string.h:
+
+/usr/include/xlocale.h:
+
+/usr/include/x86_64-linux-gnu/bits/string.h:
+
+/usr/include/x86_64-linux-gnu/bits/string2.h:
+
+/usr/include/x86_64-linux-gnu/bits/string3.h:
+
+../../modules/core/includes/core_math.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h:
+
+/usr/include/limits.h:
+
+/usr/include/x86_64-linux-gnu/bits/posix1_lim.h:
+
+/usr/include/x86_64-linux-gnu/bits/local_lim.h:
+
+/usr/include/linux/limits.h:
+
+/usr/include/x86_64-linux-gnu/bits/posix2_lim.h:
+
+/usr/include/math.h:
+
+/usr/include/x86_64-linux-gnu/bits/math-vector.h:
+
+/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_val.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_valf.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_vall.h:
+
+/usr/include/x86_64-linux-gnu/bits/inf.h:
+
+/usr/include/x86_64-linux-gnu/bits/nan.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathdef.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathcalls.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathinline.h:
+
+/usr/include/values.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/float.h:
+
+../../modules/core/includes/stack-def.h:
+
+../../modules/core/includes/machine.h:
+
+../../modules/core/includes/stackTypeVariable.h:
+
+../../modules/core/includes/BOOL.h:
+
+../../modules/core/includes/doublecomplex.h:
+
+../../modules/core/includes/stack1.h:
+
+../../modules/core/includes/scisparse.h:
+
+../../modules/core/includes/stack2.h:
+
+../../modules/core/includes/stack3.h:
+
+../../modules/core/includes/stack-optional.h:
+
+../../modules/core/includes/sci_types.h:
diff --git a/modules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_gettext.Plo b/modules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_gettext.Plo
new file mode 100755
index 000000000..94511d22f
--- /dev/null
+++ b/modules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_gettext.Plo
@@ -0,0 +1,304 @@
+sci_gateway/c/libscilocalization_la-sci_gettext.lo: \
+ sci_gateway/c/sci_gettext.c /usr/include/stdc-predef.h \
+ /usr/include/string.h /usr/include/features.h \
+ /usr/include/x86_64-linux-gnu/sys/cdefs.h \
+ /usr/include/x86_64-linux-gnu/bits/wordsize.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \
+ /usr/include/x86_64-linux-gnu/bits/string.h \
+ /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap.h \
+ /usr/include/x86_64-linux-gnu/bits/types.h \
+ /usr/include/x86_64-linux-gnu/bits/typesizes.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \
+ /usr/include/x86_64-linux-gnu/bits/string3.h \
+ /usr/include/x86_64-linux-gnu/bits/waitflags.h \
+ /usr/include/x86_64-linux-gnu/bits/waitstatus.h \
+ /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \
+ /usr/include/x86_64-linux-gnu/sys/select.h \
+ /usr/include/x86_64-linux-gnu/bits/select.h \
+ /usr/include/x86_64-linux-gnu/bits/sigset.h \
+ /usr/include/x86_64-linux-gnu/bits/time.h \
+ /usr/include/x86_64-linux-gnu/bits/select2.h \
+ /usr/include/x86_64-linux-gnu/sys/sysmacros.h \
+ /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib.h \
+ ../../modules/core/includes/MALLOC.h \
+ ../../modules/core/includes/sci_mem_alloc.h includes/localization.h \
+ ../../modules/core/includes/machine.h /usr/include/libintl.h \
+ /usr/include/locale.h /usr/include/x86_64-linux-gnu/bits/locale.h \
+ includes/gw_localization.h includes/dynlib_localization.h \
+ ../../modules/api_scilab/includes/api_scilab.h \
+ ../../modules/core/includes/stack-c.h \
+ ../../modules/core/includes/core_math.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \
+ /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \
+ /usr/include/x86_64-linux-gnu/bits/local_lim.h \
+ /usr/include/linux/limits.h \
+ /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \
+ /usr/include/x86_64-linux-gnu/bits/math-vector.h \
+ /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_val.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_valf.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_vall.h \
+ /usr/include/x86_64-linux-gnu/bits/inf.h \
+ /usr/include/x86_64-linux-gnu/bits/nan.h \
+ /usr/include/x86_64-linux-gnu/bits/mathdef.h \
+ /usr/include/x86_64-linux-gnu/bits/mathcalls.h \
+ /usr/include/x86_64-linux-gnu/bits/mathinline.h /usr/include/values.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/float.h \
+ ../../modules/core/includes/stack-def.h \
+ ../../modules/core/includes/machine.h \
+ ../../modules/core/includes/stackTypeVariable.h \
+ ../../modules/core/includes/BOOL.h \
+ ../../modules/core/includes/doublecomplex.h \
+ ../../modules/core/includes/stack1.h \
+ ../../modules/core/includes/scisparse.h \
+ ../../modules/core/includes/stack2.h \
+ ../../modules/core/includes/stack3.h \
+ ../../modules/core/includes/stack-optional.h \
+ ../../modules/core/includes/sci_types.h \
+ ../../modules/api_scilab/includes/api_common.h \
+ ../../modules/api_scilab/includes/api_scilab.h \
+ ../../modules/api_scilab/includes/api_double.h \
+ ../../modules/core/includes/doublecomplex.h \
+ ../../modules/api_scilab/includes/api_string.h /usr/include/wchar.h \
+ /usr/include/stdio.h /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \
+ /usr/include/x86_64-linux-gnu/bits/wchar.h \
+ /usr/include/x86_64-linux-gnu/bits/wchar2.h \
+ ../../modules/api_scilab/includes/api_int.h \
+ ../../modules/api_scilab/includes/api_poly.h \
+ ../../modules/api_scilab/includes/api_sparse.h \
+ ../../modules/api_scilab/includes/api_boolean.h \
+ ../../modules/api_scilab/includes/api_boolean_sparse.h \
+ ../../modules/api_scilab/includes/api_pointer.h \
+ ../../modules/api_scilab/includes/api_list.h \
+ ../../modules/api_scilab/includes/api_error.h \
+ ../../modules/api_scilab/includes/api_handle.h \
+ ../../modules/api_scilab/includes/api_optional.h \
+ ../../modules/core/includes/stack-optional.h \
+ ../../modules/api_scilab/includes/api_hypermat.h \
+ ../../modules/core/includes/core_math.h \
+ ../../modules/core/includes/sci_types.h \
+ ../../modules/output_stream/includes/Scierror.h \
+ ../../modules/output_stream/includes/do_error_number.h \
+ ../../modules/string/includes/strsubst.h \
+ ../../modules/string/includes/dynlib_string.h \
+ ../../modules/core/includes/freeArrayOfString.h
+
+/usr/include/stdc-predef.h:
+
+/usr/include/string.h:
+
+/usr/include/features.h:
+
+/usr/include/x86_64-linux-gnu/sys/cdefs.h:
+
+/usr/include/x86_64-linux-gnu/bits/wordsize.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs-64.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:
+
+/usr/include/xlocale.h:
+
+/usr/include/x86_64-linux-gnu/bits/string.h:
+
+/usr/include/x86_64-linux-gnu/bits/string2.h:
+
+/usr/include/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap.h:
+
+/usr/include/x86_64-linux-gnu/bits/types.h:
+
+/usr/include/x86_64-linux-gnu/bits/typesizes.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap-16.h:
+
+/usr/include/stdlib.h:
+
+/usr/include/x86_64-linux-gnu/bits/string3.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitflags.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitstatus.h:
+
+/usr/include/x86_64-linux-gnu/sys/types.h:
+
+/usr/include/time.h:
+
+/usr/include/x86_64-linux-gnu/sys/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/sigset.h:
+
+/usr/include/x86_64-linux-gnu/bits/time.h:
+
+/usr/include/x86_64-linux-gnu/bits/select2.h:
+
+/usr/include/x86_64-linux-gnu/sys/sysmacros.h:
+
+/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:
+
+/usr/include/alloca.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib.h:
+
+../../modules/core/includes/MALLOC.h:
+
+../../modules/core/includes/sci_mem_alloc.h:
+
+includes/localization.h:
+
+../../modules/core/includes/machine.h:
+
+/usr/include/libintl.h:
+
+/usr/include/locale.h:
+
+/usr/include/x86_64-linux-gnu/bits/locale.h:
+
+includes/gw_localization.h:
+
+includes/dynlib_localization.h:
+
+../../modules/api_scilab/includes/api_scilab.h:
+
+../../modules/core/includes/stack-c.h:
+
+../../modules/core/includes/core_math.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h:
+
+/usr/include/limits.h:
+
+/usr/include/x86_64-linux-gnu/bits/posix1_lim.h:
+
+/usr/include/x86_64-linux-gnu/bits/local_lim.h:
+
+/usr/include/linux/limits.h:
+
+/usr/include/x86_64-linux-gnu/bits/posix2_lim.h:
+
+/usr/include/math.h:
+
+/usr/include/x86_64-linux-gnu/bits/math-vector.h:
+
+/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_val.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_valf.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_vall.h:
+
+/usr/include/x86_64-linux-gnu/bits/inf.h:
+
+/usr/include/x86_64-linux-gnu/bits/nan.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathdef.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathcalls.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathinline.h:
+
+/usr/include/values.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/float.h:
+
+../../modules/core/includes/stack-def.h:
+
+../../modules/core/includes/machine.h:
+
+../../modules/core/includes/stackTypeVariable.h:
+
+../../modules/core/includes/BOOL.h:
+
+../../modules/core/includes/doublecomplex.h:
+
+../../modules/core/includes/stack1.h:
+
+../../modules/core/includes/scisparse.h:
+
+../../modules/core/includes/stack2.h:
+
+../../modules/core/includes/stack3.h:
+
+../../modules/core/includes/stack-optional.h:
+
+../../modules/core/includes/sci_types.h:
+
+../../modules/api_scilab/includes/api_common.h:
+
+../../modules/api_scilab/includes/api_scilab.h:
+
+../../modules/api_scilab/includes/api_double.h:
+
+../../modules/core/includes/doublecomplex.h:
+
+../../modules/api_scilab/includes/api_string.h:
+
+/usr/include/wchar.h:
+
+/usr/include/stdio.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h:
+
+/usr/include/x86_64-linux-gnu/bits/wchar.h:
+
+/usr/include/x86_64-linux-gnu/bits/wchar2.h:
+
+../../modules/api_scilab/includes/api_int.h:
+
+../../modules/api_scilab/includes/api_poly.h:
+
+../../modules/api_scilab/includes/api_sparse.h:
+
+../../modules/api_scilab/includes/api_boolean.h:
+
+../../modules/api_scilab/includes/api_boolean_sparse.h:
+
+../../modules/api_scilab/includes/api_pointer.h:
+
+../../modules/api_scilab/includes/api_list.h:
+
+../../modules/api_scilab/includes/api_error.h:
+
+../../modules/api_scilab/includes/api_handle.h:
+
+../../modules/api_scilab/includes/api_optional.h:
+
+../../modules/core/includes/stack-optional.h:
+
+../../modules/api_scilab/includes/api_hypermat.h:
+
+../../modules/core/includes/core_math.h:
+
+../../modules/core/includes/sci_types.h:
+
+../../modules/output_stream/includes/Scierror.h:
+
+../../modules/output_stream/includes/do_error_number.h:
+
+../../modules/string/includes/strsubst.h:
+
+../../modules/string/includes/dynlib_string.h:
+
+../../modules/core/includes/freeArrayOfString.h:
diff --git a/modules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_setdefaultlanguage.Plo b/modules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_setdefaultlanguage.Plo
new file mode 100755
index 000000000..a1099f5ad
--- /dev/null
+++ b/modules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_setdefaultlanguage.Plo
@@ -0,0 +1,216 @@
+sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo: \
+ sci_gateway/c/sci_setdefaultlanguage.c /usr/include/stdc-predef.h \
+ includes/gw_localization.h includes/dynlib_localization.h \
+ ../../modules/core/includes/stack-c.h /usr/include/string.h \
+ /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \
+ /usr/include/x86_64-linux-gnu/bits/wordsize.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \
+ /usr/include/x86_64-linux-gnu/bits/string.h \
+ /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap.h \
+ /usr/include/x86_64-linux-gnu/bits/types.h \
+ /usr/include/x86_64-linux-gnu/bits/typesizes.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \
+ /usr/include/x86_64-linux-gnu/bits/string3.h \
+ ../../modules/core/includes/core_math.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \
+ /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \
+ /usr/include/x86_64-linux-gnu/bits/local_lim.h \
+ /usr/include/linux/limits.h \
+ /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \
+ /usr/include/x86_64-linux-gnu/bits/math-vector.h \
+ /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_val.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_valf.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_vall.h \
+ /usr/include/x86_64-linux-gnu/bits/inf.h \
+ /usr/include/x86_64-linux-gnu/bits/nan.h \
+ /usr/include/x86_64-linux-gnu/bits/mathdef.h \
+ /usr/include/x86_64-linux-gnu/bits/mathcalls.h \
+ /usr/include/x86_64-linux-gnu/bits/mathinline.h \
+ /usr/include/x86_64-linux-gnu/bits/waitflags.h \
+ /usr/include/x86_64-linux-gnu/bits/waitstatus.h \
+ /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \
+ /usr/include/x86_64-linux-gnu/sys/select.h \
+ /usr/include/x86_64-linux-gnu/bits/select.h \
+ /usr/include/x86_64-linux-gnu/bits/sigset.h \
+ /usr/include/x86_64-linux-gnu/bits/time.h \
+ /usr/include/x86_64-linux-gnu/bits/select2.h \
+ /usr/include/x86_64-linux-gnu/sys/sysmacros.h \
+ /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib.h \
+ ../../modules/core/includes/stack-def.h \
+ ../../modules/core/includes/machine.h \
+ ../../modules/core/includes/stackTypeVariable.h \
+ ../../modules/core/includes/BOOL.h \
+ ../../modules/core/includes/doublecomplex.h \
+ ../../modules/core/includes/stack1.h \
+ ../../modules/core/includes/scisparse.h \
+ ../../modules/core/includes/stack2.h \
+ ../../modules/core/includes/stack3.h \
+ ../../modules/core/includes/stack-optional.h \
+ ../../modules/core/includes/sci_types.h \
+ ../../modules/core/includes/warningmode.h includes/localization.h \
+ ../../modules/core/includes/machine.h /usr/include/libintl.h \
+ /usr/include/locale.h /usr/include/x86_64-linux-gnu/bits/locale.h \
+ ../../modules/output_stream/includes/sciprint.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \
+ ../../modules/core/includes/BOOL.h
+
+/usr/include/stdc-predef.h:
+
+includes/gw_localization.h:
+
+includes/dynlib_localization.h:
+
+../../modules/core/includes/stack-c.h:
+
+/usr/include/string.h:
+
+/usr/include/features.h:
+
+/usr/include/x86_64-linux-gnu/sys/cdefs.h:
+
+/usr/include/x86_64-linux-gnu/bits/wordsize.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs-64.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:
+
+/usr/include/xlocale.h:
+
+/usr/include/x86_64-linux-gnu/bits/string.h:
+
+/usr/include/x86_64-linux-gnu/bits/string2.h:
+
+/usr/include/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap.h:
+
+/usr/include/x86_64-linux-gnu/bits/types.h:
+
+/usr/include/x86_64-linux-gnu/bits/typesizes.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap-16.h:
+
+/usr/include/stdlib.h:
+
+/usr/include/x86_64-linux-gnu/bits/string3.h:
+
+../../modules/core/includes/core_math.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h:
+
+/usr/include/limits.h:
+
+/usr/include/x86_64-linux-gnu/bits/posix1_lim.h:
+
+/usr/include/x86_64-linux-gnu/bits/local_lim.h:
+
+/usr/include/linux/limits.h:
+
+/usr/include/x86_64-linux-gnu/bits/posix2_lim.h:
+
+/usr/include/math.h:
+
+/usr/include/x86_64-linux-gnu/bits/math-vector.h:
+
+/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_val.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_valf.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_vall.h:
+
+/usr/include/x86_64-linux-gnu/bits/inf.h:
+
+/usr/include/x86_64-linux-gnu/bits/nan.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathdef.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathcalls.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathinline.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitflags.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitstatus.h:
+
+/usr/include/x86_64-linux-gnu/sys/types.h:
+
+/usr/include/time.h:
+
+/usr/include/x86_64-linux-gnu/sys/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/sigset.h:
+
+/usr/include/x86_64-linux-gnu/bits/time.h:
+
+/usr/include/x86_64-linux-gnu/bits/select2.h:
+
+/usr/include/x86_64-linux-gnu/sys/sysmacros.h:
+
+/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:
+
+/usr/include/alloca.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib.h:
+
+../../modules/core/includes/stack-def.h:
+
+../../modules/core/includes/machine.h:
+
+../../modules/core/includes/stackTypeVariable.h:
+
+../../modules/core/includes/BOOL.h:
+
+../../modules/core/includes/doublecomplex.h:
+
+../../modules/core/includes/stack1.h:
+
+../../modules/core/includes/scisparse.h:
+
+../../modules/core/includes/stack2.h:
+
+../../modules/core/includes/stack3.h:
+
+../../modules/core/includes/stack-optional.h:
+
+../../modules/core/includes/sci_types.h:
+
+../../modules/core/includes/warningmode.h:
+
+includes/localization.h:
+
+../../modules/core/includes/machine.h:
+
+/usr/include/libintl.h:
+
+/usr/include/locale.h:
+
+/usr/include/x86_64-linux-gnu/bits/locale.h:
+
+../../modules/output_stream/includes/sciprint.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h:
+
+../../modules/core/includes/BOOL.h:
diff --git a/modules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_setlanguage.Plo b/modules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_setlanguage.Plo
new file mode 100755
index 000000000..2b06fed3d
--- /dev/null
+++ b/modules/localization/sci_gateway/c/.deps/libscilocalization_la-sci_setlanguage.Plo
@@ -0,0 +1,240 @@
+sci_gateway/c/libscilocalization_la-sci_setlanguage.lo: \
+ sci_gateway/c/sci_setlanguage.c /usr/include/stdc-predef.h \
+ includes/gw_localization.h includes/dynlib_localization.h \
+ includes/setgetlanguage.h ../../modules/core/includes/BOOL.h \
+ ../../modules/output_stream/includes/Scierror.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \
+ ../../modules/output_stream/includes/do_error_number.h \
+ ../../modules/core/includes/machine.h \
+ ../../modules/output_stream/includes/sciprint.h \
+ ../../modules/core/includes/warningmode.h \
+ ../../modules/core/includes/BOOL.h ../../modules/core/includes/machine.h \
+ src/c/defaultlanguage.h ../../modules/core/includes/MALLOC.h \
+ ../../modules/core/includes/sci_mem_alloc.h /usr/include/stdlib.h \
+ /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \
+ /usr/include/x86_64-linux-gnu/bits/wordsize.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \
+ /usr/include/x86_64-linux-gnu/bits/waitflags.h \
+ /usr/include/x86_64-linux-gnu/bits/waitstatus.h /usr/include/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap.h \
+ /usr/include/x86_64-linux-gnu/bits/types.h \
+ /usr/include/x86_64-linux-gnu/bits/typesizes.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap-16.h \
+ /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \
+ /usr/include/x86_64-linux-gnu/sys/select.h \
+ /usr/include/x86_64-linux-gnu/bits/select.h \
+ /usr/include/x86_64-linux-gnu/bits/sigset.h \
+ /usr/include/x86_64-linux-gnu/bits/time.h \
+ /usr/include/x86_64-linux-gnu/bits/select2.h \
+ /usr/include/x86_64-linux-gnu/sys/sysmacros.h \
+ /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib.h \
+ src/c/loadhashtableslocalization.h includes/localization.h \
+ /usr/include/libintl.h /usr/include/locale.h \
+ /usr/include/x86_64-linux-gnu/bits/locale.h /usr/include/xlocale.h \
+ ../../modules/core/includes/stack-c.h /usr/include/string.h \
+ /usr/include/x86_64-linux-gnu/bits/string.h \
+ /usr/include/x86_64-linux-gnu/bits/string2.h \
+ /usr/include/x86_64-linux-gnu/bits/string3.h \
+ ../../modules/core/includes/core_math.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \
+ /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \
+ /usr/include/x86_64-linux-gnu/bits/local_lim.h \
+ /usr/include/linux/limits.h \
+ /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \
+ /usr/include/x86_64-linux-gnu/bits/math-vector.h \
+ /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_val.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_valf.h \
+ /usr/include/x86_64-linux-gnu/bits/huge_vall.h \
+ /usr/include/x86_64-linux-gnu/bits/inf.h \
+ /usr/include/x86_64-linux-gnu/bits/nan.h \
+ /usr/include/x86_64-linux-gnu/bits/mathdef.h \
+ /usr/include/x86_64-linux-gnu/bits/mathcalls.h \
+ /usr/include/x86_64-linux-gnu/bits/mathinline.h /usr/include/values.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/float.h \
+ ../../modules/core/includes/stack-def.h \
+ ../../modules/core/includes/stackTypeVariable.h \
+ ../../modules/core/includes/doublecomplex.h \
+ ../../modules/core/includes/stack1.h \
+ ../../modules/core/includes/scisparse.h \
+ ../../modules/core/includes/stack2.h \
+ ../../modules/core/includes/stack3.h \
+ ../../modules/core/includes/stack-optional.h \
+ ../../modules/core/includes/sci_types.h
+
+/usr/include/stdc-predef.h:
+
+includes/gw_localization.h:
+
+includes/dynlib_localization.h:
+
+includes/setgetlanguage.h:
+
+../../modules/core/includes/BOOL.h:
+
+../../modules/output_stream/includes/Scierror.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h:
+
+../../modules/output_stream/includes/do_error_number.h:
+
+../../modules/core/includes/machine.h:
+
+../../modules/output_stream/includes/sciprint.h:
+
+../../modules/core/includes/warningmode.h:
+
+../../modules/core/includes/BOOL.h:
+
+../../modules/core/includes/machine.h:
+
+src/c/defaultlanguage.h:
+
+../../modules/core/includes/MALLOC.h:
+
+../../modules/core/includes/sci_mem_alloc.h:
+
+/usr/include/stdlib.h:
+
+/usr/include/features.h:
+
+/usr/include/x86_64-linux-gnu/sys/cdefs.h:
+
+/usr/include/x86_64-linux-gnu/bits/wordsize.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs-64.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitflags.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitstatus.h:
+
+/usr/include/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap.h:
+
+/usr/include/x86_64-linux-gnu/bits/types.h:
+
+/usr/include/x86_64-linux-gnu/bits/typesizes.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap-16.h:
+
+/usr/include/x86_64-linux-gnu/sys/types.h:
+
+/usr/include/time.h:
+
+/usr/include/x86_64-linux-gnu/sys/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/sigset.h:
+
+/usr/include/x86_64-linux-gnu/bits/time.h:
+
+/usr/include/x86_64-linux-gnu/bits/select2.h:
+
+/usr/include/x86_64-linux-gnu/sys/sysmacros.h:
+
+/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:
+
+/usr/include/alloca.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib.h:
+
+src/c/loadhashtableslocalization.h:
+
+includes/localization.h:
+
+/usr/include/libintl.h:
+
+/usr/include/locale.h:
+
+/usr/include/x86_64-linux-gnu/bits/locale.h:
+
+/usr/include/xlocale.h:
+
+../../modules/core/includes/stack-c.h:
+
+/usr/include/string.h:
+
+/usr/include/x86_64-linux-gnu/bits/string.h:
+
+/usr/include/x86_64-linux-gnu/bits/string2.h:
+
+/usr/include/x86_64-linux-gnu/bits/string3.h:
+
+../../modules/core/includes/core_math.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h:
+
+/usr/include/limits.h:
+
+/usr/include/x86_64-linux-gnu/bits/posix1_lim.h:
+
+/usr/include/x86_64-linux-gnu/bits/local_lim.h:
+
+/usr/include/linux/limits.h:
+
+/usr/include/x86_64-linux-gnu/bits/posix2_lim.h:
+
+/usr/include/math.h:
+
+/usr/include/x86_64-linux-gnu/bits/math-vector.h:
+
+/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_val.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_valf.h:
+
+/usr/include/x86_64-linux-gnu/bits/huge_vall.h:
+
+/usr/include/x86_64-linux-gnu/bits/inf.h:
+
+/usr/include/x86_64-linux-gnu/bits/nan.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathdef.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathcalls.h:
+
+/usr/include/x86_64-linux-gnu/bits/mathinline.h:
+
+/usr/include/values.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/float.h:
+
+../../modules/core/includes/stack-def.h:
+
+../../modules/core/includes/stackTypeVariable.h:
+
+../../modules/core/includes/doublecomplex.h:
+
+../../modules/core/includes/stack1.h:
+
+../../modules/core/includes/scisparse.h:
+
+../../modules/core/includes/stack2.h:
+
+../../modules/core/includes/stack3.h:
+
+../../modules/core/includes/stack-optional.h:
+
+../../modules/core/includes/sci_types.h:
diff --git a/modules/localization/sci_gateway/c/.dirstamp b/modules/localization/sci_gateway/c/.dirstamp
new file mode 100755
index 000000000..e69de29bb
--- /dev/null
+++ b/modules/localization/sci_gateway/c/.dirstamp
diff --git a/modules/localization/sci_gateway/c/.libs/libscilocalization_la-gw_localization.o b/modules/localization/sci_gateway/c/.libs/libscilocalization_la-gw_localization.o
new file mode 100755
index 000000000..00b67dae5
--- /dev/null
+++ b/modules/localization/sci_gateway/c/.libs/libscilocalization_la-gw_localization.o
Binary files differ
diff --git a/modules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_addlocalizationdomain.o b/modules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_addlocalizationdomain.o
new file mode 100755
index 000000000..dbecf2b01
--- /dev/null
+++ b/modules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_addlocalizationdomain.o
Binary files differ
diff --git a/modules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_getdefaultlanguage.o b/modules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_getdefaultlanguage.o
new file mode 100755
index 000000000..995a8bf57
--- /dev/null
+++ b/modules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_getdefaultlanguage.o
Binary files differ
diff --git a/modules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_getlanguage.o b/modules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_getlanguage.o
new file mode 100755
index 000000000..4db397d63
--- /dev/null
+++ b/modules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_getlanguage.o
Binary files differ
diff --git a/modules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_gettext.o b/modules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_gettext.o
new file mode 100755
index 000000000..29cee918f
--- /dev/null
+++ b/modules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_gettext.o
Binary files differ
diff --git a/modules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_setdefaultlanguage.o b/modules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_setdefaultlanguage.o
new file mode 100755
index 000000000..af5dcd5cc
--- /dev/null
+++ b/modules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_setdefaultlanguage.o
Binary files differ
diff --git a/modules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_setlanguage.o b/modules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_setlanguage.o
new file mode 100755
index 000000000..ce27df1d3
--- /dev/null
+++ b/modules/localization/sci_gateway/c/.libs/libscilocalization_la-sci_setlanguage.o
Binary files differ
diff --git a/modules/localization/sci_gateway/c/gw_localization.c b/modules/localization/sci_gateway/c/gw_localization.c
new file mode 100755
index 000000000..1df69bfe2
--- /dev/null
+++ b/modules/localization/sci_gateway/c/gw_localization.c
@@ -0,0 +1,43 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2005 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#include <string.h>
+#include "gw_localization.h"
+#include "api_scilab.h"
+#include "MALLOC.h"
+#include "callFunctionFromGateway.h"
+/*--------------------------------------------------------------------------*/
+static gw_generic_table Tab[] =
+{
+ {sci_setlanguage, "setlanguage"},
+ {sci_getlanguage, "getlanguage"},
+ {sci_getdefaultlanguage, "getdefaultlanguage"},
+ {sci_gettext, "gettext"},
+ {sci_gettext, "dgettext"},
+ {sci_setdefaultlanguage, "setdefaultlanguage"},
+ {sci_addlocalizationdomain, "addlocalizationdomain"}
+};
+/*--------------------------------------------------------------------------*/
+int gw_localization(void)
+{
+ Rhs = Max(0, Rhs);
+
+ if (pvApiCtx == NULL)
+ {
+ pvApiCtx = (StrCtx*)MALLOC(sizeof(StrCtx));
+ }
+
+ pvApiCtx->pstName = (char*)Tab[Fin - 1].name;
+ callFunctionFromGateway(Tab, SIZE_CURRENT_GENERIC_TABLE(Tab));
+ return 0;
+}
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/sci_gateway/c/libscilocalization_la-gw_localization.lo b/modules/localization/sci_gateway/c/libscilocalization_la-gw_localization.lo
new file mode 100755
index 000000000..d3d8181e9
--- /dev/null
+++ b/modules/localization/sci_gateway/c/libscilocalization_la-gw_localization.lo
@@ -0,0 +1,12 @@
+# sci_gateway/c/libscilocalization_la-gw_localization.lo - a libtool object file
+# Generated by libtool (GNU libtool) 2.4.2
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object='.libs/libscilocalization_la-gw_localization.o'
+
+# Name of the non-PIC object
+non_pic_object=none
+
diff --git a/modules/localization/sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo b/modules/localization/sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo
new file mode 100755
index 000000000..cd397da69
--- /dev/null
+++ b/modules/localization/sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo
@@ -0,0 +1,12 @@
+# sci_gateway/c/libscilocalization_la-sci_addlocalizationdomain.lo - a libtool object file
+# Generated by libtool (GNU libtool) 2.4.2
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object='.libs/libscilocalization_la-sci_addlocalizationdomain.o'
+
+# Name of the non-PIC object
+non_pic_object=none
+
diff --git a/modules/localization/sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo b/modules/localization/sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo
new file mode 100755
index 000000000..e41f8633a
--- /dev/null
+++ b/modules/localization/sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo
@@ -0,0 +1,12 @@
+# sci_gateway/c/libscilocalization_la-sci_getdefaultlanguage.lo - a libtool object file
+# Generated by libtool (GNU libtool) 2.4.2
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object='.libs/libscilocalization_la-sci_getdefaultlanguage.o'
+
+# Name of the non-PIC object
+non_pic_object=none
+
diff --git a/modules/localization/sci_gateway/c/libscilocalization_la-sci_getlanguage.lo b/modules/localization/sci_gateway/c/libscilocalization_la-sci_getlanguage.lo
new file mode 100755
index 000000000..249cad11a
--- /dev/null
+++ b/modules/localization/sci_gateway/c/libscilocalization_la-sci_getlanguage.lo
@@ -0,0 +1,12 @@
+# sci_gateway/c/libscilocalization_la-sci_getlanguage.lo - a libtool object file
+# Generated by libtool (GNU libtool) 2.4.2
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object='.libs/libscilocalization_la-sci_getlanguage.o'
+
+# Name of the non-PIC object
+non_pic_object=none
+
diff --git a/modules/localization/sci_gateway/c/libscilocalization_la-sci_gettext.lo b/modules/localization/sci_gateway/c/libscilocalization_la-sci_gettext.lo
new file mode 100755
index 000000000..ca7ba11e9
--- /dev/null
+++ b/modules/localization/sci_gateway/c/libscilocalization_la-sci_gettext.lo
@@ -0,0 +1,12 @@
+# sci_gateway/c/libscilocalization_la-sci_gettext.lo - a libtool object file
+# Generated by libtool (GNU libtool) 2.4.2
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object='.libs/libscilocalization_la-sci_gettext.o'
+
+# Name of the non-PIC object
+non_pic_object=none
+
diff --git a/modules/localization/sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo b/modules/localization/sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo
new file mode 100755
index 000000000..a8c27f998
--- /dev/null
+++ b/modules/localization/sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo
@@ -0,0 +1,12 @@
+# sci_gateway/c/libscilocalization_la-sci_setdefaultlanguage.lo - a libtool object file
+# Generated by libtool (GNU libtool) 2.4.2
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object='.libs/libscilocalization_la-sci_setdefaultlanguage.o'
+
+# Name of the non-PIC object
+non_pic_object=none
+
diff --git a/modules/localization/sci_gateway/c/libscilocalization_la-sci_setlanguage.lo b/modules/localization/sci_gateway/c/libscilocalization_la-sci_setlanguage.lo
new file mode 100755
index 000000000..bdd4adb60
--- /dev/null
+++ b/modules/localization/sci_gateway/c/libscilocalization_la-sci_setlanguage.lo
@@ -0,0 +1,12 @@
+# sci_gateway/c/libscilocalization_la-sci_setlanguage.lo - a libtool object file
+# Generated by libtool (GNU libtool) 2.4.2
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object='.libs/libscilocalization_la-sci_setlanguage.o'
+
+# Name of the non-PIC object
+non_pic_object=none
+
diff --git a/modules/localization/sci_gateway/c/sci_addlocalizationdomain.c b/modules/localization/sci_gateway/c/sci_addlocalizationdomain.c
new file mode 100755
index 000000000..749c90a5e
--- /dev/null
+++ b/modules/localization/sci_gateway/c/sci_addlocalizationdomain.c
@@ -0,0 +1,115 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2013 - Scilab Enterprises - Antoine ELIAS
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution. The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+*
+*/
+/*--------------------------------------------------------------------------*/
+#include <string.h>
+#include <stdlib.h>
+#include "MALLOC.h"
+#include "localization.h"
+#include "gw_localization.h"
+#include "api_scilab.h"
+#include "Scierror.h"
+#include "strsubst.h"
+#ifdef _MSC_VER
+#include "strdup_windows.h"
+#endif
+#include "freeArrayOfString.h"
+#include "expandPathVariable.h"
+
+int sci_addlocalizationdomain(char *fname, unsigned long fname_len)
+{
+ SciErr sciErr;
+ int* piAddr1 = NULL;
+ char* pstDomain = NULL;
+
+ int* piAddr2 = NULL;
+ char* pstPath = NULL;
+ char* expandedPath = NULL;
+
+ char* pstRet = NULL;
+
+ int iRhs = nbInputArgument(pvApiCtx);
+ int iLhs = nbOutputArgument(pvApiCtx);
+
+
+ CheckInputArgument(pvApiCtx, 2, 2);
+ CheckOutputArgument(pvApiCtx, 1, 1);
+
+ //get domain name
+ sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddr1);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1);
+ return 0;
+ }
+
+ if (isStringType(pvApiCtx, piAddr1) == 0 || isScalar(pvApiCtx, piAddr1) == 0)
+ {
+ Scierror(999, _("%s: Wrong size for input argument #%d: String expected.\n"), fname, 1);
+ return 0;
+ }
+
+ if (getAllocatedSingleString(pvApiCtx, piAddr1, &pstDomain))
+ {
+ Scierror(999, _("%s: Memory allocation error.\n"), fname);
+ return 0;
+ }
+
+ //get domain path
+ sciErr = getVarAddressFromPosition(pvApiCtx, 2, &piAddr2);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 2);
+ return 0;
+ }
+
+ if (isStringType(pvApiCtx, piAddr2) == 0 || isScalar(pvApiCtx, piAddr2) == 0)
+ {
+ Scierror(999, _("%s: Wrong size for input argument #%d: String expected.\n"), fname, 2);
+ return 0;
+ }
+
+ if (getAllocatedSingleString(pvApiCtx, piAddr2, &pstPath))
+ {
+ Scierror(999, _("%s: Memory allocation error.\n"), fname);
+ return 0;
+ }
+
+ expandedPath = expandPathVariable(pstPath);
+ pstRet = bindtextdomain(pstDomain, expandedPath);
+
+ freeAllocatedSingleString(pstPath);
+ FREE(expandedPath);
+
+ if (pstRet == NULL)
+ {
+ Scierror(999, _("%s: Unable to add new domain %s.\n"), fname, pstDomain);
+ freeAllocatedSingleString(pstDomain);
+ return 0;
+ }
+
+ bind_textdomain_codeset (pstDomain, "UTF-8"); /*such that gettext and dgettext return UTF8 string*/
+
+ if (createScalarBoolean(pvApiCtx, iRhs + 1, 1))
+ {
+ Scierror(999, _("%s: Unable to add new domain %s.\n"), fname, pstDomain);
+ freeAllocatedSingleString(pstDomain);
+ return 0;
+ }
+
+ freeAllocatedSingleString(pstDomain);
+
+ AssignOutputVariable(pvApiCtx, 1) = iRhs + 1;
+ ReturnArguments(pvApiCtx);
+ return 0;
+}
diff --git a/modules/localization/sci_gateway/c/sci_getdefaultlanguage.c b/modules/localization/sci_gateway/c/sci_getdefaultlanguage.c
new file mode 100755
index 000000000..2de2ee547
--- /dev/null
+++ b/modules/localization/sci_gateway/c/sci_getdefaultlanguage.c
@@ -0,0 +1,35 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2008 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+#include "gw_localization.h"
+#include "defaultlanguage.h"
+#include "Scierror.h"
+#include "MALLOC.h"
+#include "stack-c.h"
+/*--------------------------------------------------------------------------*/
+int sci_getdefaultlanguage(char *fname, unsigned long fname_len)
+{
+ static int n1 = 0, m1 = 0, l1 = 0;
+
+ CheckRhs(0, 0);
+ CheckLhs(0, 1);
+
+ m1 = (int)strlen(SCILABDEFAULTLANGUAGE);
+ n1 = 1;
+
+ CreateVar( Rhs + 1, STRING_DATATYPE, &m1, &n1, &l1);
+ strcpy(cstk(l1), SCILABDEFAULTLANGUAGE );
+
+ LhsVar(1) = Rhs + 1;
+ PutLhsVar();
+ return 0;
+}
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/sci_gateway/c/sci_getlanguage.c b/modules/localization/sci_gateway/c/sci_getlanguage.c
new file mode 100755
index 000000000..b3d16dddc
--- /dev/null
+++ b/modules/localization/sci_gateway/c/sci_getlanguage.c
@@ -0,0 +1,36 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2008 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+#include "gw_localization.h"
+#include "setgetlanguage.h"
+#include "Scierror.h"
+#include "MALLOC.h"
+#include "stack-c.h"
+/*--------------------------------------------------------------------------*/
+int sci_getlanguage(char *fname, unsigned long fname_len)
+{
+ static int n1, m1;
+ char *Output = NULL;
+
+ CheckRhs(0, 0);
+ CheckLhs(0, 1);
+
+ Output = getlanguage();
+
+ n1 = 1;
+ m1 = (int)strlen(Output);
+ CreateVarFromPtr( Rhs + 1, STRING_DATATYPE, &m1, &n1, &Output);
+ LhsVar(1) = Rhs + 1;
+ PutLhsVar();
+
+ return 0;
+}
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/sci_gateway/c/sci_getlanguagealias.c b/modules/localization/sci_gateway/c/sci_getlanguagealias.c
new file mode 100755
index 000000000..6665785f7
--- /dev/null
+++ b/modules/localization/sci_gateway/c/sci_getlanguagealias.c
@@ -0,0 +1,54 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+/*--------------------------------------------------------------------------*/
+#include "sci_getlanguage.h"
+#include "setgetlanguage.h"
+#include "gw_localization.h"
+#include "MALLOC.h"
+/*--------------------------------------------------------------------------*/
+int C2F(sci_getlanguagealias)(char *fname, unsigned long fname_len)
+{
+ static int l1, n1, m1;
+ char *Output = NULL;
+
+ CheckRhs(0, 0);
+ CheckLhs(0, 1);
+
+ Output = getlanguagealias();
+
+ if (Output)
+ {
+ n1 = 1;
+ CreateVarFromPtr( Rhs + 1, STRING_DATATYPE, (m1 = (int)strlen(Output), &m1), &n1, &Output);
+ LhsVar(1) = Rhs + 1;
+ PutLhsVar();;
+ if (Output)
+ {
+ FREE(Output);
+ Output = NULL;
+ }
+ }
+ else
+ {
+ m1 = 0;
+ n1 = 0;
+ l1 = 0;
+ CreateVar(Rhs + 1, MATRIX_OF_DOUBLE_DATATYPE, &m1, &n1, &l1);
+ LhsVar(1) = Rhs + 1;
+ PutLhsVar();;
+ return 0;
+ }
+
+
+ return 0;
+}
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/sci_gateway/c/sci_getlanguagestable.c b/modules/localization/sci_gateway/c/sci_getlanguagestable.c
new file mode 100755
index 000000000..be2fdad77
--- /dev/null
+++ b/modules/localization/sci_gateway/c/sci_getlanguagestable.c
@@ -0,0 +1,66 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#include "sci_getlanguage.h"
+#include "setgetlanguage.h"
+#include "gw_localization.h"
+#include "tableslanguages.h"
+#include "MALLOC.h"
+/*--------------------------------------------------------------------------*/
+int C2F(sci_getlanguagestable)(char *fname, unsigned long fname_len)
+{
+ static int n1, m1;
+ char **Output = NULL;
+
+ int i = 0;
+
+ CheckRhs(0, 0);
+ CheckLhs(0, 1);
+
+ Output = (char**)MALLOC(sizeof(char*) * 2 * NumberLanguages);
+
+ for (i = 0; i < NumberLanguages; i++)
+ {
+ char *alphacode = NULL;
+ char *language = NULL;
+
+ alphacode = (char*)MALLOC((strlen(LANGUAGE_COUNTRY_TAB[i].alphacode) + 1) * sizeof(char));
+ strcpy(alphacode, LANGUAGE_COUNTRY_TAB[i].alphacode);
+
+ language = (char*)MALLOC((strlen(LANGUAGE_COUNTRY_TAB[i].languagedescription) + 1) * sizeof(char));
+ strcpy(language, LANGUAGE_COUNTRY_TAB[i].languagedescription);
+
+ Output[i] = alphacode;
+ Output[NumberLanguages + i] = language;
+
+ }
+
+ m1 = NumberLanguages;
+ n1 = 2;
+ CreateVarFromPtr( Rhs + 1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, Output);
+ LhsVar(1) = Rhs + 1;
+ PutLhsVar();;
+
+ if (Output)
+ {
+ for (i = 0; i < NumberLanguages; i++)
+ {
+ FREE(Output[i]);
+ Output[i] = NULL;
+ FREE(Output[NumberLanguages + i]);
+ Output[NumberLanguages + i] = NULL;
+ }
+ }
+
+ return 0;
+}
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/sci_gateway/c/sci_gettext.c b/modules/localization/sci_gateway/c/sci_gettext.c
new file mode 100755
index 000000000..760091a61
--- /dev/null
+++ b/modules/localization/sci_gateway/c/sci_gettext.c
@@ -0,0 +1,277 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2008 - INRIA - Sylvestre LEDRU
+* Copyright (C) 2009-2012 - DIGITEO - Allan CORNET
+* Copyright (C) 2013 - Scilab Enterprises - Antoine ELIAS
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution. The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+*
+*/
+#include <string.h>
+#include <stdlib.h>
+#include "MALLOC.h"
+#include "localization.h"
+#include "gw_localization.h"
+#include "api_scilab.h"
+#include "Scierror.h"
+#include "strsubst.h"
+#ifdef _MSC_VER
+#include "strdup_windows.h"
+#endif
+#include "freeArrayOfString.h"
+
+/*--------------------------------------------------------------------------*/
+static char *convertString_dgettext(const char *domain, const char *pStr);
+/*--------------------------------------------------------------------------*/
+int sci_gettext(char *fname, unsigned long fname_len)
+{
+ SciErr sciErr;
+ int *piAddressVarOne = NULL;
+ char* pstDomain = NULL;
+ char **TranslatedStrings = NULL;
+ int m = 0;
+ int n = 0;
+ char **StringsToTranslate = NULL;
+ int i = 0;
+
+ int iCurrentRhs = 1;
+
+ int iRhs = nbInputArgument(pvApiCtx);
+ int iLhs = nbOutputArgument(pvApiCtx);
+
+ CheckInputArgument(pvApiCtx, 1, 2);
+ CheckOutputArgument(pvApiCtx, 0, 1);
+
+ if (iRhs == 2)
+ {
+ //get domain name
+ sciErr = getVarAddressFromPosition(pvApiCtx, iCurrentRhs, &piAddressVarOne);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, iCurrentRhs);
+ }
+
+ if (isStringType(pvApiCtx, piAddressVarOne) == 0 || isScalar(pvApiCtx, piAddressVarOne) == 0)
+ {
+ Scierror(999, _("%s: Wrong size for input argument #%d: String expected.\n"), fname, iCurrentRhs);
+ return 0;
+ }
+
+ if (getAllocatedSingleString(pvApiCtx, piAddressVarOne, &pstDomain))
+ {
+ Scierror(999, _("%s: No more memory.\n"), fname);
+ return 0;
+ }
+
+ iCurrentRhs++;
+ }
+
+ sciErr = getVarAddressFromPosition(pvApiCtx, iCurrentRhs, &piAddressVarOne);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, iCurrentRhs);
+ }
+
+ if (isStringType(pvApiCtx, piAddressVarOne) == 0)
+ {
+ Scierror(999, _("%s: Wrong type for input argument #%d: String expected.\n"), fname, 1);
+ return 0;
+ }
+
+ if (getAllocatedMatrixOfString(pvApiCtx, piAddressVarOne, &m, &n, &StringsToTranslate) != 0)
+ {
+ Scierror(999, _("%s: No more memory.\n"), fname);
+ return 0;
+ }
+
+ TranslatedStrings = (char **)MALLOC(sizeof(char*) * (m * n));
+ if (TranslatedStrings == NULL)
+ {
+ freeAllocatedMatrixOfString(m, n, StringsToTranslate);
+ StringsToTranslate = NULL;
+ Scierror(999, _("%s: No more memory.\n"), fname);
+ return 0;
+ }
+
+ for (i = 0; i < m * n; i++)
+ {
+ if (strcmp(StringsToTranslate[i], "") == 0)
+ {
+ TranslatedStrings[i] = strdup("");
+ }
+ else
+ {
+ //if pstDomain is NULL, default domain will be use
+ TranslatedStrings[i] = convertString_dgettext(pstDomain, StringsToTranslate[i]);
+ }
+ }
+
+ freeAllocatedMatrixOfString(m, n, StringsToTranslate);
+ StringsToTranslate = NULL;
+
+ sciErr = createMatrixOfString(pvApiCtx, Rhs + 1, m, n, TranslatedStrings);
+ freeArrayOfString(TranslatedStrings, m * n);
+ TranslatedStrings = NULL;
+
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ Scierror(999, _("%s: Memory allocation error.\n"), fname);
+ return 0;
+ }
+
+ LhsVar(1) = Rhs + 1;
+ PutLhsVar();
+ return 0;
+}
+/*--------------------------------------------------------------------------*/
+static char *convertString_dgettext(const char *domain, const char *pStr)
+{
+ char *pStrConverted = NULL;
+
+ if (pStr)
+ {
+ BOOL revertStrsub = FALSE;
+ char *TranslatedString = NULL;
+ char *tmpStr = NULL;
+ if (strchr(pStr, '\\') != NULL)
+ {
+ char *tmpStr1 = NULL;
+ char *tmpStr2 = NULL;
+ /* There is an \ in the string process to replace */
+
+ /* We always have something from this functions because gettext
+ * is returning the same string if it cannot find it */
+
+ tmpStr1 = strsub((char*)pStr, "\\n", "\n"); /* linefeed */
+ tmpStr2 = strsub(tmpStr1, "\\t", "\t"); /* horizontal tab */
+ if (tmpStr1)
+ {
+ FREE(tmpStr1);
+ tmpStr1 = NULL;
+ }
+
+ tmpStr1 = strsub(tmpStr2, "\\r", "\r"); /* carriage return */
+ if (tmpStr2)
+ {
+ FREE(tmpStr2);
+ tmpStr2 = NULL;
+ }
+
+ tmpStr2 = strsub(tmpStr1, "\\v", "\v"); /* vertical tab */
+ if (tmpStr1)
+ {
+ FREE(tmpStr1);
+ tmpStr1 = NULL;
+ }
+
+ tmpStr1 = strsub(tmpStr2, "\\f", "\f"); /* form feed */
+ if (tmpStr2)
+ {
+ FREE(tmpStr2);
+ tmpStr2 = NULL;
+ }
+
+ tmpStr2 = strsub(tmpStr1, "\\\\", "\\"); /* backslash */
+ if (tmpStr1)
+ {
+ FREE(tmpStr1);
+ tmpStr1 = NULL;
+ }
+
+ tmpStr1 = strsub(tmpStr2, "\\\"", "\""); /* double quote */
+ if (tmpStr2)
+ {
+ FREE(tmpStr2);
+ tmpStr2 = NULL;
+ }
+
+ revertStrsub = TRUE;
+ tmpStr = strdup(tmpStr1);
+ if (tmpStr1)
+ {
+ FREE(tmpStr1);
+ tmpStr1 = NULL;
+ }
+ }
+ else
+ {
+ revertStrsub = FALSE;
+ tmpStr = strdup(pStr);
+ }
+
+ TranslatedString = strdup(dgettext(domain, tmpStr));
+ if (tmpStr)
+ {
+ FREE(tmpStr);
+ tmpStr = NULL;
+ }
+
+ /* Add removed slashes */
+ if (revertStrsub)
+ {
+ char *tmpStr1 = NULL;
+ char *tmpStr2 = NULL;
+
+ tmpStr1 = strsub(TranslatedString, "\\", "\\\\"); /* backslash */
+
+ tmpStr2 = strsub(tmpStr1, "\f", "\\f"); /* form feed */
+ if (tmpStr1)
+ {
+ FREE(tmpStr1);
+ tmpStr1 = NULL;
+ }
+
+ tmpStr1 = strsub(tmpStr2, "\n", "\\n"); /* linefeed */
+ if (tmpStr2)
+ {
+ FREE(tmpStr2);
+ tmpStr2 = NULL;
+ }
+
+ tmpStr2 = strsub(tmpStr1, "\t", "\\t"); /* horizontal tab */
+ if (tmpStr1)
+ {
+ FREE(tmpStr1);
+ tmpStr1 = NULL;
+ }
+
+ tmpStr1 = strsub(tmpStr2, "\r", "\\r"); /* carriage return */
+ if (tmpStr2)
+ {
+ FREE(tmpStr2);
+ tmpStr2 = NULL;
+ }
+
+ tmpStr2 = strsub(tmpStr1, "\v", "\\v"); /* vertical tab */
+ if (tmpStr1)
+ {
+ FREE(tmpStr1);
+ tmpStr1 = NULL;
+ }
+
+ if (TranslatedString)
+ {
+ FREE(TranslatedString);
+ TranslatedString = NULL;
+ }
+
+ TranslatedString = strdup(tmpStr2);
+
+ if (tmpStr2)
+ {
+ FREE(tmpStr2);
+ tmpStr2 = NULL;
+ }
+ }
+ pStrConverted = TranslatedString;
+ }
+ return pStrConverted;
+}
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/sci_gateway/c/sci_setdefaultlanguage.c b/modules/localization/sci_gateway/c/sci_setdefaultlanguage.c
new file mode 100755
index 000000000..b2a05ee31
--- /dev/null
+++ b/modules/localization/sci_gateway/c/sci_setdefaultlanguage.c
@@ -0,0 +1,190 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2008 - DIGITEO - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#include "gw_localization.h"
+#include "stack-c.h"
+#include "warningmode.h"
+#include "localization.h"
+#include "sciprint.h"
+#ifdef _MSC_VER
+#include "MALLOC.h"
+#include "Scierror.h"
+#include "strdup_windows.h"
+#include "BOOL.h"
+#include "setgetlanguage.h"
+#include "LanguagePreferences_Windows.h"
+#endif
+/*--------------------------------------------------------------------------*/
+#ifdef _MSC_VER
+static char *getLanguageFromAlias(char *alias);
+#endif
+/*--------------------------------------------------------------------------*/
+int sci_setdefaultlanguage(char *fname, unsigned long fname_len)
+{
+ int n1 = 0, m1 = 0, l1 = 0;
+
+ CheckRhs(1, 1);
+ CheckLhs(1, 1);
+#ifndef _MSC_VER
+ {
+ if (getWarningMode())
+ {
+ sciprint(_("%s: This feature is only used on Windows.\n"), fname);
+ }
+ m1 = 1;
+ n1 = 1;
+ CreateVar(Rhs + 1, MATRIX_OF_BOOLEAN_DATATYPE, &m1, &n1, &l1);
+ *istk(l1) = (int)(FALSE);
+
+ LhsVar(1) = Rhs + 1;
+ PutLhsVar();
+ }
+#else
+ {
+ if (GetType(1) == sci_strings)
+ {
+ char *newlang = NULL;
+ GetRhsVar(1, STRING_DATATYPE, &m1, &n1, &l1);
+ newlang = getLanguageFromAlias( cstk(l1) );
+
+ if ( !isValidLanguage(newlang) )
+ {
+ if ( getWarningMode() )
+ {
+ sciprint(_("Unsupported language '%s'.\n"), newlang);
+ }
+ m1 = 1;
+ n1 = 1;
+ CreateVar(Rhs + 1, MATRIX_OF_BOOLEAN_DATATYPE, &n1, &n1, &l1);
+ *istk(l1) = (int)(FALSE);
+ if (newlang)
+ {
+ FREE(newlang);
+ newlang = NULL;
+ }
+ LhsVar(1) = Rhs + 1;
+ PutLhsVar();
+ return 0;
+ }
+ else
+ {
+ char *savedLanguage = getLanguagePreferences();
+ if ( strcmp(newlang, savedLanguage) == 0 )
+ {
+ /* do nothing */
+ m1 = 1;
+ n1 = 1;
+ CreateVar(Rhs + 1, MATRIX_OF_BOOLEAN_DATATYPE, &n1, &n1, &l1);
+ *istk(l1) = (int)(TRUE);
+ LhsVar(1) = Rhs + 1;
+ if (newlang)
+ {
+ FREE(newlang);
+ newlang = NULL;
+ }
+ if (savedLanguage)
+ {
+ FREE(savedLanguage);
+ savedLanguage = NULL;
+ }
+ PutLhsVar();
+ return 0;
+ }
+ else
+ {
+ if (savedLanguage)
+ {
+ FREE(savedLanguage);
+ savedLanguage = NULL;
+ }
+ if ( !setlanguage(newlang) ) /* */
+ {
+ m1 = 1;
+ n1 = 1;
+ CreateVar(Rhs + 1, MATRIX_OF_BOOLEAN_DATATYPE, &n1, &n1, &l1);
+ *istk(l1) = (int)(FALSE);
+ LhsVar(1) = Rhs + 1;
+ if (newlang)
+ {
+ FREE(newlang);
+ newlang = NULL;
+ }
+ PutLhsVar();
+
+ return 0;
+ }
+ else
+ {
+ if ( getWarningMode() )
+ {
+ sciprint("\n");
+ sciprint(_("The language for menus cannot be changed on a running console.\n"));
+ sciprint(_("Restart Scilab to apply to menus.\n"));
+ }
+
+ m1 = 1;
+ n1 = 1;
+ CreateVar(Rhs + 1, MATRIX_OF_BOOLEAN_DATATYPE, &n1, &n1, &l1);
+
+ if ( setLanguagePreferences() )
+ {
+ *istk(l1) = (int)TRUE;
+ }
+ else
+ {
+ *istk(l1) = (int)FALSE;
+ }
+ if (newlang)
+ {
+ FREE(newlang);
+ newlang = NULL;
+ }
+ LhsVar(1) = Rhs + 1;
+ PutLhsVar();
+ return 0;
+ }
+ }
+ }
+ }
+ else
+ {
+ Scierror(999, _("%s: Wrong type for first input argument: String expected.\n"), fname);
+ }
+ }
+#endif
+
+ return 0;
+}
+/*--------------------------------------------------------------------------*/
+#ifdef _MSC_VER
+static char *getLanguageFromAlias(char *alias)
+{
+ if (alias)
+ {
+ if ( strcmp(alias, "en") == 0 )
+ {
+ return strdup("en_US");
+ }
+
+ if ( strcmp(alias, "fr") == 0 )
+ {
+ return strdup("fr_FR");
+ }
+
+ return strdup(alias);
+ }
+
+ /* "" value fixed by system */
+ return strdup("");
+}
+/*--------------------------------------------------------------------------*/
+#endif
diff --git a/modules/localization/sci_gateway/c/sci_setlanguage.c b/modules/localization/sci_gateway/c/sci_setlanguage.c
new file mode 100755
index 000000000..716dc9430
--- /dev/null
+++ b/modules/localization/sci_gateway/c/sci_setlanguage.c
@@ -0,0 +1,114 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007/2008 - INRIA - Sylvestre LEDRU
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#include "gw_localization.h"
+#include "setgetlanguage.h"
+#include "Scierror.h"
+#include "sciprint.h"
+#include "warningmode.h"
+#include "defaultlanguage.h"
+#include "MALLOC.h"
+#include "loadhashtableslocalization.h"
+#include "localization.h"
+#include "stack-c.h"
+/*--------------------------------------------------------------------------*/
+int sci_setlanguage(char *fname, unsigned long fname_len)
+{
+ static int l1, n1, m1;
+
+ CheckRhs(0, 1);
+ CheckLhs(1, 1);
+
+ if (GetType(1) == sci_strings)
+ {
+ char *param = NULL;
+ char *newlanguage = NULL;
+
+ GetRhsVar(1, STRING_DATATYPE, &m1, &n1, &l1);
+ param = cstk(l1);
+ /* Convert small code to long code fr => fr_FR */
+ newlanguage = convertlanguagealias(param);
+
+ if ( !LanguageIsOK(param) && (newlanguage == NULL) )
+ {
+ if (getWarningMode())
+ {
+ if (newlanguage == NULL)
+ {
+ sciprint(_("%s: Unsupported language '%s'.\n"), fname, param);
+ }
+ else
+ {
+ sciprint(_("%s: Unsupported language '%s'.\n"), fname, newlanguage);
+ }
+ }
+
+ CreateVar(Rhs + 1, MATRIX_OF_BOOLEAN_DATATYPE, &n1, &n1, &l1);
+ *istk(l1) = (int)(FALSE);
+ if (newlanguage)
+ {
+ FREE(newlanguage);
+ newlanguage = NULL;
+ }
+
+ LhsVar(1) = Rhs + 1;
+ PutLhsVar();
+ return 0;
+ }
+
+ if (newlanguage)
+ {
+ if (needtochangelanguage(newlanguage))
+ {
+ if (!setlanguage(newlanguage))
+ {
+ CreateVar(Rhs + 1, MATRIX_OF_BOOLEAN_DATATYPE, &n1, &n1, &l1);
+ *istk(l1) = (int)(FALSE);
+ }
+ else
+ {
+ CreateVar(Rhs + 1, MATRIX_OF_BOOLEAN_DATATYPE, &n1, &n1, &l1);
+ *istk(l1) = (int)(TRUE);
+ }
+ }
+ else
+ {
+ /* do nothing */
+ CreateVar(Rhs + 1, MATRIX_OF_BOOLEAN_DATATYPE, &n1, &n1, &l1);
+ *istk(l1) = (int)(TRUE);
+ }
+ }
+ else
+ {
+ if (getWarningMode())
+ {
+ sciprint(_("Unsupported language '%s'.\n"), param);
+ sciprint(_("Switching to default language : '%s'.\n"), SCILABDEFAULTLANGUAGE);
+ }
+ setlanguage(SCILABDEFAULTLANGUAGE);
+
+ CreateVar(Rhs + 1, MATRIX_OF_BOOLEAN_DATATYPE, &n1, &n1, &l1);
+ *istk(l1) = (int)(FALSE);
+ }
+ LhsVar(1) = Rhs + 1;
+ PutLhsVar();
+ }
+ else
+ {
+ Scierror(999, _("%s: Wrong type for input argument #%d: String expected.\n"), fname, 1);
+ return 0;
+ }
+
+ return 0;
+}
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/sci_gateway/localization_gateway.xml b/modules/localization/sci_gateway/localization_gateway.xml
new file mode 100755
index 000000000..91772f4e6
--- /dev/null
+++ b/modules/localization/sci_gateway/localization_gateway.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<!DOCTYPE GATEWAY SYSTEM "../../functions/xml/gateway.dtd">
+<GATEWAY name="localization">
+ <!--
+ Scilab
+ Interface description. In this file, we define the list of the function which
+ will be available into Scilab and the link to the "native" function.
+
+ gatewayId is the position in the hashtable 'Interfaces' defined in the
+ file SCI/modules/core/src/c/callinterf.h
+
+ primitiveId is the position in the hashtable '<module>Table Tab[]' defined
+ in the file modules/<module>/sci_gateway/c/gw_<module>.c
+
+ primitiveName is the name of the Scilab function
+
+ Don't touch if you do not know what you are doing
+-->
+
+ <PRIMITIVE gatewayId="50" primitiveId="1" primitiveName="setlanguage" />
+ <PRIMITIVE gatewayId="50" primitiveId="2" primitiveName="getlanguage" />
+ <PRIMITIVE gatewayId="50" primitiveId="3" primitiveName="getdefaultlanguage" />
+ <PRIMITIVE gatewayId="50" primitiveId="4" primitiveName="gettext" />
+ <PRIMITIVE gatewayId="50" primitiveId="4" primitiveName="_" />
+ <PRIMITIVE gatewayId="50" primitiveId="5" primitiveName="dgettext" />
+ <PRIMITIVE gatewayId="50" primitiveId="5" primitiveName="_d" />
+ <PRIMITIVE gatewayId="50" primitiveId="6" primitiveName="setdefaultlanguage" />
+ <PRIMITIVE gatewayId="50" primitiveId="7" primitiveName="addlocalizationdomain" />
+</GATEWAY>
diff --git a/modules/localization/src/c/.deps/.dirstamp b/modules/localization/src/c/.deps/.dirstamp
new file mode 100755
index 000000000..e69de29bb
--- /dev/null
+++ b/modules/localization/src/c/.deps/.dirstamp
diff --git a/modules/localization/src/c/.deps/libscilocalization_algo_la-InitializeLocalization.Plo b/modules/localization/src/c/.deps/libscilocalization_algo_la-InitializeLocalization.Plo
new file mode 100755
index 000000000..11ab00f40
--- /dev/null
+++ b/modules/localization/src/c/.deps/libscilocalization_algo_la-InitializeLocalization.Plo
@@ -0,0 +1,173 @@
+src/c/libscilocalization_algo_la-InitializeLocalization.lo: \
+ src/c/InitializeLocalization.c /usr/include/stdc-predef.h \
+ /usr/include/stdio.h /usr/include/features.h \
+ /usr/include/x86_64-linux-gnu/sys/cdefs.h \
+ /usr/include/x86_64-linux-gnu/bits/wordsize.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \
+ /usr/include/x86_64-linux-gnu/bits/types.h \
+ /usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/libio.h \
+ /usr/include/_G_config.h /usr/include/wchar.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \
+ /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/string.h \
+ /usr/include/xlocale.h /usr/include/x86_64-linux-gnu/bits/string.h \
+ /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \
+ /usr/include/x86_64-linux-gnu/bits/string3.h \
+ /usr/include/x86_64-linux-gnu/bits/waitflags.h \
+ /usr/include/x86_64-linux-gnu/bits/waitstatus.h \
+ /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \
+ /usr/include/x86_64-linux-gnu/sys/select.h \
+ /usr/include/x86_64-linux-gnu/bits/select.h \
+ /usr/include/x86_64-linux-gnu/bits/sigset.h \
+ /usr/include/x86_64-linux-gnu/bits/time.h \
+ /usr/include/x86_64-linux-gnu/bits/select2.h \
+ /usr/include/x86_64-linux-gnu/sys/sysmacros.h \
+ /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib.h \
+ ../../modules/core/includes/machine.h /usr/include/libintl.h \
+ /usr/include/locale.h /usr/include/x86_64-linux-gnu/bits/locale.h \
+ ../../modules/core/includes/MALLOC.h \
+ ../../modules/core/includes/sci_mem_alloc.h \
+ includes/InitializeLocalization.h includes/dynlib_localization.h \
+ ../../modules/core/includes/BOOL.h includes/localization.h \
+ ../../modules/core/includes/setgetSCIpath.h \
+ /usr/include/x86_64-linux-gnu/bits/wchar.h \
+ /usr/include/x86_64-linux-gnu/bits/wchar2.h \
+ ../../modules/core/includes/inisci-c.h \
+ ../../modules/core/includes/machine.h \
+ ../../modules/core/includes/scilabDefaults.h includes/setgetlanguage.h \
+ ../../modules/fileio/includes/isdir.h \
+ ../../modules/fileio/includes/dynlib_fileio.h
+
+/usr/include/stdc-predef.h:
+
+/usr/include/stdio.h:
+
+/usr/include/features.h:
+
+/usr/include/x86_64-linux-gnu/sys/cdefs.h:
+
+/usr/include/x86_64-linux-gnu/bits/wordsize.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs-64.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:
+
+/usr/include/x86_64-linux-gnu/bits/types.h:
+
+/usr/include/x86_64-linux-gnu/bits/typesizes.h:
+
+/usr/include/libio.h:
+
+/usr/include/_G_config.h:
+
+/usr/include/wchar.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio_lim.h:
+
+/usr/include/x86_64-linux-gnu/bits/sys_errlist.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio2.h:
+
+/usr/include/string.h:
+
+/usr/include/xlocale.h:
+
+/usr/include/x86_64-linux-gnu/bits/string.h:
+
+/usr/include/x86_64-linux-gnu/bits/string2.h:
+
+/usr/include/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap-16.h:
+
+/usr/include/stdlib.h:
+
+/usr/include/x86_64-linux-gnu/bits/string3.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitflags.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitstatus.h:
+
+/usr/include/x86_64-linux-gnu/sys/types.h:
+
+/usr/include/time.h:
+
+/usr/include/x86_64-linux-gnu/sys/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/sigset.h:
+
+/usr/include/x86_64-linux-gnu/bits/time.h:
+
+/usr/include/x86_64-linux-gnu/bits/select2.h:
+
+/usr/include/x86_64-linux-gnu/sys/sysmacros.h:
+
+/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:
+
+/usr/include/alloca.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib.h:
+
+../../modules/core/includes/machine.h:
+
+/usr/include/libintl.h:
+
+/usr/include/locale.h:
+
+/usr/include/x86_64-linux-gnu/bits/locale.h:
+
+../../modules/core/includes/MALLOC.h:
+
+../../modules/core/includes/sci_mem_alloc.h:
+
+includes/InitializeLocalization.h:
+
+includes/dynlib_localization.h:
+
+../../modules/core/includes/BOOL.h:
+
+includes/localization.h:
+
+../../modules/core/includes/setgetSCIpath.h:
+
+/usr/include/x86_64-linux-gnu/bits/wchar.h:
+
+/usr/include/x86_64-linux-gnu/bits/wchar2.h:
+
+../../modules/core/includes/inisci-c.h:
+
+../../modules/core/includes/machine.h:
+
+../../modules/core/includes/scilabDefaults.h:
+
+includes/setgetlanguage.h:
+
+../../modules/fileio/includes/isdir.h:
+
+../../modules/fileio/includes/dynlib_fileio.h:
diff --git a/modules/localization/src/c/.deps/libscilocalization_algo_la-charEncoding.Plo b/modules/localization/src/c/.deps/libscilocalization_algo_la-charEncoding.Plo
new file mode 100755
index 000000000..abdf2b2d2
--- /dev/null
+++ b/modules/localization/src/c/.deps/libscilocalization_algo_la-charEncoding.Plo
@@ -0,0 +1,150 @@
+src/c/libscilocalization_algo_la-charEncoding.lo: src/c/charEncoding.c \
+ /usr/include/stdc-predef.h /usr/include/wctype.h /usr/include/features.h \
+ /usr/include/x86_64-linux-gnu/sys/cdefs.h \
+ /usr/include/x86_64-linux-gnu/bits/wordsize.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \
+ /usr/include/x86_64-linux-gnu/bits/types.h \
+ /usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/wchar.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/xlocale.h \
+ /usr/include/stdlib.h /usr/include/x86_64-linux-gnu/bits/waitflags.h \
+ /usr/include/x86_64-linux-gnu/bits/waitstatus.h \
+ /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \
+ /usr/include/x86_64-linux-gnu/sys/select.h \
+ /usr/include/x86_64-linux-gnu/bits/select.h \
+ /usr/include/x86_64-linux-gnu/bits/sigset.h \
+ /usr/include/x86_64-linux-gnu/bits/time.h \
+ /usr/include/x86_64-linux-gnu/bits/select2.h \
+ /usr/include/x86_64-linux-gnu/sys/sysmacros.h \
+ /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib.h /usr/include/stdio.h \
+ /usr/include/libio.h /usr/include/_G_config.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \
+ /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/string.h \
+ /usr/include/x86_64-linux-gnu/bits/string.h \
+ /usr/include/x86_64-linux-gnu/bits/string2.h \
+ /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/locale.h \
+ /usr/include/x86_64-linux-gnu/bits/locale.h includes/charEncoding.h \
+ /usr/include/x86_64-linux-gnu/bits/wchar.h \
+ /usr/include/x86_64-linux-gnu/bits/wchar2.h \
+ /usr/include/x86_64-linux-gnu/sys/stat.h \
+ /usr/include/x86_64-linux-gnu/bits/stat.h \
+ ../../modules/core/includes/MALLOC.h \
+ ../../modules/core/includes/sci_mem_alloc.h \
+ ../../modules/core/includes/BOOL.h
+
+/usr/include/stdc-predef.h:
+
+/usr/include/wctype.h:
+
+/usr/include/features.h:
+
+/usr/include/x86_64-linux-gnu/sys/cdefs.h:
+
+/usr/include/x86_64-linux-gnu/bits/wordsize.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs-64.h:
+
+/usr/include/x86_64-linux-gnu/bits/types.h:
+
+/usr/include/x86_64-linux-gnu/bits/typesizes.h:
+
+/usr/include/wchar.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:
+
+/usr/include/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap-16.h:
+
+/usr/include/xlocale.h:
+
+/usr/include/stdlib.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitflags.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitstatus.h:
+
+/usr/include/x86_64-linux-gnu/sys/types.h:
+
+/usr/include/time.h:
+
+/usr/include/x86_64-linux-gnu/sys/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/sigset.h:
+
+/usr/include/x86_64-linux-gnu/bits/time.h:
+
+/usr/include/x86_64-linux-gnu/bits/select2.h:
+
+/usr/include/x86_64-linux-gnu/sys/sysmacros.h:
+
+/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:
+
+/usr/include/alloca.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib.h:
+
+/usr/include/stdio.h:
+
+/usr/include/libio.h:
+
+/usr/include/_G_config.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio_lim.h:
+
+/usr/include/x86_64-linux-gnu/bits/sys_errlist.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio2.h:
+
+/usr/include/string.h:
+
+/usr/include/x86_64-linux-gnu/bits/string.h:
+
+/usr/include/x86_64-linux-gnu/bits/string2.h:
+
+/usr/include/x86_64-linux-gnu/bits/string3.h:
+
+/usr/include/locale.h:
+
+/usr/include/x86_64-linux-gnu/bits/locale.h:
+
+includes/charEncoding.h:
+
+/usr/include/x86_64-linux-gnu/bits/wchar.h:
+
+/usr/include/x86_64-linux-gnu/bits/wchar2.h:
+
+/usr/include/x86_64-linux-gnu/sys/stat.h:
+
+/usr/include/x86_64-linux-gnu/bits/stat.h:
+
+../../modules/core/includes/MALLOC.h:
+
+../../modules/core/includes/sci_mem_alloc.h:
+
+../../modules/core/includes/BOOL.h:
diff --git a/modules/localization/src/c/.deps/libscilocalization_algo_la-getLcidString.Plo b/modules/localization/src/c/.deps/libscilocalization_algo_la-getLcidString.Plo
new file mode 100755
index 000000000..2830f79d6
--- /dev/null
+++ b/modules/localization/src/c/.deps/libscilocalization_algo_la-getLcidString.Plo
@@ -0,0 +1,151 @@
+src/c/libscilocalization_algo_la-getLcidString.lo: src/c/getLcidString.c \
+ /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \
+ /usr/include/x86_64-linux-gnu/sys/cdefs.h \
+ /usr/include/x86_64-linux-gnu/bits/wordsize.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \
+ /usr/include/x86_64-linux-gnu/bits/string.h \
+ /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap.h \
+ /usr/include/x86_64-linux-gnu/bits/types.h \
+ /usr/include/x86_64-linux-gnu/bits/typesizes.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \
+ /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \
+ /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \
+ /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio2.h src/c/getLcidString.h \
+ ../../modules/core/includes/MALLOC.h \
+ ../../modules/core/includes/sci_mem_alloc.h \
+ /usr/include/x86_64-linux-gnu/bits/waitflags.h \
+ /usr/include/x86_64-linux-gnu/bits/waitstatus.h \
+ /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \
+ /usr/include/x86_64-linux-gnu/sys/select.h \
+ /usr/include/x86_64-linux-gnu/bits/select.h \
+ /usr/include/x86_64-linux-gnu/bits/sigset.h \
+ /usr/include/x86_64-linux-gnu/bits/time.h \
+ /usr/include/x86_64-linux-gnu/bits/select2.h \
+ /usr/include/x86_64-linux-gnu/sys/sysmacros.h \
+ /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib.h includes/charEncoding.h \
+ /usr/include/x86_64-linux-gnu/bits/wchar.h \
+ /usr/include/x86_64-linux-gnu/bits/wchar2.h \
+ /usr/include/x86_64-linux-gnu/sys/stat.h \
+ /usr/include/x86_64-linux-gnu/bits/stat.h \
+ ../../modules/core/includes/BOOL.h \
+ ../../modules/core/includes/stack-def.h \
+ ../../modules/core/includes/machine.h
+
+/usr/include/stdc-predef.h:
+
+/usr/include/string.h:
+
+/usr/include/features.h:
+
+/usr/include/x86_64-linux-gnu/sys/cdefs.h:
+
+/usr/include/x86_64-linux-gnu/bits/wordsize.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs-64.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:
+
+/usr/include/xlocale.h:
+
+/usr/include/x86_64-linux-gnu/bits/string.h:
+
+/usr/include/x86_64-linux-gnu/bits/string2.h:
+
+/usr/include/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap.h:
+
+/usr/include/x86_64-linux-gnu/bits/types.h:
+
+/usr/include/x86_64-linux-gnu/bits/typesizes.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap-16.h:
+
+/usr/include/stdlib.h:
+
+/usr/include/x86_64-linux-gnu/bits/string3.h:
+
+/usr/include/stdio.h:
+
+/usr/include/libio.h:
+
+/usr/include/_G_config.h:
+
+/usr/include/wchar.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio_lim.h:
+
+/usr/include/x86_64-linux-gnu/bits/sys_errlist.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio2.h:
+
+src/c/getLcidString.h:
+
+../../modules/core/includes/MALLOC.h:
+
+../../modules/core/includes/sci_mem_alloc.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitflags.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitstatus.h:
+
+/usr/include/x86_64-linux-gnu/sys/types.h:
+
+/usr/include/time.h:
+
+/usr/include/x86_64-linux-gnu/sys/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/sigset.h:
+
+/usr/include/x86_64-linux-gnu/bits/time.h:
+
+/usr/include/x86_64-linux-gnu/bits/select2.h:
+
+/usr/include/x86_64-linux-gnu/sys/sysmacros.h:
+
+/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:
+
+/usr/include/alloca.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib.h:
+
+includes/charEncoding.h:
+
+/usr/include/x86_64-linux-gnu/bits/wchar.h:
+
+/usr/include/x86_64-linux-gnu/bits/wchar2.h:
+
+/usr/include/x86_64-linux-gnu/sys/stat.h:
+
+/usr/include/x86_64-linux-gnu/bits/stat.h:
+
+../../modules/core/includes/BOOL.h:
+
+../../modules/core/includes/stack-def.h:
+
+../../modules/core/includes/machine.h:
diff --git a/modules/localization/src/c/.deps/libscilocalization_algo_la-getLocaleInfo_Apple.Plo b/modules/localization/src/c/.deps/libscilocalization_algo_la-getLocaleInfo_Apple.Plo
new file mode 100755
index 000000000..9ce06a81e
--- /dev/null
+++ b/modules/localization/src/c/.deps/libscilocalization_algo_la-getLocaleInfo_Apple.Plo
@@ -0,0 +1 @@
+# dummy
diff --git a/modules/localization/src/c/.deps/libscilocalization_algo_la-setdefaultlanguage.Plo b/modules/localization/src/c/.deps/libscilocalization_algo_la-setdefaultlanguage.Plo
new file mode 100755
index 000000000..1bb0171e7
--- /dev/null
+++ b/modules/localization/src/c/.deps/libscilocalization_algo_la-setdefaultlanguage.Plo
@@ -0,0 +1,4 @@
+src/c/libscilocalization_algo_la-setdefaultlanguage.lo: \
+ src/c/setdefaultlanguage.c /usr/include/stdc-predef.h
+
+/usr/include/stdc-predef.h:
diff --git a/modules/localization/src/c/.deps/libscilocalization_algo_la-setgetlanguage.Plo b/modules/localization/src/c/.deps/libscilocalization_algo_la-setgetlanguage.Plo
new file mode 100755
index 000000000..38283a679
--- /dev/null
+++ b/modules/localization/src/c/.deps/libscilocalization_algo_la-setgetlanguage.Plo
@@ -0,0 +1,154 @@
+src/c/libscilocalization_algo_la-setgetlanguage.lo: \
+ src/c/setgetlanguage.c /usr/include/stdc-predef.h /usr/include/string.h \
+ /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \
+ /usr/include/x86_64-linux-gnu/bits/wordsize.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \
+ /usr/include/x86_64-linux-gnu/bits/string.h \
+ /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap.h \
+ /usr/include/x86_64-linux-gnu/bits/types.h \
+ /usr/include/x86_64-linux-gnu/bits/typesizes.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \
+ /usr/include/x86_64-linux-gnu/bits/string3.h \
+ /usr/include/x86_64-linux-gnu/bits/waitflags.h \
+ /usr/include/x86_64-linux-gnu/bits/waitstatus.h \
+ /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \
+ /usr/include/x86_64-linux-gnu/sys/select.h \
+ /usr/include/x86_64-linux-gnu/bits/select.h \
+ /usr/include/x86_64-linux-gnu/bits/sigset.h \
+ /usr/include/x86_64-linux-gnu/bits/time.h \
+ /usr/include/x86_64-linux-gnu/bits/select2.h \
+ /usr/include/x86_64-linux-gnu/sys/sysmacros.h \
+ /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib.h /usr/include/stdio.h \
+ /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \
+ /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio2.h \
+ ../../modules/core/includes/machine.h /usr/include/libintl.h \
+ /usr/include/locale.h /usr/include/x86_64-linux-gnu/bits/locale.h \
+ includes/setgetlanguage.h ../../modules/core/includes/BOOL.h \
+ ../../modules/core/includes/MALLOC.h \
+ ../../modules/core/includes/sci_mem_alloc.h src/c/tableslanguages.h \
+ src/c/defaultlanguage.h ../../modules/core/includes/scilabDefaults.h \
+ src/c/../../../io/includes/setenvc.h \
+ src/c/../../../io/includes/dynlib_io.h
+
+/usr/include/stdc-predef.h:
+
+/usr/include/string.h:
+
+/usr/include/features.h:
+
+/usr/include/x86_64-linux-gnu/sys/cdefs.h:
+
+/usr/include/x86_64-linux-gnu/bits/wordsize.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs-64.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:
+
+/usr/include/xlocale.h:
+
+/usr/include/x86_64-linux-gnu/bits/string.h:
+
+/usr/include/x86_64-linux-gnu/bits/string2.h:
+
+/usr/include/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap.h:
+
+/usr/include/x86_64-linux-gnu/bits/types.h:
+
+/usr/include/x86_64-linux-gnu/bits/typesizes.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap-16.h:
+
+/usr/include/stdlib.h:
+
+/usr/include/x86_64-linux-gnu/bits/string3.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitflags.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitstatus.h:
+
+/usr/include/x86_64-linux-gnu/sys/types.h:
+
+/usr/include/time.h:
+
+/usr/include/x86_64-linux-gnu/sys/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/sigset.h:
+
+/usr/include/x86_64-linux-gnu/bits/time.h:
+
+/usr/include/x86_64-linux-gnu/bits/select2.h:
+
+/usr/include/x86_64-linux-gnu/sys/sysmacros.h:
+
+/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:
+
+/usr/include/alloca.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib.h:
+
+/usr/include/stdio.h:
+
+/usr/include/libio.h:
+
+/usr/include/_G_config.h:
+
+/usr/include/wchar.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio_lim.h:
+
+/usr/include/x86_64-linux-gnu/bits/sys_errlist.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio2.h:
+
+../../modules/core/includes/machine.h:
+
+/usr/include/libintl.h:
+
+/usr/include/locale.h:
+
+/usr/include/x86_64-linux-gnu/bits/locale.h:
+
+includes/setgetlanguage.h:
+
+../../modules/core/includes/BOOL.h:
+
+../../modules/core/includes/MALLOC.h:
+
+../../modules/core/includes/sci_mem_alloc.h:
+
+src/c/tableslanguages.h:
+
+src/c/defaultlanguage.h:
+
+../../modules/core/includes/scilabDefaults.h:
+
+src/c/../../../io/includes/setenvc.h:
+
+src/c/../../../io/includes/dynlib_io.h:
diff --git a/modules/localization/src/c/.dirstamp b/modules/localization/src/c/.dirstamp
new file mode 100755
index 000000000..e69de29bb
--- /dev/null
+++ b/modules/localization/src/c/.dirstamp
diff --git a/modules/localization/src/c/.libs/libscilocalization_algo_la-InitializeLocalization.o b/modules/localization/src/c/.libs/libscilocalization_algo_la-InitializeLocalization.o
new file mode 100755
index 000000000..7bebc06a5
--- /dev/null
+++ b/modules/localization/src/c/.libs/libscilocalization_algo_la-InitializeLocalization.o
Binary files differ
diff --git a/modules/localization/src/c/.libs/libscilocalization_algo_la-charEncoding.o b/modules/localization/src/c/.libs/libscilocalization_algo_la-charEncoding.o
new file mode 100755
index 000000000..2fa0c8c37
--- /dev/null
+++ b/modules/localization/src/c/.libs/libscilocalization_algo_la-charEncoding.o
Binary files differ
diff --git a/modules/localization/src/c/.libs/libscilocalization_algo_la-getLcidString.o b/modules/localization/src/c/.libs/libscilocalization_algo_la-getLcidString.o
new file mode 100755
index 000000000..ac0b3db2b
--- /dev/null
+++ b/modules/localization/src/c/.libs/libscilocalization_algo_la-getLcidString.o
Binary files differ
diff --git a/modules/localization/src/c/.libs/libscilocalization_algo_la-setdefaultlanguage.o b/modules/localization/src/c/.libs/libscilocalization_algo_la-setdefaultlanguage.o
new file mode 100755
index 000000000..194987bf4
--- /dev/null
+++ b/modules/localization/src/c/.libs/libscilocalization_algo_la-setdefaultlanguage.o
Binary files differ
diff --git a/modules/localization/src/c/.libs/libscilocalization_algo_la-setgetlanguage.o b/modules/localization/src/c/.libs/libscilocalization_algo_la-setgetlanguage.o
new file mode 100755
index 000000000..31d5ffdaf
--- /dev/null
+++ b/modules/localization/src/c/.libs/libscilocalization_algo_la-setgetlanguage.o
Binary files differ
diff --git a/modules/localization/src/c/DllmainLocalization.c b/modules/localization/src/c/DllmainLocalization.c
new file mode 100755
index 000000000..3a3febef3
--- /dev/null
+++ b/modules/localization/src/c/DllmainLocalization.c
@@ -0,0 +1,33 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2006 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#include <windows.h>
+/*--------------------------------------------------------------------------*/
+#pragma comment(lib,"../../../bin/libintl.lib")
+/*--------------------------------------------------------------------------*/
+int WINAPI DllMain (HINSTANCE hInstance , DWORD reason, PVOID pvReserved)
+{
+ switch (reason)
+ {
+ case DLL_PROCESS_ATTACH:
+ break;
+ case DLL_PROCESS_DETACH:
+ break;
+ case DLL_THREAD_ATTACH:
+ break;
+ case DLL_THREAD_DETACH:
+ break;
+ }
+ return 1;
+}
+/*--------------------------------------------------------------------------*/
+
diff --git a/modules/localization/src/c/InitializeLocalization.c b/modules/localization/src/c/InitializeLocalization.c
new file mode 100755
index 000000000..138f44c90
--- /dev/null
+++ b/modules/localization/src/c/InitializeLocalization.c
@@ -0,0 +1,178 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2008 - INRIA - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include "machine.h"
+#ifndef _MSC_VER
+#ifdef HAVE_LIBINTL_H
+#include <libintl.h>
+#ifdef HAVE_LOCALE_H
+#include <locale.h>
+#else
+#error "Cannot find locale.h despite that libintl.h is available"
+#endif
+#endif
+#else
+#include <libintl.h>
+#include <locale.h>
+#endif
+
+#include "MALLOC.h"
+#include "InitializeLocalization.h"
+#include "localization.h"
+#include "setgetSCIpath.h"
+#include "inisci-c.h"
+#include "scilabDefaults.h"
+#include "setgetlanguage.h"
+#include "isdir.h"
+#ifdef _MSC_VER
+#include "strdup_windows.h"
+#include "LanguagePreferences_Windows.h"
+#endif
+
+/*--------------------------------------------------------------------------*/
+
+BOOL InitializeLocalization(void)
+{
+#ifdef HAVE_LIBINTL_H
+
+ char *SCIpath = getSCIpath();
+ char *pathLocales = NULL, *previousPathLocales = NULL;
+ char *ret = NULL;
+
+ /* set directory containing message catalogs */
+ pathLocales = (char *)MALLOC(sizeof(char) * (strlen(SCIpath) + strlen(PATHLOCALIZATIONFILE) + 1));
+
+ strcpy(pathLocales, SCIpath);
+ strcat(pathLocales, PATHLOCALIZATIONFILE);
+ if (bindtextdomain(NAMELOCALIZATIONDOMAIN, pathLocales) == NULL || !isdir(pathLocales))
+ {
+ /* source tree and classic build */
+ previousPathLocales = strdup(pathLocales);
+ if (pathLocales)
+ {
+ FREE(pathLocales);
+ pathLocales = NULL;
+ }
+
+ pathLocales = (char *)MALLOC(sizeof(char) * (strlen(SCIpath) + strlen("/..") + strlen(PATHLOCALIZATIONFILE) + 1));
+ strcpy(pathLocales, SCIpath);
+ strcat(pathLocales, "/..");
+ strcat(pathLocales, PATHLOCALIZATIONFILE);
+ if (bindtextdomain(NAMELOCALIZATIONDOMAIN, pathLocales) == NULL || !isdir(pathLocales))
+ {
+ /* when it is installed on the system for example /usr/share/locale/ */
+ fprintf(stderr, "Warning: Localization issue: Error while binding the domain from %s or %s: Switch to the default language (English).\n", pathLocales, previousPathLocales);
+
+ // Set default behaviour
+ textdomain(NAMELOCALIZATIONDOMAIN);
+ bind_textdomain_codeset (NAMELOCALIZATIONDOMAIN, "UTF-8");
+#ifndef _MSC_VER
+ setlanguage("");
+#else
+ /* We look if registry value LANGUAGE exists */
+ /* If not exists the "" means that we will try to use the language of the system.*/
+ {
+ char *loadLanguage = getLanguagePreferences();
+ setlanguage(loadLanguage);
+ if (loadLanguage)
+ {
+ FREE(loadLanguage);
+ loadLanguage = NULL;
+ }
+ }
+#endif
+
+ if (previousPathLocales)
+ {
+ FREE(previousPathLocales);
+ previousPathLocales = NULL;
+ }
+ if (pathLocales)
+ {
+ FREE(pathLocales);
+ pathLocales = NULL;
+ }
+ if (SCIpath)
+ {
+ FREE(SCIpath);
+ SCIpath = NULL;
+ }
+ return FALSE;
+ }
+ if (previousPathLocales)
+ {
+ FREE(previousPathLocales);
+ previousPathLocales = NULL;
+ }
+ if (pathLocales)
+ {
+ FREE(pathLocales);
+ pathLocales = NULL;
+ }
+ if (SCIpath)
+ {
+ FREE(SCIpath);
+ SCIpath = NULL;
+ }
+
+ }
+
+ /* set domain for future gettext() calls */
+ ret = textdomain(NAMELOCALIZATIONDOMAIN);
+ if (ret == NULL)
+ {
+ fprintf(stderr, "Localization: Error while declaring the text domain %s\n", NAMELOCALIZATIONDOMAIN);
+ FREE(pathLocales);
+ return FALSE;
+ }
+ bind_textdomain_codeset (NAMELOCALIZATIONDOMAIN, "UTF-8"); /*such that gettext and dgettext return UTF8 string*/
+#ifndef _MSC_VER
+ /* Here, the "" means that we will try to use the language of the system
+ * first. If it doesn't work, we switch back to default (English) */
+ setlanguage("");
+#else
+ /* We look if registry value LANGUAGE exists */
+ /* If not exists the "" means that we will try to use the language of the system.*/
+ {
+ char *loadLanguage = getLanguagePreferences();
+ setlanguage(loadLanguage);
+ if (loadLanguage)
+ {
+ FREE(loadLanguage);
+ loadLanguage = NULL;
+ }
+ }
+#endif
+
+ if (previousPathLocales)
+ {
+ FREE(previousPathLocales);
+ }
+ if (pathLocales)
+ {
+ FREE(pathLocales);
+ }
+ if (SCIpath)
+ {
+ FREE(SCIpath);
+ }
+
+ return TRUE;
+#else
+ fprintf(stderr, "Localization: setlocale didn't exist on the computer used to compile Scilab ! This is abnormal ! No localization will be working for this distribution of Scilab.\n");
+ return FALSE;
+#endif
+}
+/*--------------------------------------------------------------------------*/
+
diff --git a/modules/localization/src/c/LanguagePreferences_Windows.c b/modules/localization/src/c/LanguagePreferences_Windows.c
new file mode 100755
index 000000000..672245391
--- /dev/null
+++ b/modules/localization/src/c/LanguagePreferences_Windows.c
@@ -0,0 +1,246 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2008-2010 - DIGITEO - Allan CORNET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution. The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+*
+*/
+
+/*--------------------------------------------------------------------------*/
+#include <stdio.h>
+#include <Windows.h>
+#include "LanguagePreferences_Windows.h"
+#include "strdup_windows.h"
+#include "setgetlanguage.h"
+#include "version.h"
+#include "MALLOC.h"
+#include "GetWindowsVersion.h"
+/*--------------------------------------------------------------------------*/
+#define HKCU_LANGUAGE_FORMAT "SOFTWARE\\Scilab\\%s\\Settings" /* r/w registry */
+#define HKCM_LANGUAGE_FORMAT "SOFTWARE\\Scilab\\%s" /* only read registry */
+#define LANGUAGE_ENTRY "LANGUAGE"
+#define DEFAULT_LANGUAGE_VALUE "en_US"
+/*--------------------------------------------------------------------------*/
+static char *languageFromCommandLine = NULL;
+/*--------------------------------------------------------------------------*/
+static char *getLanguagePreferencesCurrentUser(void);
+static char *getLanguagePreferencesAllUsers(void);
+static char *readRegistryLanguage(HKEY hKeyRoot, char *keyString);
+/*--------------------------------------------------------------------------*/
+BOOL isValidLanguage(char *lang)
+{
+ if (lang)
+ {
+ if ( strcmp(lang, "") == 0)
+ {
+ return TRUE;
+ }
+ if ( strcmp(lang, "C") == 0)
+ {
+ return TRUE;
+ }
+ /* xx_XX */
+ if ( ((int) strlen(lang) == 5) && (lang[2] == '_') )
+ {
+ return TRUE;
+ }
+ else if ((strlen(lang) == 2) && (convertlanguagealias(lang)))
+ {
+ return TRUE;
+ }
+ }
+ return FALSE;
+}
+/*--------------------------------------------------------------------------*/
+BOOL setLanguageFromCommandLine(char *lang)
+{
+ if (lang)
+ {
+ if (languageFromCommandLine)
+ {
+ FREE(languageFromCommandLine);
+ languageFromCommandLine = NULL;
+ }
+
+ languageFromCommandLine = strdup(convertlanguagealias(lang));
+
+ return TRUE;
+ }
+ return FALSE;
+}
+/*--------------------------------------------------------------------------*/
+char *getLanguagePreferences(void)
+{
+ char *LanguageUser = NULL;
+
+ if (languageFromCommandLine)
+ {
+ LanguageUser = languageFromCommandLine;
+ }
+ else
+ {
+ LanguageUser = getLanguagePreferencesCurrentUser();
+ }
+
+ if (LanguageUser == NULL)
+ {
+ char *LanguageAllUsers = getLanguagePreferencesAllUsers();
+
+ if (LanguageAllUsers == NULL)
+ {
+ return strdup("");
+ }
+ else
+ {
+ if (isValidLanguage(LanguageAllUsers))
+ {
+ return LanguageAllUsers;
+ }
+ }
+ }
+ else
+ {
+ if (isValidLanguage(LanguageUser))
+ {
+ return LanguageUser;
+ }
+ }
+ return strdup("");
+}
+/*--------------------------------------------------------------------------*/
+static char *readRegistryLanguage(HKEY hKeyRoot, char *keyStringFormat)
+{
+#define LENGTH_LANGUAGE_REGISTRY 64
+ char LANGUAGE_REGISTRY[LENGTH_LANGUAGE_REGISTRY] = DEFAULT_LANGUAGE_VALUE;
+ char *keyString = NULL;
+ int lenkeyString = (int)(strlen(keyStringFormat) + strlen(SCI_VERSION_STRING)) + 1;
+
+ keyString = (char*) MALLOC(sizeof(char) * lenkeyString);
+
+ if (keyString)
+ {
+
+ DWORD OpensKeyOptions = 0;
+ HKEY hKey;
+ int length = LENGTH_LANGUAGE_REGISTRY;
+ wsprintf(keyString, keyStringFormat, SCI_VERSION_STRING);
+#ifdef _WIN64 /* Scilab x64 on x64 windows */
+ OpensKeyOptions = KEY_READ | KEY_WOW64_64KEY;
+#else
+ if (IsWow64()) /* Scilab 32 bits on x64 windows */
+ {
+ OpensKeyOptions = KEY_READ | KEY_WOW64_32KEY;
+ }
+ else /* Scilab 32 bits on windows 32 bits */
+ {
+ OpensKeyOptions = KEY_READ;
+ }
+#endif
+ if ( RegOpenKeyEx(hKeyRoot, keyString, 0, OpensKeyOptions, &hKey) != ERROR_SUCCESS )
+ {
+ RegCloseKey(hKey);
+ if (keyString)
+ {
+ FREE(keyString);
+ keyString = NULL;
+ }
+ return NULL;
+ }
+
+ if ( RegQueryValueEx(hKey, LANGUAGE_ENTRY, 0, NULL , (LPBYTE)LANGUAGE_REGISTRY, &length) != ERROR_SUCCESS )
+ {
+ RegCloseKey(hKey);
+ if (keyString)
+ {
+ FREE(keyString);
+ keyString = NULL;
+ }
+ return NULL;
+ }
+
+ RegCloseKey(hKey);
+ if (keyString)
+ {
+ FREE(keyString);
+ keyString = NULL;
+ }
+ }
+ return strdup(LANGUAGE_REGISTRY);
+}
+/*--------------------------------------------------------------------------*/
+static char *getLanguagePreferencesCurrentUser(void)
+{
+ return readRegistryLanguage(HKEY_CURRENT_USER, HKCU_LANGUAGE_FORMAT);
+}
+/*--------------------------------------------------------------------------*/
+static char *getLanguagePreferencesAllUsers(void)
+{
+ return readRegistryLanguage(HKEY_LOCAL_MACHINE, HKCM_LANGUAGE_FORMAT);
+}
+/*--------------------------------------------------------------------------*/
+BOOL setLanguagePreferences(void)
+{
+ char *LANGUAGE = getlanguage();
+
+ if (LANGUAGE)
+ {
+ char *keyString = NULL;
+ int lenkeyString = (int)(strlen(HKCU_LANGUAGE_FORMAT) + strlen(SCI_VERSION_STRING)) + 1;
+ keyString = (char*) MALLOC(sizeof(char) * lenkeyString);
+ if (keyString)
+ {
+ DWORD OpensKeyOptions = 0;
+ HKEY hKey;
+ DWORD result = 0;
+ wsprintf(keyString, HKCU_LANGUAGE_FORMAT, SCI_VERSION_STRING);
+
+#ifdef _WIN64 /* Scilab x64 on x64 windows */
+ OpensKeyOptions = KEY_ALL_ACCESS | KEY_WOW64_64KEY;
+#else
+ if ( IsWow64() ) /* Scilab 32 bits on x64 windows */
+ {
+ OpensKeyOptions = KEY_ALL_ACCESS | KEY_WOW64_32KEY;
+ }
+ else /* Scilab 32 bits on windows 32 bits */
+ {
+ OpensKeyOptions = KEY_ALL_ACCESS;
+ }
+#endif
+ if ( RegCreateKeyEx(HKEY_CURRENT_USER, keyString, 0, NULL, REG_OPTION_NON_VOLATILE, OpensKeyOptions, NULL, &hKey, &result) != ERROR_SUCCESS)
+ {
+ RegCloseKey(hKey);
+ if (keyString)
+ {
+ FREE(keyString);
+ keyString = NULL;
+ }
+ return FALSE;
+ }
+
+ if ( RegSetValueEx(hKey, LANGUAGE_ENTRY, 0, REG_SZ, (LPBYTE)LANGUAGE, (DWORD)(strlen(LANGUAGE) + 1)) != ERROR_SUCCESS)
+ {
+ RegCloseKey(hKey);
+ if (keyString)
+ {
+ FREE(keyString);
+ keyString = NULL;
+ }
+ return FALSE;
+ }
+
+ RegCloseKey(hKey);
+ if (keyString)
+ {
+ FREE(keyString);
+ keyString = NULL;
+ }
+ return TRUE;
+ }
+ }
+ return FALSE;
+}
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/src/c/LanguagePreferences_Windows.h b/modules/localization/src/c/LanguagePreferences_Windows.h
new file mode 100755
index 000000000..d51f4eba0
--- /dev/null
+++ b/modules/localization/src/c/LanguagePreferences_Windows.h
@@ -0,0 +1,47 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2008-2010 - DIGITEO - Allan CORNET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution. The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+*
+*/
+
+/*--------------------------------------------------------------------------*/
+#ifndef __LANGUAGEPREFERENCES_WINDOWS_H__
+#define __LANGUAGEPREFERENCES_WINDOWS_H__
+
+#include "BOOL.h"
+
+/**
+* Get default language saved in registry
+* @return language
+*/
+char *getLanguagePreferences(void);
+
+/**
+* Set default language saved in registry
+* @return TRUE or FALSE
+*/
+BOOL setLanguagePreferences(void);
+
+/**
+* Set language from Command line (wscilex.exe -l lang)
+* @param[in] language string
+* @return TRUE or FALSE
+*/
+BOOL setLanguageFromCommandLine(char *lang);
+
+/**
+* check if it is valid language format
+* xx_XX
+* @param[in] language string
+* @return TRUE or FALSE
+*/
+BOOL isValidLanguage(char *lang);
+
+#endif /* __LANGUAGEPREFERENCES_WINDOWS_H__ */
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/src/c/LocaleNameToLCID_Windows.c b/modules/localization/src/c/LocaleNameToLCID_Windows.c
new file mode 100755
index 000000000..fd0e97014
--- /dev/null
+++ b/modules/localization/src/c/LocaleNameToLCID_Windows.c
@@ -0,0 +1,38 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2010 - DIGITEO - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+/*--------------------------------------------------------------------------*/
+#include "LocaleNameToLCID_Windows.h"
+/*--------------------------------------------------------------------------*/
+/* ONLY for Windows */
+/* Some old XP without SP2 or more do not have this function ... */
+/*--------------------------------------------------------------------------*/
+static HINSTANCE KernelDll = NULL;
+/*--------------------------------------------------------------------------*/
+typedef LCID (WINAPI * LocaleNameToLCIDPROC)(LPCWSTR lpName, DWORD dwFlags);
+/*--------------------------------------------------------------------------*/
+LCID dllLocaleNameToLCID(LPCWSTR lpName, DWORD dwFlags)
+{
+ if (KernelDll == NULL)
+ {
+ KernelDll = LoadLibrary ("kernel32.dll");
+ }
+ if (KernelDll)
+ {
+ LocaleNameToLCIDPROC ptrFunctionLocaleNameToLCID = (LocaleNameToLCIDPROC)GetProcAddress(KernelDll, "LocaleNameToLCID");
+ if (ptrFunctionLocaleNameToLCID)
+ {
+ return (LCID)(ptrFunctionLocaleNameToLCID)(lpName, dwFlags);
+ }
+ }
+ return 0;
+}
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/src/c/LocaleNameToLCID_Windows.h b/modules/localization/src/c/LocaleNameToLCID_Windows.h
new file mode 100755
index 000000000..57eb79219
--- /dev/null
+++ b/modules/localization/src/c/LocaleNameToLCID_Windows.h
@@ -0,0 +1,30 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2010 - DIGITEO - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+/*--------------------------------------------------------------------------*/
+#ifndef __LOCALENAMETOLCID_WINDOWS_H__
+#define __LOCALENAMETOLCID_WINDOWS_H__
+
+#ifdef _MSC_VER
+
+#include <Windows.h>
+
+/* loaded from system LocaleNameToLCID function */
+/* Some Windows does not have this function */
+/* Windows must support multilanguage */
+/* by default LCID returns 0*/
+
+LCID dllLocaleNameToLCID(LPCWSTR lpName, DWORD dwFlags);
+
+#endif
+
+#endif /* __LOCALENAMETOLCID_WINDOWS_H__ */
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/src/c/charEncoding.c b/modules/localization/src/c/charEncoding.c
new file mode 100755
index 000000000..c53a6cebf
--- /dev/null
+++ b/modules/localization/src/c/charEncoding.c
@@ -0,0 +1,266 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2008 - Yung-Jang Lee
+* Copyright (C) 2009 - DIGITEO - Antoine ELIAS , Allan CORNET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution. The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+*
+*/
+/*--------------------------------------------------------------------------*/
+#ifdef _MSC_VER
+#include <windows.h>
+#endif
+#include <wctype.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <locale.h>
+#include "charEncoding.h"
+#include "MALLOC.h"
+/*--------------------------------------------------------------------------*/
+#ifndef _MSC_VER
+int wcsicmp_others(const wchar_t* s1, const wchar_t* s2)
+{
+ while (towlower(*s1) == towlower(*s2))
+ {
+ if (*s1 == 0)
+ {
+ return 0;
+ }
+ s1++;
+ s2++;
+ }
+ return towlower(*s1) - towlower(*s2);
+}
+#endif
+/*--------------------------------------------------------------------------*/
+#ifdef _MSC_VER
+char *wide_string_to_UTF8(const wchar_t *_wide)
+{
+ char *buf = NULL;
+ DWORD size = 0;
+ DWORD dwFlags = 0;
+
+ if ((wchar_t *)NULL == _wide)
+ {
+ return (char *)NULL;
+ }
+ size = WideCharToMultiByte(CP_UTF8, dwFlags, _wide, -1, NULL, 0, NULL, 0);
+ if (size == 0)
+ {
+ return (char *)NULL;
+ }
+ size += 1;
+ buf = (char*)MALLOC(sizeof(char) * size);
+ if (buf)
+ {
+ WideCharToMultiByte(CP_UTF8, dwFlags, _wide, -1, buf, size, NULL, 0);
+ if (size <= 0)
+ {
+ FREE(buf);
+ return (char *)NULL;
+ }
+ }
+ return buf;
+}
+/*--------------------------------------------------------------------------*/
+wchar_t *to_wide_string(const char *_UTFStr)
+{
+ int nwide = 0;
+ wchar_t *_buf = NULL;
+
+ /* About MultiByteToWideChar :
+ Starting with Windows Vista,
+ the function does not drop illegal code points
+ if the application does not set this flag.
+
+ Windows XP: To prevent the security problem of the non-shortest-form
+ versions of UTF-8 characters, MultiByteToWideChar deletes these characters.
+ */
+
+ DWORD dwFlags = 0;
+
+ if (_UTFStr == NULL)
+ {
+ return NULL;
+ }
+ nwide = MultiByteToWideChar(CP_UTF8, dwFlags, _UTFStr, -1, NULL, 0);
+ if (nwide == 0)
+ {
+ return NULL;
+ }
+ _buf = (wchar_t *)MALLOC(nwide * sizeof(wchar_t));
+ if (_buf == NULL)
+ {
+ return NULL;
+ }
+ if (MultiByteToWideChar(CP_UTF8, dwFlags, _UTFStr, -1, _buf, nwide) == 0)
+ {
+ FREE(_buf);
+ _buf = NULL;
+ }
+ return _buf;
+}
+/*--------------------------------------------------------------------------*/
+int wcstat(char* filename, struct _stat *st)
+{
+ int stat_result = 0;
+ wchar_t *wfilename = to_wide_string(filename);
+ stat_result = _wstat(wfilename, st);
+ FREE(wfilename);
+ return stat_result;
+}
+/*--------------------------------------------------------------------------*/
+#else //Linux check for MAC OS X
+char *wide_string_to_UTF8(const wchar_t *_wide)
+{
+ size_t iCharLen = 0;
+ wchar_t *pwstr = _wide;
+ char* pchar = NULL;
+ /* The value of MB_CUR_MAX is the maximum number of bytes
+ in a multibyte character for the current locale. */
+ int iMaxLen = 0;
+
+ if (_wide == NULL)
+ {
+ return NULL;
+ }
+
+ iMaxLen = (int)wcslen(_wide) * MB_CUR_MAX ;
+
+ pchar = (char*) MALLOC(( iMaxLen + 1) * sizeof(char));
+ if (pchar == NULL)
+ {
+ return NULL;
+ }
+ iCharLen = wcstombs (pchar, pwstr, iMaxLen);
+ if ( iCharLen == (size_t)(-1) )
+ {
+ if (pchar)
+ {
+ FREE(pchar);
+ pchar = NULL;
+ }
+ return NULL;
+ }
+ pchar[iCharLen] = '\0';
+ return pchar;
+}
+/*--------------------------------------------------------------------------*/
+wchar_t *to_wide_string(const char *_UTFStr)
+{
+ wchar_t *_buf = NULL;
+ size_t pszLen = 0;
+ char *psz = _UTFStr;
+ mbstate_t ps;
+
+ if (_UTFStr == NULL)
+ {
+ return NULL;
+ }
+
+ memset (&ps, 0x00, sizeof(ps));
+ pszLen = mbsrtowcs(NULL, (const char**)&psz, 0, &ps);
+
+ if ( pszLen == (size_t)(-1) )
+ {
+ return NULL;
+ }
+
+ _buf = (wchar_t*)MALLOC((pszLen + 1) * sizeof(wchar_t));
+ if (_buf == NULL)
+ {
+ return NULL;
+ }
+
+ pszLen = mbsrtowcs(_buf, (const char**)&psz, (int)strlen(psz), &ps);
+
+ if ( pszLen == (size_t)(-1) )
+ {
+ FREE(_buf);
+ return NULL;
+ }
+ else
+ {
+ _buf[pszLen] = L'\0';
+ }
+ return _buf;
+}
+/*--------------------------------------------------------------------------*/
+int wcstat(char* filename, struct stat *st)
+{
+ return stat(filename, st);
+}
+#endif
+/*--------------------------------------------------------------------------*/
+static int ReadUTF8Character(const char* str, int *nBytes)
+{
+ const unsigned char* s = (const unsigned char*)(str);
+ unsigned char c = s[0];
+
+ if (c < 0x80)
+ {
+ *nBytes = 1;
+ return c;
+ }
+ else if (c < 0xC2)
+ {
+ return -1;
+ }
+ else if (c < 0xE0)
+ {
+ if (s[1] == 0 || (s[1] ^ 0x80) >= 0x40)
+ {
+ return -1;
+ }
+ *nBytes = 2;
+ return ((s[0] & 0x1F) << 6) + (s[1] ^ 0x80);
+ }
+ else if (c < 0xF0)
+ {
+ if (s[1] == 0 || s[2] == 0 || (s[1] ^ 0x80) >= 0x40
+ || (s[2] ^ 0x80) >= 0x40 || (c == 0xE0 && s[1] < 0xA0))
+ {
+ return -1;
+ }
+ *nBytes = 3;
+ return ((s[0] & 0xF) << 12) + ((s[1] ^ 0x80) << 6) + (s[2] ^ 0x80);
+ }
+ else if (c < 0xF5)
+ {
+ if (s[1] == 0 || s[2] == 0 || s[3] == 0 || (s[1] ^ 0x80) >= 0x40
+ || (s[2] ^ 0x80) >= 0x40 || (s[3] ^ 0x80) >= 0x40
+ || (c == 0xF0 && s[1] < 0x90) || (c == 0xF4 && s[1] > 0x8F))
+ {
+ return -1;
+ }
+ *nBytes = 4;
+ return ((s[0] & 0x07) << 18) + ((s[1] ^ 0x80) << 12) + ((s[2] ^ 0x80) << 6)
+ + (s[3] ^ 0x80);
+ }
+ else
+ {
+ return -1;
+ }
+}
+/*--------------------------------------------------------------------------*/
+BOOL IsValidUTF8(const char* pStText)
+{
+ const char* s = pStText;
+ while (*s != 0)
+ {
+ int nBytes = 0;
+ if (ReadUTF8Character(s, &nBytes) < 0)
+ {
+ return FALSE;
+ }
+ s += nBytes;
+ }
+
+ return TRUE;
+}
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/src/c/defaultlanguage.h b/modules/localization/src/c/defaultlanguage.h
new file mode 100755
index 000000000..cd2e288e5
--- /dev/null
+++ b/modules/localization/src/c/defaultlanguage.h
@@ -0,0 +1,24 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Bruno JOFRET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#ifndef __DEFAULTLANGUAGE_H__
+#define __DEFAULTLANGUAGE_H__
+
+/*
+** @TODO : Hard reference to a static array defined in
+** tableslanguages.h seems not to be a very clever idea...
+*/
+
+#define SCILABDEFAULTLANGUAGE "en_US"
+#define SCILABDEFAULTLANGUAGECODE 83
+
+#endif /* !__DEFAULTLANGUAGE_H__ */
diff --git a/modules/localization/src/c/getLcidString.c b/modules/localization/src/c/getLcidString.c
new file mode 100755
index 000000000..29f20ccdf
--- /dev/null
+++ b/modules/localization/src/c/getLcidString.c
@@ -0,0 +1,90 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2010 - DIGITEO - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+/*--------------------------------------------------------------------------*/
+#include <string.h>
+#include <stdio.h>
+#ifdef _MSC_VER
+#include <Windows.h>
+#include "LocaleNameToLCID_Windows.h"
+#include "strdup_windows.h"
+#endif
+#include "getLcidString.h"
+#include "MALLOC.h"
+#include "charEncoding.h"
+#include "stack-def.h"
+/*--------------------------------------------------------------------------*/
+#define DEFAULT_EN_LCID "0x0409"
+/*--------------------------------------------------------------------------*/
+#ifdef _MSC_VER
+/* replaces '_' by '-' windows local format and convert to wide string */
+static wchar_t *getWindowsLocaleFormat(const char *pStrLocale);
+#endif
+/*--------------------------------------------------------------------------*/
+char *getLcidString(const char *pStrLocale)
+{
+ char *pStrLCID = NULL;
+
+ if (pStrLocale == NULL)
+ {
+ return strdup(DEFAULT_EN_LCID);
+ }
+#ifdef _MSC_VER
+ if ((strcmp(pStrLocale, "") == 0) || (strcmp(pStrLocale, "C") == 0))
+ {
+ return strdup(DEFAULT_EN_LCID);
+ }
+ else
+ {
+ wchar_t *wLocale = getWindowsLocaleFormat(pStrLocale);
+ LCID lcid = dllLocaleNameToLCID(wLocale, 0);
+
+ if (lcid == 0)
+ {
+ pStrLCID = strdup(DEFAULT_EN_LCID);
+ }
+ else
+ {
+ pStrLCID = (char *)MALLOC(sizeof(char) * bsiz);
+ if (pStrLCID)
+ {
+ sprintf(pStrLCID, "0x0%x", lcid);
+ }
+ }
+ }
+#else
+ /* this routines not used on others platforms */
+ pStrLCID = strdup(DEFAULT_EN_LCID);
+#endif
+ return pStrLCID;
+}
+/*--------------------------------------------------------------------------*/
+#ifdef _MSC_VER
+static wchar_t *getWindowsLocaleFormat(const char *pStrLocale)
+{
+ wchar_t *Locale = NULL;
+ if (pStrLocale)
+ {
+ wchar_t *pwStrLocale = to_wide_string(pStrLocale);
+ if (pwStrLocale)
+ {
+ wchar_t *pos = wcschr(pwStrLocale, L'_');
+ if (pos)
+ {
+ *pos = L'-';
+ }
+ Locale = pwStrLocale;
+ }
+ }
+ return Locale;
+}
+#endif
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/src/c/getLcidString.h b/modules/localization/src/c/getLcidString.h
new file mode 100755
index 000000000..5f7b8e09d
--- /dev/null
+++ b/modules/localization/src/c/getLcidString.h
@@ -0,0 +1,26 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2010 - DIGITEO - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+/*--------------------------------------------------------------------------*/
+#ifndef __GETLCIDSTRING_H__
+#define __GETLCIDSTRING_H__
+
+/**
+* convert Locale name to LCID string
+* used by CHM
+* http://msdn.microsoft.com/en-us/library/0h88fahh(VS.85).aspx
+* @param[in] locale name ex: en_US
+* @return LCID string ex: 0x0409
+*/
+char *getLcidString(const char *pStrLocale);
+
+#endif /* __GETLCIDSTRING_H__ */
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/src/c/getLocaleInfo_Apple.c b/modules/localization/src/c/getLocaleInfo_Apple.c
new file mode 100755
index 000000000..3caa2d523
--- /dev/null
+++ b/modules/localization/src/c/getLocaleInfo_Apple.c
@@ -0,0 +1,33 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009-2009 - DIGITEO - Bruno JOFRET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#include <CoreFoundation/CoreFoundation.h>
+#include "getLocaleInfo_Apple.h"
+
+char *getLocaleUserInfo(void)
+{
+ char *cUserLanguage = NULL;
+ CFLocaleRef userLocaleRef = CFLocaleCopyCurrent();
+ CFStringRef userLanguage = CFLocaleGetIdentifier(userLocaleRef);
+
+ if (getenv( "LANG" ))
+ {
+ /* Mac OS X does not respect the LANG variable. We do it ourself. */
+ return getenv("LANG");
+ }
+ else
+ {
+ cUserLanguage = (char *) malloc(((int) CFStringGetLength(userLanguage) + 1) * sizeof(char));
+ CFStringGetCString(userLanguage, cUserLanguage, ((int) CFStringGetLength(userLanguage)) + 1, kCFStringEncodingUTF8);
+ }
+ return cUserLanguage;
+}
diff --git a/modules/localization/src/c/getLocaleInfo_Apple.h b/modules/localization/src/c/getLocaleInfo_Apple.h
new file mode 100755
index 000000000..ac9c34d48
--- /dev/null
+++ b/modules/localization/src/c/getLocaleInfo_Apple.h
@@ -0,0 +1,22 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009-2009 - DIGITEO - Bruno JOFRET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#ifndef __GETLOCALEINFO_APPLE_H__
+#define __GETLOCALEINFO_APPLE_H__
+
+/**
+* returns user locale string
+* @return Locale user example fr_FR or en_US
+*/
+char *getLocaleUserInfo(void);
+
+#endif __GETLOCALEINFO_APPLE_H__
diff --git a/modules/localization/src/c/getLocaleInfo_Windows.c b/modules/localization/src/c/getLocaleInfo_Windows.c
new file mode 100755
index 000000000..468765337
--- /dev/null
+++ b/modules/localization/src/c/getLocaleInfo_Windows.c
@@ -0,0 +1,105 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2008 - INRIA - Allan CORNET
+ * Copyright (C) 2008 - Yung-Jang Lee
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+/*--------------------------------------------------------------------------*/
+#include <windows.h>
+#include <stdio.h>
+#include "getLocaleInfo_Windows.h"
+#include "MALLOC.h"
+/*--------------------------------------------------------------------------*/
+char* getLocaleSystemInfo(void)
+{
+#define LENGTH_BUFFER 1024
+ char buffer_LOCALE_SISO639LANGNAME[LENGTH_BUFFER];
+ char buffer_LOCALE_SISO3166CTRYNAME[LENGTH_BUFFER];
+ char *localeStr = NULL;
+ int ret = 0;
+ ret = GetLocaleInfo(LOCALE_SYSTEM_DEFAULT,
+ LOCALE_SISO639LANGNAME,
+ &buffer_LOCALE_SISO639LANGNAME[0],
+ LENGTH_BUFFER);
+ if (ret > 0)
+ {
+ ret = GetLocaleInfo(LOCALE_SYSTEM_DEFAULT,
+ LOCALE_SISO3166CTRYNAME,
+ &buffer_LOCALE_SISO3166CTRYNAME[0],
+ LENGTH_BUFFER);
+ if (ret > 0)
+ {
+ int length_localeStr = (int)(strlen(buffer_LOCALE_SISO639LANGNAME) +
+ strlen(buffer_LOCALE_SISO3166CTRYNAME) +
+ strlen("_"));
+ localeStr = (char*)MALLOC(sizeof(char) * (length_localeStr) + 1);
+ if (localeStr)
+ {
+#ifdef FORMAT_LOCALE
+#undef FORMAT_LOCALE
+#endif
+#define FORMAT_LOCALE "%s_%s"
+ sprintf(localeStr, FORMAT_LOCALE, buffer_LOCALE_SISO639LANGNAME, buffer_LOCALE_SISO3166CTRYNAME);
+ }
+ }
+ }
+ return localeStr;
+}
+/*--------------------------------------------------------------------------*/
+char* getLocaleUserInfo(void)
+{
+#define LENGTH_BUFFER 1024
+ char buffer_LOCALE_SISO639LANGNAME[LENGTH_BUFFER];
+ char buffer_LOCALE_SISO3166CTRYNAME[LENGTH_BUFFER];
+ char buffer_LOCALE_IDEFAULTANSICODEPAGE[LENGTH_BUFFER];
+ char *localeStr = NULL;
+ int ret = 0;
+ ret = GetLocaleInfo(LOCALE_USER_DEFAULT,
+ LOCALE_SISO639LANGNAME,
+ &buffer_LOCALE_SISO639LANGNAME[0],
+ LENGTH_BUFFER);
+ if (ret > 0)
+ {
+
+ ret = GetLocaleInfo(LOCALE_USER_DEFAULT,
+ LOCALE_SISO3166CTRYNAME,
+ &buffer_LOCALE_SISO3166CTRYNAME[0],
+ LENGTH_BUFFER);
+ if (ret > 0)
+ {
+ // BY YJLee get Windows CODE Page Information
+ int ret = GetLocaleInfo(LOCALE_USER_DEFAULT,
+ LOCALE_IDEFAULTANSICODEPAGE,
+ &buffer_LOCALE_IDEFAULTANSICODEPAGE[0],
+ LENGTH_BUFFER);
+
+ int length_localeStr = (int)(strlen(buffer_LOCALE_SISO639LANGNAME) +
+ strlen(buffer_LOCALE_SISO3166CTRYNAME) +
+ strlen(buffer_LOCALE_IDEFAULTANSICODEPAGE) +
+ strlen("_.CP") );
+ localeStr = (char*)MALLOC(sizeof(char) * (length_localeStr) + 1);
+ if (localeStr)
+ {
+#ifdef FORMAT_LOCALE
+#undef FORMAT_LOCALE
+#endif
+#define FORMAT_LOCALE "%s_%s.CP%s"
+ // in lang_contry.CPxxx format
+ sprintf(localeStr, FORMAT_LOCALE,
+ buffer_LOCALE_SISO639LANGNAME,
+ buffer_LOCALE_SISO3166CTRYNAME,
+ buffer_LOCALE_IDEFAULTANSICODEPAGE
+ );
+ }
+ }
+ }
+ return localeStr;
+}
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/src/c/getLocaleInfo_Windows.h b/modules/localization/src/c/getLocaleInfo_Windows.h
new file mode 100755
index 000000000..be54fa994
--- /dev/null
+++ b/modules/localization/src/c/getLocaleInfo_Windows.h
@@ -0,0 +1,32 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2008 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+/*--------------------------------------------------------------------------*/
+
+#ifndef __GETLOCALINFO_WINDOWS_H__
+#define __GETLOCALINFO_WINDOWS_H__
+
+/**
+* returns user locale string
+* @return Locale user example fr_FR or en_US
+*/
+char* getLocaleUserInfo(void);
+
+/**
+* returns system locale string
+* @return Locale system example fr_FR or en_US
+*/
+char* getLocaleSystemInfo(void);
+
+#endif /* __GETLOCALINFO_WINDOWS_H__ */
+
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/src/c/getentrieshashtable.c b/modules/localization/src/c/getentrieshashtable.c
new file mode 100755
index 000000000..9c05aa7c5
--- /dev/null
+++ b/modules/localization/src/c/getentrieshashtable.c
@@ -0,0 +1,125 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#include "getentrieshashtable.h"
+#include "hashtable_private.h"
+#include "MALLOC.h"
+#include "hashtable_localization.h"
+/*--------------------------------------------------------------------------*/
+char **getTAGSinhashtable(struct hashtable *tableIN, int *numbersEntries)
+{
+ char **return_entries = NULL;
+ unsigned int i = 0;
+ unsigned int j = 0;
+ struct entry *e = NULL;
+ struct entry **table = tableIN->table;
+
+ *numbersEntries = tableIN->entrycount;
+ if (*numbersEntries > 0)
+ {
+ return_entries = (char **)MALLOC(sizeof(char *) * tableIN->entrycount);
+ if (return_entries)
+ {
+ j = 0;
+ for (i = 0; i < tableIN->tablelength; i++)
+ {
+ e = table[i];
+ while (NULL != e)
+ {
+ struct key_string *Key = NULL;
+ Key = e->k;
+ return_entries[j] = (char *)MALLOC(sizeof(char) * (strlen(Key->Key_String) + 1));
+ if (return_entries[j])
+ {
+ strcpy(return_entries[j], Key->Key_String);
+ }
+ e = e->next;
+ j++;
+ }
+ }
+ }
+ }
+ return return_entries;
+}
+/*--------------------------------------------------------------------------*/
+char **getSTRINGSinhashtable(struct hashtable *tableIN, int *numbersEntries)
+{
+ char **return_entries = NULL;
+ unsigned int i = 0;
+ unsigned int j = 0;
+ struct entry *e = NULL;
+ struct entry **table = tableIN->table;
+
+ *numbersEntries = tableIN->entrycount;
+ if (*numbersEntries > 0)
+ {
+ return_entries = (char **)MALLOC(sizeof(char *) * tableIN->entrycount);
+ if (return_entries)
+ {
+ j = 0;
+ for (i = 0; i < tableIN->tablelength; i++)
+ {
+ e = table[i];
+ while (NULL != e)
+ {
+ struct value_string *Key = NULL;
+ Key = e->v;
+ return_entries[j] = (char *)MALLOC(sizeof(char) * (strlen(Key->Value_String) + 1));
+ if (return_entries[j])
+ {
+ strcpy(return_entries[j], Key->Value_String);
+ }
+ e = e->next;
+ j++;
+ }
+ }
+ }
+ }
+ return return_entries;
+}
+/*--------------------------------------------------------------------------*/
+char **getPATHSinhashtable(struct hashtable *tableIN, int *numbersEntries)
+{
+ char **return_entries = NULL;
+ unsigned int i = 0;
+ unsigned int j = 0;
+ struct entry *e = NULL;
+ struct entry **table = tableIN->table;
+
+ *numbersEntries = tableIN->entrycount;
+ if (*numbersEntries > 0)
+ {
+ return_entries = (char **)MALLOC(sizeof(char *) * tableIN->entrycount);
+ if (return_entries)
+ {
+ j = 0;
+ for (i = 0; i < tableIN->tablelength; i++)
+ {
+ e = table[i];
+ while (NULL != e)
+ {
+ struct value_string *Key = NULL;
+ Key = e->v;
+ return_entries[j] = (char *)MALLOC(sizeof(char) * (strlen(Key->Path_String) + 1));
+ if (return_entries[j])
+ {
+ strcpy(return_entries[j], Key->Path_String);
+ }
+ e = e->next;
+ j++;
+ }
+ }
+ }
+ }
+ return return_entries;
+}
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/src/c/getentrieshashtable.h b/modules/localization/src/c/getentrieshashtable.h
new file mode 100755
index 000000000..4fa6c0de6
--- /dev/null
+++ b/modules/localization/src/c/getentrieshashtable.h
@@ -0,0 +1,25 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#ifndef __GETENTRIESHASHTABLE_H__
+#define __GETENTRIESHASHTABLE_H__
+
+#include <string.h>
+#include "hashtable.h"
+
+/* get an array of strings from hastable tableIN */
+char **getTAGSinhashtable(struct hashtable *tableIN, int *numbersEntries);
+char **getSTRINGSinhashtable(struct hashtable *tableIN, int *numbersEntries);
+char **getPATHSinhashtable(struct hashtable *tableIN, int *numbersEntries);
+
+#endif
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/src/c/hashtable_localization.h b/modules/localization/src/c/hashtable_localization.h
new file mode 100755
index 000000000..add1ccac3
--- /dev/null
+++ b/modules/localization/src/c/hashtable_localization.h
@@ -0,0 +1,50 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2006 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#ifndef __HASHTABLE_LOCALIZATION_H__
+#define __HASHTABLE_LOCALIZATION_H__
+/*--------------------------------------------------------------------------*/
+#include <stdlib.h>
+#include "hashtable.h"
+#include "BOOL.h" /* BOOL */
+#include "MALLOC.h"
+/*--------------------------------------------------------------------------*/
+struct key_string
+{
+ char *Key_String;
+};
+/*--------------------------------------------------------------------------*/
+struct value_string
+{
+ char *Value_String;
+ char *Path_String;
+};
+/*--------------------------------------------------------------------------*/
+/**
+ * create a hashtable and return it
+ */
+struct hashtable *CreateHashtable_string(void);
+
+/* destroy the hashtable and clean the resources used */
+void DestroyHashtable_string(struct hashtable *hash_table);
+
+/* search a key in a hashtable. if succeed, return the value needed. if failed, return NULL */
+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/modules/localization/src/c/libscilocalization_algo_la-InitializeLocalization.lo b/modules/localization/src/c/libscilocalization_algo_la-InitializeLocalization.lo
new file mode 100755
index 000000000..bb2047d6d
--- /dev/null
+++ b/modules/localization/src/c/libscilocalization_algo_la-InitializeLocalization.lo
@@ -0,0 +1,12 @@
+# src/c/libscilocalization_algo_la-InitializeLocalization.lo - a libtool object file
+# Generated by libtool (GNU libtool) 2.4.2
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object='.libs/libscilocalization_algo_la-InitializeLocalization.o'
+
+# Name of the non-PIC object
+non_pic_object=none
+
diff --git a/modules/localization/src/c/libscilocalization_algo_la-charEncoding.lo b/modules/localization/src/c/libscilocalization_algo_la-charEncoding.lo
new file mode 100755
index 000000000..fa0d141bd
--- /dev/null
+++ b/modules/localization/src/c/libscilocalization_algo_la-charEncoding.lo
@@ -0,0 +1,12 @@
+# src/c/libscilocalization_algo_la-charEncoding.lo - a libtool object file
+# Generated by libtool (GNU libtool) 2.4.2
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object='.libs/libscilocalization_algo_la-charEncoding.o'
+
+# Name of the non-PIC object
+non_pic_object=none
+
diff --git a/modules/localization/src/c/libscilocalization_algo_la-getLcidString.lo b/modules/localization/src/c/libscilocalization_algo_la-getLcidString.lo
new file mode 100755
index 000000000..4fd4c9f52
--- /dev/null
+++ b/modules/localization/src/c/libscilocalization_algo_la-getLcidString.lo
@@ -0,0 +1,12 @@
+# src/c/libscilocalization_algo_la-getLcidString.lo - a libtool object file
+# Generated by libtool (GNU libtool) 2.4.2
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object='.libs/libscilocalization_algo_la-getLcidString.o'
+
+# Name of the non-PIC object
+non_pic_object=none
+
diff --git a/modules/localization/src/c/libscilocalization_algo_la-setdefaultlanguage.lo b/modules/localization/src/c/libscilocalization_algo_la-setdefaultlanguage.lo
new file mode 100755
index 000000000..743708b66
--- /dev/null
+++ b/modules/localization/src/c/libscilocalization_algo_la-setdefaultlanguage.lo
@@ -0,0 +1,12 @@
+# src/c/libscilocalization_algo_la-setdefaultlanguage.lo - a libtool object file
+# Generated by libtool (GNU libtool) 2.4.2
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object='.libs/libscilocalization_algo_la-setdefaultlanguage.o'
+
+# Name of the non-PIC object
+non_pic_object=none
+
diff --git a/modules/localization/src/c/libscilocalization_algo_la-setgetlanguage.lo b/modules/localization/src/c/libscilocalization_algo_la-setgetlanguage.lo
new file mode 100755
index 000000000..e64a42c2d
--- /dev/null
+++ b/modules/localization/src/c/libscilocalization_algo_la-setgetlanguage.lo
@@ -0,0 +1,12 @@
+# src/c/libscilocalization_algo_la-setgetlanguage.lo - a libtool object file
+# Generated by libtool (GNU libtool) 2.4.2
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object='.libs/libscilocalization_algo_la-setgetlanguage.o'
+
+# Name of the non-PIC object
+non_pic_object=none
+
diff --git a/modules/localization/src/c/loadhashtableslocalization.h b/modules/localization/src/c/loadhashtableslocalization.h
new file mode 100755
index 000000000..7a78a876f
--- /dev/null
+++ b/modules/localization/src/c/loadhashtableslocalization.h
@@ -0,0 +1,21 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+/*--------------------------------------------------------------------------*/
+/**
+* load hash tables for localization
+* @param language the name of the language
+* @return if the operation successed or not
+*/
+BOOL LoadHashTablesLocalization(char *language);
+
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/src/c/setdefaultlanguage.c b/modules/localization/src/c/setdefaultlanguage.c
new file mode 100755
index 000000000..22e287333
--- /dev/null
+++ b/modules/localization/src/c/setdefaultlanguage.c
@@ -0,0 +1,46 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#ifdef _MSC_VER
+#include "setgetlanguage.h"
+#include "LanguagePreferences_Windows.h"
+#include "string.h"
+#endif
+
+/*--------------------------------------------------------------------------*/
+void setdefaultlanguage(char * lang)
+{
+
+#ifdef _MSC_VER
+ char *savedLanguage = getLanguagePreferences();
+ if (strcmp(lang, savedLanguage))
+ {
+ if (setlanguage(lang))
+ {
+ setLanguagePreferences();
+ }
+ }
+#endif
+
+}
+/*--------------------------------------------------------------------------*/
+char * getdefaultlanguage(void)
+{
+
+#ifdef _MSC_VER
+ return getLanguagePreferences();
+#else
+ return "";
+#endif
+
+}
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/src/c/setgetlanguage.c b/modules/localization/src/c/setgetlanguage.c
new file mode 100755
index 000000000..1125bdc3a
--- /dev/null
+++ b/modules/localization/src/c/setgetlanguage.c
@@ -0,0 +1,413 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007-2008 - INRIA - Sylvestre LEDRU
+ * Copyright (C) 2007-2008 - INRIA - Allan CORNET
+ * Copyright (C) 2008 - Yung-Jang Lee
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include "machine.h" /* HAVE_LIBINTL_H & HAVE_LOCALE_H */
+
+#ifndef _MSC_VER
+#ifdef __APPLE__
+#include <locale.h>
+#else
+#ifdef HAVE_LIBINTL_H
+#include <libintl.h>
+#ifdef HAVE_LOCALE_H
+#include <locale.h>
+#else
+#error "Cannot find locale.h despite that libintl.h is available"
+#endif
+#endif
+#endif
+#else
+#include <locale.h>
+#include <libintl.h>
+#endif
+
+#ifdef _MSC_VER
+#include <windows.h>
+#include "getLocaleInfo_Windows.h"
+#endif
+#ifdef __APPLE__
+#include "getLocaleInfo_Apple.h"
+#endif
+
+#include "setgetlanguage.h"
+#include "MALLOC.h"
+#include "tableslanguages.h"
+#include "defaultlanguage.h"
+#include "scilabDefaults.h"
+#include "../../../io/includes/setenvc.h"
+
+/*--------------------------------------------------------------------------*/
+static char CURRENTLANGUAGESTRING[LengthAlphacode] = SCILABDEFAULTLANGUAGE;
+static int CURRENTLANGUAGECODE = SCILABDEFAULTLANGUAGECODE;
+
+/*--------------------------------------------------------------------------*/
+static int FindLanguageCode(char *lang);
+static BOOL setlanguagecode(char *lang);
+static char *FindAlias(char *lang);
+static char *GetLanguageFromAlias(char *langAlias);
+
+/*--------------------------------------------------------------------------*/
+BOOL setlanguage(char *lang)
+{
+ if (lang)
+ {
+ if (LanguageIsOK(lang))
+ {
+#ifndef _MSC_VER
+ if (needtochangelanguage(lang))
+ {
+#endif
+ /* Load the locale from the system */
+#if !defined(_MSC_VER)
+ //for mbstowcs
+ char *newlang = NULL;
+#ifdef __APPLE__
+ /* Load the user locale from the system */
+ if (lang == NULL || *lang == 0)
+ {
+ lang = getLocaleUserInfo();
+ }
+#endif
+
+ char *ret = setlocale(LC_CTYPE, lang);
+ if (ret == NULL)
+ {
+ if (lang == NULL || *lang == 0)
+ {
+ lang = getenv("LANG");
+ }
+ ret = setlocale(LC_CTYPE, lang);
+ if (ret == NULL)
+ {
+ // On some OSes we need to precise the charset (e.g. on Debian, fr_FR is not accepted but fr_FR.UTF-8 is)
+ int i = 0;
+ for (; i < NumberOfCharsets; i++)
+ {
+ newlang = (char*)MALLOC(strlen(lang) + strlen(CHARSETS[i]) + 1 + 1);
+ sprintf(newlang, "%s.%s", lang, CHARSETS[i]);
+ ret = setlocale(LC_CTYPE, newlang);
+ if (ret == NULL)
+ {
+ FREE(newlang);
+ newlang = NULL;
+ }
+ else
+ {
+ break;
+ }
+ }
+ }
+ }
+
+ if (ret == NULL)
+ {
+ fprintf(stderr,
+ "Warning: Localization issue. Failed to change the LC_CTYPE locale category. Does not support the locale '%s' %s %s.\nDid you install the system locales?\n",
+ lang, ret, setlocale(LC_CTYPE, NULL));
+ }
+
+ //for gettext
+ if (newlang)
+ {
+ ret = setlocale(LC_MESSAGES, newlang);
+ }
+ else
+ {
+ ret = setlocale(LC_MESSAGES, lang);
+ }
+#else
+ /* Load the user locale from the system */
+ char *ret = getLocaleUserInfo();
+#endif
+
+ // This stuff causes pb when locales have been compiled
+ if (ret == NULL)
+ {
+#ifndef _MSC_VER
+ fprintf(stderr, "Warning: Localization issue. Does not support the locale '%s'\nReturned: %s\nCurrent system locale: %s\nDid you install the system locales?\n", lang,
+ ret, setlocale(LC_MESSAGES, NULL));
+#else
+ fprintf(stderr, "Warning: Localization issue. Cannot detect user locale.\n");
+#endif
+ }
+
+ /* change language */
+ if (strcmp(lang, "C") == 0 || ret == NULL || strcmp(ret, "C") == 0)
+ {
+ /* The lang is the default one... ie en_US */
+ strcpy(CURRENTLANGUAGESTRING, SCILABDEFAULTLANGUAGE);
+ exportLocaleToSystem(CURRENTLANGUAGESTRING);
+ }
+ else
+ {
+ if (strcmp(lang, "") == 0)
+ {
+ /* The requested language is the one of the system ...
+ * which we don't really know which one is it
+ * but if setlocale worked, we get it from the return
+ */
+ strncpy(CURRENTLANGUAGESTRING, ret, 5); /* 5 is the number of char in fr_FR for example */
+ exportLocaleToSystem(ret);
+ }
+ else
+ {
+#if !defined(_MSC_VER)
+ if (newlang)
+ {
+ setenvc("LANG", newlang);
+ strncpy(CURRENTLANGUAGESTRING, newlang, 5);
+ exportLocaleToSystem(newlang);
+ }
+ else
+#endif
+ {
+
+ strcpy(CURRENTLANGUAGESTRING, lang);
+ exportLocaleToSystem(lang);
+ }
+ }
+ }
+#ifndef _MSC_VER
+ setlanguagecode(CURRENTLANGUAGESTRING);
+#ifndef __APPLE__
+ if (newlang)
+ {
+ FREE(newlang);
+ }
+#endif
+#endif
+
+ return TRUE;
+ }
+#ifndef _MSC_VER
+ }
+#endif
+ }
+ return FALSE;
+}
+
+/*--------------------------------------------------------------------------*/
+char *getlanguage(void)
+{
+ return CURRENTLANGUAGESTRING;
+}
+
+/*--------------------------------------------------------------------------*/
+int getcurrentlanguagecode(void)
+{
+ return CURRENTLANGUAGECODE;
+}
+
+/*--------------------------------------------------------------------------*/
+char *getlanguagefromcode(int code)
+{
+ int i = 0;
+
+ for (i = 0; i < NumberLanguages; i++)
+ {
+ if (LANGUAGE_COUNTRY_TAB[i].code == code)
+ {
+ return LANGUAGE_COUNTRY_TAB[i].alphacode;
+ }
+ }
+ return NULL;
+}
+
+/*--------------------------------------------------------------------------*/
+int getcodefromlanguage(char *language)
+{
+ return FindLanguageCode(language);
+}
+
+/*--------------------------------------------------------------------------*/
+BOOL LanguageIsOK(char *lang)
+{
+ int i = 0;
+
+ if (strlen(lang) == 0)
+ {
+ /* Empty language declaration... it is the default
+ * language from the system */
+ return TRUE;
+ }
+
+ for (i = 0; i < NumberLanguages; i++)
+ {
+ if (strcmp(lang, LANGUAGE_COUNTRY_TAB[i].alphacode) == 0)
+ {
+ return TRUE;
+ }
+ }
+ return FALSE;
+}
+
+/*--------------------------------------------------------------------------*/
+static int FindLanguageCode(char *lang)
+{
+ int i = 0;
+
+ for (i = 0; i < NumberLanguages; i++)
+ {
+ if (strcmp(lang, LANGUAGE_COUNTRY_TAB[i].alphacode) == 0)
+ {
+ return LANGUAGE_COUNTRY_TAB[i].code;
+ }
+ }
+ return -1;
+}
+
+/*--------------------------------------------------------------------------*/
+static BOOL setlanguagecode(char *lang)
+{
+ int tmpCode = FindLanguageCode(lang);
+
+ if (tmpCode > 0)
+ {
+ CURRENTLANGUAGECODE = tmpCode;
+ return TRUE;
+ }
+ return FALSE;
+}
+
+/*--------------------------------------------------------------------------*/
+static char *FindAlias(char *lang)
+{
+ int i = 0;
+
+ for (i = 0; i < NumberLanguagesAlias; i++)
+ {
+ if (strcmp(LANGUAGE_LOCALE_ALIAS[i].alphacode, lang) == 0)
+ {
+ return LANGUAGE_LOCALE_ALIAS[i].alias;
+ }
+ }
+ return NULL;
+}
+
+/*--------------------------------------------------------------------------*/
+static char *GetLanguageFromAlias(char *langAlias)
+{
+ int i = 0;
+
+ for (i = 0; i < NumberLanguagesAlias; i++)
+ {
+ if (strcmp(LANGUAGE_LOCALE_ALIAS[i].alias, langAlias) == 0)
+ {
+ return LANGUAGE_LOCALE_ALIAS[i].alphacode;
+ }
+ }
+ return NULL;
+}
+
+/*--------------------------------------------------------------------------*/
+char *getlanguagealias(void)
+{
+ return FindAlias(CURRENTLANGUAGESTRING);
+}
+
+/*--------------------------------------------------------------------------*/
+BOOL needtochangelanguage(char *language)
+{
+ char *currentlanguage = getlanguage();
+
+ if (strcmp(language, currentlanguage))
+ {
+ return TRUE;
+ }
+
+ return FALSE;
+}
+
+/*--------------------------------------------------------------------------*/
+char *convertlanguagealias(char *strlanguage)
+{
+ char *correctlanguage = NULL;
+
+ if ((strlen(strlanguage) == 2) || (strcmp(strlanguage, "en_US") == 0)) /* If the user wants to change to en_US ... use the default locale */
+ {
+ correctlanguage = GetLanguageFromAlias(strlanguage);
+ }
+ else
+ {
+ if (strcmp(strlanguage, "eng") == 0) /* compatibility previous scilab */
+ {
+ correctlanguage = GetLanguageFromAlias("en");
+ }
+ else
+ {
+ if (strlen(strlanguage) == 5 && strlanguage[2] == '_')
+ {
+ /* already xx_XX (fr_FR) */
+ return strlanguage;
+ }
+ }
+ }
+ return correctlanguage;
+}
+
+/*--------------------------------------------------------------------------*/
+/**
+ * Export the variable LC_XXXX to the system
+ *
+ * @param locale the locale (ex : fr_FR or en_US)
+ */
+BOOL exportLocaleToSystem(char *locale)
+{
+
+ if (locale == NULL)
+ {
+#ifdef _MSC_VER
+ fprintf(stderr, "Localization: Have not been able to find a suitable locale. Remains to default %s.\n", "LC_CTYPE");
+#else
+ fprintf(stderr, "Localization: Have not been able to find a suitable locale. Remains to default %s.\n", EXPORTENVLOCALESTR);
+#endif
+ return FALSE;
+ }
+
+ /* It will put in the env something like LC_MESSAGES=fr_FR */
+ if (!setenvc(EXPORTENVLOCALESTR, locale))
+ {
+#ifdef _MSC_VER
+ fprintf(stderr, "Localization: Failed to declare the system variable %s.\n", "LC_CTYPE");
+#else
+ fprintf(stderr, "Localization: Failed to declare the system variable %d.\n", EXPORTENVLOCALE);
+#endif
+ return FALSE;
+ }
+
+#ifdef _MSC_VER
+#ifdef USE_SAFE_GETTEXT_DLL
+ {
+ /* gettext is buggy on Windows */
+ /* We need to set a external environment variable to scilab env. */
+
+ char env[MAX_PATH];
+
+ sprintf(env, "%s=%s", EXPORTENVLOCALESTR, locale);
+ gettext_putenv(env);
+ }
+#endif
+#else
+ /* Export LC_NUMERIC to the system to make sure that the rest of system
+ * is using the english notation (Java, Tcl ...) */
+ setenvc("LC_NUMERIC", LCNUMERICVALUE);
+#endif
+
+ return TRUE;
+}
+
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/src/c/tableslanguages.h b/modules/localization/src/c/tableslanguages.h
new file mode 100755
index 000000000..fe1782889
--- /dev/null
+++ b/modules/localization/src/c/tableslanguages.h
@@ -0,0 +1,324 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#ifndef __TABLESLANGUAGES_H__
+#define __TABLESLANGUAGES_H__
+/*--------------------------------------------------------------------------*/
+/* See :
+ http://www.unicode.org/cldr
+ http://unicode.org/cldr/data/diff/main/index.html
+ http://inter-locale.com/ID/draft-ietf-ltru-registry-14.html
+*/
+/*--------------------------------------------------------------------------*/
+#define LengthAlphacode 32
+#define LengthAlpha2code 3
+#define LengthLanguage 64
+typedef struct languages_struct
+{
+ int code;
+ char alphacode[LengthAlphacode];
+ char languagedescription[LengthLanguage];
+
+} LanguagesTable;
+/*--------------------------------------------------------------------------*/
+typedef struct languagesalias_struct
+{
+ char alias[LengthAlphacode];
+ char alphacode[LengthAlphacode];
+
+} LanguagesTableAlias;
+/*--------------------------------------------------------------------------*/
+#define NumberLanguagesAlias 42
+static LanguagesTableAlias LANGUAGE_LOCALE_ALIAS[NumberLanguagesAlias] =
+{
+ {"bg", "bg_BG"},
+ {"ca", "ca_ES"},
+ {"cn", "zh_CN"},
+ {"cs", "cs_CZ"},
+ {"cy", "cy_GB"},
+ {"da", "da_DK"},
+ {"de", "de_DE"},
+ {"el", "el_GR"},
+ {"en", "C"}, /* When the user is requesting english ... switch back to the default */
+ {"en_US", "C"},
+ {"es", "es_ES"},
+ {"et", "et_EE"},
+ {"eu", "eu_ES"},
+ {"fa", "fa_IR"},
+ {"fi", "fi_FI"},
+ {"fo", "fo_FO"},
+ {"fr", "fr_FR"},
+ {"he", "he_IL"},
+ {"hr", "hr_HR"},
+ {"hu", "hu_HU"},
+ {"id", "id_ID"},
+ {"is", "is_IS"},
+ {"it", "it_IT"},
+ {"ja", "ja_JP"},
+ {"ko", "ko_KR"},
+ {"lt", "lt_LT"},
+ {"my", "ms_MY"},
+ {"nb", "nb_NO"},
+ {"nl", "nl_NL"},
+ {"pl", "pl_PL"},
+ {"pt", "pt_PT"},
+ {"ro", "ro_RO"},
+ {"ru", "ru_RU"},
+ {"sk", "sk_SK"},
+ {"sl", "sl_SI"},
+ {"sr", "sr_YU"},
+ {"sv", "sv_SE"},
+ {"th", "th_TH"},
+ {"tl", "tl_PH"},
+ {"tr", "tr_TR"},
+ {"tw", "zh_TW"},
+ {"uk", "uk_UA"}
+};
+/*--------------------------------------------------------------------------*/
+#define NumberLanguages 220
+static LanguagesTable LANGUAGE_COUNTRY_TAB[NumberLanguages] =
+{
+ { 1, "aa_DJ", "Afar (Djibouti)"},
+ { 2, "aa_ER", "Afar (Eritrea)"},
+ { 3, "aa_ER_SAAHO", "Afar (Eritrea, SAAHO)"},
+ { 4, "aa_ET", "Afar (Ethiopia)"},
+ { 5, "af_ZA", "Afrikaans (South Africa)"},
+ { 6, "sq_AL", "Albanian (Albania)"},
+ { 7, "am_ET", "Amharic (Ethiopia)"},
+ { 8, "ar_DZ", "Arabic (Algeria)"},
+ { 9, "ar_BH", "Arabic (Bahrain)"},
+ { 10, "ar_EG", "Arabic (Egypt)"},
+ { 11, "ar_IQ", "Arabic (Iraq)"},
+ { 12, "ar_JO", "Arabic (Jordan)"},
+ { 13, "ar_KW", "Arabic (Kuwait)"},
+ { 14, "ar_LB", "Arabic (Lebanon)"},
+ { 15, "ar_LY", "Arabic (Libya)"},
+ { 16, "ar_MA", "Arabic (Morocco)"},
+ { 17, "ar_OM", "Arabic (Oman)"},
+ { 18, "ar_QA", "Arabic (Qatar)"},
+ { 19, "ar_SA", "Arabic (Saudi Arabia)"},
+ { 20, "ar_SD", "Arabic (Sudan)"},
+ { 21, "ar_SY", "Arabic (Syria)"},
+ { 22, "ar_TN", "Arabic (Tunisia)"},
+ { 23, "ar_AE", "Arabic (United Arab Emirates)"},
+ { 24, "ar_YE", "Arabic (Yemen)"},
+ { 25, "hy_AM", "Armenian (Armenia)"},
+ { 26, "hy_AM_REVISED", "Armenian (Armenia, Revised Orthography)"},
+ { 27, "as_IN", "Assamese (India)"},
+ { 28, "az_AZ", "Azerbaijani (Azerbaijan)"},
+ { 29, "az_Cyrl_AZ", "Azerbaijani (Cyrillic, Azerbaijan)"},
+ { 30, "az_Latn_AZ", "Azerbaijani (Latin, Azerbaijan)"},
+ { 31, "az_Cyrl", "Azerbaijani (Cyrillic)"},
+ { 32, "az_Latn", "Azerbaijani (Latin)"},
+ { 33, "eu_ES", "Basque (Spain)"},
+ { 34, "be_BY", "Belarusian (Belarus)"},
+ { 35, "bn_IN", "Bengali (India)"},
+ { 36, "byn_ER", "Blin (Eritrea)"},
+ { 37, "bs_BA", "Bosnian (Bosnia and Herzegovina)"},
+ { 38, "bg_BG", "Bulgarian (Bulgaria)"},
+ { 39, "ca_ES", "Catalan (Spain)"},
+ { 40, "zh_CN", "Chinese (China)"},
+ { 41, "zh_Hans_CN", "Chinese (Simplified Han, China)"},
+ { 42, "zh_HK", "Chinese (Hong Kong S.A.R., China)"},
+ { 43, "zh_Hant_HK", "Chinese (Traditional Han, Hong Kong S.A.R., China)"},
+ { 44, "zh_Hant_MO", "Chinese (Traditional Han, Macao S.A.R., China)"},
+ { 45, "zh_MO", "Chinese (Macao S.A.R., China)"},
+ { 46, "zh_Hans_SG", "Chinese (Simplified Han, Singapore)"},
+ { 47, "zh_SG", "Chinese (Singapore)"},
+ { 48, "zh_Hant_TW", "Chinese (Traditional Han, Taiwan)"},
+ { 49, "zh_TW", "Chinese (Taiwan)"},
+ { 50, "zh_Hans", "Chinese (Simplified Han)"},
+ { 51, "zh_Hant", "Chinese (Traditional Han)"},
+ { 52, "kw_GB", "Cornish (United Kingdom)"},
+ { 53, "hr_HR", "Croatian (Croatia)"},
+ { 54, "cs_CZ", "Czech (Czech Republic)"},
+ { 55, "da_DK", "Danish (Denmark)"},
+ { 56, "dv_MV", "Divehi (Maldives)"},
+ { 57, "nl_BE", "Dutch (Belgium)"},
+ { 58, "nl_NL", "Dutch (Netherlands)"},
+ { 59, "dz_BT", "Dzongkha (Bhutan)"},
+ { 60, "en_AS", "English (American Samoa)"},
+ { 61, "en_AU", "English (Australia)"},
+ { 62, "en_BE", "English (Belgium)"},
+ { 63, "en_BZ", "English (Belize)"},
+ { 64, "en_BW", "English (Botswana)"},
+ { 65, "en_CA", "English (Canada)"},
+ { 66, "en_GU", "English (Guam)"},
+ { 67, "en_HK", "English (Hong Kong S.A.R., China)"},
+ { 68, "en_IN", "English (India)"},
+ { 69, "en_IE", "English (Ireland)"},
+ { 70, "en_JM", "English (Jamaica)"},
+ { 71, "en_MT", "English (Malta)"},
+ { 72, "en_MH", "English (Marshall Islands)"},
+ { 73, "en_NZ", "English (New Zealand)"},
+ { 74, "en_MP", "English (Northern Mariana Islands)"},
+ { 75, "en_PK", "English (Pakistan)"},
+ { 76, "en_PH", "English (Philippines)"},
+ { 77, "en_SG", "English (Singapore)"},
+ { 78, "en_ZA", "English (South Africa)"},
+ { 79, "en_TT", "English (Trinidad and Tobago)"},
+ { 80, "en_VI", "English (U.S. Virgin Islands)"},
+ { 81, "en_GB", "English (United Kingdom)"},
+ { 82, "en_UM", "English (United States Minor Outlying Islands)"},
+ { 83, "en_US", "English (United States)"},
+ { 84, "en_US_POSIX", "English (United States, Computer)"},
+ { 85, "en_ZW", "English (Zimbabwe)"},
+ { 86, "et_EE", "Estonian (Estonia)"},
+ { 87, "fo_FO", "Faroese (Faroe Islands)"},
+ { 88, "fi_FI", "Finnish (Finland)"},
+ { 89, "fr_BE", "French (Belgium)"},
+ { 90, "fr_CA", "French (Canada)"},
+ { 91, "fr_FR", "French (France)"},
+ { 92, "fr_LU", "French (Luxembourg)"},
+ { 93, "fr_MC", "French (Monaco)"},
+ { 94, "fr_CH", "French (Switzerland)"},
+ { 95, "gl_ES", "Gallegan (Spain)"},
+ { 96, "gez_ER", "Geez (Eritrea)"},
+ { 97, "gez_ET", "Geez (Ethiopia)"},
+ { 98, "ka_GE", "Georgian (Georgia)"},
+ { 99, "de_AT", "German (Austria)"},
+ { 100, "de_BE", "German (Belgium)"},
+ { 101, "de_DE", "German (Germany)"},
+ { 102, "de_LI", "German (Liechtenstein)"},
+ { 103, "de_LU", "German (Luxembourg)"},
+ { 104, "de_CH", "German (Switzerland)"},
+ { 105, "el_CY", "Greek (Cyprus)"},
+ { 106, "el_GR", "Greek (Greece)"},
+ { 107, "el_POLYTONI", "Greek (POLYTONI)"},
+ { 108, "gu_IN", "Gujarati (India)"},
+ { 109, "haw_US", "Hawaiian (United States)"},
+ { 110, "he_IL", "Hebrew (Israel)"},
+ { 111, "hi_IN", "Hindi (India)"},
+ { 112, "hu_HU", "Hungarian (Hungary)"},
+ { 113, "is_IS", "Icelandic (Iceland)"},
+ { 114, "id_ID", "Indonesian (Indonesia)"},
+ { 115, "ga_IE", "Irish (Ireland)"},
+ { 116, "it_IT", "Italian (Italy)"},
+ { 117, "it_CH", "Italian (Switzerland)"},
+ { 118, "ja_JP", "Japanese (Japan)"},
+ { 119, "kl_GL", "Kalaallisut (Greenland)"},
+ { 120, "kn_IN", "Kannada (India)"},
+ { 121, "kk_KZ", "Kazakh (Kazakhstan)"},
+ { 122, "km_KH", "Khmer (Cambodia)"},
+ { 123, "ky_KG", "Kirghiz (Kyrgyzstan)"},
+ { 124, "kok_IN", "Konkani (India)"},
+ { 125, "ko_KR", "Korean (South Korea)"},
+ { 126, "lo_LA", "Lao (Laos)"},
+ { 127, "lv_LV", "Latvian (Latvia)"},
+ { 128, "lt_LT", "Lithuanian (Lithuania)"},
+ { 129, "mk_MK", "Macedonian (Macedonia)"},
+ { 130, "ms_BN", "Malay (Brunei)"},
+ { 131, "ms_MY", "Malay (Malaysia)"},
+ { 132, "ml_IN", "Malayalam (India)"},
+ { 133, "mt_MT", "Maltese (Malta)"},
+ { 134, "gv_GB", "Manx (United Kingdom)"},
+ { 135, "mr_IN", "Marathi (India)"},
+ { 136, "mn_MN", "Mongolian (Mongolia)"},
+ { 137, "nb_NO", "Norwegian Bokml (Norway)"},
+ { 138, "nn_NO", "Norwegian Nynorsk (Norway)"},
+ { 139, "or_IN", "Oriya (India)"},
+ { 140, "om_ET", "Oromo (Ethiopia)"},
+ { 141, "om_KE", "Oromo (Kenya)"},
+ { 142, "ps_AF", "Pashto (Pushto) (Afghanistan)"},
+ { 143, "fa_AF", "Persian (Afghanistan)"},
+ { 144, "fa_IR", "Persian (Iran)"},
+ { 145, "pl_PL", "Polish (Poland)"},
+ { 146, "pt_BR", "Portuguese (Brazil)"},
+ { 147, "pt_PT", "Portuguese (Portugal)"},
+ { 148, "pa_IN", "Punjabi (India)"},
+ { 149, "ro_RO", "Romanian (Romania)"},
+ { 150, "ru_RU", "Russian (Russia)"},
+ { 151, "ru_UA", "Russian (Ukraine)"},
+ { 152, "sa_IN", "Sanskrit (India)"},
+ { 153, "sr_BA", "Serbian (Bosnia and Herzegovina)"},
+ { 154, "sr_Cyrl_BA", "Serbian (Cyrillic, Bosnia and Herzegovina)"},
+ { 155, "sr_Latn_BA", "Serbian (Latin, Bosnia and Herzegovina)"},
+ { 156, "sr_CS", "Serbian (Serbia And Montenegro)"},
+ { 157, "sr_Cyrl_CS", "Serbian (Cyrillic, Serbia And Montenegro)"},
+ { 158, "sr_Latn_CS", "Serbian (Latin, Serbia And Montenegro)"},
+ { 159, "sr_Cyrl_YU", "Serbian (Cyrillic, YU)"},
+ { 160, "sr_Latn_YU", "Serbian (Latin, YU)"},
+ { 161, "sr_YU", "Serbian (YU)"},
+ { 162, "sr_Cyrl", "Serbian (Cyrillic)"},
+ { 163, "sr_Latn", "Serbian (Latin)"},
+ { 164, "sh_BA", "Serbo-Croatian (Bosnia and Herzegovina)"},
+ { 165, "sh_CS", "Serbo-Croatian (Serbia And Montenegro)"},
+ { 166, "sh_YU", "Serbo-Croatian (YU)"},
+ { 167, "sid_ET", "Sidamo (Ethiopia)"},
+ { 168, "sk_SK", "Slovak (Slovakia)"},
+ { 169, "sl_SI", "Slovenian (Slovenia)"},
+ { 170, "so_DJ", "Somali (Djibouti)"},
+ { 171, "so_ET", "Somali (Ethiopia)"},
+ { 172, "so_KE", "Somali (Kenya)"},
+ { 173, "so_SO", "Somali (Somalia)"},
+ { 174, "es_AR", "Spanish (Argentina)"},
+ { 175, "es_BO", "Spanish (Bolivia)"},
+ { 176, "es_CL", "Spanish (Chile)"},
+ { 177, "es_CO", "Spanish (Colombia)"},
+ { 178, "es_CR", "Spanish (Costa Rica)"},
+ { 179, "es_DO", "Spanish (Dominican Republic)"},
+ { 180, "es_EC", "Spanish (Ecuador)"},
+ { 181, "es_SV", "Spanish (El Salvador)"},
+ { 182, "es_GT", "Spanish (Guatemala)"},
+ { 183, "es_HN", "Spanish (Honduras)"},
+ { 184, "es_MX", "Spanish (Mexico)"},
+ { 185, "es_NI", "Spanish (Nicaragua)"},
+ { 186, "es_PA", "Spanish (Panama)"},
+ { 187, "es_PY", "Spanish (Paraguay)"},
+ { 188, "es_PE", "Spanish (Peru)"},
+ { 189, "es_PR", "Spanish (Puerto Rico)"},
+ { 190, "es_ES", "Spanish (Spain)"},
+ { 191, "es_US", "Spanish (United States)"},
+ { 192, "es_UY", "Spanish (Uruguay)"},
+ { 193, "es_VE", "Spanish (Venezuela)"},
+ { 194, "sw_KE", "Swahili (Kenya)"},
+ { 195, "sw_TZ", "Swahili (Tanzania)"},
+ { 196, "sv_FI", "Swedish (Finland)"},
+ { 197, "sv_SE", "Swedish (Sweden)"},
+ { 198, "syr_SY", "Syriac (Syria)"},
+ { 199, "ta_IN", "Tamil (India)"},
+ { 200, "tt_RU", "Tatar (Russia)"},
+ { 201, "te_IN", "Telugu (India)"},
+ { 202, "th_TH", "Thai (Thailand)"},
+ { 203, "tig_ER", "Tigre (Eritrea)"},
+ { 204, "ti_ER", "Tigrinya (Eritrea)"},
+ { 205, "ti_ET", "Tigrinya (Ethiopia)"},
+ { 206, "tr_TR", "Turkish (Turkey)"},
+ { 207, "uk_UA", "Ukrainian (Ukraine)"},
+ { 208, "ur_PK", "Urdu (Pakistan)"},
+ { 209, "uz_AF", "Uzbek (Afghanistan)"},
+ { 210, "uz_Arab_AF", "Uzbek (Arabic, Afghanistan)"},
+ { 211, "uz_Cyrl_UZ", "Uzbek (Cyrillic, Uzbekistan)"},
+ { 212, "uz_Latn_UZ", "Uzbek (Latin, Uzbekistan)"},
+ { 213, "uz_UZ", "Uzbek (Uzbekistan)"},
+ { 214, "uz_Arab", "Uzbek (Arabic)"},
+ { 215, "uz_Cyrl", "Uzbek (Cyrillic)"},
+ { 216, "uz_Latn", "Uzbek (Latin)"},
+ { 217, "vi_VN", "Vietnamese (Vietnam)"},
+ { 218, "wal_ET", "Walamo (Ethiopia)"},
+ { 219, "cy_GB", "Welsh (United Kingdom)"},
+ { 220, "C", "English (Default)"}
+};
+/*--------------------------------------------------------------------------*/
+// Charsets to test when they are mandatory (e.g., on Debian fr_FR is not
+// accepted but fr_FR.UTF-8 is).
+// These two charsets are currently supported by Scilab, this is why there are
+// no other ones.
+#define NumberOfCharsets 2
+static char * CHARSETS[NumberOfCharsets] =
+{
+ "UTF-8",
+ "ISO-8859-1"
+};
+/*--------------------------------------------------------------------------*/
+#endif /* __TABLESLANGUAGES_H__ */
+/*--------------------------------------------------------------------------*/
diff --git a/modules/localization/src/core_Import.def b/modules/localization/src/core_Import.def
new file mode 100755
index 000000000..32fec85c3
--- /dev/null
+++ b/modules/localization/src/core_Import.def
@@ -0,0 +1,22 @@
+LIBRARY core.dll
+
+
+EXPORTS
+
+callFunctionFromGateway
+com_
+getSCIpath
+putlhsvar_
+intersci_
+createvarfromptr_
+stack_
+getrhsvar_
+gettype_
+vstk_
+checklhs_
+checkrhs_
+createvar_
+getWarningMode
+freeArrayOfString
+MyHeapAlloc
+MyHeapFree
diff --git a/modules/localization/src/io_Import.def b/modules/localization/src/io_Import.def
new file mode 100755
index 000000000..05a9f0006
--- /dev/null
+++ b/modules/localization/src/io_Import.def
@@ -0,0 +1,10 @@
+LIBRARY io.dll
+
+
+EXPORTS
+ setenvc
+
+
+
+
+ \ No newline at end of file
diff --git a/modules/localization/src/java/org/scilab/modules/localization/LocaleToLCID.java b/modules/localization/src/java/org/scilab/modules/localization/LocaleToLCID.java
new file mode 100755
index 000000000..e2040f42c
--- /dev/null
+++ b/modules/localization/src/java/org/scilab/modules/localization/LocaleToLCID.java
@@ -0,0 +1,28 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.7
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.scilab.modules.localization;
+
+
+/**
+ * @author Allan CORNET
+ * @copyright DIGITEO 2010
+ */
+public class LocaleToLCID {
+
+ /**
+ * Constructor
+ */
+ protected LocaleToLCID() {
+ throw new UnsupportedOperationException();
+ }
+ public static String convert(String pStrLocale) {
+ return LocaleToLCIDJNI.convert(pStrLocale);
+ }
+
+}
diff --git a/modules/localization/src/java/org/scilab/modules/localization/LocaleToLCIDJNI.java b/modules/localization/src/java/org/scilab/modules/localization/LocaleToLCIDJNI.java
new file mode 100755
index 000000000..7d9bc6304
--- /dev/null
+++ b/modules/localization/src/java/org/scilab/modules/localization/LocaleToLCIDJNI.java
@@ -0,0 +1,42 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.7
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.scilab.modules.localization;
+
+
+/* It is generated code. Disable checkstyle */
+//CHECKSTYLE:OFF
+/**
+ * @author Allan CORNET
+ * @copyright DIGITEO 2010
+ */
+public class LocaleToLCIDJNI {
+
+ /**
+ * Constructor
+ */
+ protected LocaleToLCIDJNI() {
+ throw new UnsupportedOperationException();
+ }
+
+ static {
+ try {
+ System.loadLibrary("scilocalization");
+ } catch (SecurityException e) {
+ System.err.println("A security manager exists and does not allow the loading of the specified dynamic library.");
+ System.err.println(e.getLocalizedMessage());
+ e.printStackTrace(System.err);
+ } catch (UnsatisfiedLinkError e) {
+ System.err.println("The native library scilocalization does not exist or cannot be found.");
+ System.err.println(e.getLocalizedMessage());
+ e.printStackTrace(System.err);
+ }
+ }
+
+ public final static native String convert(String jarg1);
+}
diff --git a/modules/localization/src/java/org/scilab/modules/localization/Messages.java b/modules/localization/src/java/org/scilab/modules/localization/Messages.java
new file mode 100755
index 000000000..973033835
--- /dev/null
+++ b/modules/localization/src/java/org/scilab/modules/localization/Messages.java
@@ -0,0 +1,32 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.4
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.scilab.modules.localization;
+
+
+/**
+ * @author Sylvestre Ledru
+ * @copyright DIGITEO 2008
+ */
+public class Messages {
+
+ /**
+ * Constructor
+ */
+ protected Messages() {
+ throw new UnsupportedOperationException();
+ }
+ public static String gettext(String key) {
+ return MessagesJNI.gettext(key);
+ }
+
+ public static String dgettext(String domain, String key) {
+ return MessagesJNI.dgettext(domain, key);
+ }
+
+}
diff --git a/modules/localization/src/java/org/scilab/modules/localization/MessagesJNI.java b/modules/localization/src/java/org/scilab/modules/localization/MessagesJNI.java
new file mode 100755
index 000000000..1fc611a94
--- /dev/null
+++ b/modules/localization/src/java/org/scilab/modules/localization/MessagesJNI.java
@@ -0,0 +1,49 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.4
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.scilab.modules.localization;
+
+
+
+/* It is generated code. Disable checkstyle */
+//CHECKSTYLE:OFF
+/**
+ * @author Sylvestre LEDRU
+ * @copyright DIGITEO 2009
+ */
+public class MessagesJNI {
+
+ /**
+ * Constructor
+ */
+ protected MessagesJNI() {
+ throw new UnsupportedOperationException();
+ }
+
+ static {
+ try {
+ if (System.getProperty("os.name").toLowerCase().contains("windows") != true) {
+ if (System.getProperty("testngTests") != null) {
+ System.loadLibrary("scilab");
+ }
+ }
+ System.loadLibrary("scilocalization");
+ } catch (SecurityException e) {
+ System.err.println("A security manager exists and does not allow the loading of the specified dynamic library.");
+ System.err.println(e.getLocalizedMessage());
+ e.printStackTrace(System.err);
+ } catch (UnsatisfiedLinkError e) {
+ System.err.println("The native library scilocalization does not exist or cannot be found.");
+ System.err.println(e.getLocalizedMessage());
+ e.printStackTrace(System.err);
+ }
+ }
+
+ public final static native String gettext(String jarg1);
+ public final static native String dgettext(String jarg1, String jarg2);
+}
diff --git a/modules/localization/src/java/org/scilab/modules/localization/WindowsDefaultLanguage.java b/modules/localization/src/java/org/scilab/modules/localization/WindowsDefaultLanguage.java
new file mode 100755
index 000000000..a34b377f1
--- /dev/null
+++ b/modules/localization/src/java/org/scilab/modules/localization/WindowsDefaultLanguage.java
@@ -0,0 +1,42 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.7
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.scilab.modules.localization;
+
+
+/**
+ * @author Calixte DENIZET
+ * @copyright Scilab Enterprises - 2012
+ */
+public class WindowsDefaultLanguage {
+
+ /**
+ * Constructor
+ */
+ protected WindowsDefaultLanguage() {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * Set and save the language in the registry (Windows only)
+ * @param[in] lang the language to set and save.
+ */
+ public static void setdefaultlanguage(String lang) {
+ WindowsDefaultLanguageJNI.setdefaultlanguage(lang);
+ }
+
+
+ /**
+ * Get the language from the registry (Windows only)
+ * @return the default language.
+ */
+ public static String getdefaultlanguage() {
+ return WindowsDefaultLanguageJNI.getdefaultlanguage();
+ }
+
+}
diff --git a/modules/localization/src/java/org/scilab/modules/localization/WindowsDefaultLanguageJNI.java b/modules/localization/src/java/org/scilab/modules/localization/WindowsDefaultLanguageJNI.java
new file mode 100755
index 000000000..00f27925f
--- /dev/null
+++ b/modules/localization/src/java/org/scilab/modules/localization/WindowsDefaultLanguageJNI.java
@@ -0,0 +1,43 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.7
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.scilab.modules.localization;
+
+
+/* It is generated code. Disable checkstyle */
+//CHECKSTYLE:OFF
+/**
+ * @author Calixte DENIZET
+ * @copyright Scilab Enterprises - 2012
+ */
+public class WindowsDefaultLanguageJNI {
+
+ /**
+ * Constructor
+ */
+ protected WindowsDefaultLanguageJNI() {
+ throw new UnsupportedOperationException();
+ }
+
+ static {
+ try {
+ System.loadLibrary("scilocalization");
+ } catch (SecurityException e) {
+ System.err.println("A security manager exists and does not allow the loading of the specified dynamic library.");
+ System.err.println(e.getLocalizedMessage());
+ e.printStackTrace(System.err);
+ } catch (UnsatisfiedLinkError e) {
+ System.err.println("The native library scilocalization does not exist or cannot be found.");
+ System.err.println(e.getLocalizedMessage());
+ e.printStackTrace(System.err);
+ }
+ }
+
+ public final static native void setdefaultlanguage(String jarg1);
+ public final static native String getdefaultlanguage();
+}
diff --git a/modules/localization/src/jni/.deps/.dirstamp b/modules/localization/src/jni/.deps/.dirstamp
new file mode 100755
index 000000000..e69de29bb
--- /dev/null
+++ b/modules/localization/src/jni/.deps/.dirstamp
diff --git a/modules/localization/src/jni/.deps/libscilocalization_algo_la-LocaleToLCID_wrap.Plo b/modules/localization/src/jni/.deps/libscilocalization_algo_la-LocaleToLCID_wrap.Plo
new file mode 100755
index 000000000..eb6a99c07
--- /dev/null
+++ b/modules/localization/src/jni/.deps/libscilocalization_algo_la-LocaleToLCID_wrap.Plo
@@ -0,0 +1,128 @@
+src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo: \
+ src/jni/LocaleToLCID_wrap.c /usr/include/stdc-predef.h \
+ /usr/lib/jvm/java-8-openjdk-amd64/include/jni.h /usr/include/stdio.h \
+ /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \
+ /usr/include/x86_64-linux-gnu/bits/wordsize.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \
+ /usr/include/x86_64-linux-gnu/bits/types.h \
+ /usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/libio.h \
+ /usr/include/_G_config.h /usr/include/wchar.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \
+ /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio2.h \
+ /usr/lib/jvm/java-8-openjdk-amd64/include/linux/jni_md.h \
+ /usr/include/stdlib.h /usr/include/x86_64-linux-gnu/bits/waitflags.h \
+ /usr/include/x86_64-linux-gnu/bits/waitstatus.h /usr/include/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap-16.h \
+ /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \
+ /usr/include/x86_64-linux-gnu/sys/select.h \
+ /usr/include/x86_64-linux-gnu/bits/select.h \
+ /usr/include/x86_64-linux-gnu/bits/sigset.h \
+ /usr/include/x86_64-linux-gnu/bits/time.h \
+ /usr/include/x86_64-linux-gnu/bits/select2.h \
+ /usr/include/x86_64-linux-gnu/sys/sysmacros.h \
+ /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib.h /usr/include/string.h \
+ /usr/include/xlocale.h /usr/include/x86_64-linux-gnu/bits/string.h \
+ /usr/include/x86_64-linux-gnu/bits/string2.h \
+ /usr/include/x86_64-linux-gnu/bits/string3.h src/c/getLcidString.h
+
+/usr/include/stdc-predef.h:
+
+/usr/lib/jvm/java-8-openjdk-amd64/include/jni.h:
+
+/usr/include/stdio.h:
+
+/usr/include/features.h:
+
+/usr/include/x86_64-linux-gnu/sys/cdefs.h:
+
+/usr/include/x86_64-linux-gnu/bits/wordsize.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs-64.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:
+
+/usr/include/x86_64-linux-gnu/bits/types.h:
+
+/usr/include/x86_64-linux-gnu/bits/typesizes.h:
+
+/usr/include/libio.h:
+
+/usr/include/_G_config.h:
+
+/usr/include/wchar.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio_lim.h:
+
+/usr/include/x86_64-linux-gnu/bits/sys_errlist.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio2.h:
+
+/usr/lib/jvm/java-8-openjdk-amd64/include/linux/jni_md.h:
+
+/usr/include/stdlib.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitflags.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitstatus.h:
+
+/usr/include/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap-16.h:
+
+/usr/include/x86_64-linux-gnu/sys/types.h:
+
+/usr/include/time.h:
+
+/usr/include/x86_64-linux-gnu/sys/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/sigset.h:
+
+/usr/include/x86_64-linux-gnu/bits/time.h:
+
+/usr/include/x86_64-linux-gnu/bits/select2.h:
+
+/usr/include/x86_64-linux-gnu/sys/sysmacros.h:
+
+/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:
+
+/usr/include/alloca.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib.h:
+
+/usr/include/string.h:
+
+/usr/include/xlocale.h:
+
+/usr/include/x86_64-linux-gnu/bits/string.h:
+
+/usr/include/x86_64-linux-gnu/bits/string2.h:
+
+/usr/include/x86_64-linux-gnu/bits/string3.h:
+
+src/c/getLcidString.h:
diff --git a/modules/localization/src/jni/.deps/libscilocalization_algo_la-Messages_wrap.Plo b/modules/localization/src/jni/.deps/libscilocalization_algo_la-Messages_wrap.Plo
new file mode 100755
index 000000000..b27f7f527
--- /dev/null
+++ b/modules/localization/src/jni/.deps/libscilocalization_algo_la-Messages_wrap.Plo
@@ -0,0 +1,147 @@
+src/jni/libscilocalization_algo_la-Messages_wrap.lo: \
+ src/jni/Messages_wrap.c /usr/include/stdc-predef.h \
+ /usr/lib/jvm/java-8-openjdk-amd64/include/jni.h /usr/include/stdio.h \
+ /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \
+ /usr/include/x86_64-linux-gnu/bits/wordsize.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \
+ /usr/include/x86_64-linux-gnu/bits/types.h \
+ /usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/libio.h \
+ /usr/include/_G_config.h /usr/include/wchar.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \
+ /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio2.h \
+ /usr/lib/jvm/java-8-openjdk-amd64/include/linux/jni_md.h \
+ /usr/include/stdlib.h /usr/include/x86_64-linux-gnu/bits/waitflags.h \
+ /usr/include/x86_64-linux-gnu/bits/waitstatus.h /usr/include/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap-16.h \
+ /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \
+ /usr/include/x86_64-linux-gnu/sys/select.h \
+ /usr/include/x86_64-linux-gnu/bits/select.h \
+ /usr/include/x86_64-linux-gnu/bits/sigset.h \
+ /usr/include/x86_64-linux-gnu/bits/time.h \
+ /usr/include/x86_64-linux-gnu/bits/select2.h \
+ /usr/include/x86_64-linux-gnu/sys/sysmacros.h \
+ /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib.h /usr/include/string.h \
+ /usr/include/xlocale.h /usr/include/x86_64-linux-gnu/bits/string.h \
+ /usr/include/x86_64-linux-gnu/bits/string2.h \
+ /usr/include/x86_64-linux-gnu/bits/string3.h \
+ ../../modules/core/includes/scilabDefaults.h includes/localizationJava.h \
+ ../../modules/core/includes/machine.h /usr/include/libintl.h \
+ /usr/include/locale.h /usr/include/x86_64-linux-gnu/bits/locale.h \
+ ../../modules/core/includes/stack-def.h \
+ ../../modules/core/includes/machine.h
+
+/usr/include/stdc-predef.h:
+
+/usr/lib/jvm/java-8-openjdk-amd64/include/jni.h:
+
+/usr/include/stdio.h:
+
+/usr/include/features.h:
+
+/usr/include/x86_64-linux-gnu/sys/cdefs.h:
+
+/usr/include/x86_64-linux-gnu/bits/wordsize.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs-64.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:
+
+/usr/include/x86_64-linux-gnu/bits/types.h:
+
+/usr/include/x86_64-linux-gnu/bits/typesizes.h:
+
+/usr/include/libio.h:
+
+/usr/include/_G_config.h:
+
+/usr/include/wchar.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio_lim.h:
+
+/usr/include/x86_64-linux-gnu/bits/sys_errlist.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio2.h:
+
+/usr/lib/jvm/java-8-openjdk-amd64/include/linux/jni_md.h:
+
+/usr/include/stdlib.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitflags.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitstatus.h:
+
+/usr/include/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap-16.h:
+
+/usr/include/x86_64-linux-gnu/sys/types.h:
+
+/usr/include/time.h:
+
+/usr/include/x86_64-linux-gnu/sys/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/sigset.h:
+
+/usr/include/x86_64-linux-gnu/bits/time.h:
+
+/usr/include/x86_64-linux-gnu/bits/select2.h:
+
+/usr/include/x86_64-linux-gnu/sys/sysmacros.h:
+
+/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:
+
+/usr/include/alloca.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib.h:
+
+/usr/include/string.h:
+
+/usr/include/xlocale.h:
+
+/usr/include/x86_64-linux-gnu/bits/string.h:
+
+/usr/include/x86_64-linux-gnu/bits/string2.h:
+
+/usr/include/x86_64-linux-gnu/bits/string3.h:
+
+../../modules/core/includes/scilabDefaults.h:
+
+includes/localizationJava.h:
+
+../../modules/core/includes/machine.h:
+
+/usr/include/libintl.h:
+
+/usr/include/locale.h:
+
+/usr/include/x86_64-linux-gnu/bits/locale.h:
+
+../../modules/core/includes/stack-def.h:
+
+../../modules/core/includes/machine.h:
diff --git a/modules/localization/src/jni/.deps/libscilocalization_algo_la-setdefaultlanguage_wrap.Plo b/modules/localization/src/jni/.deps/libscilocalization_algo_la-setdefaultlanguage_wrap.Plo
new file mode 100755
index 000000000..9c2f7cc38
--- /dev/null
+++ b/modules/localization/src/jni/.deps/libscilocalization_algo_la-setdefaultlanguage_wrap.Plo
@@ -0,0 +1,131 @@
+src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo: \
+ src/jni/setdefaultlanguage_wrap.c /usr/include/stdc-predef.h \
+ /usr/lib/jvm/java-8-openjdk-amd64/include/jni.h /usr/include/stdio.h \
+ /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \
+ /usr/include/x86_64-linux-gnu/bits/wordsize.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs.h \
+ /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \
+ /usr/include/x86_64-linux-gnu/bits/types.h \
+ /usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/libio.h \
+ /usr/include/_G_config.h /usr/include/wchar.h \
+ /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \
+ /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio.h \
+ /usr/include/x86_64-linux-gnu/bits/stdio2.h \
+ /usr/lib/jvm/java-8-openjdk-amd64/include/linux/jni_md.h \
+ /usr/include/stdlib.h /usr/include/x86_64-linux-gnu/bits/waitflags.h \
+ /usr/include/x86_64-linux-gnu/bits/waitstatus.h /usr/include/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/endian.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap.h \
+ /usr/include/x86_64-linux-gnu/bits/byteswap-16.h \
+ /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \
+ /usr/include/x86_64-linux-gnu/sys/select.h \
+ /usr/include/x86_64-linux-gnu/bits/select.h \
+ /usr/include/x86_64-linux-gnu/bits/sigset.h \
+ /usr/include/x86_64-linux-gnu/bits/time.h \
+ /usr/include/x86_64-linux-gnu/bits/select2.h \
+ /usr/include/x86_64-linux-gnu/sys/sysmacros.h \
+ /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \
+ /usr/include/x86_64-linux-gnu/bits/stdlib.h /usr/include/string.h \
+ /usr/include/xlocale.h /usr/include/x86_64-linux-gnu/bits/string.h \
+ /usr/include/x86_64-linux-gnu/bits/string2.h \
+ /usr/include/x86_64-linux-gnu/bits/string3.h includes/setgetlanguage.h \
+ ../../modules/core/includes/BOOL.h
+
+/usr/include/stdc-predef.h:
+
+/usr/lib/jvm/java-8-openjdk-amd64/include/jni.h:
+
+/usr/include/stdio.h:
+
+/usr/include/features.h:
+
+/usr/include/x86_64-linux-gnu/sys/cdefs.h:
+
+/usr/include/x86_64-linux-gnu/bits/wordsize.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs.h:
+
+/usr/include/x86_64-linux-gnu/gnu/stubs-64.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:
+
+/usr/include/x86_64-linux-gnu/bits/types.h:
+
+/usr/include/x86_64-linux-gnu/bits/typesizes.h:
+
+/usr/include/libio.h:
+
+/usr/include/_G_config.h:
+
+/usr/include/wchar.h:
+
+/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio_lim.h:
+
+/usr/include/x86_64-linux-gnu/bits/sys_errlist.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdio2.h:
+
+/usr/lib/jvm/java-8-openjdk-amd64/include/linux/jni_md.h:
+
+/usr/include/stdlib.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitflags.h:
+
+/usr/include/x86_64-linux-gnu/bits/waitstatus.h:
+
+/usr/include/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/endian.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap.h:
+
+/usr/include/x86_64-linux-gnu/bits/byteswap-16.h:
+
+/usr/include/x86_64-linux-gnu/sys/types.h:
+
+/usr/include/time.h:
+
+/usr/include/x86_64-linux-gnu/sys/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/select.h:
+
+/usr/include/x86_64-linux-gnu/bits/sigset.h:
+
+/usr/include/x86_64-linux-gnu/bits/time.h:
+
+/usr/include/x86_64-linux-gnu/bits/select2.h:
+
+/usr/include/x86_64-linux-gnu/sys/sysmacros.h:
+
+/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:
+
+/usr/include/alloca.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:
+
+/usr/include/x86_64-linux-gnu/bits/stdlib.h:
+
+/usr/include/string.h:
+
+/usr/include/xlocale.h:
+
+/usr/include/x86_64-linux-gnu/bits/string.h:
+
+/usr/include/x86_64-linux-gnu/bits/string2.h:
+
+/usr/include/x86_64-linux-gnu/bits/string3.h:
+
+includes/setgetlanguage.h:
+
+../../modules/core/includes/BOOL.h:
diff --git a/modules/localization/src/jni/.dirstamp b/modules/localization/src/jni/.dirstamp
new file mode 100755
index 000000000..e69de29bb
--- /dev/null
+++ b/modules/localization/src/jni/.dirstamp
diff --git a/modules/localization/src/jni/.libs/libscilocalization_algo_la-LocaleToLCID_wrap.o b/modules/localization/src/jni/.libs/libscilocalization_algo_la-LocaleToLCID_wrap.o
new file mode 100755
index 000000000..81763e60a
--- /dev/null
+++ b/modules/localization/src/jni/.libs/libscilocalization_algo_la-LocaleToLCID_wrap.o
Binary files differ
diff --git a/modules/localization/src/jni/.libs/libscilocalization_algo_la-Messages_wrap.o b/modules/localization/src/jni/.libs/libscilocalization_algo_la-Messages_wrap.o
new file mode 100755
index 000000000..efe153cd9
--- /dev/null
+++ b/modules/localization/src/jni/.libs/libscilocalization_algo_la-Messages_wrap.o
Binary files differ
diff --git a/modules/localization/src/jni/.libs/libscilocalization_algo_la-setdefaultlanguage_wrap.o b/modules/localization/src/jni/.libs/libscilocalization_algo_la-setdefaultlanguage_wrap.o
new file mode 100755
index 000000000..f3aceab00
--- /dev/null
+++ b/modules/localization/src/jni/.libs/libscilocalization_algo_la-setdefaultlanguage_wrap.o
Binary files differ
diff --git a/modules/localization/src/jni/LocaleToLCID.i b/modules/localization/src/jni/LocaleToLCID.i
new file mode 100755
index 000000000..d473f8e35
--- /dev/null
+++ b/modules/localization/src/jni/LocaleToLCID.i
@@ -0,0 +1,87 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2010 - DIGITEO - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+/* Messages.i */
+/**
+ * Windows: swig -java -package org.scilab.modules.localization -outdir ../java/org/scilab/modules/localization/ LocaleToLCID.i
+ * Others: Use the option --enable-build-swig to the configure
+*/
+%module LocaleToLCID
+
+%{
+#include "getLcidString.h"
+%}
+
+/* JavaDoc for LocaleToLCIDJNI class */
+%pragma(java) jniclassclassmodifiers=%{
+/* It is generated code. Disable checkstyle */
+//CHECKSTYLE:OFF
+ /**
+ * @author Allan CORNET
+ * @copyright DIGITEO 2010
+ */
+public class%}
+
+/* Constructor for LocaleToLCIDJNI class */
+%pragma(java) jniclasscode="
+ /**
+ * Constructor
+ */
+ protected LocaleToLCIDJNI() {
+ throw new UnsupportedOperationException();
+ }";
+
+/* static load of library */
+%pragma(java) jniclasscode=%{
+ static {
+ try {
+ System.loadLibrary("scilocalization");
+ } catch (SecurityException e) {
+ System.err.println("A security manager exists and does not allow the loading of the specified dynamic library.");
+ System.err.println(e.getLocalizedMessage());
+ e.printStackTrace(System.err);
+ } catch (UnsatisfiedLinkError e) {
+ System.err.println("The native library scilocalization does not exist or cannot be found.");
+ System.err.println(e.getLocalizedMessage());
+ e.printStackTrace(System.err);
+ }
+ }
+%}
+
+/* JavaDoc for LocaleToLCID class */
+%pragma(java) moduleclassmodifiers="
+ /**
+ * @author Allan CORNET
+ * @copyright DIGITEO 2010
+ */
+public class";
+
+/* Constructor for LocaleToLCID class */
+%pragma(java) modulecode="
+ /**
+ * Constructor
+ */
+ protected LocaleToLCID() {
+ throw new UnsupportedOperationException();
+ }";
+
+/* JavaDoc */
+%javamethodmodifiers convert(const char *locale) "
+/**
+* convert a locale string to LCID string used by CHM builder
+* @param[in] string the key of the message (usually the english msg)
+* @return LCID string
+*/
+public";
+
+
+%rename(convert) getLcidString;
+char *getLcidString(const char *pStrLocale);
diff --git a/modules/localization/src/jni/LocaleToLCID_wrap.c b/modules/localization/src/jni/LocaleToLCID_wrap.c
new file mode 100755
index 000000000..87d82d898
--- /dev/null
+++ b/modules/localization/src/jni/LocaleToLCID_wrap.c
@@ -0,0 +1,219 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.7
+ *
+ * This file is not intended to be easily readable and contains a number of
+ * coding conventions designed to improve portability and efficiency. Do not make
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+#define SWIGJAVA
+
+/* -----------------------------------------------------------------------------
+ * This section contains generic SWIG labels for method/variable
+ * declarations/attributes, and other compiler dependent labels.
+ * ----------------------------------------------------------------------------- */
+
+/* template workaround for compilers that cannot correctly implement the C++ standard */
+#ifndef SWIGTEMPLATEDISAMBIGUATOR
+# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
+# define SWIGTEMPLATEDISAMBIGUATOR template
+# elif defined(__HP_aCC)
+/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
+/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
+# define SWIGTEMPLATEDISAMBIGUATOR template
+# else
+# define SWIGTEMPLATEDISAMBIGUATOR
+# endif
+#endif
+
+/* inline attribute */
+#ifndef SWIGINLINE
+# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
+# define SWIGINLINE inline
+# else
+# define SWIGINLINE
+# endif
+#endif
+
+/* attribute recognised by some compilers to avoid 'unused' warnings */
+#ifndef SWIGUNUSED
+# if defined(__GNUC__)
+# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
+# define SWIGUNUSED __attribute__ ((__unused__))
+# else
+# define SWIGUNUSED
+# endif
+# elif defined(__ICC)
+# define SWIGUNUSED __attribute__ ((__unused__))
+# else
+# define SWIGUNUSED
+# endif
+#endif
+
+#ifndef SWIG_MSC_UNSUPPRESS_4505
+# if defined(_MSC_VER)
+# pragma warning(disable : 4505) /* unreferenced local function has been removed */
+# endif
+#endif
+
+#ifndef SWIGUNUSEDPARM
+# ifdef __cplusplus
+# define SWIGUNUSEDPARM(p)
+# else
+# define SWIGUNUSEDPARM(p) p SWIGUNUSED
+# endif
+#endif
+
+/* internal SWIG method */
+#ifndef SWIGINTERN
+# define SWIGINTERN static SWIGUNUSED
+#endif
+
+/* internal inline SWIG method */
+#ifndef SWIGINTERNINLINE
+# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
+#endif
+
+/* exporting methods */
+#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
+# ifndef GCC_HASCLASSVISIBILITY
+# define GCC_HASCLASSVISIBILITY
+# endif
+#endif
+
+#ifndef SWIGEXPORT
+# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
+# if defined(STATIC_LINKED)
+# define SWIGEXPORT
+# else
+# define SWIGEXPORT __declspec(dllexport)
+# endif
+# else
+# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
+# define SWIGEXPORT __attribute__ ((visibility("default")))
+# else
+# define SWIGEXPORT
+# endif
+# endif
+#endif
+
+/* calling conventions for Windows */
+#ifndef SWIGSTDCALL
+# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
+# define SWIGSTDCALL __stdcall
+# else
+# define SWIGSTDCALL
+# endif
+#endif
+
+/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
+#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
+# define _CRT_SECURE_NO_DEPRECATE
+#endif
+
+/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
+#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
+# define _SCL_SECURE_NO_DEPRECATE
+#endif
+
+
+
+/* Fix for jlong on some versions of gcc on Windows */
+#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
+ typedef long long __int64;
+#endif
+
+/* Fix for jlong on 64-bit x86 Solaris */
+#if defined(__x86_64)
+# ifdef _LP64
+# undef _LP64
+# endif
+#endif
+
+#include <jni.h>
+#include <stdlib.h>
+#include <string.h>
+
+
+/* Support for throwing Java exceptions */
+typedef enum {
+ SWIG_JavaOutOfMemoryError = 1,
+ SWIG_JavaIOException,
+ SWIG_JavaRuntimeException,
+ SWIG_JavaIndexOutOfBoundsException,
+ SWIG_JavaArithmeticException,
+ SWIG_JavaIllegalArgumentException,
+ SWIG_JavaNullPointerException,
+ SWIG_JavaDirectorPureVirtual,
+ SWIG_JavaUnknownError
+} SWIG_JavaExceptionCodes;
+
+typedef struct {
+ SWIG_JavaExceptionCodes code;
+ const char *java_exception;
+} SWIG_JavaExceptions_t;
+
+
+static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg) {
+ jclass excep;
+ static const SWIG_JavaExceptions_t java_exceptions[] = {
+ { SWIG_JavaOutOfMemoryError, "java/lang/OutOfMemoryError" },
+ { SWIG_JavaIOException, "java/io/IOException" },
+ { SWIG_JavaRuntimeException, "java/lang/RuntimeException" },
+ { SWIG_JavaIndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException" },
+ { SWIG_JavaArithmeticException, "java/lang/ArithmeticException" },
+ { SWIG_JavaIllegalArgumentException, "java/lang/IllegalArgumentException" },
+ { SWIG_JavaNullPointerException, "java/lang/NullPointerException" },
+ { SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" },
+ { SWIG_JavaUnknownError, "java/lang/UnknownError" },
+ { (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" }
+ };
+ const SWIG_JavaExceptions_t *except_ptr = java_exceptions;
+
+ while (except_ptr->code != code && except_ptr->code)
+ except_ptr++;
+
+ (*jenv)->ExceptionClear(jenv);
+ excep = (*jenv)->FindClass(jenv, except_ptr->java_exception);
+ if (excep)
+ (*jenv)->ThrowNew(jenv, excep, msg);
+}
+
+
+/* Contract support */
+
+#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else
+
+
+#include "getLcidString.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+SWIGEXPORT jstring JNICALL Java_org_scilab_modules_localization_LocaleToLCIDJNI_convert(JNIEnv *jenv, jclass jcls, jstring jarg1) {
+ jstring jresult = 0 ;
+ char *arg1 = (char *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = 0;
+ if (jarg1) {
+ arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
+ if (!arg1) return 0;
+ }
+ result = (char *)getLcidString((char const *)arg1);
+ if (result) jresult = (*jenv)->NewStringUTF(jenv, (const char *)result);
+ if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, (const char *)arg1);
+ return jresult;
+}
+
+
+#ifdef __cplusplus
+}
+#endif
+
diff --git a/modules/localization/src/jni/Messages.i b/modules/localization/src/jni/Messages.i
new file mode 100755
index 000000000..366cbe026
--- /dev/null
+++ b/modules/localization/src/jni/Messages.i
@@ -0,0 +1,99 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Sylvestre LEDRU
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+/* Messages.i */
+/**
+ * Windows: swig -java -package org.scilab.modules.localization -outdir ../java/org/scilab/modules/localization/ Messages.i
+ * Others: Use the option --enable-build-swig to the configure
+*/
+%module Messages
+
+%{
+#include "scilabDefaults.h"
+#include "localizationJava.h"
+%}
+
+
+/* JavaDoc for MessagesJNI class */
+%pragma(java) jniclassclassmodifiers=%{
+
+/* It is generated code. Disable checkstyle */
+//CHECKSTYLE:OFF
+ /**
+ * @author Sylvestre LEDRU
+ * @copyright DIGITEO 2009
+ */
+public class%}
+
+/* Constructor for MessagesJNI class */
+%pragma(java) jniclasscode="
+ /**
+ * Constructor
+ */
+ protected MessagesJNI() {
+ throw new UnsupportedOperationException();
+ }";
+
+/* static load of library */
+%pragma(java) jniclasscode=%{
+ static {
+ try {
+ if (System.getProperty("os.name").toLowerCase().contains("windows") != true) {
+ if (System.getProperty("testngTests")!=null) {
+ System.loadLibrary("scilab");
+ }
+ }
+ System.loadLibrary("scilocalization");
+ } catch (SecurityException e) {
+ System.err.println("A security manager exists and does not allow the loading of the specified dynamic library.");
+ System.err.println(e.getLocalizedMessage());
+ e.printStackTrace(System.err);
+ } catch (UnsatisfiedLinkError e) {
+ System.err.println("The native library scilocalization does not exist or cannot be found.");
+ System.err.println(e.getLocalizedMessage());
+ e.printStackTrace(System.err);
+ }
+ }
+%}
+
+/* JavaDoc for Messages class */
+%pragma(java) moduleclassmodifiers="
+ /**
+ * @author Sylvestre Ledru
+ * @copyright DIGITEO 2008
+ */
+public class";
+
+/* Constructor for Messages class */
+%pragma(java) modulecode="
+ /**
+ * Constructor
+ */
+ protected Messages() {
+ throw new UnsupportedOperationException();
+ }";
+
+/* JavaDoc */
+%javamethodmodifiers gettext(char *key) "
+/**
+* Translate a message
+* @param[in] string the key of the message (usually the english msg)
+* @return The localized string
+*/
+public";
+
+/* Thanks to rename, gettext is the Java method and in the native code,
+we are calling the C function scigettext */
+%rename(gettext) scigettext;
+char *scigettext(char *key);
+
+%rename(dgettext) scidgettext;
+char *scidgettext(char *domain, char *key);
diff --git a/modules/localization/src/jni/Messages_wrap.c b/modules/localization/src/jni/Messages_wrap.c
new file mode 100755
index 000000000..3e322f0d3
--- /dev/null
+++ b/modules/localization/src/jni/Messages_wrap.c
@@ -0,0 +1,246 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.7
+ *
+ * This file is not intended to be easily readable and contains a number of
+ * coding conventions designed to improve portability and efficiency. Do not make
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+#define SWIGJAVA
+
+/* -----------------------------------------------------------------------------
+ * This section contains generic SWIG labels for method/variable
+ * declarations/attributes, and other compiler dependent labels.
+ * ----------------------------------------------------------------------------- */
+
+/* template workaround for compilers that cannot correctly implement the C++ standard */
+#ifndef SWIGTEMPLATEDISAMBIGUATOR
+# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
+# define SWIGTEMPLATEDISAMBIGUATOR template
+# elif defined(__HP_aCC)
+/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
+/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
+# define SWIGTEMPLATEDISAMBIGUATOR template
+# else
+# define SWIGTEMPLATEDISAMBIGUATOR
+# endif
+#endif
+
+/* inline attribute */
+#ifndef SWIGINLINE
+# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
+# define SWIGINLINE inline
+# else
+# define SWIGINLINE
+# endif
+#endif
+
+/* attribute recognised by some compilers to avoid 'unused' warnings */
+#ifndef SWIGUNUSED
+# if defined(__GNUC__)
+# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
+# define SWIGUNUSED __attribute__ ((__unused__))
+# else
+# define SWIGUNUSED
+# endif
+# elif defined(__ICC)
+# define SWIGUNUSED __attribute__ ((__unused__))
+# else
+# define SWIGUNUSED
+# endif
+#endif
+
+#ifndef SWIG_MSC_UNSUPPRESS_4505
+# if defined(_MSC_VER)
+# pragma warning(disable : 4505) /* unreferenced local function has been removed */
+# endif
+#endif
+
+#ifndef SWIGUNUSEDPARM
+# ifdef __cplusplus
+# define SWIGUNUSEDPARM(p)
+# else
+# define SWIGUNUSEDPARM(p) p SWIGUNUSED
+# endif
+#endif
+
+/* internal SWIG method */
+#ifndef SWIGINTERN
+# define SWIGINTERN static SWIGUNUSED
+#endif
+
+/* internal inline SWIG method */
+#ifndef SWIGINTERNINLINE
+# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
+#endif
+
+/* exporting methods */
+#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
+# ifndef GCC_HASCLASSVISIBILITY
+# define GCC_HASCLASSVISIBILITY
+# endif
+#endif
+
+#ifndef SWIGEXPORT
+# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
+# if defined(STATIC_LINKED)
+# define SWIGEXPORT
+# else
+# define SWIGEXPORT __declspec(dllexport)
+# endif
+# else
+# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
+# define SWIGEXPORT __attribute__ ((visibility("default")))
+# else
+# define SWIGEXPORT
+# endif
+# endif
+#endif
+
+/* calling conventions for Windows */
+#ifndef SWIGSTDCALL
+# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
+# define SWIGSTDCALL __stdcall
+# else
+# define SWIGSTDCALL
+# endif
+#endif
+
+/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
+#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
+# define _CRT_SECURE_NO_DEPRECATE
+#endif
+
+/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
+#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
+# define _SCL_SECURE_NO_DEPRECATE
+#endif
+
+
+
+/* Fix for jlong on some versions of gcc on Windows */
+#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
+ typedef long long __int64;
+#endif
+
+/* Fix for jlong on 64-bit x86 Solaris */
+#if defined(__x86_64)
+# ifdef _LP64
+# undef _LP64
+# endif
+#endif
+
+#include <jni.h>
+#include <stdlib.h>
+#include <string.h>
+
+
+/* Support for throwing Java exceptions */
+typedef enum {
+ SWIG_JavaOutOfMemoryError = 1,
+ SWIG_JavaIOException,
+ SWIG_JavaRuntimeException,
+ SWIG_JavaIndexOutOfBoundsException,
+ SWIG_JavaArithmeticException,
+ SWIG_JavaIllegalArgumentException,
+ SWIG_JavaNullPointerException,
+ SWIG_JavaDirectorPureVirtual,
+ SWIG_JavaUnknownError
+} SWIG_JavaExceptionCodes;
+
+typedef struct {
+ SWIG_JavaExceptionCodes code;
+ const char *java_exception;
+} SWIG_JavaExceptions_t;
+
+
+static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg) {
+ jclass excep;
+ static const SWIG_JavaExceptions_t java_exceptions[] = {
+ { SWIG_JavaOutOfMemoryError, "java/lang/OutOfMemoryError" },
+ { SWIG_JavaIOException, "java/io/IOException" },
+ { SWIG_JavaRuntimeException, "java/lang/RuntimeException" },
+ { SWIG_JavaIndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException" },
+ { SWIG_JavaArithmeticException, "java/lang/ArithmeticException" },
+ { SWIG_JavaIllegalArgumentException, "java/lang/IllegalArgumentException" },
+ { SWIG_JavaNullPointerException, "java/lang/NullPointerException" },
+ { SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" },
+ { SWIG_JavaUnknownError, "java/lang/UnknownError" },
+ { (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" }
+ };
+ const SWIG_JavaExceptions_t *except_ptr = java_exceptions;
+
+ while (except_ptr->code != code && except_ptr->code)
+ except_ptr++;
+
+ (*jenv)->ExceptionClear(jenv);
+ excep = (*jenv)->FindClass(jenv, except_ptr->java_exception);
+ if (excep)
+ (*jenv)->ThrowNew(jenv, excep, msg);
+}
+
+
+/* Contract support */
+
+#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else
+
+
+#include "scilabDefaults.h"
+#include "localizationJava.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+SWIGEXPORT jstring JNICALL Java_org_scilab_modules_localization_MessagesJNI_gettext(JNIEnv *jenv, jclass jcls, jstring jarg1) {
+ jstring jresult = 0 ;
+ char *arg1 = (char *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = 0;
+ if (jarg1) {
+ arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
+ if (!arg1) return 0;
+ }
+ result = (char *)scigettext(arg1);
+ if (result) jresult = (*jenv)->NewStringUTF(jenv, (const char *)result);
+ if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, (const char *)arg1);
+ return jresult;
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_scilab_modules_localization_MessagesJNI_dgettext(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) {
+ jstring jresult = 0 ;
+ char *arg1 = (char *) 0 ;
+ char *arg2 = (char *) 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = 0;
+ if (jarg1) {
+ arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
+ if (!arg1) return 0;
+ }
+ arg2 = 0;
+ if (jarg2) {
+ arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
+ if (!arg2) return 0;
+ }
+ result = (char *)scidgettext(arg1,arg2);
+ if (result) jresult = (*jenv)->NewStringUTF(jenv, (const char *)result);
+ if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, (const char *)arg1);
+ if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, (const char *)arg2);
+ return jresult;
+}
+
+
+#ifdef __cplusplus
+}
+#endif
+
diff --git a/modules/localization/src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo b/modules/localization/src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo
new file mode 100755
index 000000000..d01a34b0a
--- /dev/null
+++ b/modules/localization/src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo
@@ -0,0 +1,12 @@
+# src/jni/libscilocalization_algo_la-LocaleToLCID_wrap.lo - a libtool object file
+# Generated by libtool (GNU libtool) 2.4.2
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object='.libs/libscilocalization_algo_la-LocaleToLCID_wrap.o'
+
+# Name of the non-PIC object
+non_pic_object=none
+
diff --git a/modules/localization/src/jni/libscilocalization_algo_la-Messages_wrap.lo b/modules/localization/src/jni/libscilocalization_algo_la-Messages_wrap.lo
new file mode 100755
index 000000000..0503ce2d7
--- /dev/null
+++ b/modules/localization/src/jni/libscilocalization_algo_la-Messages_wrap.lo
@@ -0,0 +1,12 @@
+# src/jni/libscilocalization_algo_la-Messages_wrap.lo - a libtool object file
+# Generated by libtool (GNU libtool) 2.4.2
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object='.libs/libscilocalization_algo_la-Messages_wrap.o'
+
+# Name of the non-PIC object
+non_pic_object=none
+
diff --git a/modules/localization/src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo b/modules/localization/src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo
new file mode 100755
index 000000000..3ff9b505f
--- /dev/null
+++ b/modules/localization/src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo
@@ -0,0 +1,12 @@
+# src/jni/libscilocalization_algo_la-setdefaultlanguage_wrap.lo - a libtool object file
+# Generated by libtool (GNU libtool) 2.4.2
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object='.libs/libscilocalization_algo_la-setdefaultlanguage_wrap.o'
+
+# Name of the non-PIC object
+non_pic_object=none
+
diff --git a/modules/localization/src/jni/setdefaultlanguage.i b/modules/localization/src/jni/setdefaultlanguage.i
new file mode 100755
index 000000000..ebc1618b8
--- /dev/null
+++ b/modules/localization/src/jni/setdefaultlanguage.i
@@ -0,0 +1,95 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+/* Messages.i */
+/**
+ * Windows: swig -java -package org.scilab.modules.localization -outdir ../java/org/scilab/modules/localization/ setdefaultlanguage.i
+ * Others: Use the option --enable-build-swig to the configure
+*/
+%module WindowsDefaultLanguage
+
+%{
+#include "setgetlanguage.h"
+%}
+
+/* JavaDoc for WindowsDefaultLanguage class */
+%pragma(java) jniclassclassmodifiers=%{
+/* It is generated code. Disable checkstyle */
+//CHECKSTYLE:OFF
+ /**
+ * @author Calixte DENIZET
+ * @copyright Scilab Enterprises - 2012
+ */
+public class%}
+
+/* Constructor for WindowsDefaultLanguageJNI class */
+%pragma(java) jniclasscode="
+ /**
+ * Constructor
+ */
+ protected WindowsDefaultLanguageJNI() {
+ throw new UnsupportedOperationException();
+ }";
+
+/* static load of library */
+%pragma(java) jniclasscode=%{
+ static {
+ try {
+ System.loadLibrary("scilocalization");
+ } catch (SecurityException e) {
+ System.err.println("A security manager exists and does not allow the loading of the specified dynamic library.");
+ System.err.println(e.getLocalizedMessage());
+ e.printStackTrace(System.err);
+ } catch (UnsatisfiedLinkError e) {
+ System.err.println("The native library scilocalization does not exist or cannot be found.");
+ System.err.println(e.getLocalizedMessage());
+ e.printStackTrace(System.err);
+ }
+ }
+%}
+
+/* JavaDoc for WindowsDefaultLanguage class */
+%pragma(java) moduleclassmodifiers="
+ /**
+ * @author Calixte DENIZET
+ * @copyright Scilab Enterprises - 2012
+ */
+public class";
+
+/* Constructor for WindowsDefaultLanguage class */
+%pragma(java) modulecode="
+ /**
+ * Constructor
+ */
+ protected WindowsDefaultLanguage() {
+ throw new UnsupportedOperationException();
+ }";
+
+/* JavaDoc */
+%javamethodmodifiers setdefaultlanguage(const char *locale) "
+/**
+* Set and save the language in the registry (Windows only)
+* @param[in] lang the language to set and save.
+*/
+public";
+
+
+void setdefaultlanguage(const char *lang);
+
+%javamethodmodifiers getdefaultlanguage(void) "
+/**
+* Get the language from the registry (Windows only)
+* @return the default language.
+*/
+public";
+
+
+char * getdefaultlanguage(void);
diff --git a/modules/localization/src/jni/setdefaultlanguage_wrap.c b/modules/localization/src/jni/setdefaultlanguage_wrap.c
new file mode 100755
index 000000000..6077594bf
--- /dev/null
+++ b/modules/localization/src/jni/setdefaultlanguage_wrap.c
@@ -0,0 +1,227 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.7
+ *
+ * This file is not intended to be easily readable and contains a number of
+ * coding conventions designed to improve portability and efficiency. Do not make
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+#define SWIGJAVA
+
+/* -----------------------------------------------------------------------------
+ * This section contains generic SWIG labels for method/variable
+ * declarations/attributes, and other compiler dependent labels.
+ * ----------------------------------------------------------------------------- */
+
+/* template workaround for compilers that cannot correctly implement the C++ standard */
+#ifndef SWIGTEMPLATEDISAMBIGUATOR
+# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
+# define SWIGTEMPLATEDISAMBIGUATOR template
+# elif defined(__HP_aCC)
+/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
+/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
+# define SWIGTEMPLATEDISAMBIGUATOR template
+# else
+# define SWIGTEMPLATEDISAMBIGUATOR
+# endif
+#endif
+
+/* inline attribute */
+#ifndef SWIGINLINE
+# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
+# define SWIGINLINE inline
+# else
+# define SWIGINLINE
+# endif
+#endif
+
+/* attribute recognised by some compilers to avoid 'unused' warnings */
+#ifndef SWIGUNUSED
+# if defined(__GNUC__)
+# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
+# define SWIGUNUSED __attribute__ ((__unused__))
+# else
+# define SWIGUNUSED
+# endif
+# elif defined(__ICC)
+# define SWIGUNUSED __attribute__ ((__unused__))
+# else
+# define SWIGUNUSED
+# endif
+#endif
+
+#ifndef SWIG_MSC_UNSUPPRESS_4505
+# if defined(_MSC_VER)
+# pragma warning(disable : 4505) /* unreferenced local function has been removed */
+# endif
+#endif
+
+#ifndef SWIGUNUSEDPARM
+# ifdef __cplusplus
+# define SWIGUNUSEDPARM(p)
+# else
+# define SWIGUNUSEDPARM(p) p SWIGUNUSED
+# endif
+#endif
+
+/* internal SWIG method */
+#ifndef SWIGINTERN
+# define SWIGINTERN static SWIGUNUSED
+#endif
+
+/* internal inline SWIG method */
+#ifndef SWIGINTERNINLINE
+# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
+#endif
+
+/* exporting methods */
+#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
+# ifndef GCC_HASCLASSVISIBILITY
+# define GCC_HASCLASSVISIBILITY
+# endif
+#endif
+
+#ifndef SWIGEXPORT
+# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
+# if defined(STATIC_LINKED)
+# define SWIGEXPORT
+# else
+# define SWIGEXPORT __declspec(dllexport)
+# endif
+# else
+# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
+# define SWIGEXPORT __attribute__ ((visibility("default")))
+# else
+# define SWIGEXPORT
+# endif
+# endif
+#endif
+
+/* calling conventions for Windows */
+#ifndef SWIGSTDCALL
+# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
+# define SWIGSTDCALL __stdcall
+# else
+# define SWIGSTDCALL
+# endif
+#endif
+
+/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
+#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
+# define _CRT_SECURE_NO_DEPRECATE
+#endif
+
+/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
+#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
+# define _SCL_SECURE_NO_DEPRECATE
+#endif
+
+
+
+/* Fix for jlong on some versions of gcc on Windows */
+#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
+ typedef long long __int64;
+#endif
+
+/* Fix for jlong on 64-bit x86 Solaris */
+#if defined(__x86_64)
+# ifdef _LP64
+# undef _LP64
+# endif
+#endif
+
+#include <jni.h>
+#include <stdlib.h>
+#include <string.h>
+
+
+/* Support for throwing Java exceptions */
+typedef enum {
+ SWIG_JavaOutOfMemoryError = 1,
+ SWIG_JavaIOException,
+ SWIG_JavaRuntimeException,
+ SWIG_JavaIndexOutOfBoundsException,
+ SWIG_JavaArithmeticException,
+ SWIG_JavaIllegalArgumentException,
+ SWIG_JavaNullPointerException,
+ SWIG_JavaDirectorPureVirtual,
+ SWIG_JavaUnknownError
+} SWIG_JavaExceptionCodes;
+
+typedef struct {
+ SWIG_JavaExceptionCodes code;
+ const char *java_exception;
+} SWIG_JavaExceptions_t;
+
+
+static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg) {
+ jclass excep;
+ static const SWIG_JavaExceptions_t java_exceptions[] = {
+ { SWIG_JavaOutOfMemoryError, "java/lang/OutOfMemoryError" },
+ { SWIG_JavaIOException, "java/io/IOException" },
+ { SWIG_JavaRuntimeException, "java/lang/RuntimeException" },
+ { SWIG_JavaIndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException" },
+ { SWIG_JavaArithmeticException, "java/lang/ArithmeticException" },
+ { SWIG_JavaIllegalArgumentException, "java/lang/IllegalArgumentException" },
+ { SWIG_JavaNullPointerException, "java/lang/NullPointerException" },
+ { SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" },
+ { SWIG_JavaUnknownError, "java/lang/UnknownError" },
+ { (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" }
+ };
+ const SWIG_JavaExceptions_t *except_ptr = java_exceptions;
+
+ while (except_ptr->code != code && except_ptr->code)
+ except_ptr++;
+
+ (*jenv)->ExceptionClear(jenv);
+ excep = (*jenv)->FindClass(jenv, except_ptr->java_exception);
+ if (excep)
+ (*jenv)->ThrowNew(jenv, excep, msg);
+}
+
+
+/* Contract support */
+
+#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else
+
+
+#include "setgetlanguage.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+SWIGEXPORT void JNICALL Java_org_scilab_modules_localization_WindowsDefaultLanguageJNI_setdefaultlanguage(JNIEnv *jenv, jclass jcls, jstring jarg1) {
+ char *arg1 = (char *) 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ arg1 = 0;
+ if (jarg1) {
+ arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
+ if (!arg1) return ;
+ }
+ setdefaultlanguage((char const *)arg1);
+ if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, (const char *)arg1);
+}
+
+
+SWIGEXPORT jstring JNICALL Java_org_scilab_modules_localization_WindowsDefaultLanguageJNI_getdefaultlanguage(JNIEnv *jenv, jclass jcls) {
+ jstring jresult = 0 ;
+ char *result = 0 ;
+
+ (void)jenv;
+ (void)jcls;
+ result = (char *)getdefaultlanguage();
+ if (result) jresult = (*jenv)->NewStringUTF(jenv, (const char *)result);
+ return jresult;
+}
+
+
+#ifdef __cplusplus
+}
+#endif
+
diff --git a/modules/localization/src/localization.rc b/modules/localization/src/localization.rc
new file mode 100755
index 000000000..59fc6b249
--- /dev/null
+++ b/modules/localization/src/localization.rc
@@ -0,0 +1,96 @@
+// Microsoft Visual C++ generated resource script.
+//
+
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+//#include "afxres.h"
+#define APSTUDIO_HIDDEN_SYMBOLS
+#include "windows.h"
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// French (France) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA)
+#ifdef _WIN32
+LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
+#pragma code_page(1252)
+#endif //_WIN32
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE
+BEGIN
+ "resource.h\0"
+END
+
+3 TEXTINCLUDE
+BEGIN
+ "\r\n"
+ "\0"
+END
+
+#endif // APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Version
+//
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION 5,5,2,0
+ PRODUCTVERSION 5,5,2,0
+ FILEFLAGSMASK 0x17L
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x4L
+ FILETYPE 0x2L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040c04b0"
+ BEGIN
+ VALUE "FileDescription", "localization module"
+ VALUE "FileVersion", "5, 5, 2, 0"
+ VALUE "InternalName", "localization module"
+ VALUE "LegalCopyright", "Copyright (C) 2017"
+ VALUE "OriginalFilename", "scilocalization.dll"
+ VALUE "ProductName", "localization module"
+ VALUE "ProductVersion", "5, 5, 2, 0"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x40c, 1200
+ END
+END
+
+#endif // French (France) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+
+
+/////////////////////////////////////////////////////////////////////////////
+#endif // not APSTUDIO_INVOKED
+
diff --git a/modules/localization/src/localization.vcxproj b/modules/localization/src/localization.vcxproj
new file mode 100755
index 000000000..b26ea36b2
--- /dev/null
+++ b/modules/localization/src/localization.vcxproj
@@ -0,0 +1,304 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x64">
+ <Configuration>Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x64">
+ <Configuration>Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>{ECFFEB0C-1EDA-45EE-9A10-B18143852E17}</ProjectGuid>
+ <RootNamespace>localization</RootNamespace>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseOfMfc>false</UseOfMfc>
+ <CharacterSet>MultiByte</CharacterSet>
+ <PlatformToolset>v110</PlatformToolset>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseOfMfc>false</UseOfMfc>
+ <CharacterSet>MultiByte</CharacterSet>
+ <PlatformToolset>v110</PlatformToolset>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseOfMfc>false</UseOfMfc>
+ <CharacterSet>MultiByte</CharacterSet>
+ <PlatformToolset>v110</PlatformToolset>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseOfMfc>false</UseOfMfc>
+ <CharacterSet>MultiByte</CharacterSet>
+ <PlatformToolset>v110</PlatformToolset>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+ <ImportGroup Label="ExtensionSettings">
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup>
+ <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)bin\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(ProjectDir)$(Configuration)\</IntDir>
+ <PreBuildEventUseInBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</PreBuildEventUseInBuild>
+ <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)bin\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(ProjectDir)$(Configuration)\</IntDir>
+ <PreBuildEventUseInBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</PreBuildEventUseInBuild>
+ <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)bin\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(ProjectDir)$(Configuration)\</IntDir>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)bin\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(ProjectDir)$(Configuration)\</IntDir>
+ <TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">sci$(ProjectName)</TargetName>
+ <TargetName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">sci$(ProjectName)</TargetName>
+ <TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">sci$(ProjectName)</TargetName>
+ <TargetName Condition="'$(Configuration)|$(Platform)'=='Release|x64'">sci$(ProjectName)</TargetName>
+ </PropertyGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <ClCompile>
+ <Optimization>Disabled</Optimization>
+ <AdditionalIncludeDirectories>../src/c;../includes;../../core/includes;../../output_stream/includes;../../windows_tools/includes;../../fileio/includes;../../string/src/c;../../string/includes;../../../libs/intl;../../../libs/libxml2;../../../libs/libxml2/libxml;../../../java/jdk/include;../../../java/jdk/include/win32;../../../libs/GetWindowsVersion;../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>FORDLL;_DLL;_DEBUG;_CRT_SECURE_NO_DEPRECATE;EXPORT_LOCALIZATION_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
+ <AssemblerListingLocation>$(Configuration)/</AssemblerListingLocation>
+ <ObjectFileName>$(Configuration)/</ObjectFileName>
+ <WarningLevel>Level3</WarningLevel>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x040c</Culture>
+ </ResourceCompile>
+ <PreLinkEvent>
+ <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1&gt;NUL 2&gt;NUL
+lib /DEF:"$(ProjectDir)io_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)io.lib" 1&gt;NUL 2&gt;NUL
+</Command>
+ </PreLinkEvent>
+ <Link>
+ <AdditionalDependencies>core.lib;io.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <OutputFile>$(SolutionDir)bin\sci$(ProjectName).dll</OutputFile>
+ <ModuleDefinitionFile>localization_export.def</ModuleDefinitionFile>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <ProgramDatabaseFile>$(TargetDir)$(TargetName).pdb</ProgramDatabaseFile>
+ <ImportLibrary>$(SolutionDir)bin\sci$(ProjectName).lib</ImportLibrary>
+ <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck>
+ <RandomizedBaseAddress>false</RandomizedBaseAddress>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <Midl>
+ <TargetEnvironment>X64</TargetEnvironment>
+ </Midl>
+ <ClCompile>
+ <Optimization>Disabled</Optimization>
+ <AdditionalIncludeDirectories>../src/c;../includes;../../core/includes;../../output_stream/includes;../../windows_tools/includes;../../fileio/includes;../../string/src/c;../../string/includes;../../../libs/intl;../../../libs/libxml2;../../../libs/libxml2/libxml;../../../java/jdk/include;../../../java/jdk/include/win32;../../../libs/GetWindowsVersion;../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>FORDLL;_DLL;_DEBUG;_CRT_SECURE_NO_DEPRECATE;EXPORT_LOCALIZATION_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
+ <AssemblerListingLocation>$(Configuration)/</AssemblerListingLocation>
+ <ObjectFileName>$(Configuration)/</ObjectFileName>
+ <WarningLevel>Level3</WarningLevel>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x040c</Culture>
+ </ResourceCompile>
+ <PreLinkEvent>
+ <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1&gt;NUL 2&gt;NUL
+lib /DEF:"$(ProjectDir)io_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)io.lib" 1&gt;NUL 2&gt;NUL
+</Command>
+ </PreLinkEvent>
+ <Link>
+ <AdditionalDependencies>core.lib;io.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <OutputFile>$(SolutionDir)bin\sci$(ProjectName).dll</OutputFile>
+ <ModuleDefinitionFile>localization_export.def</ModuleDefinitionFile>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <ProgramDatabaseFile>$(TargetDir)$(TargetName).pdb</ProgramDatabaseFile>
+ <ImportLibrary>$(SolutionDir)bin\sci$(ProjectName).lib</ImportLibrary>
+ <TargetMachine>MachineX64</TargetMachine>
+ <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck>
+ <RandomizedBaseAddress>false</RandomizedBaseAddress>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <ClCompile>
+ <Optimization>MaxSpeed</Optimization>
+ <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
+ <AdditionalIncludeDirectories>../src/c;../includes;../../core/includes;../../output_stream/includes;../../windows_tools/includes;../../fileio/includes;../../string/src/c;../../string/includes;../../../libs/intl;../../../libs/libxml2;../../../libs/libxml2/libxml;../../../java/jdk/include;../../../java/jdk/include/win32;../../../libs/GetWindowsVersion;../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>FORDLL;EXPORT_LOCALIZATION_DLL;NDEBUG;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <StringPooling>true</StringPooling>
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <AssemblerListingLocation>$(Configuration)/</AssemblerListingLocation>
+ <ObjectFileName>$(Configuration)/</ObjectFileName>
+ <WarningLevel>Level3</WarningLevel>
+ <MultiProcessorCompilation>true</MultiProcessorCompilation>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x040c</Culture>
+ </ResourceCompile>
+ <PreLinkEvent>
+ <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1&gt;NUL 2&gt;NUL
+lib /DEF:"$(ProjectDir)io_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)io.lib" 1&gt;NUL 2&gt;NUL
+</Command>
+ </PreLinkEvent>
+ <Link>
+ <AdditionalDependencies>core.lib;io.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <OutputFile>$(SolutionDir)bin\sci$(ProjectName).dll</OutputFile>
+ <ModuleDefinitionFile>localization_export.def</ModuleDefinitionFile>
+ <SupportUnloadOfDelayLoadedDLL>true</SupportUnloadOfDelayLoadedDLL>
+ <ImportLibrary>$(SolutionDir)bin\sci$(ProjectName).lib</ImportLibrary>
+ <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck>
+ <RandomizedBaseAddress>false</RandomizedBaseAddress>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <Midl>
+ <TargetEnvironment>X64</TargetEnvironment>
+ </Midl>
+ <ClCompile>
+ <Optimization>MaxSpeed</Optimization>
+ <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
+ <AdditionalIncludeDirectories>../src/c;../includes;../../core/includes;../../output_stream/includes;../../windows_tools/includes;../../fileio/includes;../../string/src/c;../../string/includes;../../../libs/intl;../../../libs/libxml2;../../../libs/libxml2/libxml;../../../java/jdk/include;../../../java/jdk/include/win32;../../../libs/GetWindowsVersion;../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>FORDLL;EXPORT_LOCALIZATION_DLL;NDEBUG;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <StringPooling>true</StringPooling>
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <AssemblerListingLocation>$(Configuration)/</AssemblerListingLocation>
+ <ObjectFileName>$(Configuration)/</ObjectFileName>
+ <WarningLevel>Level3</WarningLevel>
+ <MultiProcessorCompilation>true</MultiProcessorCompilation>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x040c</Culture>
+ </ResourceCompile>
+ <PreLinkEvent>
+ <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1&gt;NUL 2&gt;NUL
+lib /DEF:"$(ProjectDir)io_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)io.lib" 1&gt;NUL 2&gt;NUL
+</Command>
+ </PreLinkEvent>
+ <Link>
+ <AdditionalDependencies>core.lib;io.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <OutputFile>$(SolutionDir)bin\sci$(ProjectName).dll</OutputFile>
+ <ModuleDefinitionFile>localization_export.def</ModuleDefinitionFile>
+ <SupportUnloadOfDelayLoadedDLL>true</SupportUnloadOfDelayLoadedDLL>
+ <ImportLibrary>$(SolutionDir)bin\sci$(ProjectName).lib</ImportLibrary>
+ <TargetMachine>MachineX64</TargetMachine>
+ <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck>
+ <RandomizedBaseAddress>false</RandomizedBaseAddress>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemGroup>
+ <ClInclude Include="..\includes\charEncoding.h" />
+ <ClInclude Include="..\includes\dynlib_localization.h" />
+ <ClInclude Include="..\includes\TerminateLocalization.h" />
+ <ClInclude Include="c\defaultlanguage.h" />
+ <ClInclude Include="c\getentrieshashtable.h" />
+ <ClInclude Include="c\getLcidString.h" />
+ <ClInclude Include="c\getLocaleInfo_Apple.h" />
+ <ClInclude Include="c\getLocaleInfo_Windows.h" />
+ <ClInclude Include="..\includes\gw_localization.h" />
+ <ClInclude Include="..\includes\InitializeLocalization.h" />
+ <ClInclude Include="c\hashtable_localization.h" />
+ <ClInclude Include="c\LanguagePreferences_Windows.h" />
+ <ClInclude Include="c\loadhashtableslocalization.h" />
+ <ClInclude Include="c\LocaleNameToLCID_Windows.h" />
+ <ClInclude Include="..\includes\localization.h" />
+ <ClInclude Include="..\includes\localizationJava.h" />
+ <ClInclude Include="..\includes\setgetlanguage.h" />
+ <ClInclude Include="c\tableslanguages.h" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="..\locales\localization.pot" />
+ <None Include="io_Import.def" />
+ <None Include="core_import.def" />
+ <None Include="localization_export.def" />
+ <None Include="..\localization.iss" />
+ <None Include="..\sci_gateway\localization_gateway.xml" />
+ <None Include="..\Makefile.am" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="..\sci_gateway\c\sci_addlocalizationdomain.c" />
+ <ClCompile Include="c\charEncoding.c" />
+ <ClCompile Include="c\DllmainLocalization.c" />
+ <ClCompile Include="c\getLcidString.c" />
+ <ClCompile Include="c\getLocaleInfo_Windows.c" />
+ <ClCompile Include="..\sci_gateway\c\gw_localization.c" />
+ <ClCompile Include="c\InitializeLocalization.c" />
+ <ClCompile Include="c\LanguagePreferences_Windows.c" />
+ <ClCompile Include="c\LocaleNameToLCID_Windows.c" />
+ <ClCompile Include="c\setdefaultlanguage.c" />
+ <ClCompile Include="jni\LocaleToLCID_wrap.c" />
+ <ClCompile Include="jni\Messages_wrap.c" />
+ <ClCompile Include="..\sci_gateway\c\sci_getdefaultlanguage.c" />
+ <ClCompile Include="..\sci_gateway\c\sci_getlanguage.c" />
+ <ClCompile Include="..\sci_gateway\c\sci_gettext.c" />
+ <ClCompile Include="..\sci_gateway\c\sci_setdefaultlanguage.c" />
+ <ClCompile Include="..\sci_gateway\c\sci_setlanguage.c" />
+ <ClCompile Include="c\setgetlanguage.c" />
+ <ClCompile Include="jni\setdefaultlanguage_wrap.c" />
+ </ItemGroup>
+ <ItemGroup>
+ <ResourceCompile Include="localization.rc" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\..\..\libs\GetWindowsVersion\GetWindowsVersion.vcxproj">
+ <Project>{982bf37f-42c4-4d37-8d14-60521b141503}</Project>
+ <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+ </ProjectReference>
+ <ProjectReference Include="..\..\..\tools\Dumpexts\Dumpexts.vcxproj">
+ <Project>{3170e4c2-1173-4264-a222-7ee8ccb3ddf7}</Project>
+ <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+ </ProjectReference>
+ <ProjectReference Include="..\..\api_scilab\api_scilab.vcxproj">
+ <Project>{43c5bab1-1dca-4743-a183-77e0d42fe7d0}</Project>
+ </ProjectReference>
+ <ProjectReference Include="..\..\fileio\fileio.vcxproj">
+ <Project>{4fc72d4a-80ee-4b1a-8724-0201c1a35621}</Project>
+ <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+ </ProjectReference>
+ <ProjectReference Include="..\..\output_stream\src\c\output_stream.vcxproj">
+ <Project>{a5911cd7-f8e8-440c-a23e-4843a0636f3a}</Project>
+ <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+ </ProjectReference>
+ <ProjectReference Include="..\..\string\src\c\string.vcxproj">
+ <Project>{8d45767a-9b03-4905-97f6-d2f3f79141ea}</Project>
+ <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+ </ProjectReference>
+ <ProjectReference Include="..\..\windows_tools\src\c\scilab_windows\scilab_windows.vcxproj">
+ <Project>{8028f371-6a94-4a26-8804-6e7f05f1d1aa}</Project>
+ <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project> \ No newline at end of file
diff --git a/modules/localization/src/localization.vcxproj.filters b/modules/localization/src/localization.vcxproj.filters
new file mode 100755
index 000000000..a51f57850
--- /dev/null
+++ b/modules/localization/src/localization.vcxproj.filters
@@ -0,0 +1,165 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <Filter Include="Header Files">
+ <UniqueIdentifier>{1d690322-2fae-40c4-a31c-b41a7516809f}</UniqueIdentifier>
+ <Extensions>h;hpp;hxx;hm;inl</Extensions>
+ </Filter>
+ <Filter Include="localization">
+ <UniqueIdentifier>{94f9e428-7935-491d-8284-bd32c835573b}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="Libraries Dependencies">
+ <UniqueIdentifier>{a5f6aed8-c58f-469c-b078-9404d7a8c9b2}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="Libraries Dependencies\Imports">
+ <UniqueIdentifier>{a17607c6-f802-4c84-a9f1-ddca76f4aa8a}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="Libraries Dependencies\Export">
+ <UniqueIdentifier>{0edb7486-ea9b-43b0-bc43-5da2b2315a4c}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="Source Files">
+ <UniqueIdentifier>{b6b33bea-52e4-4a55-8f6d-1053dedc7a72}</UniqueIdentifier>
+ <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
+ </Filter>
+ <Filter Include="Resource Files">
+ <UniqueIdentifier>{1daa6384-ae22-4e62-ac89-c45f7f649300}</UniqueIdentifier>
+ </Filter>
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="..\includes\charEncoding.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\includes\dynlib_localization.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="c\getLcidString.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="c\getLocaleInfo_Windows.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\includes\gw_localization.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\includes\InitializeLocalization.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="c\LanguagePreferences_Windows.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="c\LocaleNameToLCID_Windows.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\includes\localization.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\includes\localizationJava.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\includes\setgetlanguage.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="c\defaultlanguage.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="c\getentrieshashtable.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="c\getLocaleInfo_Apple.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="c\hashtable_localization.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="c\loadhashtableslocalization.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="c\tableslanguages.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\includes\TerminateLocalization.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="io_Import.def">
+ <Filter>Libraries Dependencies\Imports</Filter>
+ </None>
+ <None Include="core_import.def">
+ <Filter>Libraries Dependencies\Imports</Filter>
+ </None>
+ <None Include="localization_export.def">
+ <Filter>Libraries Dependencies\Export</Filter>
+ </None>
+ <None Include="..\localization.iss" />
+ <None Include="..\sci_gateway\localization_gateway.xml" />
+ <None Include="..\Makefile.am" />
+ <None Include="..\locales\localization.pot">
+ <Filter>localization</Filter>
+ </None>
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="c\charEncoding.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="c\DllmainLocalization.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="c\getLcidString.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="c\getLocaleInfo_Windows.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\sci_gateway\c\gw_localization.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="c\InitializeLocalization.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="c\LanguagePreferences_Windows.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="c\LocaleNameToLCID_Windows.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="jni\LocaleToLCID_wrap.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="jni\Messages_wrap.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\sci_gateway\c\sci_getdefaultlanguage.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\sci_gateway\c\sci_getlanguage.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\sci_gateway\c\sci_gettext.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\sci_gateway\c\sci_setdefaultlanguage.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\sci_gateway\c\sci_setlanguage.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="c\setgetlanguage.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="c\setdefaultlanguage.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="jni\setdefaultlanguage_wrap.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\sci_gateway\c\sci_addlocalizationdomain.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ </ItemGroup>
+ <ItemGroup>
+ <ResourceCompile Include="localization.rc">
+ <Filter>Resource Files</Filter>
+ </ResourceCompile>
+ </ItemGroup>
+</Project> \ No newline at end of file
diff --git a/modules/localization/src/localization_export.def b/modules/localization/src/localization_export.def
new file mode 100755
index 000000000..d68aba787
--- /dev/null
+++ b/modules/localization/src/localization_export.def
@@ -0,0 +1,23 @@
+LIBRARY scilocalization.dll
+
+
+EXPORTS
+; ---------------------------------------
+; localization explicit export (SEP 35)
+; ---------------------------------------
+to_wide_string
+wide_string_to_UTF8
+wcstat
+setlanguage
+getlanguage
+getlanguagealias
+getcurrentlanguagecode
+getlanguagefromcode
+getcodefromlanguage
+convertlanguagealias
+LanguageIsOK
+needtochangelanguage
+exportLocaleToSystem
+IsValidUTF8
+setLanguageFromCommandLine
+getLcidString
diff --git a/modules/localization/src/perl/check_po_files.pl b/modules/localization/src/perl/check_po_files.pl
new file mode 100755
index 000000000..f0fdbbc6d
--- /dev/null
+++ b/modules/localization/src/perl/check_po_files.pl
@@ -0,0 +1,328 @@
+#!/usr/bin/perl
+
+# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+# Copyright (C) 2009 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
+#
+# This file must be used under the terms of the CeCILL.
+# This source file is licensed as described in the file COPYING, which
+# you should have received as part of this distribution. The terms
+# are also available at
+# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+use strict;
+use Cwd;
+use File::Basename;
+use Locale::PO;
+
+# Current directory
+my $directory = getcwd();
+
+if( dirname($0) ne '.' )
+{
+ $directory .= '/'.dirname($0);
+}
+
+if( dirname($0) =~ m/^\// )
+{
+ $directory = dirname($0);
+}
+
+# modules dir path
+my $sci_modules_dir = $directory;
+$sci_modules_dir =~ s/\/localization\/src\/perl//g;
+
+# Module list
+my %modules = get_module_list();
+
+# Where is located the msg
+my %msg_module;
+
+# statistics
+my $nb_msgs = 0;
+my $nb_modules = 0;
+my $nb_po_files = 0;
+my $nb_duplicated_msgs = 0;
+my $nb_different_translation = 0;
+
+# Gestion de la langue
+my $language = 'fr_FR';
+if( $ARGV[0] ne '' )
+{
+ $language = $ARGV[0];
+ $language =~ s/^\s+//;
+ $language =~ s/\s+$//;
+}
+
+
+
+# Récupération de la liste de tous messages
+# ==============================================================================
+
+foreach my $module (sort keys %modules)
+{
+ my $po_file = get_po_file($module,$language);
+
+ if($po_file eq '')
+ {
+ next;
+ }
+
+ $nb_po_files++;
+
+ my %po_objects = load_po_file(get_po_file($module,$language));
+
+ foreach my $msgid ( keys %po_objects )
+ {
+ if( exists($msg_module{ $msgid }) )
+ {
+ $msg_module{ $msgid } .= ','.$module;
+ }
+ else
+ {
+ $msg_module{ $msgid } = $module;
+ }
+ }
+}
+
+# Détection des messages
+# ==============================================================================
+
+my $count = 0;
+
+foreach my $msgid (sort keys %msg_module)
+{
+ $count++;
+
+ my %msg_modules = get_msg_modules($msgid);
+ my $msg_modules_size = keys %msg_modules;
+
+ if($msg_modules_size > 1)
+ {
+ $nb_duplicated_msgs++;
+
+ my %translations = get_msg_translations($msgid,$language);
+ my $translations_size = keys %translations;
+
+ if($translations_size > 1)
+ {
+ $nb_different_translation++;
+
+ print "================================================================================"."\n";
+ print $msgid."\n";
+ foreach my $module (sort keys %msg_modules)
+ {
+ print ' - '.$module.' ';
+
+ for( my $i=length($module) ; $i < 30 ; $i++ )
+ {
+ print '.';
+ }
+
+ print ' '.get_msg_translation($msgid,$module,$language);
+ print "\n";
+ }
+ }
+ }
+}
+
+# Affichage des statistics
+# ==============================================================================
+$nb_msgs = keys %msg_module;
+$nb_modules = keys %modules;
+
+print "\n";
+print "\n";
+print "================================================================================"."\n";
+print 'Nombre de messages : '.$nb_msgs."\n";
+print 'Nombre de modules : '.$nb_modules."\n";
+print 'Nombre de fichier PO : '.$nb_po_files."\n";
+print 'Nombre de messages en double : '.$nb_duplicated_msgs."\n";
+print 'Nombre de messages dont'."\n";
+print ' plusieurs traductions existent : '.$nb_different_translation."\n";
+print "================================================================================"."\n";
+print "\n";
+print "\n";
+
+
+
+
+
+# ==============================================================================
+# get_module_list
+# ==============================================================================
+
+sub get_module_list
+{
+ my %list;
+
+ unless( chdir($sci_modules_dir) )
+ {
+ print 'The directory '.$sci_modules_dir.' doesn\'t exist or read access denied'."\n";
+ exit;
+ }
+
+ my @candidates = <*>;
+
+ foreach my $candidate (@candidates)
+ {
+ if( -e $sci_modules_dir.'/'.$candidate.'/Makefile.am' )
+ {
+ $list{$candidate} = 1;
+ }
+ }
+
+ return %list;
+}
+
+# ==============================================================================
+# $path = get_po_file($module,$language)
+# ==============================================================================
+
+sub get_po_file
+{
+ my $module = $_[0];
+ my $language = $_[1];
+
+ my $po_dir = get_module_path($module).'/locales/'.$language;
+ my $po_file = $po_dir.'/'.$module.'.po';
+
+ unless( -f $po_file )
+ {
+ return '';
+ }
+
+ return $po_file;
+}
+
+# ==============================================================================
+# $path = get_module_path($module,$language)
+# ==============================================================================
+
+sub get_module_path
+{
+ return $sci_modules_dir.'/'.$_[0];
+}
+
+
+# ==============================================================================
+# %str = load_po_file($po_file)
+# ==============================================================================
+
+sub load_po_file
+{
+ my $po_file = $_[0];
+
+ my $hash_ref = Locale::PO->load_file_ashash($po_file);
+ my %hash = %$hash_ref;
+
+ my %hash_out;
+
+ foreach my $key (sort keys %hash)
+ {
+ my $po_object = $hash{$key};
+
+ if(length($key) <= 2)
+ {
+ next;
+ }
+
+ # remove the " at the start and the end of string
+ my $new_key = substr($key,1,length($key)-2);
+
+ unless( $po_object->obsolete == 1 )
+ {
+ $hash_out{$new_key} = $hash{$key};
+ }
+ }
+
+ return %hash_out;
+}
+
+
+# ==============================================================================
+# %modules = get_msg_modules($msgid)
+# ==============================================================================
+
+sub get_msg_modules
+{
+ my $msgid = $_[0];
+ my %modules;
+
+ my $modules_str = $msg_module{ $msgid };
+ my @modules_array = split(/,/,$modules_str);
+
+
+ foreach my $module (sort @modules_array)
+ {
+ $modules{$module} = 1;
+ }
+
+ return %modules;
+}
+
+
+# ==============================================================================
+# $msgstr = get_msg_translation($msgid,$module,$language)
+# ==============================================================================
+
+sub get_msg_translation
+{
+ my $msgid = $_[0];
+ my $module = $_[1];
+ my $language = $_[2];
+
+ my $po_file = get_po_file($module,$language);
+
+ my $hash_ref = Locale::PO->load_file_ashash($po_file);
+ my %hash = %$hash_ref;
+
+ my $msgstr = '';
+
+ foreach my $key (sort keys %hash)
+ {
+ if( $key eq '"'.$msgid.'"' )
+ {
+ my $po_object = $hash{$key};
+ $msgstr = $po_object->msgstr;
+ $msgstr = substr($msgstr,1,length($msgstr)-2);
+ last;
+ }
+ }
+
+ return $msgstr;
+}
+
+
+# ==============================================================================
+# %msgstr = get_msg_translations($msgid,$language)
+# ==============================================================================
+
+sub get_msg_translations
+{
+ my $msgid = $_[0];
+ my $language = $_[1];
+
+ my %msgstr;
+
+ my %modules = get_msg_modules($msgid);
+
+
+ foreach my $module (sort keys %modules)
+ {
+ my $translation = get_msg_translation($msgid,$module,$language);
+
+ unless( exists($msgstr{$translation}) )
+ {
+ $msgstr{$translation} = $module;
+ }
+ }
+
+ return %msgstr;
+}
+
+
+
+
+
+
+
diff --git a/modules/localization/tests/nonreg_tests/bug_10654.dia.ref b/modules/localization/tests/nonreg_tests/bug_10654.dia.ref
new file mode 100755
index 000000000..8f017016b
--- /dev/null
+++ b/modules/localization/tests/nonreg_tests/bug_10654.dia.ref
@@ -0,0 +1,16 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2012 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- Non-regression test for bug 10654 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=10654
+//
+// <-- Short Description -->
+// dgettext with "scilab" domain did not return same result than gettext
+A = dgettext('scilab', '%s: No more memory.\n');
+B = gettext("%s: No more memory.\n");
+assert_checkequal(A, B);
diff --git a/modules/localization/tests/nonreg_tests/bug_10654.tst b/modules/localization/tests/nonreg_tests/bug_10654.tst
new file mode 100755
index 000000000..a6d4f68f6
--- /dev/null
+++ b/modules/localization/tests/nonreg_tests/bug_10654.tst
@@ -0,0 +1,18 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2012 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 10654 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=10654
+//
+// <-- Short Description -->
+// dgettext with "scilab" domain did not return same result than gettext
+
+A = dgettext('scilab', '%s: No more memory.\n');
+B = gettext("%s: No more memory.\n");
+assert_checkequal(A, B);
diff --git a/modules/localization/tests/nonreg_tests/bug_2670.dia.ref b/modules/localization/tests/nonreg_tests/bug_2670.dia.ref
new file mode 100755
index 000000000..44bd97044
--- /dev/null
+++ b/modules/localization/tests/nonreg_tests/bug_2670.dia.ref
@@ -0,0 +1,13 @@
+// <-- Non-regression test for bug 2670 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=2670
+//
+// <-- Short Description -->
+// getlanguage() returns an empty string (occurs both under Linux and Windows).
+//
+// Copyright INRIA
+// Scilab Project - Pierre MARECHAL
+// Copyright INRIA 2007
+// Date : 28 Jan 2007
+if length(getlanguage()) <> 5 then bugmes();quit;end
diff --git a/modules/localization/tests/nonreg_tests/bug_2670.tst b/modules/localization/tests/nonreg_tests/bug_2670.tst
new file mode 100755
index 000000000..70b3d0b7c
--- /dev/null
+++ b/modules/localization/tests/nonreg_tests/bug_2670.tst
@@ -0,0 +1,17 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2007-2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 2670 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=2670
+//
+// <-- Short Description -->
+// getlanguage() returns an empty string (occurs both under Linux and Windows).
+//
+
+if length(getlanguage()) <> 5 then pause,end
diff --git a/modules/localization/tests/nonreg_tests/bug_2705.dia.ref b/modules/localization/tests/nonreg_tests/bug_2705.dia.ref
new file mode 100755
index 000000000..dc4aef01a
--- /dev/null
+++ b/modules/localization/tests/nonreg_tests/bug_2705.dia.ref
@@ -0,0 +1,21 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2007-2008 - INRIA - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- Non-regression test for bug 2705 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=2705
+//
+// <-- Short Description -->
+// getlanguage(), under Windows, returns "Frenc" or "Engli" instead of fr_FR or en_US.
+//
+LANG = getlanguage();
+if length(LANG) <> 5 then bugmes();quit;end
+TOK = tokens(LANG,'_');
+if size(TOK,'*') <> 2 then bugmes();quit;end
+if length(TOK(1)) <> 2 then bugmes();quit;end
+if length(TOK(2)) <> 2 then bugmes();quit;end
+if (LANG == "Frenc") | (LANG == "Engli") then bugmes();quit;end
diff --git a/modules/localization/tests/nonreg_tests/bug_2705.tst b/modules/localization/tests/nonreg_tests/bug_2705.tst
new file mode 100755
index 000000000..2b44d883b
--- /dev/null
+++ b/modules/localization/tests/nonreg_tests/bug_2705.tst
@@ -0,0 +1,27 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2007-2008 - INRIA - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 2705 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=2705
+//
+// <-- Short Description -->
+// getlanguage(), under Windows, returns "Frenc" or "Engli" instead of fr_FR or en_US.
+//
+LANG = getlanguage();
+if length(LANG) <> 5 then pause,end
+
+TOK = tokens(LANG,'_');
+if size(TOK,'*') <> 2 then pause,end
+
+if length(TOK(1)) <> 2 then pause,end
+
+if length(TOK(2)) <> 2 then pause,end
+
+if (LANG == "Frenc") | (LANG == "Engli") then pause,end
+
diff --git a/modules/localization/tests/nonreg_tests/bug_3069.dia.ref b/modules/localization/tests/nonreg_tests/bug_3069.dia.ref
new file mode 100755
index 000000000..1d8f59d61
--- /dev/null
+++ b/modules/localization/tests/nonreg_tests/bug_3069.dia.ref
@@ -0,0 +1,18 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010-2010 - DIGITEO - Sylvestre LEDRU
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- Non-regression test for bug 3069 -->
+//
+// <-- ENGLISH IMPOSED -->"
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=3069
+//
+// <-- Short Description -->
+// bug 3069 fixed - In some cases, the function gettext was returning \"
+//
+str = gettext("%s: Wrong input argument #%d: ""%s"" or ""%s"" expected.\n");
+if grep(str,"\""") then bugmes();quit;end
diff --git a/modules/localization/tests/nonreg_tests/bug_3069.tst b/modules/localization/tests/nonreg_tests/bug_3069.tst
new file mode 100755
index 000000000..8fd3fb325
--- /dev/null
+++ b/modules/localization/tests/nonreg_tests/bug_3069.tst
@@ -0,0 +1,20 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010-2010 - DIGITEO - Sylvestre LEDRU
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 3069 -->
+//
+// <-- ENGLISH IMPOSED -->"
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=3069
+//
+// <-- Short Description -->
+// bug 3069 fixed - In some cases, the function gettext was returning \"
+//
+
+str = gettext("%s: Wrong input argument #%d: ""%s"" or ""%s"" expected.\n");
+if grep(str,"\""") then pause, end
diff --git a/modules/localization/tests/nonreg_tests/bug_3784.dia.ref b/modules/localization/tests/nonreg_tests/bug_3784.dia.ref
new file mode 100755
index 000000000..95148fbbe
--- /dev/null
+++ b/modules/localization/tests/nonreg_tests/bug_3784.dia.ref
@@ -0,0 +1,16 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Sylvestre LEDRU
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- Non-regression test for bug 3784 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=3784
+//
+// <-- Short Description -->
+// When Scilab is launched in French, bad read of the values
+// <-- FRENCH IMPOSED -->
+a=read(SCI+"/modules/graphics/demos/anim/anim6/yt.wrt",20,201);
+if (a(1,2) == - 7.) then bugmes();quit;end
diff --git a/modules/localization/tests/nonreg_tests/bug_3784.tst b/modules/localization/tests/nonreg_tests/bug_3784.tst
new file mode 100755
index 000000000..17fb731ab
--- /dev/null
+++ b/modules/localization/tests/nonreg_tests/bug_3784.tst
@@ -0,0 +1,18 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Sylvestre LEDRU
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 3784 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=3784
+//
+// <-- Short Description -->
+// When Scilab is launched in French, bad read of the values
+// <-- FRENCH IMPOSED -->
+
+a=read(SCI+"/modules/graphics/demos/anim/anim6/yt.wrt",20,201);
+if (a(1,2) == - 7.) then pause, end
diff --git a/modules/localization/tests/nonreg_tests/bug_3802.dia.ref b/modules/localization/tests/nonreg_tests/bug_3802.dia.ref
new file mode 100755
index 000000000..5c920c83f
--- /dev/null
+++ b/modules/localization/tests/nonreg_tests/bug_3802.dia.ref
@@ -0,0 +1,19 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Sylvestre LEDRU
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- Non-regression test for bug 3802 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=3802
+//
+// <-- Short Description -->
+// When Scilab is launched in French, Tcl creates error (when it is working
+// in english)
+// <-- FRENCH IMPOSED -->
+if getos() <> "Darwin" then
+ TclCMD="TCL_EvalStr(""destroy .t;pack [text .t];set ts [expr 12/[tk scaling]];.t conf -tabs $ts;.t cget -tabs"")";
+ if execstr(TclCMD, "errcatch")<>0 then bugmes();quit;end
+end
diff --git a/modules/localization/tests/nonreg_tests/bug_3802.tst b/modules/localization/tests/nonreg_tests/bug_3802.tst
new file mode 100755
index 000000000..02bc16dd6
--- /dev/null
+++ b/modules/localization/tests/nonreg_tests/bug_3802.tst
@@ -0,0 +1,22 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Sylvestre LEDRU
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 3802 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=3802
+//
+// <-- Short Description -->
+// When Scilab is launched in French, Tcl creates error (when it is working
+// in english)
+// <-- FRENCH IMPOSED -->
+
+if getos() <> "Darwin" then
+ TclCMD="TCL_EvalStr(""destroy .t;pack [text .t];set ts [expr 12/[tk scaling]];.t conf -tabs $ts;.t cget -tabs"")";
+ if execstr(TclCMD, "errcatch")<>0 then pause; end
+ end
+ \ No newline at end of file
diff --git a/modules/localization/tests/nonreg_tests/bug_3832.tst b/modules/localization/tests/nonreg_tests/bug_3832.tst
new file mode 100755
index 000000000..f1a1d9897
--- /dev/null
+++ b/modules/localization/tests/nonreg_tests/bug_3832.tst
@@ -0,0 +1,24 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 3832 -->
+// <-- INTERACTIVE TEST -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=3832
+//
+// <-- Short Description -->
+// setdefaultlanguage does nothing when preceded by setlanguage
+
+if setlanguage('en_US') <> %t then pause,end
+if setdefaultlanguage('en_US') <> %t then pause,end
+
+if setlanguage('fr_FR') <> %t then pause,end
+if setdefaultlanguage('fr_FR') <> %t then pause,end
+
+// quit scilab and relaunch
+// please verify that scilab language is french \ No newline at end of file
diff --git a/modules/localization/tests/nonreg_tests/bug_4393.tst b/modules/localization/tests/nonreg_tests/bug_4393.tst
new file mode 100755
index 000000000..2dab5053b
--- /dev/null
+++ b/modules/localization/tests/nonreg_tests/bug_4393.tst
@@ -0,0 +1,20 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 4393 -->
+// <-- INTERACTIVE TEST -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=4393
+//
+// <-- Short Description -->
+// When launching Scilab from the puffin icon, it does not detect my Locale and switch to english.
+
+// Launch Scilab from the puffin icon
+// Launch Scilab from a Terminal
+
+// Check that Scilab uses the same locale
diff --git a/modules/localization/tests/nonreg_tests/bug_7220.tst b/modules/localization/tests/nonreg_tests/bug_7220.tst
new file mode 100755
index 000000000..d339dd209
--- /dev/null
+++ b/modules/localization/tests/nonreg_tests/bug_7220.tst
@@ -0,0 +1,20 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 7220 -->
+// <-- INTERACTIVE TEST -->
+// <-- WINDOWS ONLY -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=7220
+//
+// <-- Short Description -->
+// On Windows, when you start Scilab with "WScilex -l ru_RU", some menus were disabled.
+
+// launch scilab by this line:
+// WScilex -l ru_RU
+// check that menus are not grayed
diff --git a/modules/localization/tests/nonreg_tests/bug_8399.dia.ref b/modules/localization/tests/nonreg_tests/bug_8399.dia.ref
new file mode 100755
index 000000000..75098ce62
--- /dev/null
+++ b/modules/localization/tests/nonreg_tests/bug_8399.dia.ref
@@ -0,0 +1,15 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2012 - SQcilab Enterprises - Calixte DENIZET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- Non-regression test for bug 8399 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/8399
+//
+// <-- Short Description -->
+// setlanguage didn't work when only fr_FR.UTF-8 was available.
+assert_checkequal(setlanguage("fr_FR"), %t);
+assert_checkequal(getlanguage(), "fr_FR");
diff --git a/modules/localization/tests/nonreg_tests/bug_8399.tst b/modules/localization/tests/nonreg_tests/bug_8399.tst
new file mode 100755
index 000000000..96f8033aa
--- /dev/null
+++ b/modules/localization/tests/nonreg_tests/bug_8399.tst
@@ -0,0 +1,17 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2012 - SQcilab Enterprises - Calixte DENIZET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 8399 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/8399
+//
+// <-- Short Description -->
+// setlanguage didn't work when only fr_FR.UTF-8 was available.
+
+assert_checkequal(setlanguage("fr_FR"), %t);
+assert_checkequal(getlanguage(), "fr_FR");
diff --git a/modules/localization/tests/nonreg_tests/bug_9424.dia.ref b/modules/localization/tests/nonreg_tests/bug_9424.dia.ref
new file mode 100755
index 000000000..87d8726d3
--- /dev/null
+++ b/modules/localization/tests/nonreg_tests/bug_9424.dia.ref
@@ -0,0 +1,16 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2012 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- Non-regression test for bug 9424 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=9424
+//
+// <-- Short Description -->
+// gettext("") did not return ""
+assert_checkequal(gettext(""), "");
+assert_checkequal(dgettext("scilab", ""), "");
+assert_checkequal(dgettext("mydomain", ""), "");
diff --git a/modules/localization/tests/nonreg_tests/bug_9424.tst b/modules/localization/tests/nonreg_tests/bug_9424.tst
new file mode 100755
index 000000000..6bf02e09a
--- /dev/null
+++ b/modules/localization/tests/nonreg_tests/bug_9424.tst
@@ -0,0 +1,18 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2012 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 9424 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=9424
+//
+// <-- Short Description -->
+// gettext("") did not return ""
+
+assert_checkequal(gettext(""), "");
+assert_checkequal(dgettext("scilab", ""), "");
+assert_checkequal(dgettext("mydomain", ""), ""); \ No newline at end of file
diff --git a/modules/localization/tests/unit_tests/CreateDir.sce b/modules/localization/tests/unit_tests/CreateDir.sce
new file mode 100755
index 000000000..b77c58ebb
--- /dev/null
+++ b/modules/localization/tests/unit_tests/CreateDir.sce
@@ -0,0 +1,39 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2012 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+function CreateDir_test()
+
+ TST_LANG = ["Simplified Chinese" , "世界您好"; ..
+ "Cyrillic" , "азеазея"; ..
+ "amharique" , "ድቅስድቅስግ"; ..
+ "Japanese" , "ハロー・ワールド"; ..
+ "Thai" , "เฮลโลเวิลด์"; ..
+ "Arabish" , "حريات وحقوق"; ..
+ "Korean" , "프로그램"; ..
+ "Vietanmien" , "프로그램"; ..
+ "Malien" , "ഹലോ വേള്‍ഡ"; ..
+ "Hebreu" , "תוכנית"];
+
+ for i = 1:size(TST_LANG,"r")
+ DIR_TST = TMPDIR + "/dir_" + TST_LANG(i, 2);
+ mkdir(DIR_TST);
+ if ~isdir(DIR_TST) then
+ error(999, "directory did not create");
+ end
+ FILENAME_TST = DIR_TST + "/" + "file_" + TST_LANG(i, 2);
+ STR_TST = "str_" + TST_LANG(i, 2) + " : " + TST_LANG(i, 1);
+ fd = mopen(FILENAME_TST, "wt");
+ mfprintf(fd, "%s", STR_TST);
+ mclose(fd);
+ if ~isfile(FILENAME_TST) then
+ error(999, "file did not create");
+ end
+ end
+endfunction
+
+CreateDir_test();
+clear CreateDir_test;
diff --git a/modules/localization/tests/unit_tests/addlocalizationdomain.dia.ref b/modules/localization/tests/unit_tests/addlocalizationdomain.dia.ref
new file mode 100755
index 000000000..51d5691a3
--- /dev/null
+++ b/modules/localization/tests/unit_tests/addlocalizationdomain.dia.ref
@@ -0,0 +1,18 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2013 - Scilab Enterprises - Antoine ELIAS
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//===============================
+// unit tests addlocalizationdomain
+//===============================
+//error messages
+if execstr('addlocalizationdomain()','errcatch')==0 then bugmes();quit;end
+if execstr('addlocalizationdomain(""foo"")','errcatch')==0 then bugmes();quit;end
+addlocalizationdomain("tbx", "SCI/modules/localization/tests/unit_tests/locale");
+setlanguage("fr_FR");
+assert_checkequal(gettext("%s: No more memory.\n"), "%s : Plus de mémoire disponible.\n");
+assert_checkequal(gettext("tbx", "%s: No more memory.\n"), "%s : Overwrite Scilab translation.\n");
+assert_checkequal(gettext("%s: something not in Scilab.\n"), "%s: something not in Scilab.\n");
+assert_checkequal(gettext("tbx", "%s: something not in Scilab.\n"), "%s : it is true, that is not in Scilab.\n");
diff --git a/modules/localization/tests/unit_tests/addlocalizationdomain.tst b/modules/localization/tests/unit_tests/addlocalizationdomain.tst
new file mode 100755
index 000000000..edab24128
--- /dev/null
+++ b/modules/localization/tests/unit_tests/addlocalizationdomain.tst
@@ -0,0 +1,22 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2013 - Scilab Enterprises - Antoine ELIAS
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+//===============================
+// unit tests addlocalizationdomain
+//===============================
+
+
+//error messages
+if execstr('addlocalizationdomain()','errcatch')==0 then pause,end
+if execstr('addlocalizationdomain(""foo"")','errcatch')==0 then pause,end
+
+addlocalizationdomain("tbx", "SCI/modules/localization/tests/unit_tests/locale");
+setlanguage("fr_FR");
+assert_checkequal(gettext("%s: No more memory.\n"), "%s : Plus de mémoire disponible.\n");
+assert_checkequal(gettext("tbx", "%s: No more memory.\n"), "%s : Overwrite Scilab translation.\n");
+assert_checkequal(gettext("%s: something not in Scilab.\n"), "%s: something not in Scilab.\n");
+assert_checkequal(gettext("tbx", "%s: something not in Scilab.\n"), "%s : it is true, that is not in Scilab.\n");
diff --git a/modules/localization/tests/unit_tests/dgettext.dia.ref b/modules/localization/tests/unit_tests/dgettext.dia.ref
new file mode 100755
index 000000000..f530b2fa9
--- /dev/null
+++ b/modules/localization/tests/unit_tests/dgettext.dia.ref
@@ -0,0 +1,37 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//===============================
+// unit tests dgettext
+//===============================
+// Void call
+if execstr('dgettext()','errcatch')==0 then bugmes();quit;end
+// one input argument
+str1="plop"; if execstr('dgettext(str1)','errcatch')<>0 then bugmes();quit;end
+// three input argument
+str1="plop"; str2="plip"; str3="plup"; if execstr('dgettext(str1, str2, str3)','errcatch')==0 then bugmes();quit;end
+// Try to translate from en_US to en_US to domain/string which doesn't exist
+lang="en_US"; setlanguage(lang); domain="fake_domain"; msg="Localization does not exist"; if dgettext(domain,msg) <> msg then bugmes();quit;end
+// Try to translate from en_US to fr_FR to a domain/string which doesn't exist
+lang="fr_FR"; setlanguage(lang); domain="fake_domain"; msg="Localization does not exist"; if dgettext(domain,msg) <> msg then bugmes();quit;end
+// Check if it is working with a good domain & good msgid
+lang="fr_FR"; setlanguage(lang); domain="scilab"; msg="Startup execution:"; if dgettext(domain,msg) <> "Initialisation :" then bugmes();quit;end
+// Check if it is working with a bad domain & good msgid
+lang="fr_FR"; setlanguage(lang); domain="fake_domain"; msg="Startup execution:"; if dgettext(domain,msg) == "Initialisation :" then bugmes();quit;end
+// Check if it is working with a good domain & good msgid and alias
+lang="fr"; setlanguage(lang); domain="scilab"; msg="Startup execution:"; if dgettext(domain,msg) <> "Initialisation :" then bugmes();quit;end
+// Check if it is working with a bad domain & good msgid and alias
+lang="fr"; setlanguage(lang); domain="fake_domain"; msg="Startup execution:"; if dgettext(domain,msg) == "Initialisation :" then bugmes();quit;end
+// Check if it is working with a good domain & good msgid
+lang="en_US"; setlanguage(lang); domain="scilab"; msg="Startup execution:"; if dgettext(domain,msg) <> msg then bugmes();quit;end
+// Check if it is working with a bad domain & good msgid
+lang="en_US"; setlanguage(lang); domain="fake_domain"; msg="Startup execution:"; if dgettext(domain,msg) <> msg then bugmes();quit;end
+// Check if it is working with a good domain & good msgid and alias
+lang="en"; setlanguage(lang); domain="scilab"; msg="Startup execution:"; if dgettext(domain,msg) <> msg then bugmes();quit;end
+// Check if it is working with a bad domain & good msgid and alias
+lang="en"; setlanguage(lang); domain="fake_domain"; msg="Startup execution:"; if dgettext(domain,msg) <> msg then bugmes();quit;end
+// @TODO :
+// Add test to use other domain which are working (ie not fake_domain)
diff --git a/modules/localization/tests/unit_tests/dgettext.tst b/modules/localization/tests/unit_tests/dgettext.tst
new file mode 100755
index 000000000..cc92fbf69
--- /dev/null
+++ b/modules/localization/tests/unit_tests/dgettext.tst
@@ -0,0 +1,54 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+//===============================
+// unit tests dgettext
+//===============================
+
+// Void call
+if execstr('dgettext()','errcatch')==0 then pause,end
+
+// one input argument
+str1="plop"; if execstr('dgettext(str1)','errcatch')<>0 then pause,end
+
+// three input argument
+str1="plop"; str2="plip"; str3="plup"; if execstr('dgettext(str1, str2, str3)','errcatch')==0 then pause,end
+
+// Try to translate from en_US to en_US to domain/string which doesn't exist
+lang="en_US"; setlanguage(lang); domain="fake_domain"; msg="Localization does not exist"; if dgettext(domain,msg) <> msg then pause, end
+
+// Try to translate from en_US to fr_FR to a domain/string which doesn't exist
+lang="fr_FR"; setlanguage(lang); domain="fake_domain"; msg="Localization does not exist"; if dgettext(domain,msg) <> msg then pause, end
+
+
+// Check if it is working with a good domain & good msgid
+lang="fr_FR"; setlanguage(lang); domain="scilab"; msg="Startup execution:"; if dgettext(domain,msg) <> "Initialisation :" then pause, end
+
+// Check if it is working with a bad domain & good msgid
+lang="fr_FR"; setlanguage(lang); domain="fake_domain"; msg="Startup execution:"; if dgettext(domain,msg) == "Initialisation :" then pause, end
+
+// Check if it is working with a good domain & good msgid and alias
+lang="fr"; setlanguage(lang); domain="scilab"; msg="Startup execution:"; if dgettext(domain,msg) <> "Initialisation :" then pause, end
+
+// Check if it is working with a bad domain & good msgid and alias
+lang="fr"; setlanguage(lang); domain="fake_domain"; msg="Startup execution:"; if dgettext(domain,msg) == "Initialisation :" then pause, end
+
+
+// Check if it is working with a good domain & good msgid
+lang="en_US"; setlanguage(lang); domain="scilab"; msg="Startup execution:"; if dgettext(domain,msg) <> msg then pause, end
+
+// Check if it is working with a bad domain & good msgid
+lang="en_US"; setlanguage(lang); domain="fake_domain"; msg="Startup execution:"; if dgettext(domain,msg) <> msg then pause, end
+
+// Check if it is working with a good domain & good msgid and alias
+lang="en"; setlanguage(lang); domain="scilab"; msg="Startup execution:"; if dgettext(domain,msg) <> msg then pause, end
+
+// Check if it is working with a bad domain & good msgid and alias
+lang="en"; setlanguage(lang); domain="fake_domain"; msg="Startup execution:"; if dgettext(domain,msg) <> msg then pause, end
+
+// @TODO :
+// Add test to use other domain which are working (ie not fake_domain)
diff --git a/modules/localization/tests/unit_tests/getdefaultlanguage.dia.ref b/modules/localization/tests/unit_tests/getdefaultlanguage.dia.ref
new file mode 100755
index 000000000..e5bbde32d
--- /dev/null
+++ b/modules/localization/tests/unit_tests/getdefaultlanguage.dia.ref
@@ -0,0 +1,18 @@
+// ============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// ============================================================================
+//===============================
+// unit tests getdefaultlanguage
+//===============================
+warning("off")
+// check that the default language is really english
+ if getdefaultlanguage() <> "en_US" then bugmes();quit;end
+// Switch to french with small code and check if the default language has not changed
+lang="fr"; setlanguage(lang); if getdefaultlanguage() <> "en_US" then bugmes();quit;end
+// Switch to english with small code
+lang="en"; setlanguage(lang); if getdefaultlanguage() <> "en_US" then bugmes();quit;end
+// Switch to english with full code
+lang="en_US"; setlanguage(lang); if getdefaultlanguage() <> "en_US" then bugmes();quit;end
diff --git a/modules/localization/tests/unit_tests/getdefaultlanguage.tst b/modules/localization/tests/unit_tests/getdefaultlanguage.tst
new file mode 100755
index 000000000..cc1299b76
--- /dev/null
+++ b/modules/localization/tests/unit_tests/getdefaultlanguage.tst
@@ -0,0 +1,23 @@
+// ============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// ============================================================================
+
+//===============================
+// unit tests getdefaultlanguage
+//===============================
+warning("off")
+// check that the default language is really english
+ if getdefaultlanguage() <> "en_US" then pause, end
+
+// Switch to french with small code and check if the default language has not changed
+lang="fr"; setlanguage(lang); if getdefaultlanguage() <> "en_US" then pause, end
+
+// Switch to english with small code
+lang="en"; setlanguage(lang); if getdefaultlanguage() <> "en_US" then pause, end
+
+// Switch to english with full code
+lang="en_US"; setlanguage(lang); if getdefaultlanguage() <> "en_US" then pause, end
+
diff --git a/modules/localization/tests/unit_tests/getlanguage.dia.ref b/modules/localization/tests/unit_tests/getlanguage.dia.ref
new file mode 100755
index 000000000..ec75f7dfb
--- /dev/null
+++ b/modules/localization/tests/unit_tests/getlanguage.dia.ref
@@ -0,0 +1,17 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//===============================
+// unit tests getlanguage
+//===============================
+// Switch to french with small code
+lang="fr"; setlanguage(lang); if getlanguage() <> "fr_FR" then bugmes();quit;end
+// Switch to english with small code
+lang="en"; setlanguage(lang); if getlanguage() <> "en_US" then bugmes();quit;end
+// Switch to english with full code
+lang="en_US"; setlanguage(lang); if getlanguage() <> "en_US" then bugmes();quit;end
+// Switch to french with full code
+lang="fr_FR"; setlanguage(lang); if getlanguage() <> "fr_FR" then bugmes();quit;end
diff --git a/modules/localization/tests/unit_tests/getlanguage.tst b/modules/localization/tests/unit_tests/getlanguage.tst
new file mode 100755
index 000000000..c39eb453d
--- /dev/null
+++ b/modules/localization/tests/unit_tests/getlanguage.tst
@@ -0,0 +1,23 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+//===============================
+// unit tests getlanguage
+//===============================
+
+// Switch to french with small code
+lang="fr"; setlanguage(lang); if getlanguage() <> "fr_FR" then pause, end
+
+// Switch to english with small code
+lang="en"; setlanguage(lang); if getlanguage() <> "en_US" then pause, end
+
+// Switch to english with full code
+lang="en_US"; setlanguage(lang); if getlanguage() <> "en_US" then pause, end
+
+// Switch to french with full code
+lang="fr_FR"; setlanguage(lang); if getlanguage() <> "fr_FR" then pause, end
+
diff --git a/modules/localization/tests/unit_tests/gettext.dia.ref b/modules/localization/tests/unit_tests/gettext.dia.ref
new file mode 100755
index 000000000..230821995
--- /dev/null
+++ b/modules/localization/tests/unit_tests/gettext.dia.ref
@@ -0,0 +1,27 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//===============================
+// unit tests gettext
+//===============================
+// Void call
+if execstr('gettext()','errcatch')==0 then bugmes();quit;end
+// three inputs arguments
+str1="plop"; str2="plip"; str3="plup"; if execstr('gettext(str1, str2, str3)','errcatch')==0 then bugmes();quit;end
+// Try to translate from en_US to en_US to a string which doesn't exist
+lang="en_US"; setlanguage(lang); msg="Localization does not exist"; if gettext(msg) <> msg then bugmes();quit;end
+// Try to translate from en_US to fr_FR to a string which doesn't exist
+lang="fr_FR"; setlanguage(lang); msg="Localization does not exist"; if gettext(msg) <> msg then bugmes();quit;end
+lang="fr_FR"; setlanguage(lang); msg="Startup execution:"; if gettext(msg) <> "Initialisation :" then bugmes();quit;end
+lang="fr"; setlanguage(lang); msg="Startup execution:"; if gettext(msg) <> "Initialisation :" then bugmes();quit;end
+lang="en"; setlanguage(lang); msg="Startup execution:"; if gettext(msg) <> msg then bugmes();quit;end
+lang="en_US"; setlanguage(lang); msg="Startup execution:"; if gettext(msg) <> msg then bugmes();quit;end
+addlocalizationdomain("tbx", "SCI/modules/localization/tests/unit_tests/locale");
+setlanguage("fr_FR");
+assert_checkequal(gettext("%s: No more memory.\n"), "%s : Plus de mémoire disponible.\n");
+assert_checkequal(gettext("tbx", "%s: No more memory.\n"), "%s : Overwrite Scilab translation.\n");
+assert_checkequal(gettext("%s: something not in Scilab.\n"), "%s: something not in Scilab.\n");
+assert_checkequal(gettext("tbx", "%s: something not in Scilab.\n"), "%s : it is true, that is not in Scilab.\n");
diff --git a/modules/localization/tests/unit_tests/gettext.tst b/modules/localization/tests/unit_tests/gettext.tst
new file mode 100755
index 000000000..387348fe2
--- /dev/null
+++ b/modules/localization/tests/unit_tests/gettext.tst
@@ -0,0 +1,38 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+//===============================
+// unit tests gettext
+//===============================
+
+// Void call
+if execstr('gettext()','errcatch')==0 then pause,end
+
+// three inputs arguments
+str1="plop"; str2="plip"; str3="plup"; if execstr('gettext(str1, str2, str3)','errcatch')==0 then pause,end
+
+// Try to translate from en_US to en_US to a string which doesn't exist
+lang="en_US"; setlanguage(lang); msg="Localization does not exist"; if gettext(msg) <> msg then pause, end
+
+// Try to translate from en_US to fr_FR to a string which doesn't exist
+lang="fr_FR"; setlanguage(lang); msg="Localization does not exist"; if gettext(msg) <> msg then pause, end
+
+lang="fr_FR"; setlanguage(lang); msg="Startup execution:"; if gettext(msg) <> "Initialisation :" then pause, end
+
+lang="fr"; setlanguage(lang); msg="Startup execution:"; if gettext(msg) <> "Initialisation :" then pause, end
+
+lang="en"; setlanguage(lang); msg="Startup execution:"; if gettext(msg) <> msg then pause, end
+
+lang="en_US"; setlanguage(lang); msg="Startup execution:"; if gettext(msg) <> msg then pause, end
+
+addlocalizationdomain("tbx", "SCI/modules/localization/tests/unit_tests/locale");
+setlanguage("fr_FR");
+assert_checkequal(gettext("%s: No more memory.\n"), "%s : Plus de mémoire disponible.\n");
+assert_checkequal(gettext("tbx", "%s: No more memory.\n"), "%s : Overwrite Scilab translation.\n");
+assert_checkequal(gettext("%s: something not in Scilab.\n"), "%s: something not in Scilab.\n");
+assert_checkequal(gettext("tbx", "%s: something not in Scilab.\n"), "%s : it is true, that is not in Scilab.\n");
+
diff --git a/modules/localization/tests/unit_tests/io_encoding.dia.ref b/modules/localization/tests/unit_tests/io_encoding.dia.ref
new file mode 100755
index 000000000..058e89a9c
--- /dev/null
+++ b/modules/localization/tests/unit_tests/io_encoding.dia.ref
@@ -0,0 +1,10 @@
+// ============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
+//
+// This file is distributed under the same license as the Scilab package.
+// ============================================================================
+// Create all needed directories
+//==============================
+chdir(TMPDIR);
+exec(SCI+"/modules/localization/tests/unit_tests/CreateDir.sce", -1);
diff --git a/modules/localization/tests/unit_tests/io_encoding.tst b/modules/localization/tests/unit_tests/io_encoding.tst
new file mode 100755
index 000000000..c567e44e8
--- /dev/null
+++ b/modules/localization/tests/unit_tests/io_encoding.tst
@@ -0,0 +1,14 @@
+// ============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
+//
+// This file is distributed under the same license as the Scilab package.
+// ============================================================================
+
+// Create all needed directories
+//==============================
+
+
+chdir(TMPDIR);
+
+exec(SCI+"/modules/localization/tests/unit_tests/CreateDir.sce", -1);
diff --git a/modules/localization/tests/unit_tests/locale/en_US/LC_MESSAGES/tbx.mo b/modules/localization/tests/unit_tests/locale/en_US/LC_MESSAGES/tbx.mo
new file mode 100755
index 000000000..0e866a731
--- /dev/null
+++ b/modules/localization/tests/unit_tests/locale/en_US/LC_MESSAGES/tbx.mo
Binary files differ
diff --git a/modules/localization/tests/unit_tests/locale/en_US/LC_MESSAGES/tbx.po b/modules/localization/tests/unit_tests/locale/en_US/LC_MESSAGES/tbx.po
new file mode 100755
index 000000000..fda24379a
--- /dev/null
+++ b/modules/localization/tests/unit_tests/locale/en_US/LC_MESSAGES/tbx.po
@@ -0,0 +1,27 @@
+# Localization of the module core
+# Please see in SCI/tools/localization for localization management
+# Copyright (C) 2007 - INRIA / Scilab
+# This file is distributed under the same license as the Scilab package.
+# Sylvestre Ledru <sylvestre.ledru@inria.fr>, 2007.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Scilab\n"
+"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2013-06-17 20:20+0000\n"
+"Last-Translator: jojolebestof <Unknown>\n"
+"Language-Team: Scilab Localization <localization@scilab.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 16681)\n"
+"Language: \n"
+
+#, c-format
+msgid "%s: No more memory.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: something not in Scilab.\n"
+msgstr ""
diff --git a/modules/localization/tests/unit_tests/locale/fr_FR/LC_MESSAGES/tbx.mo b/modules/localization/tests/unit_tests/locale/fr_FR/LC_MESSAGES/tbx.mo
new file mode 100755
index 000000000..55892f327
--- /dev/null
+++ b/modules/localization/tests/unit_tests/locale/fr_FR/LC_MESSAGES/tbx.mo
Binary files differ
diff --git a/modules/localization/tests/unit_tests/locale/fr_FR/LC_MESSAGES/tbx.po b/modules/localization/tests/unit_tests/locale/fr_FR/LC_MESSAGES/tbx.po
new file mode 100755
index 000000000..7dfc86c55
--- /dev/null
+++ b/modules/localization/tests/unit_tests/locale/fr_FR/LC_MESSAGES/tbx.po
@@ -0,0 +1,27 @@
+# Localization of the module core
+# Please see in SCI/tools/localization for localization management
+# Copyright (C) 2007 - INRIA / Scilab
+# This file is distributed under the same license as the Scilab package.
+# Sylvestre Ledru <sylvestre.ledru@inria.fr>, 2007.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Scilab\n"
+"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2013-06-17 20:20+0000\n"
+"Last-Translator: jojolebestof <Unknown>\n"
+"Language-Team: Scilab Localization <localization@scilab.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 16681)\n"
+"Language: \n"
+
+#, c-format
+msgid "%s: No more memory.\n"
+msgstr "%s : Overwrite Scilab translation.\n"
+
+#, c-format
+msgid "%s: something not in Scilab.\n"
+msgstr "%s : it is true, that is not in Scilab.\n"
diff --git a/modules/localization/tests/unit_tests/setdefaultlanguage.tst b/modules/localization/tests/unit_tests/setdefaultlanguage.tst
new file mode 100755
index 000000000..e29b9574a
--- /dev/null
+++ b/modules/localization/tests/unit_tests/setdefaultlanguage.tst
@@ -0,0 +1,50 @@
+// ============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// ============================================================================
+
+// setdefaultlanguage only on Windows
+// returns false in others case
+
+if getos() == 'Windows' then
+ ierr = execstr('setdefaultlanguage()','errcatch');
+ if ierr <> 77 then pause,end
+
+ ierr = execstr('setdefaultlanguage(1)','errcatch');
+ if ierr <> 999 then pause,end
+
+ warning('off');
+
+ if setdefaultlanguage('toto') <> %f then pause,end
+
+ if setdefaultlanguage('en') <> %t then pause,end
+ if getlanguage() <> 'en_US' then pause,end
+
+ if setdefaultlanguage('fr') <> %t then pause,end
+ if getlanguage() <> 'fr_FR' then pause,end
+
+ if setdefaultlanguage('en_US') <> %t then pause,end
+ if getlanguage() <> 'en_US' then pause,end
+
+ if setdefaultlanguage('fr_FR') <> %t then pause,end
+ if getlanguage() <> 'fr_FR' then pause,end
+
+ if setdefaultlanguage('ru_RU') <> %t then pause,end
+ if getlanguage() <> 'ru_RU' then pause,end
+
+ if setdefaultlanguage('zh_CN') <> %t then pause,end
+ if getlanguage() <> 'zh_CN' then pause,end
+
+ if setdefaultlanguage('zh_TW') <> %t then pause,end
+ if getlanguage() <> 'zh_TW' then pause,end
+
+ if setdefaultlanguage('C') <> %t then pause,end
+ if getlanguage() <> getdefaultlanguage() then pause,end
+
+ if setdefaultlanguage('') <> %t then pause,end
+
+ warning('on');
+
+end
diff --git a/modules/localization/tests/unit_tests/setdefaultlanguage.unix.dia.ref b/modules/localization/tests/unit_tests/setdefaultlanguage.unix.dia.ref
new file mode 100755
index 000000000..1f23cefac
--- /dev/null
+++ b/modules/localization/tests/unit_tests/setdefaultlanguage.unix.dia.ref
@@ -0,0 +1,34 @@
+// ============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// ============================================================================
+// setdefaultlanguage only on Windows
+// returns false in others case
+if getos() == 'Windows' then
+ ierr = execstr('setdefaultlanguage()','errcatch');
+ if ierr <> 77 then bugmes();quit;end
+ ierr = execstr('setdefaultlanguage(1)','errcatch');
+ if ierr <> 999 then bugmes();quit;end
+ warning('off');
+ if setdefaultlanguage('toto') <> %f then bugmes();quit;end
+ if setdefaultlanguage('en') <> %t then bugmes();quit;end
+ if getlanguage() <> 'en_US' then bugmes();quit;end
+ if setdefaultlanguage('fr') <> %t then bugmes();quit;end
+ if getlanguage() <> 'fr_FR' then bugmes();quit;end
+ if setdefaultlanguage('en_US') <> %t then bugmes();quit;end
+ if getlanguage() <> 'en_US' then bugmes();quit;end
+ if setdefaultlanguage('fr_FR') <> %t then bugmes();quit;end
+ if getlanguage() <> 'fr_FR' then bugmes();quit;end
+ if setdefaultlanguage('ru_RU') <> %t then bugmes();quit;end
+ if getlanguage() <> 'ru_RU' then bugmes();quit;end
+ if setdefaultlanguage('zh_CN') <> %t then bugmes();quit;end
+ if getlanguage() <> 'zh_CN' then bugmes();quit;end
+ if setdefaultlanguage('zh_TW') <> %t then bugmes();quit;end
+ if getlanguage() <> 'zh_TW' then bugmes();quit;end
+ if setdefaultlanguage('C') <> %t then bugmes();quit;end
+ if getlanguage() <> getdefaultlanguage() then bugmes();quit;end
+ if setdefaultlanguage('') <> %t then bugmes();quit;end
+ warning('on');
+end
diff --git a/modules/localization/tests/unit_tests/setdefaultlanguage.win.dia.ref b/modules/localization/tests/unit_tests/setdefaultlanguage.win.dia.ref
new file mode 100755
index 000000000..1f23cefac
--- /dev/null
+++ b/modules/localization/tests/unit_tests/setdefaultlanguage.win.dia.ref
@@ -0,0 +1,34 @@
+// ============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// ============================================================================
+// setdefaultlanguage only on Windows
+// returns false in others case
+if getos() == 'Windows' then
+ ierr = execstr('setdefaultlanguage()','errcatch');
+ if ierr <> 77 then bugmes();quit;end
+ ierr = execstr('setdefaultlanguage(1)','errcatch');
+ if ierr <> 999 then bugmes();quit;end
+ warning('off');
+ if setdefaultlanguage('toto') <> %f then bugmes();quit;end
+ if setdefaultlanguage('en') <> %t then bugmes();quit;end
+ if getlanguage() <> 'en_US' then bugmes();quit;end
+ if setdefaultlanguage('fr') <> %t then bugmes();quit;end
+ if getlanguage() <> 'fr_FR' then bugmes();quit;end
+ if setdefaultlanguage('en_US') <> %t then bugmes();quit;end
+ if getlanguage() <> 'en_US' then bugmes();quit;end
+ if setdefaultlanguage('fr_FR') <> %t then bugmes();quit;end
+ if getlanguage() <> 'fr_FR' then bugmes();quit;end
+ if setdefaultlanguage('ru_RU') <> %t then bugmes();quit;end
+ if getlanguage() <> 'ru_RU' then bugmes();quit;end
+ if setdefaultlanguage('zh_CN') <> %t then bugmes();quit;end
+ if getlanguage() <> 'zh_CN' then bugmes();quit;end
+ if setdefaultlanguage('zh_TW') <> %t then bugmes();quit;end
+ if getlanguage() <> 'zh_TW' then bugmes();quit;end
+ if setdefaultlanguage('C') <> %t then bugmes();quit;end
+ if getlanguage() <> getdefaultlanguage() then bugmes();quit;end
+ if setdefaultlanguage('') <> %t then bugmes();quit;end
+ warning('on');
+end
diff --git a/modules/localization/tests/unit_tests/setlanguage.dia.ref b/modules/localization/tests/unit_tests/setlanguage.dia.ref
new file mode 100755
index 000000000..78ce24e82
--- /dev/null
+++ b/modules/localization/tests/unit_tests/setlanguage.dia.ref
@@ -0,0 +1,55 @@
+// ============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// ============================================================================
+//===============================
+// unit tests setlanguage
+//===============================
+// Void call
+if execstr('setlanguage()','errcatch')==0 then bugmes();quit;end
+// Double call
+lang="fr_FR"; lang2="en_US"; if execstr('setlanguage(lang, lang2)','errcatch')==0 then bugmes();quit;end
+// Empty call
+lang=getdefaultlanguage(); if setlanguage(lang) <> %T then bugmes();quit;end
+// Switch to english
+lang="en_US"; if setlanguage(lang) <> %T then bugmes();quit;end
+getlanguage()
+ ans =
+
+ en_US
+// Switch to english with small code
+lang="en"; if setlanguage(lang) <> %T then bugmes();quit;end
+getlanguage()
+ ans =
+
+ en_US
+// Switch to french with small code
+lang="fr"; if setlanguage(lang) <> %T then bugmes();quit;end
+getlanguage()
+ ans =
+
+ fr_FR
+// Switch to russian with full code
+lang="ru_RU"; if setlanguage(lang) <> %T then bugmes();quit;end
+getlanguage()
+ ans =
+
+ ru_RU
+// Switch to a wrong code
+lang="f"; if setlanguage(lang) <> %F then bugmes();quit;end
+setlanguage: Язык «f» не поддерживается.
+getlanguage()
+ ans =
+
+ ru_RU
+// Switch to a wrong code
+lang="ff"; if setlanguage(lang) <> %F then bugmes();quit;end
+setlanguage: Язык «ff» не поддерживается.
+// Switch to a wrong code
+lang="fff"; if setlanguage(lang) <> %F then bugmes();quit;end
+setlanguage: Язык «fff» не поддерживается.
+// Switch to a wrong code
+lang="ffff"; if setlanguage(lang) <> %F then bugmes();quit;end
+setlanguage: Язык «ffff» не поддерживается.
diff --git a/modules/localization/tests/unit_tests/setlanguage.tst b/modules/localization/tests/unit_tests/setlanguage.tst
new file mode 100755
index 000000000..deec5ef0e
--- /dev/null
+++ b/modules/localization/tests/unit_tests/setlanguage.tst
@@ -0,0 +1,48 @@
+// ============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// ============================================================================
+
+//===============================
+// unit tests setlanguage
+//===============================
+
+// Void call
+if execstr('setlanguage()','errcatch')==0 then pause,end
+
+// Double call
+lang="fr_FR"; lang2="en_US"; if execstr('setlanguage(lang, lang2)','errcatch')==0 then pause,end
+
+// Empty call
+lang=getdefaultlanguage(); if setlanguage(lang) <> %T then pause,end
+
+// Switch to english
+lang="en_US"; if setlanguage(lang) <> %T then pause, end
+getlanguage()
+
+// Switch to english with small code
+lang="en"; if setlanguage(lang) <> %T then pause, end
+getlanguage()
+
+// Switch to french with small code
+lang="fr"; if setlanguage(lang) <> %T then pause, end
+getlanguage()
+
+// Switch to russian with full code
+lang="ru_RU"; if setlanguage(lang) <> %T then pause, end
+getlanguage()
+
+// Switch to a wrong code
+lang="f"; if setlanguage(lang) <> %F then pause, end
+getlanguage()
+
+// Switch to a wrong code
+lang="ff"; if setlanguage(lang) <> %F then pause, end
+
+// Switch to a wrong code
+lang="fff"; if setlanguage(lang) <> %F then pause, end
+
+// Switch to a wrong code
+lang="ffff"; if setlanguage(lang) <> %F then pause, end
diff --git a/modules/localization/tests/unit_tests/unicode_charset.dia.ref b/modules/localization/tests/unit_tests/unicode_charset.dia.ref
new file mode 100755
index 000000000..1cfc75675
--- /dev/null
+++ b/modules/localization/tests/unit_tests/unicode_charset.dia.ref
@@ -0,0 +1,10 @@
+// ============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// ============================================================================
+lang="zh_TW"; setlanguage(lang); msg="%s: Type %s is not implemented.\n"; if gettext(msg) <> "%s: 型態 %s 未實作.\n" then bugmes();quit;end
+lang="zh_TW"; setlanguage(lang); msg="%s: function not available in NWNI mode.\n"; if gettext(msg) <> "%s: 此函數在 NWNI 模式中不存在.\n" then bugmes();quit;end
+lang="ru_RU"; setlanguage(lang); msg="%s: Type %s is not implemented.\n"; if gettext(msg) <> "%s: Тип %s не реализован.\n" then bugmes();quit;end
+lang="ru_RU"; setlanguage(lang); msg="%s: function not available in NWNI mode.\n"; if gettext(msg) <> "%s: функция недоступна в режиме NWNI.\n" then bugmes();quit;end
diff --git a/modules/localization/tests/unit_tests/unicode_charset.tst b/modules/localization/tests/unit_tests/unicode_charset.tst
new file mode 100755
index 000000000..86f9d7f7f
--- /dev/null
+++ b/modules/localization/tests/unit_tests/unicode_charset.tst
@@ -0,0 +1,15 @@
+// ============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// ============================================================================
+
+lang="zh_TW"; setlanguage(lang); msg="%s: Type %s is not implemented.\n"; if gettext(msg) <> "%s: 型態 %s 未實作.\n" then pause, end
+
+lang="zh_TW"; setlanguage(lang); msg="%s: function not available in NWNI mode.\n"; if gettext(msg) <> "%s: 此函數在 NWNI 模式中不存在.\n" then pause, end
+
+lang="ru_RU"; setlanguage(lang); msg="%s: Type %s is not implemented.\n"; if gettext(msg) <> "%s: Тип %s не реализован.\n" then pause, end
+
+lang="ru_RU"; setlanguage(lang); msg="%s: function not available in NWNI mode.\n"; if gettext(msg) <> "%s: функция недоступна в режиме NWNI.\n" then pause, end
+
diff --git a/modules/localization/tests/unit_tests/unicode_io.dia.ref b/modules/localization/tests/unit_tests/unicode_io.dia.ref
new file mode 100755
index 000000000..e582589a0
--- /dev/null
+++ b/modules/localization/tests/unit_tests/unicode_io.dia.ref
@@ -0,0 +1,59 @@
+// ============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - Yung-Jang Lee <yjlee123@gmail.com>
+// Copyright (C) 2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// ============================================================================
+lines(0);
+// zh_TW / Cyrillic / amharique / Japanese / Chinese / Thai / Corean
+text=[ "中文測試", "азеазеясдвклгхклмвцмзер" ..
+ "ድቅስድቅስግጅክልውሽችክልዝ" ..
+"すべての人間は、生まれながらにして自由であり、かつ、尊厳と権利と について平等である。人間は、理性と良心とを授けられており、互いに同 胞の精神をもって行動しなければならない。" ..
+"人 人 生 而 自 由, 在 尊 严 和 权 利 上 一 律 平 等。 他 们 赋 有 理 性 和 良 心, 并 应 以 兄 弟 关 系 的 精 神 相 对 待。" ..
+"ราทุกคนเกิดมาอย่างอิสระ เราทุกคนมีความคิดและความเข้าใจเป็นของเราเอง เราทุกคนควรได้รับการปฏิบัติในทางเดียวกัน." ..
+"모든 인간은 태어날 때부터 자유로우며 그 존엄과 권리에 있어 동등하다. 인간은 천부적으로 이성과 양심을 부여받았으며 서로 형제애의 정신으로 행동하여야 한다." ..
+"لد جميع الناس أحرارًا متساوين في الكرامة والحقوق. وقد وهبوا عقلاً وضميرًا وعليهم أن يعامل بعضهم بعضًا بروح الإخاء"..
+"כל בני האדם נולדו בני חורין ושווים בערכם ובזכיותיהם. כולם חוננו בתבונה ובמצפון, לפיכך חובה עליהם לנהג איש ברעהו ברוח של אחוה"
+];
+for i=1:size(text,"*")
+if msprintf(text(i)) <> text(i) then bugmes();quit;end
+// Fortran-Style output<------- no yet fixed in this patch
+//u=file('open','resultsA','unknown') //<--------Test 2 file encoding for Fortran Style output
+//write(u,text(i),'(a)') // encoding wrong, not in system locale
+//file('close',u)
+// C style output
+myFile="resultsA";
+u=mopen(TMPDIR+"/"+myFile,'w');
+mfprintf(u,text(i)+" plus %s",text(i));
+mclose(u);
+if mgetl(TMPDIR+"/"+myFile,1) <> text(i) + " plus "+text(i) then bugmes();quit;end
+myStr=" with another %s";
+myStr2=" with another ";
+if msprintf(text(i)+myStr,text(i)) <> text(i)+myStr2+text(i) then bugmes();quit;end
+// Classic display
+disp(text(i));
+end
+
+ 中文測試
+
+ азеазеясдвклгхклмвцмзер
+
+ ድቅስድቅስግጅክልውሽችክልዝ
+
+ の精神をもって行動しなければならない。
+
+
+ ราทุกคนเกิดมาอย่างอิสระ
+
+ 모든 인간은 태어날 때부터 자유로우며 그 존엄과 권
+
+ لد جميع الناس أحرارًا متساوين في الكرا
+ مة والحقوق. وقد وهبوا عقلاً وضميرًا
+ ונה ובמצפון, לפיכך חובה עליהם לנהג א
+ יש ברעהו ברוח של אחוה
+//title('title test'+text); t=0:0.1:2*%pi; //<------Test 7 text drawing test
+//plot2d(t,[sin(t'),cos(t')],[-1,2]);
+//legends(['legends test'+text ;'text B '+text],[-1,2], opt=3 );
+// ScilabVersion/OS/LANG/CONSOLE = EncodingPatch/WindowsXp/zh_TW.CP950/Dos Console
+//about(); //<------Test 8 Scilab gettext Test
diff --git a/modules/localization/tests/unit_tests/unicode_io.tst b/modules/localization/tests/unit_tests/unicode_io.tst
new file mode 100755
index 000000000..f20c5a074
--- /dev/null
+++ b/modules/localization/tests/unit_tests/unicode_io.tst
@@ -0,0 +1,56 @@
+// ============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - Yung-Jang Lee <yjlee123@gmail.com>
+// Copyright (C) 2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// ============================================================================
+
+lines(0);
+
+// zh_TW / Cyrillic / amharique / Japanese / Chinese / Thai / Corean
+text=[ "中文測試", "азеазеясдвклгхклмвцмзер" ..
+ "ድቅስድቅስግጅክልውሽችክልዝ" ..
+"すべての人間は、生まれながらにして自由であり、かつ、尊厳と権利と について平等である。人間は、理性と良心とを授けられており、互いに同 胞の精神をもって行動しなければならない。" ..
+"人 人 生 而 自 由, 在 尊 严 和 权 利 上 一 律 平 等。 他 们 赋 有 理 性 和 良 心, 并 应 以 兄 弟 关 系 的 精 神 相 对 待。" ..
+"ราทุกคนเกิดมาอย่างอิสระ เราทุกคนมีความคิดและความเข้าใจเป็นของเราเอง เราทุกคนควรได้รับการปฏิบัติในทางเดียวกัน." ..
+"모든 인간은 태어날 때부터 자유로우며 그 존엄과 권리에 있어 동등하다. 인간은 천부적으로 이성과 양심을 부여받았으며 서로 형제애의 정신으로 행동하여야 한다." ..
+"لد جميع الناس أحرارًا متساوين في الكرامة والحقوق. وقد وهبوا عقلاً وضميرًا وعليهم أن يعامل بعضهم بعضًا بروح الإخاء"..
+"כל בני האדם נולדו בני חורין ושווים בערכם ובזכיותיהם. כולם חוננו בתבונה ובמצפון, לפיכך חובה עליהם לנהג איש ברעהו ברוח של אחוה"
+];
+
+for i=1:size(text,"*")
+
+if msprintf(text(i)) <> text(i) then pause, end
+
+// Fortran-Style output<------- no yet fixed in this patch
+//u=file('open','resultsA','unknown') //<--------Test 2 file encoding for Fortran Style output
+//write(u,text(i),'(a)') // encoding wrong, not in system locale
+//file('close',u)
+// C style output
+
+myFile="resultsA";
+u=mopen(TMPDIR+"/"+myFile,'w');
+mfprintf(u,text(i)+" plus %s",text(i));
+mclose(u);
+
+if mgetl(TMPDIR+"/"+myFile,1) <> text(i) + " plus "+text(i) then pause, end
+
+
+myStr=" with another %s";
+myStr2=" with another ";
+if msprintf(text(i)+myStr,text(i)) <> text(i)+myStr2+text(i) then pause, end
+
+// Classic display
+disp(text(i));
+
+end
+
+
+//title('title test'+text); t=0:0.1:2*%pi; //<------Test 7 text drawing test
+//plot2d(t,[sin(t'),cos(t')],[-1,2]);
+//legends(['legends test'+text ;'text B '+text],[-1,2], opt=3 );
+// ScilabVersion/OS/LANG/CONSOLE = EncodingPatch/WindowsXp/zh_TW.CP950/Dos Console
+//about(); //<------Test 8 Scilab gettext Test
+
+
diff --git a/modules/localization/tests/unit_tests/unicode_io.win.dia.ref b/modules/localization/tests/unit_tests/unicode_io.win.dia.ref
new file mode 100755
index 000000000..7508d1bf8
--- /dev/null
+++ b/modules/localization/tests/unit_tests/unicode_io.win.dia.ref
@@ -0,0 +1,75 @@
+// ============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - Yung-Jang Lee <yjlee123@gmail.com>
+// Copyright (C) 2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// ============================================================================
+lines(0);
+// zh_TW / Cyrillic / amharique / Japanese / Chinese / Thai / Corean
+text=[ "中文測試", "азеазеясдвклгхклмвцмзер" ..
+ "ድቅስድቅስግጅክልውሽችክልዝ" ..
+"すべての人間は、生まれながらにして自由であり、かつ、尊厳と権利と について平等である。人間は、理性と良心とを授けられており、互いに同 胞の精神をもって行動しなければならない。" ..
+"人 人 生 而 自 由, 在 尊 严 和 权 利 上 一 律 平 等。 他 们 赋 有 理 性 和 良 心, 并 应 以 兄 弟 关 系 的 精 神 相 对 待。" ..
+"ราทุกคนเกิดมาอย่างอิสระ เราทุกคนมีความคิดและความเข้าใจเป็นของเราเอง เราทุกคนควรได้รับการปฏิบัติในทางเดียวกัน." ..
+"모든 인간은 태어날 때부터 자유로우며 그 존엄과 권리에 있어 동등하다. 인간은 천부적으로 이성과 양심을 부여받았으며 서로 형제애의 정신으로 행동하여야 한다." ..
+"لد جميع الناس أحرارًا متساوين في الكرامة والحقوق. وقد وهبوا عقلاً وضميرًا وعليهم أن يعامل بعضهم بعضًا بروح الإخاء"..
+"כל בני האדם נולדו בני חורין ושווים בערכם ובזכיותיהם. כולם חוננו בתבונה ובמצפון, לפיכך חובה עליהם לנהג איש ברעהו ברוח של אחוה"
+];
+for i=1:size(text,"*")
+if msprintf(text(i)) <> text(i) then bugmes();quit;end
+// Fortran-Style output<------- no yet fixed in this patch
+//u=file('open','resultsA','unknown') //<--------Test 2 file encoding for Fortran Style output
+//write(u,text(i),'(a)') // encoding wrong, not in system locale
+//file('close',u)
+// C style output
+myFile="resultsA";
+u=mopen(TMPDIR+"/"+myFile,'w');
+mfprintf(u,text(i)+" plus %s",text(i));
+mclose(u);
+if mgetl(TMPDIR+"/"+myFile,1) <> text(i) + " plus "+text(i) then bugmes();quit;end
+myStr=" with another %s";
+myStr2=" with another ";
+if msprintf(text(i)+myStr,text(i)) <> text(i)+myStr2+text(i) then bugmes();quit;end
+// Classic display
+disp(text(i));
+end
+
+ 中文測試
+
+ азеазеясдвклгхклмвцмзер
+
+ ድቅስድቅስግጅክልውሽችክልዝ
+
+ すべての人間は、生まれながらにして自由であり、�
+ ��つ、尊厳と権利と について平等である。人間�
+ �、理性と良心とを授けられており、互いに同 胞
+ の精神をもって行動しなければならない。
+
+ 人 人 生 而 自 由, 在 尊 严 和 权 利 上 一 律 平 等�
+ � 他 们 赋 有 理 性 和 良 心, 并 应 以 兄 弟 关 �
+ � 的 精 神 相 对 待。
+
+ ราทุกคนเกิดมาอย่างอิสระ
+ เราทุกคนมีความคิดและค�
+ �ามเข้าใจเป็นของเราเอง
+ เราทุกคนควรได้รับการป�
+ �ิบัติในทางเดียวกัน.
+
+ 모든 인간은 태어날 때부터 자유로우며 그 존엄과 권
+ 리에 있어 동등하다. 인간은 천부적으로 이성과 �
+ ��심을 부여받았으며 서로 형제애의 정신으로 행�
+ ��하여야 한다.
+
+ لد جميع الناس أحرارًا متساوين في الكرا
+ مة والحقوق. وقد وهبوا عقلاً وضميرًا
+ وعليهم أن يعامل بعضهم بعضًا بروح ال�
+ �خاء"כל בני האדם נולדו בני חורין ושו�
+ �ים בערכם ובזכיותיהם. כולם חוננו בתב
+ ונה ובמצפון, לפיכך חובה עליהם לנהג א
+ יש ברעהו ברוח של אחוה
+//title('title test'+text); t=0:0.1:2*%pi; //<------Test 7 text drawing test
+//plot2d(t,[sin(t'),cos(t')],[-1,2]);
+//legends(['legends test'+text ;'text B '+text],[-1,2], opt=3 );
+// ScilabVersion/OS/LANG/CONSOLE = EncodingPatch/WindowsXp/zh_TW.CP950/Dos Console
+//about(); //<------Test 8 Scilab gettext Test
diff --git a/modules/localization/xml/localization.dtd b/modules/localization/xml/localization.dtd
new file mode 100755
index 000000000..4e482a06e
--- /dev/null
+++ b/modules/localization/xml/localization.dtd
@@ -0,0 +1,16 @@
+<!ELEMENT LOCALIZATION (entry*)>
+
+<!ELEMENT META (#PCDATA) >
+
+<!ATTLIST META
+CATEGORY CDATA "Scilab localization"
+VERSION_SCI CDATA "5.0"
+VERSION_DOC CDATA "1.0"
+AUTHOR CDATA "Allan CORNET - INRIA 2007"
+ >
+
+<!ELEMENT entry (msgpreviousid?,msgid,msgstr) >
+
+<!ELEMENT msgpreviousid (#PCDATA)>
+<!ELEMENT msgid (#PCDATA)>
+<!ELEMENT msgstr (#PCDATA)> \ No newline at end of file