|
META TOPICPARENT |
name="APPXRuntimeSubroutineAPI" |
.CONVERT TRANSLATE |
|
This subroutine converts a string from one language to another. The first five parameters are required, if any are missing the subroutine will CANCEL. The <trans_type>, <trans_app_id> and <trans_ver_id> parameters are optional. The translation uses the Dictionaries and Translations you have entered in the applications. Note that this routine should be invoked via SUBR with a RELATED or DETACHED invocation to ensure none of your fields are changed. |
|
< < | <trans_text> is the translated version of <source_text> (Required). This must be PASSed with Share "Y" to return the value. |
> > | <trans_text> returns the translated version of <source_text> (Required). This must be PASSed with Share "Y" to return the value. |
| |
|
< < | <trans_error> contains any addiitonal error messages from the translation (Required). This must be PASSed with Share "Y" to return the value. |
> > | <trans_error> returns any addiitonal error messages from the translation (Required). This must be PASSed with Share "Y" to return the value. |
|
<source_text> is the text you want translated (Required). |
|
- Token: A TOKEN field or an ALPHA field with table values consisting of a word or a phrase which requires an exact match with a Token entry in the dictionary.
- Message: Text from the system MESSAGE file requires an exact match with a Message entry in the dictionary.
- Field: One or more phrases and words.
|
|
< < | |
> > | |
|
<trans_app_id> is the Application Id whose dictionaries should be used for the translation (Optional). Defaults to the current application if not PASSed, or is blank. |