Package ui
Class Localization
java.lang.Object
ui.Localization
This is the localization class, which contains strings in different languages.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates 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 TypeMethodDescriptionstatic 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.
-
Field Details
-
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
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
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
-
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
-