Skip to content

Commit ec10593

Browse files
authored
If source is not found, the value of target is taken as source.
1 parent 0a20e0a commit ec10593

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Utility/Convert.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,12 @@ protected function generateFileContent(string $xmlFile, string $langKey): string
204204

205205
foreach ($LOCAL_LANG[$langKey] as $key => $data) {
206206
if (is_array($data)) {
207-
$source = $data[0]['source'];
208207
if (isset($data[0]['target'])) {
209208
$target = $data[0]['target'];
210209
} else {
211210
$target = '';
212211
}
212+
$source = isset($data[0]['source']) ? $data[0]['source'] : $target;
213213
} else {
214214
$source = $LOCAL_LANG['default'][$key];
215215
$target = $data;

0 commit comments

Comments
 (0)