Project

General

Profile

Actions

Feature #22067

closed

Add a "keyword" to l10n_mode in ['columns'][fieldname] section

Added by Stefano Kowalke almost 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
Documentation
Target version:
-
Start date:
2010-02-05
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

With the l10n_mode you can control how T3 handles translations in the backend forms.
Four keywords are described in the documentation, but you could also clear the key and got a 5th behavior -> T3 copy the text from default language to the specific field.

So I wish me a note to this possiblity inside the doc.

Example:
If you create a tt_news item in default language (english), T3 insert the current date into datetime field. This happend because of settings in tt_news tca.php:
'default' => mktime(date("H"),date("i"),0,date("m"),date("d"),date("Y"))

After a few days, someone translate the item to german, so T3 insert again the current date into datetime field - the creation date of the translation. So you have different dates for same news item.

To get rid you have to clear the "l10n_mode". Add this line into typo3conf/extTables.php:
$TCA['tt_news']['columns']['datetime']['l10n_mode'] = '';

(issue imported from #M13438)

Actions #1

Updated by Francois Suter over 14 years ago

It's true that this is not entirely clear. I've added the following at the bottom of l10_mode description:

As mentioned above if “l10n_mode” is not set for a given field, that field is just copied as is to the translated record.

Actions #2

Updated by Francois Suter over 14 years ago

Committed in r326

Actions #3

Updated by Francois Suter over 14 years ago

Included in released version 4.3.0.

Actions

Also available in: Atom PDF