Commit 360cf268 authored by damjan's avatar damjan

[BUGFIX] If transforming to XLF, don't merge, do split always.

parent d6c104d0
......@@ -37,6 +37,9 @@ use TYPO3\CMS\Extbase\Utility\LocalizationUtility;
* General controller. It contains extbase actions for general page.
*/
class GeneralController extends AbstractBackendController {
/** Code for normal split operation */
const NORMAL_SPLIT = 1;
Please register or sign in to reply
/**
* Renders last-opened page. This action ai called upon opening LFEditor.
*
......@@ -105,7 +108,6 @@ class GeneralController extends AbstractBackendController {
public function generalSaveAction(
$authorName = NULL, $authorEmail = NULL, $metaDescription = NULL, $transformFile = NULL, $splitFile = NULL
) {
// TODO: if XLF, dont merge!
try {
$metaArray = array(
'authorName' => $authorName,
......@@ -115,6 +117,9 @@ class GeneralController extends AbstractBackendController {
$this->configurationService->execWrite(array(), $metaArray);
// split or merge
if ($transformFile === 'xlf') {
$splitFile = self::NORMAL_SPLIT;
}
if (($splitFile == 1 || $splitFile == 2)) {
$langModes = array();
// set vars
......
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