public interface ITranslateCallback
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTranslation(java.lang.String id,
java.lang.String source)
Old call without path, for compatibility
|
java.lang.String |
getTranslation(java.lang.String id,
java.lang.String source,
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.
|
void setPass(int pass)
pass
- The current path number, i.e., 1 or 2void linkPrevNextSegments()
java.lang.String getTranslation(java.lang.String id, java.lang.String source, java.lang.String path)
id
- ID in source file, or null if ID not supported by formatsource
- source entry textpath
- path of segmentjava.lang.String getTranslation(java.lang.String id, java.lang.String source)
id
- ID in source file, or null if ID not supported by formatsource
- source entry text