- Symphony 2.3.2
-
› assets
14 -
› boot
9 -
› core
23 -
› cryptography
4 -
› email-gateways
3 -
› interface
6 -
› toolkit
72 -
› Unknown
41 - Delegates92
- Deprecated29
Versions
- 2.7.9
- 2.7.8
- 2.7.7
- 2.7.6
- 2.7.5
- 2.7.3
- 2.7.2
- 2.7.10
- 2.7.1
- 2.7.0
- 2.6.9
- 2.6.8
- 2.6.7
- 2.6.6
- 2.6.5
- 2.6.4
- 2.6.3
- 2.6.2
- 2.6.11
- 2.6.10
- 2.6.1
- 2.6.0
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2
Options
Functions
Returns __(
$string, $inserts)
The translation function accepts an English string and returns its translation
to the active system language. If the given string is not available in the
current dictionary the original English string will be returned. Given an optional
$inserts
array, the function will replace translation placeholders using vsprintf()
.
Since Symphony 2.3, it is also possible to have multiple translation of the same string
according to the page namespace (i.e. the value returned by Symphony's getPageNamespace()
method). In your lang file, use the $dictionary
key as namespace and its value as an array
of context-aware translations, as shown below:
$dictionary = array( [...]
'Create new' => 'Translation for Create New',
'/blueprints/datasources' => array(
'Create new' =>
'If we are inside a /blueprints/datasources/* page, this translation will be returned for the string'
),
[...]
);