Index

(misc)

o2_translate

string o2_translate(string $code, string $text)

Returns translation for the passed code.
Function can accept infinite parameters to replace placeholders in string.
Placeholders are in the form $n, where $1 is the first substitution parameter, $2 the second one and so on.


Parameters:
  1. $code
  2. Unique code identifier for string
  3. $text
  4. Text to be translated