| @@ 1003-1010 (lines=8) @@ | ||
| 1000 | $languageKey = substr($languageKey, 0, -1); |
|
| 1001 | // Don't process label if the language is not loaded |
|
| 1002 | if (is_array($languageArray) && isset($this->LOCAL_LANG[$languageKey])) { |
|
| 1003 | foreach ($languageArray as $labelKey => $labelValue) { |
|
| 1004 | if (!is_array($labelValue)) { |
|
| 1005 | $this->LOCAL_LANG[$languageKey][$labelKey][0]['target'] = $labelValue; |
|
| 1006 | if ($labelValue === '') { |
|
| 1007 | $this->LOCAL_LANG_UNSET[$languageKey][$labelKey] = ''; |
|
| 1008 | } |
|
| 1009 | } |
|
| 1010 | } |
|
| 1011 | } |
|
| 1012 | } |
|
| 1013 | } |
|
| @@ 573-578 (lines=6) @@ | ||
| 570 | } |
|
| 571 | } elseif (is_array($labelValue)) { |
|
| 572 | $labelValue = $this->flattenTypoScriptLabelArray($labelValue, $labelKey); |
|
| 573 | foreach ($labelValue as $key => $value) { |
|
| 574 | $this->LOCAL_LANG[$languageKey][$key][0]['target'] = $value; |
|
| 575 | if ($value === '') { |
|
| 576 | $this->LOCAL_LANG_UNSET[$languageKey][$key] = ''; |
|
| 577 | } |
|
| 578 | } |
|
| 579 | } |
|
| 580 | } |
|
| 581 | } |
|