public abstract class TranslateEntry extends java.lang.Object implements ITranslateCallback
Modifier and Type | Class and Description |
---|---|
protected static class |
TranslateEntry.TranslateEntryQueueItem
Storage for cached segments.
|
Constructor and Description |
---|
TranslateEntry(ProjectProperties config) |
Modifier and Type | Method and Description |
---|---|
protected void |
fileFinished() |
protected void |
fileStarted() |
protected abstract java.lang.String |
getSegmentTranslation(java.lang.String id,
int segmentIndex,
java.lang.String segmentSource,
java.lang.String prevSegment,
java.lang.String nextSegment,
java.lang.String path) |
java.lang.String |
getTranslation(java.lang.String id,
java.lang.String origSource)
Old call without path, for compatibility
|
java.lang.String |
getTranslation(java.lang.String id,
java.lang.String origSource,
java.lang.String path)
Get translation for output to compiled target.
|
void |
linkPrevNextSegments()
This method called from AbstractFilter if filter require second pass.
|
void |
setPass(int pass)
Set current pass number
Any filter called in one-pass mode by default.
|
public TranslateEntry(ProjectProperties config)
public void setPass(int pass)
setPass
in interface ITranslateCallback
pass
- The current path number, i.e., 1 or 2protected void fileStarted()
protected void fileFinished()
public java.lang.String getTranslation(java.lang.String id, java.lang.String origSource, java.lang.String path)
getTranslation
in interface ITranslateCallback
id
- ID in source file, or null if ID not supported by formatorigSource
- source entry textpath
- path of segmentpublic java.lang.String getTranslation(java.lang.String id, java.lang.String origSource)
getTranslation
in interface ITranslateCallback
id
- ID in source file, or null if ID not supported by formatorigSource
- source entry textpublic void linkPrevNextSegments()
linkPrevNextSegments
in interface ITranslateCallback
protected abstract java.lang.String getSegmentTranslation(java.lang.String id, int segmentIndex, java.lang.String segmentSource, java.lang.String prevSegment, java.lang.String nextSegment, java.lang.String path)