Да, а также вам нужно изменить все новости в плагине tx_news
Сначала скопировать все в таблицу tmp
CREATE TABLE `news_tmp` ( `uid` int( 11 ) NOT NULL AUTO_INCREMENT ,
`pid` int( 11 ) NOT NULL DEFAULT '0',
`tstamp` int( 11 ) NOT NULL DEFAULT '0',
`crdate` int( 11 ) NOT NULL DEFAULT '0',
`cruser_id` int( 11 ) NOT NULL DEFAULT '0',
`t3ver_oid` int( 11 ) NOT NULL DEFAULT '0',
`t3ver_id` int( 11 ) NOT NULL DEFAULT '0',
`t3ver_wsid` int( 11 ) NOT NULL DEFAULT '0',
`t3ver_label` varchar( 30 ) NOT NULL DEFAULT '',
`t3ver_state` tinyint( 4 ) NOT NULL DEFAULT '0',
`t3ver_stage` tinyint( 4 ) NOT NULL DEFAULT '0',
`t3ver_count` int( 11 ) NOT NULL DEFAULT '0',
`t3ver_tstamp` int( 11 ) NOT NULL DEFAULT '0',
`t3ver_move_id` int( 11 ) NOT NULL DEFAULT '0',
`t3_origuid` int( 11 ) NOT NULL DEFAULT '0',
`editlock` tinyint( 4 ) NOT NULL DEFAULT '0',
`sys_language_uid` int( 11 ) NOT NULL DEFAULT '0',
`l10n_parent` int( 11 ) NOT NULL DEFAULT '0',
`l10n_diffsource` mediumtext,
`deleted` tinyint( 4 ) NOT NULL DEFAULT '0',
`hidden` tinyint( 4 ) NOT NULL DEFAULT '0',
`starttime` int( 11 ) NOT NULL DEFAULT '0',
`endtime` int( 11 ) NOT NULL DEFAULT '0',
`sorting` int( 11 ) NOT NULL DEFAULT '0',
`fe_group` varchar( 100 ) NOT NULL DEFAULT '0',
`title` tinytext,
`teaser` text,
`bodytext` mediumtext,
`datetime` int( 11 ) NOT NULL DEFAULT '0',
`archive` int( 11 ) NOT NULL DEFAULT '0',
`author` tinytext,
`author_email` tinytext,
`categories` int( 11 ) NOT NULL DEFAULT '0',
`related` int( 11 ) NOT NULL DEFAULT '0',
`related_from` int( 11 ) NOT NULL DEFAULT '0',
`related_files` tinytext,
`fal_related_files` int( 11 ) unsigned DEFAULT '0',
`related_links` tinytext,
`type` varchar( 100 ) NOT NULL DEFAULT '0',
`keywords` text,
`description` text,
`tags` int( 11 ) NOT NULL DEFAULT '0',
`media` text,
`fal_media` int( 11 ) unsigned DEFAULT '0',
`internalurl` text,
`externalurl` text,
`istopnews` int( 11 ) NOT NULL DEFAULT '0',
`content_elements` text,
`path_segment` tinytext,
`alternative_title` tinytext,
`rte_disabled` tinyint( 4 ) NOT NULL DEFAULT '0',
`import_id` varchar( 100 ) NOT NULL DEFAULT '',
`import_source` varchar( 100 ) NOT NULL DEFAULT '',
PRIMARY KEY ( `uid` ) ,
KEY `parent` ( `pid` ) ,
KEY `sys_language_uid_l10n_parent` ( `sys_language_uid` , `l10n_parent` ) ,
KEY `import` ( `import_id` , `import_source` ) ) ENGINE = MyISAM DEFAULT CHARSET = utf8
INSERT INTO `news_tmp` SELECT * FROM `tx_news_domain_model_news`
Затем изменить содержимое.Возьмите перевод текста с "tmp" и установите на новый язык происхождения.
UPDATE news_tmp news, tx_news_domain_model_news tmp
SET news.title = tmp.title,
news.teaser = tmp.teaser,
news.bodytext = tmp.bodytext
WHERE (news.uid = tmp.t3_origuid)
AND (news.sys_language_uid = 0)
AND (tmp.sys_language_uid = 2);
UPDATE news_tmp news, tx_news_domain_model_news tmp
SET news.title = tmp.title,
news.teaser = tmp.teaser,
news.bodytext = tmp.bodytext
WHERE (news.t3_origuid = tmp.uid)
AND (news.sys_language_uid = 2)
AND (tmp.sys_language_uid = 0)
и обратно
UPDATE news_tmp news, tx_news_domain_model_news tmp
SET news.title = tmp.title,
news.teaser = tmp.teaser,
news.bodytext = tmp.bodytext
WHERE (news.t3_origuid = tmp.uid)
AND (news.sys_language_uid = 2)
AND (tmp.sys_language_uid = 0)
Готов - вперед.Измените таблицу tmp на origin:
RENAME TABLE `db`.`tx_news_domain_model_news` TO `db`.`tx_news_domain_model_news_old` ;
RENAME TABLE `db`.`news_tmp` TO `db`.`tx_news_domain_model_news` ;
Это все.Thx