Package ui

Class Localization

java.lang.Object
ui.Localization

public class Localization extends Object
This is the localization class, which contains strings in different languages.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String[]
    The language strings
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates the object and tries to set the language to the current locale.
    Localization(int langage)
    Creates the object and tries to set the language to the chosen language.
  • Method Summary

    Modifier and Type
    Method
    Description
    static final int
    Returns the current language used.
    static final int
    Gets the current version of SMSQmulator.
    static final String
    Gets the current version of SMSQmulator.
    static final void
    setLanguage(int langage)
    This sets the language and the language dependent texts.
    final void
    setLanguage(String mlanguage)
    This sets the language and the language dependent texts.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • Texts

      public static final String[] Texts
      The language strings
  • Constructor Details

    • Localization

      public Localization()
      Creates the object and tries to set the language to the current locale.
    • Localization

      public Localization(int langage)
      Creates the object and tries to set the language to the chosen language.
      Parameters:
      langage - The chosen language to set :
      • 1 --DE
      • 2 --US/UK
      • 3 --ES
      • 4 --FR
      • 5 --IT
      • any other choice: this attempts to set the language to the current locale - if that fails: english
  • Method Details

    • setLanguage

      public final void setLanguage(String mlanguage)
      This sets the language and the language dependent texts.
      Parameters:
      mlanguage - a string containing an int with the language :
      • 1 --De
      • 2 --US/UK
      • 3 --ES
      • 4 --FR
      • 5 --IT
    • getQLVersion

      public static final int getQLVersion()
      Gets the current version of SMSQmulator.
      Returns:
      the version as an int (each byte = 1 char).
    • getVersion

      public static final String getVersion()
      Gets the current version of SMSQmulator.
      Returns:
      the version as a 4 letter string "x.yy"
    • setLanguage

      public static final void setLanguage(int langage)
      This sets the language and the language dependent texts.
      Parameters:
      langage - an int with the language :
      • 1 --De
      • 2 --EN US/UK
      • 3 --ES
      • 4 --FR
      • 5 --IT
      Parameters outside this range are simply ignored, nothing is then changed.
    • getLanguage

      public static final int getLanguage()
      Returns the current language used.
      Returns:
      One of these five values:
      • 1 --De
      • 2 --US/UK
      • 3 --ES
      • 4 --FR
      • 5 --IT