I just created a localized table. When adding translations they go into the table with a new uid. I have checked with other localized extension, so this seems to be right.
Example: Localized entries in a table gives not just translations but also extra entries in the table with new uid
Now I have a concern:
When tre persons from Denmark, England and Germany all sign up for something in German, they will sign up for uid 1, uid 7 and uid 13... I would prefer if they all signed up for the default language.
Else it will be difficult to generate a list of users that signed up for a language if each language will exist with own uid for each translation.
What have I missed? Som exec_select_localized function?
You are 100% correct that every translation is a new record (= new uid) in the same table. So you have done everything right.
For the frontend you can use $GLOBALS['TSFE']->sys_page->getRecordOverlay('tx_mytable', array('uid' => 1)); with the original record (with the result of a record in exec_SELECTquery()),
or in the TYPO3 Backend look at
BackendUtility::getRecordLocalization('tx_mytable', 4)
to get the localized record.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.