com.atlassian.jira.config.LocaleManager |
Known Indirect Subclasses |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
Provides Locale information for this JIRA instance.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | DEFAULT_LOCALE | The default locale id. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a set of locales supported by this JIRA instance.
| |||||||||||
Returns a mapping of localeString to its displayname.
| |||||||||||
Given a string, return the corresponding Locale.
| |||||||||||
Returns the locale for the given user.
| |||||||||||
Given a user entered locale string this method ensures that it is in fact a locale that
exists in this instance
|
Returns a set of locales supported by this JIRA instance. This is typically the language packs installed.
Returns a mapping of localeString to its displayname. Also includes a 'Default' locale.
defaultLocale | The locale to use as the default |
---|---|
i18nHelper | Required to internationalize the 'Default' |
Given a string, return the corresponding Locale.
locale | Locale in string form |
---|
Locale
object
Returns the locale for the given user.
user | The user |
---|
Given a user entered locale string this method ensures that it is in fact a locale that exists in this instance
loggedInUser | The user performing the operation |
---|---|
locale | the locale String to validate (e.g. en_UK) |
errorCollection | Error collection to record errors in |