|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.model.Descriptor<hudson.model.PageDecorator>
hudson.model.PageDecorator
hudson.plugins.translation.L10nDecorator
@Extension public class L10nDecorator
PageDecorator that adds the translation dialog.
| Nested Class Summary | |
|---|---|
static class |
L10nDecorator.SubmissionEntry
|
| Nested classes/interfaces inherited from class hudson.model.Descriptor |
|---|
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary | |
|---|---|
ContributedL10nStore |
store
|
| Fields inherited from class hudson.model.PageDecorator |
|---|
ALL |
| Fields inherited from class hudson.model.Descriptor |
|---|
clazz |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Constructor Summary | |
|---|---|
L10nDecorator()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class hudson.model.PageDecorator |
|---|
all, getDescriptor, getDisplayName, getUrl |
| Methods inherited from class hudson.model.Descriptor |
|---|
calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getPropertyType, getPropertyType, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, toArray, toList, toMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final ContributedL10nStore store
| Constructor Detail |
|---|
public L10nDecorator()
| Method Detail |
|---|
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
IOException
public List<Msg> decode(org.kohsuke.stapler.StaplerRequest request)
throws IOException,
org.apache.commons.codec.DecoderException
encodeRecording(StaplerRequest).
IOException
org.apache.commons.codec.DecoderExceptionpublic 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
IOException
javax.servlet.ServletException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||