public interface HumanLanguage extends Serializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
HumanLanguage.Helper
Helper methods for implementations of HumanLanguage.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getDefaultFileEncoding() |
String |
getDefaultLabelDirectoryPath() |
String |
getDefaultUserEmailEncoding()
Return the user email encoding, which differs from the email encoding for
Thai and Korean for reasons I don't understand.
|
TextDirection |
getDirection() |
HumanLanguage |
getFallbackLanguage()
NOTE: You must ensure that the fallback language returned has a lower ordinal than this language in the
enum (i.e.
|
String |
getHttpLanguageCode() |
String |
getLabelKey() |
Locale |
getLocale() |
String |
getLocaleString() |
String |
getOverrideLanguage() |
String |
getSystemEmailEncoding() |
HumanLanguage |
getTranslationFallbackLanguage() |
boolean |
hasTurkicCaseFolding() |
int |
ordinal() |
boolean |
shouldLogFallbackStrings() |
String |
toFoldedCase(String input)
Return the value with the "case folded" using the unicode algorithm
for lowercase based on the current user language
|
Locale getLocale()
String getLocaleString()
TextDirection getDirection()
String getOverrideLanguage()
String getHttpLanguageCode()
String getDefaultLabelDirectoryPath()
String getDefaultFileEncoding()
String getDefaultUserEmailEncoding()
String getSystemEmailEncoding()
HumanLanguage getTranslationFallbackLanguage()
HumanLanguage getFallbackLanguage()
boolean shouldLogFallbackStrings()
String getLabelKey()
boolean hasTurkicCaseFolding()
String toFoldedCase(String input)
input - the string to be case folded (i.e. lowercased)CaseFolder.toFoldedCase(String, boolean)boolean equals(Object o)
int ordinal()
LanguageProvider.getAll() requires the
ordinal is the index in that list.
Note: this does assume that an Enum implements HumanLanguage. I would recommend this.
In any case, tCopyright (c) 2016-2017, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE.txt file in the repository.