1

hope someone has a idea.

I run into a challenge on a multi language typo3 site.

The default language is english and there are two spanish languages. Now, after I've translates the first spanish, I would like to copy this to the second one.

So basicly I would like to say "Copy spanish #1 content element", instead of "Copy default content element"

In TYPO3 4.5 there was a quite nice extension "fl_langtranslate", but this not gonna work anymore in > 6.0.

Anyone have I idea or solution for that? I am wondering that TYPO3 is not gonna do this out of the box.

Cheers!

4

3 回答 3

1

如果您经常遇到此问题,我建议您考虑语言回退。

使用 TypoScript,您可以定义在翻译不可用时回退的语言。这是一个例子:

这是一个示例,英语 (en) 为 0,西班牙语 (es) 为 1,墨西哥西班牙语 (es-MX) 为 2。

# Don't fall back to another language. If it's not translated, the user has to switch the language.
sys_language_mode = strict

# english language
sys_language_uid = 0

[globalVar = GP:L = 1]
    config.sys_language_uid = 1
[global]
[globalVar = GP:L = 2]
    config.sys_language_uid = 2
    # Try es-MX first and if not available, try es-ES. If that's not available, too, this page is not translated.
    sys_language_mode = content_fallback ; 2,1
[global]

您还可以创建第 3 种语言并将其称为西班牙西班牙语 (es-ES),并将其用于仅适用于居住在西班牙的人们的内容,并且永远不要使用 id 1 来创建链接 - 仅用于内容翻译;)

于 2013-06-13T08:42:08.873 回答
0

大多数扩展在 6.0 中不起作用,因为某些 API 功能已更改。所以也许检查你的 PHP-Errorlog。通常很容易替换 API 函数。在http://wiki.typo3.org/TYPO3_6.0_Incompatible_Extensions_F上注明了 t3lib_div::int_from_ver

使用 t3lib_utility_Version::convertVersionNumberToInteger() 代替。

于 2013-06-12T08:03:17.440 回答
0

在 TYPO3 版本 7.5 中实现了此功能,您可以在“复制默认内容元素”按钮附近的选择框中选择要从哪种语言复制内容元素。

分机。fl_langtranslate 现在应该可以与 TYPO3 6.2 一起使用,但有一个错误,如果您删除了前缀“翻译为...”(如果“l10n_mode”不是“prefixLangtitle”):

$GLOBALS['TCA']['tt_content']['columns']['header']['l10n_mode'] = '';
于 2015-10-26T16:22:39.843 回答