Definition at line 36 of file Array.php.
◆ _loadTranslationData()
_loadTranslationData |
( |
|
$data, |
|
|
|
$locale, |
|
|
array |
$options = array() |
|
) |
| |
|
protected |
Load translation data
- Parameters
-
string | array | $data | |
string | $locale | Locale/Language to add data for, identical with locale identifier, see Zend_Locale for more information |
array | $options | OPTIONAL Options to use |
- Returns
- array
Definition at line 49 of file Array.php.
51 $this->_data = array();
52 if (!is_array(
$data)) {
53 if (file_exists(
$data)) {
59 if (!is_array(
$data)) {
60 #require_once 'Zend/Translate/Exception.php'; 64 if (!isset($this->_data[$locale])) {
65 $this->_data[$locale] = array();
68 $this->_data[$locale] =
$data + $this->_data[$locale];
◆ toString()
returns the adapters name
- Returns
- string
Definition at line 77 of file Array.php.
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Translate/Adapter/Array.php