Skip to content

Commit

Permalink
[BUGFIX] Always fill source attribute on new files
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Goerz committed Dec 19, 2018
1 parent 3af424d commit a703f30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Domain/Service/TranslationFileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public function createMissingFiles($language, $copyLabels = true)
if ($copyLabels === true) {
foreach ($translationFile->getTranslations() as $translation) {
if ($l10nTranslationFile->hasOwnTranslation($translation)) {
$l10nTranslationFile->getOwnTranslation($translation)->replaceTranslationSourceByOtherTranslation($translation);
continue;
}
$l10nTranslationFile->addTranslation($translation);
Expand Down

0 comments on commit a703f30

Please sign in to comment.