Package org.djunits
Class AvailableLocalizations
- java.lang.Object
-
- org.djunits.AvailableLocalizations
-
public final class AvailableLocalizations extends Object
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.- Author:
- Peter Knoppers
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>
availableLocalizations(String prefix, String path)
Build a list of locale names that are available for a given prefix.
-
-
-
Method Detail
-
availableLocalizations
public static List<String> availableLocalizations(String prefix, String path)
Build a list of locale names that are available for a given prefix.- Parameters:
prefix
- String; the prefix of the localization file namespath
- String; the path to the resource directory to scan- Returns:
- List<String>; the list of matching locale names (which always starts with "en", even though there may not be such a localization file)
-
-