Newer Version Available
toLabel(fields)
Use toLabel(fields) to translate SOSL query results into the user’s
language.
A client application can have results from a query returned that are translated into the user’s language, using toLabel():
For example:
This query returns lead records with the record type name translated into the language for the user who issued the query.
You can use toLabel() to filter records using a translated picklist value. For example:
Lead records are returned where the picklist value for Status is 'le Draft.' The comparison is made against the value for the user’s language. If no translation is available for the user’s language for the specified picklist, the comparison is made against the master values.
The toLabel function supports aliasing. In addition,
aliasing is required when the query includes the same field multiple times. For
example: