public class LocaleUtils extends Object
| Constructor and Description |
|---|
LocaleUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<Locale> |
getLocaleLookupList(Locale locale)
Calls
LocaleUtils.localeLookupList(java.util.Locale, java.util.Locale)
with the ROOT locale as the default locale. |
static String |
getLocalizedUrl(org.craftercms.core.util.url.ContentBundleUrlParser urlParser,
String baseUrl,
Locale locale,
String delim)
Returns a new url base on the given locale.
|
public static List<Locale> getLocaleLookupList(Locale locale)
LocaleUtils.localeLookupList(java.util.Locale, java.util.Locale)
with the ROOT locale as the default locale.public static String getLocalizedUrl(org.craftercms.core.util.url.ContentBundleUrlParser urlParser, String baseUrl, Locale locale, String delim)
baseName + delim + language + delim + country + delim + variant
Copyright © 2014 CrafterCMS. All Rights Reserved.