Commit 729b792c authored by Fabian Galinski's avatar Fabian Galinski

[BUGFIX] The formatting of xlf files was just wrong... Finally fixed. Hooray!

parent 51a9946a
......@@ -292,19 +292,19 @@ class FileBaseXLFService extends FileBaseService {
$enValue = htmlspecialchars($enLanguage[$constant]);
}
$body .= "\t\t" . '<trans-unit id="' . htmlspecialchars(
$body .= "\t\t\t" . '<trans-unit id="' . htmlspecialchars(
$constant
) . '"' . $approved . $this->addPreserveSpaceAttribute(
$value, $enValue, $targetLanguage
) . '>' . "\n";
if ($targetLanguage !== 'default') {
$body .= "\t\t\t" . '<source>' . $enValue . '</source>' . "\n";
$body .= "\t\t\t" . '<target>' . $value . '</target>' . "\n";
$body .= "\t\t\t\t" . '<source>' . $enValue . '</source>' . "\n";
$body .= "\t\t\t\t" . '<target>' . $value . '</target>' . "\n";
} else {
$body .= "\t\t\t" . '<source>' . $value . '</source>' . "\n";
$body .= "\t\t\t\t" . '<source>' . $value . '</source>' . "\n";
}
$body .= "\t\t" . '</trans-unit>' . "\n";
$body .= "\t\t\t" . '</trans-unit>' . "\n";
}
$body .= "\t\t" . '</body>';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment