@Extension
public class L10nDecorator
extends hudson.model.PageDecorator
PageDecorator that adds the translation dialog.| Modifier and Type | Class and Description |
|---|---|
static class |
L10nDecorator.SubmissionEntry |
| Modifier and Type | Field and Description |
|---|---|
ContributedL10nStore |
store |
| Constructor and Description |
|---|
L10nDecorator() |
| Modifier and Type | Method and Description |
|---|---|
List<Msg> |
decode(org.kohsuke.stapler.StaplerRequest request)
Does the opposite of
encodeRecording(StaplerRequest). |
void |
doSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
String locale)
Handles the submission from the browser.
|
String |
encodeRecording(org.kohsuke.stapler.StaplerRequest request) |
String |
getPrimaryTranslationLocale(org.kohsuke.stapler.StaplerRequest req)
Looks at
Accept-Language header manually and decide which locale
this user is likely capable of translating. |
Collection<Msg> |
getRecording(org.kohsuke.stapler.StaplerRequest request) |
List<Locales.Entry> |
listLocales() |
void |
startRecording(org.kohsuke.stapler.StaplerRequest request)
Activate the recording of the localized resources.
|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic final ContributedL10nStore store
public List<Locales.Entry> listLocales()
public void startRecording(org.kohsuke.stapler.StaplerRequest request)
public Collection<Msg> getRecording(org.kohsuke.stapler.StaplerRequest request)
public String encodeRecording(org.kohsuke.stapler.StaplerRequest request) throws IOException
IOExceptionpublic List<Msg> decode(org.kohsuke.stapler.StaplerRequest request) throws IOException
encodeRecording(StaplerRequest).IOExceptionpublic String getPrimaryTranslationLocale(org.kohsuke.stapler.StaplerRequest req)
Accept-Language header manually and decide which locale
this user is likely capable of translating.public void doSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
@QueryParameter
String locale)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionCopyright © 2004-2016. All Rights Reserved.