diff options
author | Shashank | 2017-05-29 12:40:26 +0530 |
---|---|---|
committer | Shashank | 2017-05-29 12:40:26 +0530 |
commit | 0345245e860375a32c9a437c4a9d9cae807134e9 (patch) | |
tree | ad51ecbfa7bcd3cc5f09834f1bb8c08feaa526a4 /modules/localization/src/java | |
download | scilab_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/src/java')
6 files changed, 236 insertions, 0 deletions
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(); +} |