public class Localization extends Object implements Serializable
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2019-04-01 02:14:38 +0200 (Mon, 01 Apr 2019) $, @version $Revision: 370 $, by $Author: averbraeck $,
initial version Jun 12, 2014
Constructor and Description |
---|
Localization(String prefix)
Create a Localization object.
|
Modifier and Type | Method and Description |
---|---|
String |
getDefaultString(String key)
Retrieve a string from the default locale bundle.
|
String |
getString(String key)
Retrieve a string from a locale bundle.
|
boolean |
isDefault() |
public Localization(String prefix)
prefix
- String; the prefix of the properties files to use.public final String getString(String key)
key
- String; the key for the locale in the properties filepublic final String getDefaultString(String key)
key
- String; the key for the locale in the properties filepublic boolean isDefault()
Copyright © 2015–2019 Delft University of Technology. All rights reserved.