Only translating locallang_db.xlf Files (all others are ignored)
lfeditor for 11.5 is only translation locallang_db.xlf files and others like "locallang.xlf" are ignored. This is due to hardcoded line in the FileOverrideService.php in the writeFile function:
$this->originLang[$langKey] = str_replace('locallang_db.xlf', $langKey . '.locallang_db.xlf', $this->absFile);
I fixed it locally like this:
$translationFile = basename($this->absFile);
$translationDir = dirname($this->absFile);
// we need to prepare $file = $this->originLang[$lang]; to fix match
foreach ($this->localLang as $langKey => $val) {
if ($langKey !== 'default' && $langKey !== 'trans-unit') {
$this->originLang[$langKey] = $translationDir . '/' . $langKey . '.' . $translationFile;
}
}