2,9 → 2,9 |
|
/** This file contains the Internationalization class. |
* |
* @version $Revision: 1.3 $ |
* @version $Revision: 1.4 $ |
* |
* Last modification: $Date: 2003/06/20 07:57:42 $ |
* Last modification: $Date: 2003/06/20 07:59:39 $ |
*/ |
|
import java.util.Locale; |
17,13 → 17,13 |
* The internationalization of the program is made by using |
* a <code>ResourceBundle</code>-Object and its method |
* <code>getString()</code> with a code-word which leads |
* to a String of a specified language. An example can be |
* to a <code>String</code> of a specified language. An example can be |
* seen in the testing output in method <code>localize</code>. |
* |
* The selection of the language must return a Language Code, |
* that is a String, eg. "en" for the English language, which |
* that is a <code>String</code>, eg. "en" for the English language, which |
* leds to the selection of the file named "Texts_en.properties". |
* List of current legal Strings of this project: en English |
* List of current legal <code>Strings</code> of this project: en English |
* de German |
* You can add a new language by editing a file named |
* "Texts_<language code>.properties. |
43,11 → 43,11 |
private String propertiesPath = "src.internationalization.Texts"; |
private ResourceBundle texts; |
|
/** The main method makes a new instance of Internationalization. |
/** The main method makes a new instance of <code>Internationalization</code>. |
* |
* @param args parameter |
* @param args: Parameter |
* |
* @author Sascha Walkenhorst |
* author Sascha Walkenhorst |
* |
* Last Revision: 20-Jun-2003 |
*/ |
58,7 → 58,7 |
|
/** This constructor ... |
* |
* @author Sascha Walkenhorst |
* author Sascha Walkenhorst |
* |
* Last Revision: 20-Jun-2003 |
*/ |
72,7 → 72,7 |
* |
* @return The ResourceBundle. |
* |
* @author Sascha Walkenhorst |
* author Sascha Walkenhorst |
* |
* Last Revision: 20-Jun-2003 |
*/ |
89,11 → 89,11 |
|
/** This method makes a <code>ResourceBundle</code> of the given language. |
* |
* @param language The language code. |
* @param language: The language code. |
* |
* @return The ResourceBundle. |
* |
* @author Sascha Walkenhorst |
* author Sascha Walkenhorst |
* |
* Last Revision: 20-Jun-2003 |
*/ |
110,7 → 110,7 |
|
/** This method shows the available language and country codes. |
* |
* @author Sascha Walkenhorst |
* author Sascha Walkenhorst |
* |
* Last Revision: 20-Jun-2003 |
*/ |
121,4 → 121,4 |
} |
} |
|
} |
} |