{{tag>Function Function_List Text}} ====== TRANSLATE ====== ===== Description ===== Translates the specified string to the locale of the current user if it is defined. Returns the translated string. If no locale is defined the original string is returned. ===== Syntax ===== ''TRANSLATE (text[, locale])'' Cannot be used in the condition of a [[:ref:a_f:a:find|FIND]] action. ===== Parameters ===== Attribute of Plain Text type or expression producing Plain Text representing a string. There is also an optional second parameter indicating the name of the locale. ===== Returns ===== **Text**: the text translated to the current user's locale (or the named locale), or the original text if no locale is defined. ===== Example ===== <> ===== Related ===== [[ref:a_f:f:af:as_string|AS_STRING]], [[ref:a_f:f:af:eval_string|EVAL_STRING]]